From 94094ad137a47ba99129c2510731cf4233826d03 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 27 Oct 2023 20:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A7=94=E6=89=98=E9=94=80?= =?UTF-8?q?=E5=94=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/realselist/realselist.vue | 3 +++ components/shoppinglist/shoppinglist.vue | 3 +++ .../commissionedSales/addDelegation/index.vue | 20 +++++++++++-------- .../delegation_details/index.vue | 2 +- .../initiateDelegation/index.vue | 4 ++-- pages/product/list/index.vue | 4 +++- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/components/realselist/realselist.vue b/components/realselist/realselist.vue index 0d22916..8d9d153 100644 --- a/components/realselist/realselist.vue +++ b/components/realselist/realselist.vue @@ -173,6 +173,9 @@ //价格 producrprice(e, i, item) { this.bought[i].price = e.detail.value + // 处理数据回显时, 调整数量, 选中的数据不改变的问题 + let obj = this.checkedArr.find((item)=>item.product_id==this.bought[i].product_id); + obj ? obj.price = e.detail.value:null; // this.$set(item, 'check', false); // for (let i in this.checkedArr) { // if (this.checkedArr[i].product_id == item.product_id) { diff --git a/components/shoppinglist/shoppinglist.vue b/components/shoppinglist/shoppinglist.vue index 2f4912f..281ec7f 100644 --- a/components/shoppinglist/shoppinglist.vue +++ b/components/shoppinglist/shoppinglist.vue @@ -173,6 +173,9 @@ //价格 producrprice(e, i, item) { this.bought[i].price = e.detail.value + // 处理数据回显时, 调整数量, 选中的数据不改变的问题 + let obj = this.checkedArr.find((item)=>item.product_id==this.bought[i].product_id); + obj ? obj.price = e.detail.value:null; // this.$set(item, 'check', false); // for (let i in this.checkedArr) { // if (this.checkedArr[i].product_id == item.product_id) { diff --git a/pages/commissionedSales/addDelegation/index.vue b/pages/commissionedSales/addDelegation/index.vue index d2da49e..fbc4ac7 100644 --- a/pages/commissionedSales/addDelegation/index.vue +++ b/pages/commissionedSales/addDelegation/index.vue @@ -72,7 +72,6 @@