Commit de93ab8e by cwq0219

bug修复

1 parent ad269dc2
...@@ -375,14 +375,12 @@ export default { ...@@ -375,14 +375,12 @@ export default {
mounted() { mounted() {
this.formData = _.cloneDeep(this.originData) this.formData = _.cloneDeep(this.originData)
this.getGoodsListNoBase() this.getGoodsList()
}, },
methods: { methods: {
getGoodsListNoBase() { getGoodsList() {
getGoodsList({ getGoodsList({}).then(res => {
exceptBase: true
}).then(res => {
this.proList = res this.proList = res
}) })
}, },
......
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
}) })
} else { } else {
this.editForm[0].formBlock[0].isDisabled = false this.editForm[0].formBlock[0].isDisabled = false
this.getGoodsList() this.getGoodsListNoBase()
this.$nextTick(() => { this.$nextTick(() => {
this.show = true this.show = true
}) })
...@@ -162,8 +162,10 @@ export default { ...@@ -162,8 +162,10 @@ export default {
methods: { methods: {
...mapActions({ close: 'd2admin/page/close' }), ...mapActions({ close: 'd2admin/page/close' }),
// ...mapActions('d2admin/page', ['close']), // ...mapActions('d2admin/page', ['close']),
getGoodsList() { getGoodsListNoBase() {
getGoodsList({}).then(res => { getGoodsList({
exceptBase: true
}).then(res => {
// console.log(res) // console.log(res)
this.editForm[0].formBlock[0].optionList = res this.editForm[0].formBlock[0].optionList = res
}) })
......
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
label: '分类', label: '分类',
isRequired: true, isRequired: true,
type: 'select', type: 'select',
tips: '选择产品分类', // tips: '选择产品分类',
isClear: false, isClear: false,
optionList: [], optionList: [],
optionId: 'goodsType', optionId: 'goodsType',
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
label: '品牌商', label: '品牌商',
isRequired: true, isRequired: true,
type: 'select', type: 'select',
tips: '选择品牌商', // tips: '选择品牌商',
isClear: true, isClear: true,
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
......
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
prop: 'brandMerchantName' prop: 'brandMerchantName'
}, { }, {
label: '创建时间', label: '创建时间',
prop: 'createdDate' prop: 'createDateStr'
}, { }, {
label: '产品状态', label: '产品状态',
prop: 'state', prop: 'state',
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
baseData: { baseData: {
productTypeList: [], productTypeList: [],
brandList: [] brandList: []
}, }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!