From de398f47dd12b3890c9ee545422da78e82b60fa9 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 08 十二月 2025 09:22:06 +0800
Subject: [PATCH] 修改PDA出入库中出现undefined问题,修改job中因为上游调用频率过快导致job死掉,修改前端报警信息使用不同颜色

---
 新建文件夹/WMS/src/views/stock/stockInfo.vue |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/stock/stockInfo.vue" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/stock/stockInfo.vue"
index a2233b5..9c4755a 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/stock/stockInfo.vue"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WMS/src/views/stock/stockInfo.vue"
@@ -54,8 +54,9 @@
           title: "搴撴埧缂栧彿",
           type: "string",
           required: true,
-            data: [],
+          data: [],
            dataKey: "warehouseNuber",
+            // readonly : true,//涓嶅彲缂栬緫
         },
         {
           field: "palletCode",
@@ -76,7 +77,7 @@
           title: "搴撳瓨鐘舵��",
           type: "select",
           data: [],
-          bind: { key: "stockStatus", data: [] }
+          dataKey: "StockStatusEmun",
         },
       ],
       [
@@ -128,9 +129,10 @@
         },
         {
           field: "supplyQuantity",
-          title: "鐩樼偣鏁�",
+          title: "鐩樼偣宸紓鏁�",
           type: "number",
           span: 8
+
         },
         
       ],
@@ -243,6 +245,7 @@
         field: "palletCode",
         title: "鎵樼洏缂栧彿",
         type: "string",
+        hidden: true,
         width: 90,
         align: "left",
       },
@@ -259,7 +262,7 @@
         type: "select",
         width: 100,
         align: "left",
-        bind: { key: "stockStatus", data: [] },
+        bind: { key: "StockStatusEmun", data: [] },
       },
       // {
       //   field: "warehouseId",
@@ -326,10 +329,21 @@
         },
       {
         field: "supplyQuantity",
-        title: "鐩樼偣鏁�",
+        title: "鐩樼偣宸紓鏁�",
         type: "number",
         width: 100,
         align: "left",
+         cellStyle: (row) => {
+          const value = row.supplyQuantity;
+          if (value > 0) {
+            return { color: "#00ff00" }; // 缁胯壊
+          } else if (value < 0) {
+            return { color: "#ff0000" }; // 绾㈣壊
+          }
+          // else {
+          //   return { color: '#000000' }; // 榛戣壊
+          // }
+        },
       },
       {
         field: "inDate",
@@ -342,12 +356,14 @@
         field: "productionDate",
         title: "鐢熶骇鏃ユ湡",
         type: "date",
+        hidden: true,
         width: 120,
         align: "left",
       },
       {
         field: "shelfLife",
         title: "淇濊川鏈熷ぉ鏁�",
+        hidden: true,
         type: "number",
         width: 120,
         align: "left",
@@ -363,6 +379,7 @@
         field: "alarmInformation",
         title: "鎶ヨ淇℃伅",
         type: "string",
+        hidden: true,
         width: 120,
         align: "left",
       },

--
Gitblit v1.9.3