From cbb8bf2da284e98cddba69114f86a2c9f13a841b Mon Sep 17 00:00:00 2001
From: luojie <125330818@qq.com>
Date: Tue, 7 Apr 2026 21:56:22 +0800
Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][upd?=
=?UTF-8?q?ate]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Template/CustomTable.vue | 3 +-
src/components/Template/DecimalInput.vue | 21 +-
src/components/Template/HandleFormItem.vue | 26 +--
src/components/Template/Input.vue | 258 ---------------------
.../Template/StepComponents/ZLSubPackage.vue | 10 +-
src/components/Template/StepComponents/ry/bdtj.vue | 6 +-
src/components/Template/StepComponents/ry/bdzl.vue | 3 +-
src/components/Template/StepComponents/ry/fy.vue | 5 +
src/components/Template/StepComponents/ry/jd.vue | 52 ++---
.../Template/StepComponents/ry/tjphcz.vue | 1 +
.../Template/StepComponents/ry/tjphfcz.vue | 1 +
.../Template/StepComponents/ry/tpjydd.vue | 5 +-
.../Template/StepComponents/ry/tpjysd.vue | 14 +-
src/components/Template/StepFormPackage.vue | 3 +-
.../template/dialog/SelectInstrumentDialog.vue | 1 +
.../template/dialog/SelectMixReagentDialog.vue | 3 +
.../comps/template/dialog/SelectReagentDialog.vue | 3 +
17 files changed, 91 insertions(+), 324 deletions(-)
delete mode 100644 src/components/Template/Input.vue
diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue
index 341a6fc..31f9d7a 100644
--- a/src/components/Template/CustomTable.vue
+++ b/src/components/Template/CustomTable.vue
@@ -740,7 +740,8 @@ export default {
})
} else {
- if (isValueEmpty(mainValue) && col.bodyType !== 'span' && col.bodyType !== 'button') {
+ if (isValueEmpty(mainValue) &&col.bodyFillType === this.templateFillType && col.bodyType !== 'span' && col.bodyType !== 'button') {
+ console.log(col.bodyFillType,col.bodySubFillType,"bodySubFillType")
const errorItem = {
rowIndex,
colIndex,
diff --git a/src/components/Template/DecimalInput.vue b/src/components/Template/DecimalInput.vue
index fd5077b..1eb3897 100644
--- a/src/components/Template/DecimalInput.vue
+++ b/src/components/Template/DecimalInput.vue
@@ -92,17 +92,22 @@ export default {
return;
}
- // 检查是否已经输入了完整的NA
- if (this.isNA) {
- // 如果已经输入了NA,无论输入什么,都保持NA不变
- this.internalValue = 'NA';
- this.$emit('input', 'NA');
- return;
- }
-
const upperVal = val.toUpperCase();
let cleaned = val;
let matchedRule = null;
+
+ // 如果已经输入了完整的NA
+ if (this.isNA) {
+ // 只有输入完整NA时才保持不变,允许用户删除或输入其他值
+ if (upperVal === 'NA') {
+ this.internalValue = 'NA';
+ this.$emit('input', 'NA');
+ return;
+ } else {
+ // 用户删除了NA或输入其他值,重置状态并继续处理
+ this.isNA = false;
+ }
+ }
// 检查是否匹配特殊模式(NA或FRACTION)
// 优先检查完整的NA模式
diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue
index 7f646d7..4028574 100644
--- a/src/components/Template/HandleFormItem.vue
+++ b/src/components/Template/HandleFormItem.vue
@@ -109,7 +109,7 @@