|
@@ -2844,19 +2844,22 @@ export default {
|
|
|
// for (let i = 0; i < this.$refs.crudContact.list.length; i++) {
|
|
|
// this.$refs.crudContact.list[i].purchaseRebatePrice = rest.data.data[0].purchaseRebatePrice;
|
|
|
// }
|
|
|
- this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
+ // this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
} else {
|
|
|
console.log('rest>>>2', rest);
|
|
|
this.$set(this.$refs.crudContact.list[this.$refs.crudContact.list.length - 1], 'purchaseRebatePrice', 0)
|
|
|
// this.$refs.crudContact.list[item].purchaseRebatePrice = 0
|
|
|
- this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
+ // this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
}
|
|
|
}).catch(err=>{
|
|
|
this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
})
|
|
|
// this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
console.log('rest>>>', this.$refs.crudContact);
|
|
|
+ console.log(this.$refs.crudContact,'this.$refs.crudContact')
|
|
|
this.$nextTick(() => {
|
|
|
+ // 先让赠送的添加进去 延迟添加数据
|
|
|
+ this.$refs.crudContact.rowCellAdd(list[item]);
|
|
|
this.quantityChange(list[item])
|
|
|
})
|
|
|
if (listLength != 0) {
|