From 5e5928cdd3cd985a18890412506222263ffc0802 Mon Sep 17 00:00:00 2001
From: luojie <125330818@qq.com>
Date: Fri, 23 Jan 2026 20:15:03 +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/BaseInfoFormPcakge.vue | 15 +++--
src/components/Template/HandleFormItem.vue | 2 +-
.../Template/operation/TableOpertaion.vue | 70 ++++++++++++----------
.../comps/template/comps/sp/SWYPBQGZYZBB.vue | 8 +--
.../comps/template/dialog/SelectReagentDialog.vue | 2 +-
.../comps/template/dialog/SubPackageDialog.vue | 9 ++-
6 files changed, 58 insertions(+), 48 deletions(-)
diff --git a/src/components/Template/BaseInfoFormPcakge.vue b/src/components/Template/BaseInfoFormPcakge.vue
index 36dc68c..c7598b3 100644
--- a/src/components/Template/BaseInfoFormPcakge.vue
+++ b/src/components/Template/BaseInfoFormPcakge.vue
@@ -31,7 +31,7 @@
{{ $t( sItem.label) }}
onSelectChange(key, e,type)"
:error="errors[key]" @update:error="errors[key] = false"
:orange-bg="orangeBgFields[key]" />
@@ -66,7 +66,7 @@
onSelectChange(key, e,type)"
:error="errors[key]" @update:error="errors[key] = false"
:orange-bg="orangeBgFields[key]" />
@@ -105,7 +105,7 @@
onSelectChange(key, e,type)" :error="errors[key]"
@update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" />
{{sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
@@ -123,7 +123,7 @@
@update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" />
onSelectChange(sItem.subKey, e,type)" :error="errors[sItem.subKey]"
@update:error="errors[sItem.subKey] = false"
:orange-bg="orangeBgFields[sItem.subKey]" />
{{ formFields[sItem.subKey] }}
@@ -153,7 +153,7 @@
:orange-bg="orangeBgFields[key]" />
onSelectChange(sItem.subKey, e,type)" :error="errors[sItem.subKey]"
@update:error="errors[sItem.subKey] = false"
:orange-bg="orangeBgFields[sItem.subKey]" />
{{ formFields[sItem.subKey] }}
@@ -543,16 +543,15 @@ export default {
this.compareFieldsIsEqual(val,compareToValue,key);
}
},
- onSelectChange(key, val) {
+ onSelectChange(key, val, type) {
// 获取对应的配置
const currentConfig = this.allFieldsConfig[key];
- console.log(currentConfig,"currentConfig")
if(currentConfig.selectTo){
this.formFields[currentConfig.selectTo] = val;
}
this.onValueChangeCompareTo(key, val);
this.formFields[key] = val;
- this.$emit("select", { key, value: val });
+ this.$emit("select", { key, value: val, type });
// 清除该表单项的错误状态
if (this.errors[key]) {
this.$set(this.errors, key, false);
diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue
index 6561d4f..fe82e8d 100644
--- a/src/components/Template/HandleFormItem.vue
+++ b/src/components/Template/HandleFormItem.vue
@@ -407,7 +407,7 @@ export default {
this.inputValue = this.oldValue;
this.$emit('input', this.inputValue); // 触发 v-model 更新
this.$emit("blur", this.oldValue);
- this.$emit("change", this.oldValue);
+ this.$emit("change", this.oldValue,"cancel");
if(this.item.type === "clickable"){
this.$emit("resetRecord");
}
diff --git a/src/components/Template/operation/TableOpertaion.vue b/src/components/Template/operation/TableOpertaion.vue
index 0118fae..fa02457 100644
--- a/src/components/Template/operation/TableOpertaion.vue
+++ b/src/components/Template/operation/TableOpertaion.vue
@@ -5,19 +5,20 @@
删除
-
+
- 分装
- 开始配置
- 配置完成
- 打印标签
+ 分装
+ 开始配置
+ 配置完成
+ 打印标签
\ No newline at end of file
diff --git a/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue b/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
index c780701..165e694 100644
--- a/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
+++ b/src/views/business/comps/template/comps/sp/SWYPBQGZYZBB.vue
@@ -270,10 +270,10 @@ export default {
bodyFillType: "preFill",
width: 280,
myCodeFields: ["targetSolutionCode", "subTargetSolutionCode"],//分装的母液编号字段
- // maxVolumeField: "actSolutionVolume",//分装的最大量字段
- // maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段
- maxVolumeField: "targetSolutionVolume,targetDiluentVolume",//分装的最大量字段
- maxVolumeFieldUnit: "targetSolutionVolumeUnit,targetDiluentVolumeUnit",//分装的最大量单位字段
+ maxVolumeField: "actSolutionVolume",//分装的最大量字段
+ maxVolumeFieldUnit: "actSolutionVolumeUnit",//分装的最大量单位字段
+ // maxVolumeField: "targetSolutionVolume,targetDiluentVolume",//分装的最大量字段
+ // maxVolumeFieldUnit: "targetSolutionVolumeUnit,targetDiluentVolumeUnit",//分装的最大量单位字段
},
{
label: "起始溶液编号",
diff --git a/src/views/business/comps/template/dialog/SelectReagentDialog.vue b/src/views/business/comps/template/dialog/SelectReagentDialog.vue
index a98688e..2adeec2 100644
--- a/src/views/business/comps/template/dialog/SelectReagentDialog.vue
+++ b/src/views/business/comps/template/dialog/SelectReagentDialog.vue
@@ -1,5 +1,5 @@
-
+