From 1923cbb80886c9d444baa40eaaa54c03f1ad7ff2 Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期一, 20 十月 2025 09:34:00 +0800
Subject: [PATCH] 送货计划导入
---
WebTM/views/基础资料/基础资料/Gy_SupplierDeliveryInfo_Excel.html | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierDeliveryInfo_Excel.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierDeliveryInfo_Excel.html"
index fcbf1cb..2c35835 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierDeliveryInfo_Excel.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\237\272\347\241\200\350\265\204\346\226\231/Gy_SupplierDeliveryInfo_Excel.html"
@@ -104,9 +104,12 @@
}
if (data1.count == 1) {
- option.data = data1.data;
+ var filteredData = data1.data.filter(function (row) {
+ return !isEmptyRow(row);
+ });
+ option.data = filteredData;
table.render(option);
- layer.msg('鏂囦欢涓婁紶鎴愬姛锛�', { icon: 1 });
+ layer.msg('鏂囦欢涓婁紶鎴愬姛锛佸叡瀵煎叆 ' + filteredData.length + ' 琛屾暟鎹紙宸茶繃婊ょ┖琛岋級', { icon: 1 });
} else {
layer.alert(data1.code + data1.Message, { icon: 5 });
}
@@ -159,6 +162,20 @@
set_InitGrid();
}
//#endregion
+ //#region 绌鸿鍒ゆ柇
+ function isEmptyRow(row) {
+ var emptyFields = ['鐗╂枡缂栫爜', '鐗╂枡鍚嶇О', '渚涘簲鍟�', '姣忔墭绠辨暟閲�', '鎵樼鏁�', '閫佽揣鏁伴噺'];
+
+ for (var i = 0; i < emptyFields.length; i++) {
+ var field = emptyFields[i];
+ if (row[field] !== null && row[field] !== undefined && row[field] !== '') {
+ return false;
+ }
+ }
+ return true;
+ }
+ //#endregion
+
// 绂佺敤鎸夐挳骞跺惎鍔ㄥ�掕鏃�
function disableButtonWithCountdown(seconds) {
if (countdownTimer) {
--
Gitblit v1.9.1