From 91adcbb1b813198d0a81ca03257bf94d43d4ef60 Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期五, 22 十一月 2024 13:42:16 +0800 Subject: [PATCH] 1 --- 代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 48 insertions(+), 4 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js" index 9bd555c..fb16aa7 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js" @@ -1,11 +1,11 @@ //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜 - +import gridBody from "./extend/HandOutbound.vue" let extension = { components: { //鏌ヨ鐣岄潰鎵╁睍缁勪欢 gridHeader: '', - gridBody: '', + gridBody: gridBody, gridFooter: '', //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢 modelHeader: '', @@ -32,7 +32,52 @@ Extra: true } this.http - .post("api/Task/ManualOutbound", param, "鏁版嵁澶勭悊涓�...") + .post("api/Task/ManualOutbound", param, "鏁版嵁澶勭悊涓�...") + .then((x) => { + if (x.status) { + this.$Message.success('鎴愬姛.'); + this.refresh(); + } else { + return this.$error(x.message); + } + }); + } + } + } + + var btnHandOutboundycl = this.buttons.find(x => x.value == "HandOutboundycl"); + if (btnHandOutboundycl != null) { + btnHandOutboundycl.onClick = () => { + let rows = this.$refs.table.getSelected(); + if (rows.length == 0) { + return this.$error("璇烽�夋嫨鏁版嵁!"); + } else { + var ids = rows.map(x => { + return x.palletCode + }) + this.$refs.gridBody.open(ids); + this.refresh(); + } + } + } + + + var btnHandOutbound2 = this.buttons.find(x => x.value == "HandOutboundt"); + if (btnHandOutbound2 != null) { + btnHandOutbound2.onClick = () => { + let rows = this.$refs.table.getSelected(); + if (rows.length == 0) { + return this.$error("璇烽�夋嫨鏁版嵁!"); + } else { + var ids = rows.map(x => { + return x.palletCode + }) + var param = { + DelKeys: ids, //taskNo + Extra: true + } + this.http + .post("api/Task/ManualOutboundDeleteinventory", param, "鏁版嵁澶勭悊涓�...") .then((x) => { if (x.status) { this.$Message.success('鎴愬姛.'); @@ -43,7 +88,6 @@ }); } } - } }, onInited() { -- Gitblit v1.9.3