|
@@ -297,6 +297,8 @@ Page({
|
|
|
this.setData({
|
|
|
[`list[${index}].qty`]: qty
|
|
|
});
|
|
|
+ let i = this.data.resultList.findIndex(v => v.itemid == item.itemid);
|
|
|
+ if (i !== -1) this.data.resultList[i].qty = qty;
|
|
|
},
|
|
|
stepperChange(e) {
|
|
|
const {
|
|
@@ -311,6 +313,8 @@ Page({
|
|
|
this.setData({
|
|
|
[`list[${index}]`]: item
|
|
|
})
|
|
|
+ let i = this.data.resultList.findIndex(v => v.itemid == item.itemid);
|
|
|
+ if (i !== -1) this.data.resultList[i] = item;
|
|
|
},
|
|
|
onUnload() {
|
|
|
//回收数据
|