From 939818b48199e2c77d5639d3f43741aa29c160bb Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 10 一月 2025 16:01:25 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn
---
代码管理/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js"
index a009b54..b54fb2e 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSClient/src/extension/stock/stockView.js"
@@ -55,8 +55,8 @@
}
}
if (column.field == 'materielInfo') {
- const today = new Date()
column.formatter = (row) => {
+ if(row.details.length<=0) return;
const today = new Date();
const closestDate = row.details
.map(x => {
@@ -66,13 +66,14 @@
})
.reduce((closest, current) => (current.diffInDays < closest.diffInDays? current : closest))
.date;
-
+
const daysSinceClosest = Math.ceil(Math.abs((today - closestDate) / (1000 * 60 * 60 * 24)));
return '<span style="color: #F56C6C">'+ daysSinceClosest+"澶�"+'</span>';
}
}
if (column.field == 'sumStock') {
column.formatter = (row) => {
+ if(row.details.length<=0) return;
var sum=0;
const closestDate = row.details
.map(x => {
--
Gitblit v1.9.3