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);