Commit 650053be authored by huhaiqing's avatar huhaiqing

修改报关报错

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