From e61bb0e26530b2aa9055737fade9e77ccb1feebf Mon Sep 17 00:00:00 2001
From: 肖洋 <cathay_xy@163.com>
Date: 星期二, 07 一月 2025 10:06:16 +0800
Subject: [PATCH] 更新多个文件,优化逻辑与配置

---
 Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx |   55 ++++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 44 insertions(+), 11 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx b/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
index b38cc68..af1d470 100644
--- a/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
+++ b/Code Management/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_BillGroupStock.jsx
@@ -26,9 +26,9 @@
     //涓嬮潰杩欎簺鏂规硶鍙互淇濈暀涔熷彲浠ュ垹闄�
     onInit() {
       //妗嗘灦鍒濆鍖栭厤缃墠锛�
-      let OutBoundBtn=this.buttons.find(x=>x.value=='OutBound');
-      if(OutBoundBtn){
-        OutBoundBtn.onClick=function(){
+      let OutBoundBtn = this.buttons.find((x) => x.value == 'OutBound')
+      if (OutBoundBtn) {
+        OutBoundBtn.onClick = function () {
           this.$Message.success('鐐瑰嚮浜嗘寜閽�')
           let row = this.$refs.table.getSelected() //鑾峰彇閫変腑鐨勮
           if (row <= 0) {
@@ -38,14 +38,20 @@
           }
           let locationCode = row[0].locationCode
           let palletCode = row[0].palletCode
-          this.http.get(`/api/Task/CreateAndSendOutboundTask?locationCode=${locationCode}&palletCode=${palletCode}`, {}, "姝e湪鍒涘缓浠诲姟").then((res) => {
-            //绀轰緥锛氳皟鐢ㄥ悗鍙版帴鍙�
-            if (res.status) {
-              this.$Message.success('鍒涘缓浠诲姟鎴愬姛')
-            } else {
-              this.$Message.error(res.message) //閿欒鎻愮ず
-            }
-          })
+          this.http
+            .get(
+              `/api/Task/CreateAndSendOutboundTask?locationCode=${locationCode}&palletCode=${palletCode}`,
+              {},
+              '姝e湪鍒涘缓浠诲姟'
+            )
+            .then((res) => {
+              //绀轰緥锛氳皟鐢ㄥ悗鍙版帴鍙�
+              if (res.status) {
+                this.$Message.success('鍒涘缓浠诲姟鎴愬姛')
+              } else {
+                this.$Message.error(res.message) //閿欒鎻愮ず
+              }
+            })
         }
       }
       //绀轰緥锛氬湪鎸夐挳鐨勬渶鍓嶉潰娣诲姞涓�涓寜閽�
@@ -100,6 +106,33 @@
       //     );
       //   },
       // });
+
+      this.columns.forEach((column) => {
+        //淇敼棰滆壊
+        if (column.field == 'roadwayNo') {
+          column.formatter = (row) => {
+            return '<span style="color: #2d8cf0;">' + row.locationInfo.roadwayNo + '</span>'
+          }
+        }
+        //鏍煎紡鍖栨棩鏈�
+        // 妫�鏌ュ綋鍓嶅垪鐨勫瓧娈垫槸鍚︿负 'locationStatus'
+        if (column.field == 'locationStatus') {
+          // 浣跨敤瀵硅薄瀛楅潰閲忔潵鏄犲皠 'locationStatus' 鐨勫�煎拰瀵瑰簲鐨勬枃鏈�
+          const statusMap = {
+            '-1': '鍏ㄩ儴',
+            '0': '绌洪棽',
+            '1': '閿佸畾',
+            '2': '鏈夎揣',
+            '3': '鏈夎揣绂佺敤',
+            '4': '鏃犺揣绂佺敤'
+          };
+          // 瀹氫箟涓�涓牸寮忓寲鍑芥暟锛屾牴鎹� 'locationStatus' 鐨勫�艰繑鍥炵浉搴旂殑鏂囨湰
+          column.formatter = (row) => {
+            // 浣跨敤 statusMap 瀵硅薄鏉ヨ幏鍙栧搴旂殑鏂囨湰锛屽鏋滄病鏈夊尮閰嶅垯杩斿洖 '鏈煡鐘舵��'
+            return statusMap[row.locationInfo.locationStatus] || '鏈煡鐘舵��';
+          }
+        }
+      })
     },
     onInited() {
       //妗嗘灦鍒濆鍖栭厤缃悗

--
Gitblit v1.9.3