From 279077bf41bc726b474ca5d76cd2b8393d41d867 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 05 十一月 2025 12:16:01 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js |  160 ++---------------------------------------------------
 1 files changed, 7 insertions(+), 153 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js"
index 2632621..d674533 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js"
@@ -1,14 +1,12 @@
 
 //姝s鏂囦欢鏄敤鏉ヨ嚜瀹氫箟鎵╁睍涓氬姟浠g爜锛屽彲浠ユ墿灞曚竴浜涜嚜瀹氫箟椤甸潰鎴栬�呴噸鏂伴厤缃敓鎴愮殑浠g爜
 import gridBody from "./extend/HandOutbound.vue"
-import modelBody from "./extend/HandMaterials.vue"
-import griForter from "./extend/HandGenerateti.vue"
 let extension = {
   components: {
     //鏌ヨ鐣岄潰鎵╁睍缁勪欢
-    gridHeader: modelBody,
+    gridHeader: '',
     gridBody: gridBody,
-    gridFooter: griForter,
+    gridFooter: '',
     //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
     modelHeader: '',
     modelBody: '',
@@ -26,161 +24,17 @@
           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/ManualOutbound", param, "鏁版嵁澶勭悊涓�...")
-            .then((x) => {
-              if (x.status) {
-                this.$Message.success('鎴愬姛.');
-                this.refresh();
-              } else {
-                return this.$error(x.message);
+            var data = rows.map(x => {
+              return {
+                palletCode: x.palletCode,
+                otherField: x.otherField // 鏇挎崲涓烘偍闇�瑕佺殑鍙︿竴涓瓧娈�
               }
-            });
-          }
-        }
-      }
-
-      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.$refs.gridBody.open(data);
             this.refresh();
           }
         }
       }
-
-      var btnMaterialstaticupdate = this.buttons.find(x => x.value == "Materialstaticupdate");
-      if (btnMaterialstaticupdate != null) {
-        btnMaterialstaticupdate.onClick = () => {
-          let rows = this.$refs.table.getSelected();
-          if (rows.length == 0) {
-            return this.$error("璇烽�夋嫨鏁版嵁!");
-          } else {
-            var ids = rows.map(x => {
-              return  x.id
-            })
-            this.$refs.gridHeader.open(ids);
-            this.refresh();
-          }
-        }
-      }
-
-      var btnHanGeneratetime = this.buttons.find(x => x.value == "HanGeneratetime");
-      if (btnHanGeneratetime != null) {
-        btnHanGeneratetime.onClick = () => {
-          let rows = this.$refs.table.getSelected();
-          if (rows.length == 0) {
-            return this.$error("璇烽�夋嫨鏁版嵁!");
-          } else {
-            var ids = rows.map(x => {
-              return  x.id
-            })
-            this.$refs.gridFooter.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('鎴愬姛.');
-                  this.refresh();
-                } else {
-                  return this.$error(x.message);
-                }
-              });
-          }
-        }
-      }
-
-
-      this.columns.forEach(x => {
-        if (x.field == "wlstatus") {
-          //鏍规嵁涓嶅悓鐨勫�硷紝瀹氫箟涓嶅悓鐨勬牱寮�(濡傦細鏂囧瓧棰滆壊)
-          x.render = (h, { row, column, index }) => {
-            if(row.wlstatus=='1'){
-              return (
-                <span style="display:block;background-color:#67c23a;width:65px;text-align:center;color:white;border:1px solid #67c23a;border-radius:5px;">
-                  鍚堟牸
-                </span>
-              );
-            }else if(row.wlstatus=='0'){
-              return (
-                <tr style="display:block;background-color:#f4b400;width:65px;text-align:center;color:white;border:1px solid #f4b400;border-radius:5px;">
-                  寰呮
-                </tr>
-              );
-            }else if(row.wlstatus=='2'){
-              return (
-                <tr style="display:block;background-color:#f56c6c;width:65px;text-align:center;color:white;border:1px solid #f56c6c;border-radius:5px;">
-                  涓嶅悎鏍�
-                </tr>
-              );
-            }else if(row.wlstatus=='3'){
-              return (
-                <tr style="display:block;background-color:#909399;width:65px;text-align:center;color:white;border:1px solid #909399;border-radius:5px;">
-                  绌烘墭
-                </tr>
-              );
-            }else if(row.wlstatus=='4'){
-              return (
-                <tr style="display:block;background-color:#f87eb9;width:65px;text-align:center;color:white;border:1px solid #f87eb9;border-radius:5px;">
-                  閫�璐�
-                </tr>
-              );
-            }else if(row.wlstatus=='5'){
-              return (
-                <tr style="display:block;background-color:#409eff;width:65px;text-align:center;color:white;border:1px solid #409eff;border-radius:5px;">
-                  杩斿伐
-                </tr>
-              );
-            }else if(row.wlstatus=='6'){
-              return (
-                <tr style="display:block;background-color:#9b59b6;width:65px;text-align:center;color:white;border:1px solid #9b59b6;border-radius:5px;">
-                  鐗归噰
-                </tr>
-              );
-            }else{
-              return (
-                <span style="display:block;background-color:#909399;width:55px;text-align:center;color:white;border:1px solid #e9e9eb;border-radius:5px;">
-                  鏈煡
-                </span>
-              );
-            }
-          }
-        }
-      });
     },
     onInited() {
       //妗嗘灦鍒濆鍖栭厤缃悗

--
Gitblit v1.9.3