From c4c82d17fed4f68562650e000c23e3eef8db8f43 Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期二, 13 一月 2026 15:22:03 +0800
Subject: [PATCH] 字段显示修改
---
src/main/webapp/static/js/common.js | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index b81003f..c0f9841 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);
@@ -298,9 +298,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}
--
Gitblit v1.9.1