Commit 7b48a3cc by 张立顺

fix 联动bug修复

1 parent a4df8d07
...@@ -801,6 +801,7 @@ export default { ...@@ -801,6 +801,7 @@ export default {
} }
// this.baseData.storeIdList = [] // this.baseData.storeIdList = []
this.handleSearch() this.handleSearch()
this.getAllServiceStore()
this.getOptionsList() this.getOptionsList()
}, },
getServiceStore(merchantId) { getServiceStore(merchantId) {
......
...@@ -377,8 +377,16 @@ export default { ...@@ -377,8 +377,16 @@ export default {
}, },
methods: { methods: {
restPackageList() { restPackageList() {
console.log(this.periodItemForm.selectGoodsType, 'this.periodItemForm.selectGoodsType')
if (this.periodItemForm.selectGoodsType == 1) { if (this.periodItemForm.selectGoodsType == 1) {
this.periodItemForm.packageList = [] this.periodItemForm = {
...this.periodItemForm,
packageList: [],
conversionRate: '',
conversionRatePercentage: '',
customerUnitPrice: '',
customerUnitPricePercentage: ''
}
} }
}, },
handleConfirm(list) { handleConfirm(list) {
...@@ -539,6 +547,7 @@ export default { ...@@ -539,6 +547,7 @@ export default {
}) })
this.periodItemForm.goodsTypeList = deepClone(list) this.periodItemForm.goodsTypeList = deepClone(list)
this.$nextTick(() => { this.$nextTick(() => {
this.restPackageList()
console.log(this.periodItemForm.goodsTypeList, 'this.periodItemForm.goodsTypeList') console.log(this.periodItemForm.goodsTypeList, 'this.periodItemForm.goodsTypeList')
this.$refs.periodItem.validateField('selectGoodsType') 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!