From 2043fd007165bc1a2349d064bf0fddc4da96e928 Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 30 Oct 2023 15:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/realselist/realselist.vue | 6 +++--- components/shoppinglist/shoppinglist.vue | 6 +++--- pages/commissionedSales/addDelegation/index.vue | 8 ++++---- pages/trading_hall/transfer_goods/index.vue | 1 - 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/components/realselist/realselist.vue b/components/realselist/realselist.vue index 8d9d153..afc7665 100644 --- a/components/realselist/realselist.vue +++ b/components/realselist/realselist.vue @@ -159,14 +159,14 @@ checkedObj: { handler(n) { - this.checkedArr = n + this.checkedArr = JSON.parse(JSON.stringify(n||{})) }, deep: true } }, mounted() { - this.checkedArr = this.checkedObj - this.aryys = this.checkedObj + this.checkedArr = JSON.parse(JSON.stringify(this.checkedObj||{})) + this.aryys = JSON.parse(JSON.stringify(this.checkedObj||{})) this.getBounht(); }, methods: { diff --git a/components/shoppinglist/shoppinglist.vue b/components/shoppinglist/shoppinglist.vue index 281ec7f..3fe50a5 100644 --- a/components/shoppinglist/shoppinglist.vue +++ b/components/shoppinglist/shoppinglist.vue @@ -159,14 +159,14 @@ checkedObj: { handler(n) { - this.checkedArr = n + this.checkedArr = JSON.parse(JSON.stringify(n||{})) }, deep: true } }, mounted() { - this.checkedArr = this.checkedObj - this.aryys = this.checkedObj + this.checkedArr = JSON.parse(JSON.stringify(this.checkedObj||{})) + this.aryys = JSON.parse(JSON.stringify(this.checkedObj||{})) this.getBounht(); }, methods: { diff --git a/pages/commissionedSales/addDelegation/index.vue b/pages/commissionedSales/addDelegation/index.vue index fbc4ac7..dfd1189 100644 --- a/pages/commissionedSales/addDelegation/index.vue +++ b/pages/commissionedSales/addDelegation/index.vue @@ -39,7 +39,7 @@ - + @@ -170,7 +170,6 @@ }, //获取商品信息 getProduct(data) { - console.log('选择商品', data); this.productList = []; this.formData.product_info = []; this.formData.content = ''; @@ -178,7 +177,9 @@ this.productList = data; for (let i in data) { this.formData.content += data[i].store_name + ','; - console.log(data[i].number); + if(typeof this.productList[i].image == 'object'){ + this.productList[i].image = this.productList[i].image[0] + } this.formData.product_info.push({ product_attr_unique: data[i].product_attr_unique, number: Number(data[i].number), @@ -187,7 +188,6 @@ } } this.formData.content = this.formData.content.slice(0,-1); - console.log('选择商品', this.formData); this.$refs.associated.close() }, //提交 diff --git a/pages/trading_hall/transfer_goods/index.vue b/pages/trading_hall/transfer_goods/index.vue index 793fc2b..ff40d9a 100644 --- a/pages/trading_hall/transfer_goods/index.vue +++ b/pages/trading_hall/transfer_goods/index.vue @@ -645,7 +645,6 @@ */ formSubmit: function(e) { - let that = this, value = that.formData;