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 @@ 点击上传 请上传附件 -
支持扩展名:.rar .zip .doc .docx .pdf .jpg,文件大小不超过2MB
+
支持扩展名:.{{allowedTypes.join('. ')}},文件大小不超过2MB
-1) { @@ -1744,16 +1742,16 @@ export default { .clickable, .el-date-editor, .el-checkbox__inner { - border-color: #ff5d5d !important; + border: 1px solid #ff5d5d !important; box-shadow: 0 0 6px #ffc3c3 !important; &:focus { - border-color: #ff5d5d !important; + border: 1px solid #ff5d5d !important; box-shadow: 0 0 6px #ffc3c3 !important; } &:hover { - border-color: #ff5d5d; + border: 1px solid #ff5d5d !important; box-shadow: 0 0 6px #ffc3c3 !important; } } @@ -1761,14 +1759,14 @@ export default { // 为 el-select 和 el-date-picker 添加错误边框样式 .el-select .el-input__inner, .el-date-editor .el-input__inner .el-checkbox__inner { - border-color: #ff5d5d; + border: 1px solid #ff5d5d !important; box-shadow: 0 0 6px #ffc3c3 !important; } // 处理 DecimalInput 组件的错误边框样式 - :deep(.el-input-number) { + .el-input-number { .el-input__inner { - border-color: #ff5d5d; + border: 1px solid #ff5d5d !important; box-shadow: 0 0 6px #ffc3c3 !important; } } diff --git a/src/components/Template/Input.vue b/src/components/Template/Input.vue deleted file mode 100644 index 8f347de..0000000 --- a/src/components/Template/Input.vue +++ /dev/null @@ -1,258 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Template/StepComponents/ZLSubPackage.vue b/src/components/Template/StepComponents/ZLSubPackage.vue index 10400b5..264812f 100644 --- a/src/components/Template/StepComponents/ZLSubPackage.vue +++ b/src/components/Template/StepComponents/ZLSubPackage.vue @@ -13,8 +13,7 @@ {{ item.unit }}
-
分装编号
-
单位
+
分装单位
@@ -31,6 +30,9 @@ 重置
+
+
分装编号
+
@@ -64,7 +66,7 @@ import { isValueEmpty,justUpdateFilledFormData } from '@/utils/index.js'; export default { inject: ['templateFillType'], dicts: [ - 'business_tjdw', + 'business_zldw', ], components: { HandleFormItem, @@ -151,7 +153,7 @@ export default { return { type: "select", fillType: "preFill", - options: this.dict.type.business_tjdw + options: this.dict.type.business_zldw } }, subConfig(){ diff --git a/src/components/Template/StepComponents/ry/bdtj.vue b/src/components/Template/StepComponents/ry/bdtj.vue index 80bafed..d9354ab 100644 --- a/src/components/Template/StepComponents/ry/bdtj.vue +++ b/src/components/Template/StepComponents/ry/bdtj.vue @@ -69,9 +69,9 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js'; options:this.getDictOptions("business_tjdw"), fillType:"preFill", }, - text5:{ - label:",划线。", - type:"text", + hx:{ + type:"input", + fillType:"preFill", }, } diff --git a/src/components/Template/StepComponents/ry/bdzl.vue b/src/components/Template/StepComponents/ry/bdzl.vue index eaac60f..fff483b 100644 --- a/src/components/Template/StepComponents/ry/bdzl.vue +++ b/src/components/Template/StepComponents/ry/bdzl.vue @@ -14,6 +14,7 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js'; }, computed: { formConfig() { + console.log(this.stepIndex,"stepIndex") return [{ config:{ text1:{ @@ -47,7 +48,7 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js'; type:"inputNumber", fillType:"actFill", compareTo:"rm", - copyFrom:"rm" + disabled:true, }, button1:{ type:"button", diff --git a/src/components/Template/StepComponents/ry/fy.vue b/src/components/Template/StepComponents/ry/fy.vue index 94a672e..803561b 100644 --- a/src/components/Template/StepComponents/ry/fy.vue +++ b/src/components/Template/StepComponents/ry/fy.vue @@ -27,6 +27,11 @@ export default { label: "使用", type: "text", }, + yqmc: { + type: "input", + fillType: "preFill", + }, + yq: { type: "yq", fillType: "actFill", diff --git a/src/components/Template/StepComponents/ry/jd.vue b/src/components/Template/StepComponents/ry/jd.vue index d24e2db..f400e47 100644 --- a/src/components/Template/StepComponents/ry/jd.vue +++ b/src/components/Template/StepComponents/ry/jd.vue @@ -66,12 +66,12 @@ export default { fillType: "preFill", otherCode: "yjwdOther", }, - yjhj: { - type: "select", - options: this.getDictOptions("business_hjxx"), - fillType: "preFill", - otherCode: "yjhjOther", - }, + // yjhj: { + // type: "select", + // options: this.getDictOptions("business_hjxx"), + // fillType: "preFill", + // otherCode: "yjhjOther", + // }, text5: { label: ",实际条件为", type: "text", @@ -84,13 +84,13 @@ export default { otherCode: "sjwdOther", compareTo: "yjwd", }, - sjhj: { - type: "select", - options: this.getDictOptions("business_hjxx"), - fillType: "actFill", - otherCode: "sjhjOther", - compareTo: "yjhj", - }, + // sjhj: { + // type: "select", + // options: this.getDictOptions("business_hjxx"), + // fillType: "actFill", + // otherCode: "sjhjOther", + // compareTo: "yjhj", + // }, text6: { label: ",放置", type: "text", @@ -179,12 +179,12 @@ export default { fillType: "preFill", otherCode: "yjwdOther", }, - yjhj: { - type: "select", - options: this.getDictOptions("business_hjxx"), - fillType: "preFill", - otherCode: "yjhjOther", - }, + // yjhj: { + // type: "select", + // options: this.getDictOptions("business_hjxx"), + // fillType: "preFill", + // otherCode: "yjhjOther", + // }, text5: { label: ",实际条件为", type: "text", @@ -197,13 +197,13 @@ export default { otherCode: "sjwdOther", compareTo: "yjwd", }, - sjhj: { - type: "select", - options: this.getDictOptions("business_hjxx"), - fillType: "actFill", - otherCode: "sjhjOther", - compareTo: "yjhj", - }, + // sjhj: { + // type: "select", + // options: this.getDictOptions("business_hjxx"), + // fillType: "actFill", + // otherCode: "sjhjOther", + // compareTo: "yjhj", + // }, text6: { label: ",放置", type: "text", diff --git a/src/components/Template/StepComponents/ry/tjphcz.vue b/src/components/Template/StepComponents/ry/tjphcz.vue index 63e1d23..8a6f532 100644 --- a/src/components/Template/StepComponents/ry/tjphcz.vue +++ b/src/components/Template/StepComponents/ry/tjphcz.vue @@ -96,6 +96,7 @@ export default { ph: { type: "inputNumber", fillType: "actFill", + compareTo: "rm", }, button1: { type: "button", diff --git a/src/components/Template/StepComponents/ry/tjphfcz.vue b/src/components/Template/StepComponents/ry/tjphfcz.vue index 719baf6..bbf6fdc 100644 --- a/src/components/Template/StepComponents/ry/tjphfcz.vue +++ b/src/components/Template/StepComponents/ry/tjphfcz.vue @@ -96,6 +96,7 @@ export default { ph: { type: "inputNumber", fillType: "actFill", + compareTo: "rm", }, text8: { diff --git a/src/components/Template/StepComponents/ry/tpjydd.vue b/src/components/Template/StepComponents/ry/tpjydd.vue index 61e47c4..5e3a99f 100644 --- a/src/components/Template/StepComponents/ry/tpjydd.vue +++ b/src/components/Template/StepComponents/ry/tpjydd.vue @@ -105,8 +105,9 @@ import stepMixins from '@/components/Template/mixins/stepMixins.js'; type:"text", }, jgpd:{ - label:"通过/不通过", - type:"span", + type:"input", + fillType:"actFill", + disabled:true, }, text9:{ label:"。", diff --git a/src/components/Template/StepComponents/ry/tpjysd.vue b/src/components/Template/StepComponents/ry/tpjysd.vue index 071689c..6b827d6 100644 --- a/src/components/Template/StepComponents/ry/tpjysd.vue +++ b/src/components/Template/StepComponents/ry/tpjysd.vue @@ -1,7 +1,7 @@