Commit 76127749 authored by Smile's avatar Smile Committed by wux

当空运出货对象为空时,1.出货-送货上门/供应商自提,地址无法编辑2.送货上门-没有带出供应商地址3.出货-供应商自提,没有带出仓库地址问题修改

parent 7c35d952
......@@ -82,7 +82,14 @@ export default {
data() {
return {
// 空运出货对象
airShipmentObj: {},
airShipmentObj: {
deliverTime:null,
deliverType:"1",
deliverAddress:null,
licensePlate:null,
driver:null,
driverPhone:null
},
//初始地址
oldAddress: "",
//订单对象
......@@ -105,8 +112,10 @@ export default {
let oldData = { ...this.$attrs.shipmentObj[voName] };
oldData = formatDateStr(oldData, ["deliverTime"]);
oldData = formatNumberString(oldData, ["deliverType"]);
this.airShipmentObj = oldData;
this.oldAddress=this.airShipmentObj.deliverAddress
if (Object.keys(oldData).length > 0){
this.airShipmentObj = oldData;
this.oldAddress=this.airShipmentObj.deliverAddress
}
//判断是否有地址数据,没有就带出默认地址
if (!this.oldAddress) {
this.handleRadioChange(this.airShipmentObj.deliverType);
......
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