From 8dcddacd5c2486779247439a1e78603188b17bac Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Mon, 16 Mar 2026 16:57:39 +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/BaseInfoFormPackage.vue | 170 +++++++++++-------- src/utils/conConverter.js | 17 +- src/utils/conTools.js | 25 +++ .../business/comps/template/comps/gsp/GSP015.vue | 179 +++++++++++++++------ .../business/comps/template/comps/sp/SP0021.vue | 1 + .../business/comps/template/comps/sp/SP00456.vue | 2 +- .../comps/template/formConfig/gsp/gsp015.js | 17 +- 7 files changed, 278 insertions(+), 133 deletions(-) diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue index 0182a6f..79a754f 100644 --- a/src/components/Template/BaseInfoFormPackage.vue +++ b/src/components/Template/BaseInfoFormPackage.vue @@ -10,8 +10,7 @@
{{ $t(sItem.label) }}
@@ -33,7 +32,7 @@
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : +
{{ sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
{{ $t(sItem.label) }}
-
+
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : +
{{ sItem.otherLabel ? + $t(sItem.otherLabel) : $t("template.common.other") }}
-
+
+ :type="sItem.type" @copy="onCopy(sItem, key)" :error="errors[key]" + @update:error="errors[key] = false" :ref="key" :orange-bg="orangeBgFields[key]" /> {{ $t(sItem.subText) }} + @clickButton="(e, val, data) => handleClickButton(e, sItem, val, data,sItem.subKey)" /> +
@@ -124,8 +127,7 @@
+ :class="{ 'form-error-border': errors[key] }">
-
+
+ :type="sItem.type" :item="sItem" style="width: auto;flex:1" + :style="{ 'width': sItem.formWidth ? sItem.formWidth + 'px' : 'auto' }" + v-model="formFields[key]" @copy="onCopy(sItem, key)" + @change="(e, type) => onSelectChange(key, e, type)" :error="errors[key]" + @update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" />
{{ $t(sItem.label) }}
@@ -183,21 +187,22 @@ :error="errors[key]" @update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" />
-
+
-
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : - $t("template.common.other") }}
+ @remoteMethod="(query) => remoteMethod(query, sItem, key)" :error="errors[key]" + @update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" /> +
+
+ {{ sItem.otherLabel ? $t(sItem.otherLabel) : + $t("template.common.other") }}
@@ -206,10 +211,9 @@
+ :type="sItem.type" @blur="onBlur(key, $event)" class="flex1" :item="sItem" + v-model="formFields[key]" @copy="onCopy(sItem, key)" :error="errors[key]" + @update:error="errors[key] = false" :orange-bg="orangeBgFields[key]" /> {{ formFields[sItem.subKey] }}
{{ $t(sItem.subText) }} - + + @clickButton="(e, val, data) => handleClickButton(e, sItem, val, data,sItem.subKey)" /> +
+ +
+ +
-
{{ sItem.otherLabel ? $t(sItem.otherLabel) : +
{{ sItem.otherLabel ? + $t(sItem.otherLabel) : $t("template.common.other") }}
{{ $t(sItem.subText) }} - + :item="getFourthButtonItem(sItem)" :value="formFields[sItem.fourthKey]" + @clickButton="(e, val, data) => handleClickButton(e, sItem, val, data,sItem.fourthKey)" /> +