From 1c631b345aae30bb6aa7e9dc8d856a0f40d5f1e3 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期五, 20 三月 2026 10:49:08 +0800
Subject: [PATCH] 修复货位平面图锁定状态的显示

---
 项目代码/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue |   35 +++++++++++++++++++++++++++++++++--
 1 files changed, 33 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue"
index 599f8ff..0619aa0 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/extension/outbound/extend/outSGOrderDetail.vue"
@@ -86,9 +86,22 @@
               </div>
 
               <div v-else-if="item.type == 'tag'">
-                <el-tag size="small">
+                <el-tag 
+                  size="small" 
+                  :type="getTagType(scoped.row, item)">
                   {{ getDictionary(scoped.row, item) }}
                 </el-tag>
+              </div>
+              
+              <div v-else>
+                <!-- 鐗╂枡缂栧彿鍒楃壒娈婂鐞嗭紝缂烘枡鏃舵樉绀虹孩鑹� -->
+                <span v-if="item.prop == 'materialNo'" :style="{color: isMaterialShortage(scoped.row) ? 'red' : ''}">
+                  {{ scoped.row[item.prop] }}
+                </span>
+                <!-- 鍏朵粬鏅�氬垪 -->
+                <span v-else>
+                  {{ scoped.row[item.prop] }}
+                </span>
               </div>
             </template>
           </el-table-column>
@@ -325,7 +338,7 @@
         this.$refs.child.open(row);
       } else {
         //鐐瑰嚮鎵撳紑鍑哄簱璇︽儏
-        this.$refs.selectedStock.open(row,this.row.outSGOrderNo);
+        this.$refs.selectedStock.open(row,this.row.orderId);
       }
     },
     outbound() {
@@ -412,6 +425,24 @@
         }
       }
     },
+    getTagType(row, column) {
+      // 鏍规嵁璁㈠崟鐘舵�佽繑鍥炲搴旂殑鏍囩绫诲瀷
+      const status = row[column.prop];
+      if (status === 3) { // 缂烘枡
+        return 'danger'; // 绾㈣壊
+      } else if (status === 0) { // 鏈紑濮�
+        return 'success'; // 缁胯壊
+      } else if (status === 1) { // 鍑哄簱涓�
+        return 'primary'; // 钃濊壊
+      }
+      return ''; // 榛樿鏃犻鑹�
+    },
+    isMaterialShortage(row) {
+      // 鍒ゆ柇褰撳墠琛岀墿鏂欐槸鍚︾己鏂欙紝鍙牴鎹綋鍓嶈鐨勬槑缁嗙姸鎬佸垽鏂�
+      // 鏄庣粏鐘舵�佷负3琛ㄧず缂烘枡锛屾敮鎸佹暟瀛楀拰瀛楃涓茬被鍨�
+      const status = parseInt(row.outSGOrderDetailStatus);
+      return status === 3;
+    },
   },
 };
 </script>

--
Gitblit v1.9.3