From d79e38e44c85a335a40d6aeb1f5799d4039a8d25 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Thu, 10 Sep 2020 10:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=81=E6=B4=97=E6=98=BE=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageB/comment/index.vue | 4 ++-- pageE/tool/WashOrder.vue | 20 ++++++++++++++++---- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/pageB/comment/index.vue b/pageB/comment/index.vue index 096b5d6..b081cf3 100644 --- a/pageB/comment/index.vue +++ b/pageB/comment/index.vue @@ -5,7 +5,7 @@ - + @@ -25,7 +25,7 @@ export default { evaluateSpec: {}, loadStatus: 'loadmore', timer: true, - isShow: false, + isShow: false, // 是否显示组建 } }, components: { diff --git a/pageE/tool/WashOrder.vue b/pageE/tool/WashOrder.vue index 488bb79..6050d4a 100644 --- a/pageE/tool/WashOrder.vue +++ b/pageE/tool/WashOrder.vue @@ -411,12 +411,16 @@ export default { radioChange(e){ const ids = e.split(" "); // console.log(ids) - let checkedGoods = {}; + let checkedGoods; this.orderList.forEach(order => { if(order.order_id == ids[0]) { - Object.assign(checkedGoods, { store: order.extend_store }); - Object.assign(checkedGoods, { order_sn: order.order_sn }); - Object.assign(checkedGoods, { order_id: order.order_id }); + checkedGoods = { + store: order.extend_store, + order_sn: order.order_sn, + order_id: order.order_id, + reciver_info: order.extend_order_common.reciver_info, + reciver_name: order.extend_order_common.reciver_name + } order.extend_order_goods.forEach(goods => { if(goods.goods_id == ids[1]) { Object.assign(checkedGoods, { goods: goods }); @@ -425,6 +429,14 @@ export default { }) } }) + console.log(this.checkedGoods); + this.setDefaultValue(); + }, + setDefaultValue() { + this.name = this.checkedGoods.reciver_name; + this.phone = this.checkedGoods.reciver_info.mob_phone; + this.area = this.checkedGoods.reciver_info.area; + this.address = this.checkedGoods.reciver_info.street; }, setArea(area) { // console.log(area);