From 9beea63db2bc6f64a9a517889e43f6d38d23eac9 Mon Sep 17 00:00:00 2001 From: jiang Date: Thu, 17 Jul 2025 17:20:25 +0800 Subject: [PATCH] 1 --- js/aq_demand_plan/child/choose_tool_type_list.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/aq_demand_plan/child/choose_tool_type_list.js b/js/aq_demand_plan/child/choose_tool_type_list.js index 03fc8e0..5066711 100644 --- a/js/aq_demand_plan/child/choose_tool_type_list.js +++ b/js/aq_demand_plan/child/choose_tool_type_list.js @@ -412,6 +412,12 @@ function importExcel() { } +function sanitizeNeedNum(value) { + let num = Number(value); + if (isNaN(num) || num <= 0) return ""; // 非法输入设为空 + return Math.floor(num); // 自动取整,去除小数 +} + function updateTableWithImportedData(data) { const tableData = table.cache.currentTableId || []; let updated = false;