From 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期三, 09 七月 2025 22:55:27 +0800 Subject: [PATCH] 增加质检出入库逻辑 --- 项目代码/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue | 55 ++++++++++++++++++++++++++++--------------------------- 1 files changed, 28 insertions(+), 27 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue" index 07fdbf3..723cef3 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue" @@ -131,33 +131,32 @@ // type: "string", // width: 150, // }, + // { + // prop: "palletCode", + // title: "鎵樼洏缂栧彿", + // type: "string", + // width: 280, + // }, { - prop: "palletCode", - title: "鎵樼洏缂栧彿", - type: "string", - width: 280, - }, - { - prop: "orderNo", + prop: "batchNo", title: "鎵规鍙�", type: "string", width: 150, }, + // { + // prop: "stockQuantity", + // title: "搴撳瓨", + // type: "string", + // width: 150, + // }, + // { + // prop: "outboundQuantity", + // title: "鍑哄簱琚嬫暟", + // type: "string", + // width: 180, + // }, { - prop: "batchNo", - title: "鏌滃彿", - type: "string", - width: 150, - }, - { - prop: "locationCode", - title: "璐т綅缂栧彿", - type: "string", - - width: 180, - }, - { - prop: "useableQuantity", + prop: "stockQuantity", title: "鍙敤鏁伴噺", type: "string", }, @@ -210,12 +209,12 @@ if (this.selection.length <= 0) { return this.$message.error("璇烽�夋嫨鎸囧畾搴撳瓨"); } - if (this.selectionSum > this.row.orderQuantity) { - return this.$message.error("宸查�夋暟閲忎笉鑳借秴杩囬渶姹傛暟閲�"); - } + // if (this.selectionSum > this.row.orderQuantity) { + // return this.$message.error("宸查�夋暟閲忎笉鑳借秴杩囬渶姹傛暟閲�"); + // } this.http .post( - "api/Task/GenerateOutboundTask?id=" + this.row.id, + "api/Task/NewGenerateOutboundTask?id=" + this.row.id, this.selection, "鏁版嵁澶勭悊涓�" ) @@ -231,7 +230,9 @@ getData() { this.http .post( - "api/StockInfo/GetStockSelectViews?materielCode=" + + // "api/StockInfo/GetStockSelectViews?materielCode=" + + // this.row.materielCode, + "api/InventoryBatch/GetInventoryBatch?materielCode=" + this.row.materielCode, null, "鏌ヨ涓�" @@ -262,7 +263,7 @@ this.selectionSum = val.reduce( (accumulator, currentValue) => - accumulator + currentValue["useableQuantity"], + accumulator + currentValue["stockQuantity"], 0 ) + this.originalQuantity; if (this.selectionSum == this.row.orderQuantity) { -- Gitblit v1.9.3