Commit 47d26c56 authored by zhoutong's avatar zhoutong

优化多次到港清关时间展示

parent 7b2bf271
...@@ -165,10 +165,23 @@ export default { ...@@ -165,10 +165,23 @@ export default {
this.compareDate(this.airArrivalInfo.estTime, val); this.compareDate(this.airArrivalInfo.estTime, val);
}, },
// 确认到港时间 "airArrivalInfo.arriveType"(val) {
"arrivalObj.apConfirmTime"(val) { if(val == 1){
this.compareDate(this.getExpectedTime(), val); this.$set(this.airArrivalInfo, 'actSecondTime', null)
}, this.$set(this.airArrivalInfo, 'estTime', null)
this.$set(this.airArrivalInfo, 'actTime', null)
}else{
let oldData = { ...this.$attrs.shipmentObj[this.$attrs.currNode.voName] };
oldData = formatDateStr(
oldData,
["actSecondTime", "estTime", "actTime"],
"YYYY-MM-DD HH:mm:ss"
);
this.$set(this.airArrivalInfo, 'actSecondTime', oldData.actSecondTime)
this.$set(this.airArrivalInfo, 'estTime', oldData.estTime)
this.$set(this.airArrivalInfo, 'actTime', oldData.actTime)
}
}
}, },
methods: { methods: {
filterOrder(val){ filterOrder(val){
......
...@@ -109,6 +109,21 @@ export default { ...@@ -109,6 +109,21 @@ export default {
// 清关时间 // 清关时间
'cusClearanceObj.clClearTime'(val) { 'cusClearanceObj.clClearTime'(val) {
this.compareDate(this.cusClearanceObj.clEstTime, val) this.compareDate(this.cusClearanceObj.clEstTime, val)
},
'cusClearanceObj.clearanceType'(val) {
if(val == 1){
this.$set(this.cusClearanceObj, 'clEstTime', null)
this.$set(this.cusClearanceObj, 'clClearTime', null)
}else{
let oldData = { ...this.$attrs.shipmentObj[this.$attrs.currNode.voName] };
oldData = formatDateStr(
oldData,
["clEstTime", "clClearTime"],
"YYYY-MM-DD HH:mm:ss"
);
this.$set(this.cusClearanceObj, 'clClearTime', oldData.clClearTime)
this.$set(this.cusClearanceObj, 'clEstTime', oldData.clEstTime)
}
} }
}, },
computed: { computed: {
......
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