Commit 7b48a3cc by 张立顺

fix 联动bug修复

1 parent a4df8d07
......@@ -801,6 +801,7 @@ export default {
}
// this.baseData.storeIdList = []
this.handleSearch()
this.getAllServiceStore()
this.getOptionsList()
},
getServiceStore(merchantId) {
......
......@@ -377,8 +377,16 @@ export default {
},
methods: {
restPackageList() {
console.log(this.periodItemForm.selectGoodsType, 'this.periodItemForm.selectGoodsType')
if (this.periodItemForm.selectGoodsType == 1) {
this.periodItemForm.packageList = []
this.periodItemForm = {
...this.periodItemForm,
packageList: [],
conversionRate: '',
conversionRatePercentage: '',
customerUnitPrice: '',
customerUnitPricePercentage: ''
}
}
},
handleConfirm(list) {
......@@ -539,6 +547,7 @@ export default {
})
this.periodItemForm.goodsTypeList = deepClone(list)
this.$nextTick(() => {
this.restPackageList()
console.log(this.periodItemForm.goodsTypeList, 'this.periodItemForm.goodsTypeList')
this.$refs.periodItem.validateField('selectGoodsType')
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!