From 420955d14bdd4b1038e2b788f8e06bc81ad18095 Mon Sep 17 00:00:00 2001
From: luojie <125330818@qq.com>
Date: Thu, 22 Jan 2026 23:34:33 +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/HandleFormItem.vue | 21 +-
.../Template/operation/TableOpertaion.vue | 17 +-
src/utils/volumeTools.js | 110 ++++++++
.../business/comps/template/TemplateTable.vue | 11 +-
.../comps/template/dialog/SubPackageDialog.vue | 314 +++++++++++++++++++++
5 files changed, 466 insertions(+), 7 deletions(-)
create mode 100644 src/utils/volumeTools.js
create mode 100644 src/views/business/comps/template/dialog/SubPackageDialog.vue
diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue
index fce2b75..617230a 100644
--- a/src/components/Template/HandleFormItem.vue
+++ b/src/components/Template/HandleFormItem.vue
@@ -147,6 +147,11 @@ export default {
fieldItemLabel: {
type: String,
default: "",
+ },
+ //是否记录修改
+ isFieldsRecord: {
+ type: Boolean,
+ default: true,
}
},
data() {
@@ -373,6 +378,12 @@ export default {
return;
}
if (this.oldValue && !isSame && this.templateFillType === "actFill") {
+ if(!this.isFieldsRecord){//是否需要记录修改记录
+ this.$emit("blur", this.inputValue);
+ this.$emit('input', this.inputValue);
+ this.$emit("change", this.inputValue);
+ return;
+ }
this.$refs.editSignRef.show()
// this.handleUpdateRecord();
}else{//如果是第一次填写,不需要密码验证
@@ -406,9 +417,7 @@ export default {
if (data) {
record.reason = data.remark
}
- if(this.templateFillType === "actFill"){//只有实际填报的时候才记录修改记录
- this.updateZdxgjl(record);
- }
+
const params = {
type: "fieldChanged",
newRecord: record,
@@ -419,6 +428,12 @@ export default {
this.$emit("blur", this.inputValue);
this.$emit('input', this.inputValue);
this.$emit("change", this.inputValue);
+ if(!this.isFieldsRecord){//是否需要记录修改记录
+ return;
+ }
+ if(this.templateFillType === "actFill"){//只有实际填报的时候才记录修改记录
+ this.updateZdxgjl(record);
+ }
setTimeout(() => {
EventBus.$emit('onModifyRecord', params,)
}, 10);
diff --git a/src/components/Template/operation/TableOpertaion.vue b/src/components/Template/operation/TableOpertaion.vue
index 6e6e9ca..2140b67 100644
--- a/src/components/Template/operation/TableOpertaion.vue
+++ b/src/components/Template/operation/TableOpertaion.vue
@@ -17,6 +17,8 @@
+
+
\ No newline at end of file