|
|
@ -188,11 +188,20 @@
|
|
|
|
<el-row v-if="documentShow">
|
|
|
|
<el-row v-if="documentShow">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-col :span="11">
|
|
|
|
<el-form-item prop="acceptance" label="预验收单据:">
|
|
|
|
<el-form-item prop="acceptance" label="预验收单据:">
|
|
|
|
<el-input
|
|
|
|
<el-select
|
|
|
|
style="width: 90%"
|
|
|
|
style="width: 90%"
|
|
|
|
:disabled="true"
|
|
|
|
|
|
|
|
v-model="orderFormData.checkPreInOrders"
|
|
|
|
v-model="orderFormData.checkPreInOrders"
|
|
|
|
></el-input>
|
|
|
|
multiple
|
|
|
|
|
|
|
|
placeholder="请选入单据"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="(item, index) in orderFormData.checkPreInOrders"
|
|
|
|
|
|
|
|
:key="item.index"
|
|
|
|
|
|
|
|
:label="item"
|
|
|
|
|
|
|
|
:value="item"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -292,6 +301,7 @@
|
|
|
|
<dialog-create-order-select
|
|
|
|
<dialog-create-order-select
|
|
|
|
@giveselectbox="giveselectbox"
|
|
|
|
@giveselectbox="giveselectbox"
|
|
|
|
:closeDialogtwo="closeDialogtwo"
|
|
|
|
:closeDialogtwo="closeDialogtwo"
|
|
|
|
|
|
|
|
:checkPreInOrders="orderFormData.checkPreInOrders"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</dialog-create-order-select>
|
|
|
|
</dialog-create-order-select>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
@ -401,7 +411,7 @@ export default {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
acceptance: [
|
|
|
|
acceptance: [
|
|
|
|
{ required: true, message: "请选入预验收单据", trigger: "blur" },
|
|
|
|
{ required: true, message: "请选入预验收单据", trigger: "blur" },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
isScan: true,
|
|
|
|
isScan: true,
|
|
|
|
scanText: "扫码录入:",
|
|
|
|
scanText: "扫码录入:",
|
|
|
@ -430,7 +440,6 @@ export default {
|
|
|
|
viewBizVisible: false,
|
|
|
|
viewBizVisible: false,
|
|
|
|
viewCodeVisible: false,
|
|
|
|
viewCodeVisible: false,
|
|
|
|
viewCodeDetailVisible: false,
|
|
|
|
viewCodeDetailVisible: false,
|
|
|
|
|
|
|
|
|
|
|
|
documentShow: false, //控制预选单显示隐藏
|
|
|
|
documentShow: false, //控制预选单显示隐藏
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -457,18 +466,18 @@ export default {
|
|
|
|
this.getBusTypeByInv();
|
|
|
|
this.getBusTypeByInv();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//接收预选单传值
|
|
|
|
//接收预验单传值
|
|
|
|
giveselectbox(val) {
|
|
|
|
giveselectbox(val) {
|
|
|
|
this.orderFormData.checkPreInOrders = val;
|
|
|
|
this.orderFormData.checkPreInOrders = JSON.parse(JSON.stringify(val));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//仓库改变
|
|
|
|
//仓库改变
|
|
|
|
changeInv() {
|
|
|
|
changeInv() {
|
|
|
|
this.orderFormData.action = null;
|
|
|
|
this.orderFormData.action = null;
|
|
|
|
if (this.documentShow = true) {
|
|
|
|
this.orderFormData.checkPreInOrders = null;
|
|
|
|
this.documentShow = false
|
|
|
|
if ((this.documentShow = true)) {
|
|
|
|
|
|
|
|
this.documentShow = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getBusTypeByInv();
|
|
|
|
this.getBusTypeByInv();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -482,8 +491,7 @@ export default {
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.busTypeOptions = response.data || [];
|
|
|
|
this.busTypeOptions = response.data || [];
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//关闭预选单弹框
|
|
|
|
//关闭预选单弹框
|
|
|
|
closeDialogtwo() {
|
|
|
|
closeDialogtwo() {
|
|
|
@ -515,8 +523,7 @@ export default {
|
|
|
|
this.bizShow = true;
|
|
|
|
this.bizShow = true;
|
|
|
|
} else this.bizShow = false;
|
|
|
|
} else this.bizShow = false;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//获取往来单位候选列表
|
|
|
|
//获取往来单位候选列表
|
|
|
@ -550,6 +557,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
//单据类型改变
|
|
|
|
//单据类型改变
|
|
|
|
actionChange(item) {
|
|
|
|
actionChange(item) {
|
|
|
|
|
|
|
|
this.orderFormData.checkPreInOption = null;
|
|
|
|
|
|
|
|
this.orderFormData.checkPreInOrders = null;
|
|
|
|
this.curAction = this.getActionItem(item);
|
|
|
|
this.curAction = this.getActionItem(item);
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
(this.curAction.checkEnable && this.curAction.checkWebNew) ||
|
|
|
|
(this.curAction.checkEnable && this.curAction.checkWebNew) ||
|
|
|
@ -571,13 +580,13 @@ export default {
|
|
|
|
this.orderFormData.fromInvCode = null;
|
|
|
|
this.orderFormData.fromInvCode = null;
|
|
|
|
this.findFromInvList();
|
|
|
|
this.findFromInvList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.curAction.scanPreIn && this.curAction.backPreinType == 1) {
|
|
|
|
if (
|
|
|
|
this.documentShow = true
|
|
|
|
(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1)
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
this.documentShow = true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.documentShow = false
|
|
|
|
this.documentShow = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.giveselectbox();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//获取往来仓库列表
|
|
|
|
//获取往来仓库列表
|
|
|
@ -592,8 +601,7 @@ export default {
|
|
|
|
this.orderFormData.fromInvCode = this.fromInvOptions[0].code;
|
|
|
|
this.orderFormData.fromInvCode = this.fromInvOptions[0].code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//获取当前单据类型
|
|
|
|
//获取当前单据类型
|
|
|
@ -666,8 +674,7 @@ export default {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
closeOnClickModal: true,
|
|
|
|
closeOnClickModal: true,
|
|
|
|
callback: (action) => {
|
|
|
|
callback: (action) => {},
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.corpOrderIdDisabled = true;
|
|
|
|
this.corpOrderIdDisabled = true;
|
|
|
@ -697,8 +704,7 @@ export default {
|
|
|
|
tQuery.ignoreExpire = true;
|
|
|
|
tQuery.ignoreExpire = true;
|
|
|
|
this.addCodeSubmit(tQuery);
|
|
|
|
this.addCodeSubmit(tQuery);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
});
|
|
|
|
|
|
|
|
} else if (response.code == 505) {
|
|
|
|
} else if (response.code == 505) {
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
@ -709,29 +715,24 @@ export default {
|
|
|
|
tQuery.ignoreRecentExpire = true;
|
|
|
|
tQuery.ignoreRecentExpire = true;
|
|
|
|
this.addCodeSubmit(tQuery);
|
|
|
|
this.addCodeSubmit(tQuery);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
});
|
|
|
|
|
|
|
|
} else if (response.code == 605) {
|
|
|
|
} else if (response.code == 605) {
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
}).then(() => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {})
|
|
|
|
}).catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else if (response.code == 604) {
|
|
|
|
} else if (response.code == 604) {
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
this.$confirm(response.message, "提示", {
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
}).then(() => {
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(() => {})
|
|
|
|
}).catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else if (response.code == 507) {
|
|
|
|
} else if (response.code == 507) {
|
|
|
|
this.editOriginCodeVisible = true;
|
|
|
|
this.editOriginCodeVisible = true;
|
|
|
@ -925,8 +926,7 @@ export default {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {});
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeCodeDialog() {
|
|
|
|
closeCodeDialog() {
|
|
|
|
this.editOriginCodeVisible = false;
|
|
|
|
this.editOriginCodeVisible = false;
|
|
|
|