送洗显示信息

This commit is contained in:
2020-09-10 10:00:04 +08:00
parent fe60d5a1cf
commit d79e38e44c
2 changed files with 18 additions and 6 deletions

View File

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