From f5b8c1ae89286dada20ea433ffac84f4c9e72a29 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期五, 06 六月 2025 14:31:25 +0800
Subject: [PATCH] 1

---
 代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/stockInfo.js |  135 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 122 insertions(+), 13 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 5b00228..2632621 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,12 +1,14 @@
 
 //姝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: '',
-    gridBody: '',
-    gridFooter: '',
+    gridHeader: modelBody,
+    gridBody: gridBody,
+    gridFooter: griForter,
     //鏂板缓銆佺紪杈戝脊鍑烘鎵╁睍缁勪欢
     modelHeader: '',
     modelBody: '',
@@ -32,18 +34,67 @@
               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);
-                }
-              });
+            .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 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) {
@@ -72,6 +123,64 @@
           }
         }
       }
+
+
+      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