Commit 4a649662 authored by Smile's avatar Smile Committed by wux

当空运出货对象为空时,1. 送货上门-没有带出供应商地址

parent 76127749
......@@ -71,6 +71,7 @@
import { airShipmentCreate, approvalCancel } from "@/api/ecw/boxSea";
import userSelect from "./common/userSelect.vue";
import { constantDict, formatDateStr, formatNumberString, serviceMsg } from "../utils";
import {listByIds} from "@/api/ecw/region";
/**
* 驳船
......@@ -90,6 +91,7 @@ export default {
driver:null,
driverPhone:null
},
region:'',
//初始地址
oldAddress: "",
//订单对象
......@@ -162,12 +164,21 @@ export default {
if (this.oldAddress){
return
}
console.log(1)
if (value === "1") {
this.airShipmentObj.deliverAddress="";
this.shipmentObj.bookAirInfo.shipperId;
this.suppliers.forEach((item) => {
if (item.id === this.shipmentObj.bookAirInfo.shipperId) {
this.airShipmentObj.deliverAddress = item.address;
listByIds({ids: [item.country, item.province, item.city].join(',')}).then(res => {
console.log('listById', res)
let region = ''
res.data.forEach(item => {
region += " " + item.titleZh
})
this.region = region
this.airShipmentObj.deliverAddress =this.region+item.address;
})
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment