|
@@ -45,6 +45,7 @@
|
|
@change="changeProductType"
|
|
@change="changeProductType"
|
|
change-on-select
|
|
change-on-select
|
|
v-model="productType"
|
|
v-model="productType"
|
|
|
|
+ expand-trigger="hover"
|
|
:options="productTypeList"
|
|
:options="productTypeList"
|
|
:fieldNames="{ label: 'productTypeName', value: 'productTypeSn', children: 'children' }"
|
|
:fieldNames="{ label: 'productTypeName', value: 'productTypeSn', children: 'children' }"
|
|
id="productInfoList-productType"
|
|
id="productInfoList-productType"
|
|
@@ -266,18 +267,6 @@ export default {
|
|
data.list[i].salesNums = 1
|
|
data.list[i].salesNums = 1
|
|
}
|
|
}
|
|
this.disabled = false
|
|
this.disabled = false
|
|
- // 产品品牌
|
|
|
|
- if (this.productBrandList.length == 0) {
|
|
|
|
- this.getProductBrand()
|
|
|
|
- }
|
|
|
|
- // 产品分类
|
|
|
|
- if (this.productTypeList.length == 0) {
|
|
|
|
- this.getProductType()
|
|
|
|
- }
|
|
|
|
- // 仓库
|
|
|
|
- if (this.warehouseList.length == 0) {
|
|
|
|
- this.getWarehouse()
|
|
|
|
- }
|
|
|
|
return data
|
|
return data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -287,6 +276,18 @@ export default {
|
|
created () {
|
|
created () {
|
|
this.columns = this.columnsBak
|
|
this.columns = this.columnsBak
|
|
this.onSettingChange()
|
|
this.onSettingChange()
|
|
|
|
+ // 产品品牌
|
|
|
|
+ if (this.productBrandList.length == 0) {
|
|
|
|
+ this.getProductBrand()
|
|
|
|
+ }
|
|
|
|
+ // 产品分类
|
|
|
|
+ if (this.productTypeList.length == 0) {
|
|
|
|
+ this.getProductType()
|
|
|
|
+ }
|
|
|
|
+ // 仓库
|
|
|
|
+ if (this.warehouseList.length == 0) {
|
|
|
|
+ this.getWarehouse()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 设置列
|
|
// 设置列
|