|
@@ -2603,9 +2603,11 @@ export default {
|
|
|
} else {
|
|
|
this.$set(list[item], 'price', '0')
|
|
|
}
|
|
|
+ this.priceChange(list[item])
|
|
|
})
|
|
|
} else {
|
|
|
this.$set(list[item], 'price', list[item].specialOffer)
|
|
|
+ this.priceChange(list[item])
|
|
|
}
|
|
|
this.$set(list[item], 'inputMold', 1)
|
|
|
this.$set(list[item], 'goodType', 0)
|
|
@@ -2617,9 +2619,11 @@ export default {
|
|
|
} else {
|
|
|
this.$set(list[item], 'price', '0')
|
|
|
}
|
|
|
+ this.priceChange(list[item])
|
|
|
})
|
|
|
} else {
|
|
|
this.$set(list[item], 'price', list[item].salePrice)
|
|
|
+ this.priceChange(list[item])
|
|
|
}
|
|
|
this.$set(list[item], 'inputMold', 2)
|
|
|
this.$set(buyFree[item], 'inputMold', 2)
|
|
@@ -2640,7 +2644,7 @@ export default {
|
|
|
this.$set(list[item], 'itemType', list[item].typeno)
|
|
|
this.$set(list[item], 'actualQuantity', 0)
|
|
|
this.$set(list[item], 'orderQuantity', list[item].orderQuantity? list[item].orderQuantity: 0)
|
|
|
- this.$set(list[item], 'amount', 0)
|
|
|
+ // this.$set(list[item], 'amount', 0)
|
|
|
this.$set(list[item], 'priceCategory', list[item].productCategory)
|
|
|
this.$set(list[item], 'priceType', this.policyForm.cname)
|
|
|
this.$set(list[item], 'cname', list[item].productCategory)
|
|
@@ -2654,7 +2658,7 @@ export default {
|
|
|
if (listLength != 0) {
|
|
|
this.$set(buyFree[item], 'actualQuantity', 0)
|
|
|
this.$set(buyFree[item], 'orderQuantity', 0)
|
|
|
- this.$set(buyFree[item], 'amount', 0)
|
|
|
+ // this.$set(buyFree[item], 'amount', 0)
|
|
|
this.$set(buyFree[item], 'priceCategory', list[item].productCategory)
|
|
|
this.$set(buyFree[item], 'priceType', this.policyForm.cname)
|
|
|
this.$set(buyFree[item], 'cname', list[item].productCategory)
|
|
@@ -2684,11 +2688,13 @@ export default {
|
|
|
delete list[item].updateUserName
|
|
|
this.maxGoodsNum++
|
|
|
this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
- // this.$refs.crudContact.rowCell(list[item], this.contactsData.length - 1)
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.quantityChange(list[item])
|
|
|
+ })
|
|
|
if (listLength != 0) {
|
|
|
this.$refs.crudContact.rowCellAdd(buyFree[item]);
|
|
|
+ this.quantityChange(buyFree[item])
|
|
|
}
|
|
|
- // this.$refs.crudContact.rowCell(buyFree[item], this.contactsData.length - 1)
|
|
|
})
|
|
|
}
|
|
|
this.policyDialog = false
|