From 0be9278cafe353fd47e069429709933d900e227b Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 21 四月 2026 00:02:13 +0800
Subject: [PATCH] feat(stock): 新增组盘、拆盘按钮调用MES接口
---
Code/WMS/WIDESEA_WMSClient/src/extension/stock/stock.jsx | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stock.jsx b/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stock.jsx
index 4f4e439..52a7c05 100644
--- a/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stock.jsx
+++ b/Code/WMS/WIDESEA_WMSClient/src/extension/stock/stock.jsx
@@ -1,4 +1,4 @@
-锘�// 椤甸潰鎵╁睍閰嶇疆锛氶鐣欑粰搴撳瓨椤甸潰浜屾寮�鍙戙��
+// 椤甸潰鎵╁睍閰嶇疆锛氬簱瀛橀〉闈㈢粍鐩�/鎷嗙洏鎸夐挳鎵╁睍
let extension = {
components: {
gridHeader: "",
@@ -8,14 +8,39 @@
modelBody: "",
modelFooter: "",
},
- tableAction: "",
+ tableAction: "stock",
buttons: { view: [], box: [], detail: [] },
methods: {
onInit() {
return true;
},
onInited() {
+ // 娉ㄥ叆缁勭洏銆佹媶鐩樻寜閽埌鎿嶄綔鍒�
+ this.editTableButtons = [
+ { name: "缁勭洏", onClick: this.onGroupPallet },
+ { name: "鎷嗙洏", onClick: this.onSplitPallet }
+ ];
return true;
+ },
+ async onGroupPallet({ row }) {
+ // 璋冪敤缁勭洏鎺ュ彛
+ let result = await this.$api.post("/Stock/GroupPalletConfirm", { palletCode: row.palletCode });
+ if (result.status) {
+ this.$Message.success("缁勭洏鎴愬姛锛孧ES鏁版嵁宸插紓姝ヤ笂浼�");
+ this.$refs.grid.search();
+ } else {
+ this.$Message.error(result.message || "缁勭洏澶辫触");
+ }
+ },
+ async onSplitPallet({ row }) {
+ // 璋冪敤鎷嗙洏鎺ュ彛
+ let result = await this.$api.post("/Stock/SplitPalletConfirm", { palletCode: row.palletCode });
+ if (result.status) {
+ this.$Message.success("鎷嗙洏鎴愬姛锛孧ES鏁版嵁宸插紓姝ヤ笂浼�");
+ this.$refs.grid.search();
+ } else {
+ this.$Message.error(result.message || "鎷嗙洏澶辫触");
+ }
},
searchBefore(param) {
return true;
@@ -38,4 +63,4 @@
},
};
-export default extension;
+export default extension;
\ No newline at end of file
--
Gitblit v1.9.3