Commit 33b2c721 by wusiyi

fix: bug

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