Commit c1968da5 authored by huhaiqing's avatar huhaiqing

装柜反审增加

parent 2ee167b2
...@@ -33,7 +33,11 @@ export default { ...@@ -33,7 +33,11 @@ export default {
}, },
created() { created() {
const { currNode, shipmentObj } = this.$attrs; const { currNode, shipmentObj } = this.$attrs;
const { preInstallBackInfo, cabinetUnloadBackApprovalInfo } = shipmentObj; const {
preInstallBackInfo,
cabinetBackInfo,
cabinetUnloadBackApprovalInfo,
} = shipmentObj;
if (currNode.type === "preinstall") { if (currNode.type === "preinstall") {
this.isReview = preInstallBackInfo ? true : false; this.isReview = preInstallBackInfo ? true : false;
if (preInstallBackInfo && preInstallBackInfo.approvalStatus !== 1) { if (preInstallBackInfo && preInstallBackInfo.approvalStatus !== 1) {
...@@ -41,9 +45,19 @@ export default { ...@@ -41,9 +45,19 @@ export default {
} }
this.bpmProcessId = preInstallBackInfo?.bpmProcessId; this.bpmProcessId = preInstallBackInfo?.bpmProcessId;
} }
if (currNode.type === "cabinet") {
this.isReview = cabinetBackInfo ? true : false;
if (cabinetBackInfo && cabinetBackInfo.approvalStatus !== 1) {
this.isReview = false;
}
this.bpmProcessId = cabinetBackInfo?.bpmProcessId;
}
if (currNode.type === "unloading") { if (currNode.type === "unloading") {
this.isReview = cabinetUnloadBackApprovalInfo ? true : false; this.isReview = cabinetUnloadBackApprovalInfo ? true : false;
if (cabinetUnloadBackApprovalInfo && cabinetUnloadBackApprovalInfo.approvalStatus !== 1) { if (
cabinetUnloadBackApprovalInfo &&
cabinetUnloadBackApprovalInfo.approvalStatus !== 1
) {
this.isReview = false; this.isReview = false;
} }
this.bpmProcessId = cabinetUnloadBackApprovalInfo?.bpmProcessId; this.bpmProcessId = cabinetUnloadBackApprovalInfo?.bpmProcessId;
...@@ -59,11 +73,15 @@ export default { ...@@ -59,11 +73,15 @@ export default {
this.$refs["reviewForm"].validate((valid) => { this.$refs["reviewForm"].validate((valid) => {
if (valid) { if (valid) {
const { currNode, shipmentObj } = this.$attrs; const { currNode, shipmentObj } = this.$attrs;
let approvalType = 4; // 预装反审
if (currNode.type === "cabinet") approvalType = 9; // 装柜反审
if (currNode.type === "unloading") approvalType = 7; // 卸柜反审核
approvalCreate({ approvalCreate({
shipmentId: shipmentObj.id, shipmentId: shipmentObj.id,
...this.reviewObj, ...this.reviewObj,
approvalStatus: 0, approvalStatus: 0,
approvalType: currNode.type === "preinstall" ? 4 : 7, // 4预装反审 7卸柜反审核 approvalType,
}).then((res) => { }).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.cancel("submit"); this.cancel("submit");
......
...@@ -80,12 +80,12 @@ export default { ...@@ -80,12 +80,12 @@ export default {
seaBaseData: Array, seaBaseData: Array,
width: { width: {
type: String, type: String,
default: '76px' default: "76px",
}, },
height: { height: {
type: String, type: String,
default: '76px' default: "76px",
} },
}, },
data() { data() {
return { return {
...@@ -169,6 +169,16 @@ export default { ...@@ -169,6 +169,16 @@ export default {
this.$set(this.dialogConfig, "fullscreen", true); this.$set(this.dialogConfig, "fullscreen", true);
this.$set(this.dialogConfig, "title", this.$t("出货安排(预装)")); this.$set(this.dialogConfig, "title", this.$t("出货安排(预装)"));
} }
// 装柜
case "cabinet":
// 装柜反审
const cabStatus = this.shipmentObj[node.keyName];
if ([47].includes(cabStatus)) {
this.currentComponent = `reviewWidget`;
this.$set(this.dialogConfig, "width", "700px");
this.$set(this.dialogConfig, "title", this.$t("装柜反审"));
}
break;
// 卸柜 // 卸柜
case "unloading": case "unloading":
// 卸柜反审 // 卸柜反审
......
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