From ce1292c9cf37195b6abd2699dfc5d6cb3e143c9b Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期日, 12 四月 2026 23:38:19 +0800
Subject: [PATCH] feat(MES): 添加MES接口相关实体和DTO JS扩展文件至JSX格式并更新配置

---
 Code/WMS/WIDESEA_WMSClient/src/api/mes.js |   73 ++++++++++++++++++++++++++++++++++++
 1 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSClient/src/api/mes.js b/Code/WMS/WIDESEA_WMSClient/src/api/mes.js
new file mode 100644
index 0000000..8a97663
--- /dev/null
+++ b/Code/WMS/WIDESEA_WMSClient/src/api/mes.js
@@ -0,0 +1,73 @@
+/**
+ * MES鎺ュ彛API妯″潡
+ * 鎻愪緵涓嶮ES绯荤粺鐨勪氦浜掓帴鍙o紝鍖呮嫭鎵樼洏杩涘嚭绔欍�佺數鑺粦瀹氳В缁戙�丯G涓婃姤绛夊姛鑳�
+ */
+import http from '@/api/http.js';
+
+const baseURL = '/api';
+
+// 搴撳瓨淇℃伅鐩稿叧MES鎺ュ彛
+export const stockInfoMesApi = {
+  /**
+   * 鎵樼洏杩涚珯
+   * @param {Object} data - 璇锋眰鏁版嵁 { palletCode, stockId }
+   * @returns {Promise}
+   */
+  inboundInContainer(data) {
+    return http.post(`${baseURL}/StockInfo/inboundInContainer`, data, false, {
+      headers: { 'Content-Type': 'application/json' }
+    });
+  },
+
+  /**
+   * 鎵樼洏鍑虹珯
+   * @param {Object} data - 璇锋眰鏁版嵁 { palletCode, stockId, paramList }
+   * @returns {Promise}
+   */
+  outboundInContainer(data) {
+    return http.post(`${baseURL}/StockInfo/outboundInContainer`, data, false, {
+      headers: { 'Content-Type': 'application/json' }
+    });
+  }
+};
+
+// 搴撳瓨鏄庣粏鐩稿叧MES鎺ュ彛
+export const stockDetailMesApi = {
+  /**
+   * 鎵樼洏鐢佃姱缁戝畾
+   * @param {Object} data - 璇锋眰鏁版嵁 { palletCode, sfcList, location, operationType }
+   * @returns {Promise}
+   */
+  bindContainer(data) {
+    return http.post(`${baseURL}/StockInfoDetail/bindContainer`, data, false, {
+      headers: { 'Content-Type': 'application/json' }
+    });
+  },
+
+  /**
+   * 鎵樼洏鐢佃姱瑙g粦
+   * @param {Object} data - 璇锋眰鏁版嵁 { palletCode, sfcList }
+   * @returns {Promise}
+   */
+  unbindContainer(data) {
+    return http.post(`${baseURL}/StockInfoDetail/unbindContainer`, data, false, {
+      headers: { 'Content-Type': 'application/json' }
+    });
+  },
+
+  /**
+   * 鎵樼洏NG鐢佃姱涓婃姤
+   * @param {Object} data - 璇锋眰鏁版嵁 { palletCode, ngSfcList }
+   * @returns {Promise}
+   */
+  containerNgReport(data) {
+    return http.post(`${baseURL}/StockInfoDetail/containerNgReport`, data, false, {
+      headers: { 'Content-Type': 'application/json' }
+    });
+  }
+};
+
+export default {
+  stockInfo: stockInfoMesApi,
+  stockDetail: stockDetailMesApi
+};

--
Gitblit v1.9.3