Commit 3022d7ad authored by houjn@hikoon.cn's avatar houjn@hikoon.cn
parents de7048e5 650053be
...@@ -523,10 +523,9 @@ export default { ...@@ -523,10 +523,9 @@ export default {
const { const {
checkExamineStatus, checkExamineStatus,
checkDealStatus, checkDealStatus,
customsInfo = {}, customsInfo,
} = this.shipmentObj; } = this.shipmentObj;
const { dcCheckStatus } = customsInfo; const { dcCheckStatus } = customsInfo ?? {}; // 部分退场状态并且审核通过,退场不可选择
// 部分退场状态并且审核通过,退场不可选择
if ( if (
checkExamineStatus === 2 && checkExamineStatus === 2 &&
dcCheckStatus === 2 && dcCheckStatus === 2 &&
...@@ -565,11 +564,11 @@ export default { ...@@ -565,11 +564,11 @@ export default {
this.$set(this.cusDeclarationObj, "dcCheckStatus", ""); this.$set(this.cusDeclarationObj, "dcCheckStatus", "");
this.$set(this.cusDeclarationObj, "dcPassTime", ""); this.$set(this.cusDeclarationObj, "dcPassTime", "");
} else { } else {
const { customsInfo = {} } = this.shipmentObj; const { customsInfo } = this.shipmentObj;
this.$set( this.$set(
this.cusDeclarationObj, this.cusDeclarationObj,
"dcCheckStatus", "dcCheckStatus",
(customsInfo.dcCheckStatus && String(customsInfo.dcCheckStatus)) || (customsInfo?.dcCheckStatus && String(customsInfo?.dcCheckStatus)) ||
"3" "3"
); );
} }
...@@ -596,8 +595,8 @@ export default { ...@@ -596,8 +595,8 @@ export default {
}, },
// 查验状态 // 查验状态
"cusDeclarationObj.dcCheckStatus"(val) { "cusDeclarationObj.dcCheckStatus"(val) {
const { customsInfo = {} } = this.shipmentObj; const { customsInfo } = this.shipmentObj;
if (val != customsInfo.dcCheckStatus) { if (val != customsInfo?.dcCheckStatus) {
this.$set(this.cusDeclarationObj, "dcPassTime", ""); this.$set(this.cusDeclarationObj, "dcPassTime", "");
} }
}, },
...@@ -608,9 +607,9 @@ export default { ...@@ -608,9 +607,9 @@ export default {
const { const {
checkExamineStatus, checkExamineStatus,
checkDealStatus, checkDealStatus,
customsInfo = {}, customsInfo,
} = this.shipmentObj; } = this.shipmentObj;
const { dcCheckStatus } = customsInfo; const { dcCheckStatus } = customsInfo ?? {};
if (checkExamineStatus === 1) { if (checkExamineStatus === 1) {
return dcCheckStatus === 1 return dcCheckStatus === 1
? this.$t("退场审核中") ? this.$t("退场审核中")
...@@ -629,9 +628,9 @@ export default { ...@@ -629,9 +628,9 @@ export default {
const { const {
checkExamineStatus, checkExamineStatus,
checkDealStatus, checkDealStatus,
customsInfo = {}, customsInfo,
} = this.shipmentObj; } = this.shipmentObj;
const { dcCheckStatus } = customsInfo; const { dcCheckStatus } = customsInfo ?? {};
// 状态 // 状态
if (type === "status") { if (type === "status") {
......
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