|
@@ -92,9 +92,10 @@ export default {
|
|
|
formDialog: false,
|
|
|
formData: {
|
|
|
companyName: JSON.parse(localStorage.getItem('greemall_user')).companyName,
|
|
|
- brandList: [],
|
|
|
+ partsUnitName: '',
|
|
|
categoryList: [],
|
|
|
- partsUnitName: ''
|
|
|
+ partsUnitList: [],
|
|
|
+ brandList: []
|
|
|
},
|
|
|
partsUnitList: [],
|
|
|
brandList: [],
|
|
@@ -150,10 +151,10 @@ export default {
|
|
|
md: 12,
|
|
|
isShow: true,
|
|
|
name: 'el-select-add',
|
|
|
- // labelKey: 'dictTypeName',
|
|
|
- // valueKey: 'dictTypeName',
|
|
|
+ labelKey: 'dictValue',
|
|
|
+ valueKey: 'dictCode',
|
|
|
options: this.partsUnitList,
|
|
|
- attributes: { placeholder: '请选择单位',filterable: true },
|
|
|
+ attributes: { placeholder: '请选择单位',filterable: true, clearable: true },
|
|
|
formItemAttributes: {
|
|
|
label: '单位',
|
|
|
prop: 'partsUnitName',
|
|
@@ -197,8 +198,8 @@ export default {
|
|
|
md: 24,
|
|
|
isShow: true,
|
|
|
name: 'el-checkbox-add',
|
|
|
- // labelKey: 'dictTypeName',
|
|
|
- // valueKey: 'dictTypeName',
|
|
|
+ labelKey: 'dictValue',
|
|
|
+ valueKey: 'dictCode',
|
|
|
attributes: {},
|
|
|
options: this.brandList,
|
|
|
formItemAttributes: {
|
|
@@ -210,8 +211,8 @@ export default {
|
|
|
md: 24,
|
|
|
isShow: true,
|
|
|
name: 'el-checkbox-add',
|
|
|
- // labelKey: 'dictTypeName',
|
|
|
- // valueKey: 'dictTypeName',
|
|
|
+ labelKey: 'dictValue',
|
|
|
+ valueKey: 'dictCode',
|
|
|
attributes: {},
|
|
|
options: this.categoryList,
|
|
|
formItemAttributes: {
|
|
@@ -294,7 +295,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getTypeList('PARTS_UNIT','partsUnitList')
|
|
|
- this.getTypeList('PARTS_UNIT','brandList')
|
|
|
+ this.getTypeList('BRAND','brandList')
|
|
|
this.getTypeList('PARTS_UNIT','categoryList')
|
|
|
},
|
|
|
methods: {
|