Commit 33b2c721 by wusiyi

fix: bug

parent 2ee6b93d
......@@ -263,13 +263,15 @@ export default {
) {
const { code, data } = await this.$api.post(
pathMap["scanProduce"][this.orderType],
params
{ id: params.id, status: params.data.status }
);
if (code == 301) {
this.$confirm(
`<p>库存不足,无法进入生产!请联系仓库管理人员核对库存。</p>
<p>库存数量:${data.availableInventory || 0},生产中数量:${data.inventory ||
0},可调配库存:${data.inventory || 0}</p>`,
`库存不足,无法进入生产!请联系仓库管理人员核对库存。</br>
库存数量:${data.availableInventory || 0}
生产中数量:${data.inventory || 0}
<span style="color: red;">可调配库存:
${data.inventory || 0}</span>`,
"提示",
{
confirmButtonText: "确定",
......@@ -727,32 +729,34 @@ export default {
(this.detail.status == "PENDING_PICK" ||
this.detail.status == "PENDING_REPLENISH")
) {
// const {
// data: checkInventoryData,
// code: checkInventoryCode
// } = await this.$api.post(pathMap["checkInventory"][this.orderType], {
// id: this.detail.id,
// status: this.detail.status
// });
// if (checkInventoryCode == 301) {
// this.$confirm(
// `<p>库存不足,无法进入生产!请联系仓库管理人员核对库存。</p>
// <p>库存数量:${checkInventoryData.availableInventory ||
// 0},生产中数量:${checkInventoryData.inventory ||
// 0},可调配库存:${checkInventoryData.inventory || 0}</p>`,
// "提示",
// {
// confirmButtonText: "确定",
// type: "error",
// dangerouslyUseHTMLString: true,
// customClass: "custom-inventory-msgbox"
// }
// );
// this.detail = "";
// this.productionNo = "";
// this.$refs.searchRef?.focus();
// return;
// }
const {
data: checkInventoryData,
code: checkInventoryCode
} = await this.$api.post(pathMap["checkInventory"][this.orderType], {
id: this.detail.id,
status: this.detail.status
});
if (checkInventoryCode == 301) {
this.$confirm(
`库存不足,无法进入生产!请联系仓库管理人员核对库存。</br>
库存数量:${checkInventoryData.availableInventory || 0},
生产中数量:${checkInventoryData.inventory || 0},
<span style="color: red;">可调配库存:
${checkInventoryData.inventory || 0}</span>`,
"提示",
{
confirmButtonText: "确定",
type: "error",
dangerouslyUseHTMLString: true,
// 🔥 关键:添加自定义类名
customClass: "custom-inventory-msgbox"
}
);
this.detail = "";
this.productionNo = "";
this.$refs.searchRef?.focus();
return;
}
}
let designImagesCanvasJsonList = this.detail.drParam;
......
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