From a5dde9874698133fca881ec2eef1568064c62b39 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Mon, 5 Jan 2026 17:01:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E7=BB=84=E4=BB=B6]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/BaseInfoFormPcakge.vue | 18 ++- src/components/Template/CustomTable.vue | 67 +++++---- src/components/Template/DecimalInput.vue | 15 +- src/components/Template/HandleFormItem.vue | 1 + .../Template/operation/TableOpertaion.vue | 65 ++++++++ .../comps/template/comps/sp/SWYPBQGZYZBB.vue | 165 ++++++++++++++++++--- .../comps/template/comps/sp/SWYPFXCBYPZB.vue | 2 +- .../comps/template/comps/sp/SWYPFXRYPZB.vue | 2 +- .../comps/template/mixins/templateMixin.js | 39 ++++- 9 files changed, 311 insertions(+), 63 deletions(-) create mode 100644 src/components/Template/operation/TableOpertaion.vue diff --git a/src/components/Template/BaseInfoFormPcakge.vue b/src/components/Template/BaseInfoFormPcakge.vue index 96ae6f7..dcabe6c 100644 --- a/src/components/Template/BaseInfoFormPcakge.vue +++ b/src/components/Template/BaseInfoFormPcakge.vue @@ -11,6 +11,11 @@ + @@ -183,10 +188,10 @@ export default { } this.formFields[key] = val; }, - updateFormField(key, value){ + updateFormData(key, value){ this.formFields[key] = value; }, - batchUpdateFormFields(data){ + batchUpdateFormData(data){ Object.keys(data).forEach(key => { this.formFields[key] = data[key]; }) @@ -275,6 +280,7 @@ export default { // 更新表单字段 this.formFields = result; this.allFieldsConfig = config; + console.log(config,"config") }, getFormData() { const { formFields, allFieldsConfig } = this; @@ -284,10 +290,9 @@ export default { console.log(key,formFields[key]) if (!formFields[key]) { const o = allFieldsConfig[key]; - console.log(templateStatus,o.fillType,"fill") - if (o.fillType == templateStatus) { + if (o.fillType == templateStatus && !o.disabled) { let prefix = ""; - if (o.type === "input") { + if (o.type === "input" || o.type === "inputNumber" || o.type === "textarea") { prefix = "填写" } else { prefix = "选择" @@ -303,6 +308,9 @@ export default { }) }, + getFormDataByKey(key){ + return this.formFields[key]; + }, onBlur(key, val) { this.$emit("blur", { key, value: val ,...this.formFields}); }, diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index fbdd03f..ee5de5a 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -14,7 +14,7 @@ -
+
操作
@@ -29,14 +29,14 @@