Commit e3793cb0 authored by 我在何方's avatar 我在何方
parents 9b22089f f66a0cba
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
<costForm v-if="dialogConfig.visible" @closeDialog="closeDialog" :shipmentObj="shipmentObj" :costDetail="costDetail" /> <costForm v-if="dialogConfig.visible" @closeDialog="closeDialog" :shipmentObj="shipmentObj" :costDetail="costDetail" />
</template> </template>
<template v-if="dialogConfig.type === 'error'"> <template v-if="dialogConfig.type === 'error'">
<regError v-if="dialogConfig.visible" @closeDialog="closeDialog" :shipmentObj="shipmentObj" /> <regError v-if="dialogConfig.visible" @closeDialog="closeDialog" :shipmentObj="shipmentObj" :allUsers="allUsers" />
</template> </template>
<template v-if="dialogConfig.type === 'updateError'"> <template v-if="dialogConfig.type === 'updateError'">
<updateError v-if="dialogConfig.visible" @closeDialog="closeDialog" :shipmentObj="shipmentObj" :errorInfo="errorInfo" /> <updateError v-if="dialogConfig.visible" @closeDialog="closeDialog" :shipmentObj="shipmentObj" :errorInfo="errorInfo" />
...@@ -225,6 +225,7 @@ import costForm from "./costForm.vue"; ...@@ -225,6 +225,7 @@ import costForm from "./costForm.vue";
import regError from "./regError.vue"; import regError from "./regError.vue";
import editForm from "./editForm.vue"; import editForm from "./editForm.vue";
import updateError from "./updateError.vue"; import updateError from "./updateError.vue";
import { listUser } from "@/api/system/user";
export default { export default {
name: "boxDetail", name: "boxDetail",
...@@ -243,6 +244,11 @@ export default { ...@@ -243,6 +244,11 @@ export default {
).filter((item) => item.value == "1" || item.value == "2"); ).filter((item) => item.value == "1" || item.value == "2");
this.initData(); this.initData();
this.queryAllData(); this.queryAllData();
// 用户
listUser({ pageNo: "1", pageSize: "10000" }).then((res) => {
const { data } = res;
this.allUsers = data.list ?? [];
});
}, },
data() { data() {
return { return {
...@@ -256,6 +262,7 @@ export default { ...@@ -256,6 +262,7 @@ export default {
warehouseList: [], warehouseList: [],
// 供应商 // 供应商
allSupplier: [], allSupplier: [],
allUsers: [],
// 部分list // 部分list
sectionList: [], sectionList: [],
// 单证数组 // 单证数组
...@@ -312,6 +319,8 @@ export default { ...@@ -312,6 +319,8 @@ export default {
// 修改异常 // 修改异常
errorInfo: { errorInfo: {
orderList: [], orderList: [],
errorType: "",
operate: "",
}, },
}; };
}, },
...@@ -347,6 +356,7 @@ export default { ...@@ -347,6 +356,7 @@ export default {
} }
this.getErrorType(); this.getErrorType();
this.$set(this.errorInfo, "orderList", orders); this.$set(this.errorInfo, "orderList", orders);
this.$set(this.errorInfo, "operate", type);
// 判断异常类型 // 判断异常类型
this.handleCommand("updateError"); this.handleCommand("updateError");
}, },
......
...@@ -542,6 +542,7 @@ export default { ...@@ -542,6 +542,7 @@ export default {
"cusDeclarationObj.dcCustomsStatus"(val) { "cusDeclarationObj.dcCustomsStatus"(val) {
if (val !== "3") { if (val !== "3") {
this.$set(this.cusDeclarationObj, "dcCheckStatus", ""); this.$set(this.cusDeclarationObj, "dcCheckStatus", "");
this.$set(this.cusDeclarationObj, "dcPassTime", "");
} else { } else {
const { customsInfo = {} } = this.shipmentObj; const { customsInfo = {} } = this.shipmentObj;
this.$set( this.$set(
...@@ -574,7 +575,8 @@ export default { ...@@ -574,7 +575,8 @@ export default {
}, },
// 查验状态 // 查验状态
"cusDeclarationObj.dcCheckStatus"(val) { "cusDeclarationObj.dcCheckStatus"(val) {
if (val !== this.cusDeclarationObj.dcCheckStatus) { const { customsInfo = {} } = this.shipmentObj;
if (val != customsInfo.dcCheckStatus) {
this.$set(this.cusDeclarationObj, "dcPassTime", ""); this.$set(this.cusDeclarationObj, "dcPassTime", "");
} }
}, },
......
...@@ -83,11 +83,27 @@ export default { ...@@ -83,11 +83,27 @@ export default {
watch: { watch: {
errorInfo: { errorInfo: {
handler: function (val) { handler: function (val) {
const { errorType, orderList } = val; const { errorType, orderList, operate } = val;
this.headerTitle = this.$t("确定给{selfNo}下的{orderNos}更新状态吗?", {
selfNo: this.shipmentObj.selfNo, if (operate === "single") {
orderNos: orderList.map((item) => item.orderNo).join(",") ?? "", this.headerTitle = this.$t(
}); "确定给{selfNo}下的{orderNos}更新状态吗?",
{
selfNo: this.shipmentObj.selfNo,
orderNos: orderList.map((item) => item.orderNo).join(",") ?? "",
}
);
} else {
this.headerTitle = this.$t(
`确定给{selfNo}下的${
operate === "all" ? "所有订单" : "所选订单"
}更新状态吗?`,
{
selfNo: this.shipmentObj.selfNo,
}
);
}
switch (errorType) { switch (errorType) {
// 报关异常 // 报关异常
case "customs": case "customs":
......
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