From 44b6b79dd5dee0ebbd2d11b08abbc2be275bed58 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期一, 09 二月 2026 16:10:17 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/common.js |   52 +++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 37 insertions(+), 15 deletions(-)

diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index b81003f..9455563 100644
--- a/src/main/webapp/static/js/common.js
+++ b/src/main/webapp/static/js/common.js
@@ -186,19 +186,9 @@
     // ,{field: 'uuid', align: 'center',title: '缂栧彿'}
     , {field: 'maktx', align: 'center', title: '鍟嗗搧鍚嶇О锛堝搧鍚嶏級', width: 200}
     , {field: 'specs', align: 'center', title: '瑙勬牸'}
-    , {
-        field: 'safeQty', align: 'center', title: '褰掗浂闃�鍊�', templet: function (d) {
-            var raw = d.safeQty;
-            if (raw === null || raw === undefined) return '';
-            if (typeof raw === 'string' && raw.trim() === '') return '';
-            var num = Number(raw);
-            if (!isFinite(num)) return '';
-            return num.toFixed(2);
-        }
-    }
-    , {field: 'model', align: 'center', title: '浠g爜', hide: true}
+    , {field: 'model', align: 'center', title: '鍨嬪彿', hide: false}
     , {field: 'color', align: 'center', title: '棰滆壊', hide: true}
-    , {field: 'brand', align: 'center', title: '鍝佺墝', hide: true}
+    , {field: 'brand', align: 'center', title: '鍝佺墝', hide: false}
     , {field: 'upQty', align: 'center', title: '缁勬墭涓婇檺', hide: true}
     , {field: 'unit', align: 'center', title: '鍗曚綅', hide: false}
     , {field: 'price', align: 'center', title: '鍗曚环', hide: true}
@@ -214,6 +204,16 @@
     , {
         field: 'volume', align: 'center', title: '姣忓叕鏂ら暱搴�', templet: function (d) {
             var raw = d.volume;
+            if (raw === null || raw === undefined) return '';
+            if (typeof raw === 'string' && raw.trim() === '') return '';
+            var num = Number(raw);
+            if (!isFinite(num)) return '';
+            return num.toFixed(2);
+        }
+    }
+    , {
+        field: 'safeQty', align: 'center', title: '褰掗浂闃堝��', templet: function (d) {
+            var raw = d.safeQty;
             if (raw === null || raw === undefined) return '';
             if (typeof raw === 'string' && raw.trim() === '') return '';
             var num = Number(raw);
@@ -276,10 +276,33 @@
             return num.toFixed(2);
         }
     }
+    , {
+        field: 'realQty', align: 'center', title: '鍗曟嵁鏁伴噺', hide: true, templet: function (d) {
+            var raw = d.realQty;
+            // var ioType = d.ioType;
+            // console.log(ioType)
+            if (raw === null || raw === undefined) return '';
+            if (typeof raw === 'string' && raw.trim() === '') return '';
+            var num = Number(raw);
+            if (!isFinite(num)) return '';
+            return num.toFixed(2);
+        }
+    }
+    , {
+        field: 'stockQty', align: 'center', title: '搴撳瓨鏁伴噺', hide: false, templet: function (d) {
+            var raw = d.stockQty;
+            if (raw === null || raw === undefined) return '';
+            if (typeof raw === 'string' && raw.trim() === '') return '';
+            var num = Number(raw);
+            if (!isFinite(num)) return '';
+            return num.toFixed(2);
+        }
+    }
+    , {field: 'weight', align: 'center', title: '閲嶉噺锛堝叕鏂わ級', hide: false, width: 120}
     , {field: 'zpallet', align: 'center', title: 'SN', hide: false}
     , {field: 'specs', align: 'center', title: '瑙勬牸', hide: false}
     , {
-        field: 'safeQty', align: 'center', title: '褰掗浂闃�鍊�', hide: true, templet: function (d) {
+        field: 'safeQty', align: 'center', title: '褰掗浂闃堝��', hide: true, templet: function (d) {
             var raw = d.safeQty;
             if (raw === null || raw === undefined) return '';
             if (typeof raw === 'string' && raw.trim() === '') return '';
@@ -298,9 +321,9 @@
             return num.toFixed(2);
         }
     }
-    , {field: 'model', align: 'center', title: '浠g爜', hide: true}
     , {field: 'color', align: 'center', title: '棰滆壊', hide: true}
     , {field: 'brand', align: 'center', title: '鍝佺墝', hide: false}
+    , {field: 'model', align: 'center', title: '鍨嬪彿', hide: false}
     , {field: 'unit', align: 'center', title: '鍗曚綅', hide: false}
     , {field: 'price', align: 'center', title: '鍗曚环', hide: true}
     , {field: 'sku', align: 'center', title: 'sku', hide: true}
@@ -310,7 +333,6 @@
     , {field: 'manu', align: 'center', title: '鍘傚', hide: true}
     , {field: 'manuDate', align: 'center', title: '鐢熶骇鏃ユ湡', hide: true}
     , {field: 'itemNum', align: 'center', title: '鍝侀」鏁�', hide: true}
-    , {field: 'weight', align: 'center', title: '鍗曠鍑�閲�', hide: true}
     , {field: 'length', align: 'center', title: '鍗曠姣涢噸', hide: true}
     , {field: 'threeCode', align: 'center', title: '绠卞瓙灏哄', hide: true}
     , {field: 'supp', align: 'center', title: '渚涘簲鍟�', hide: true}

--
Gitblit v1.9.1