From cfb71c3048996245da93aba99d40172f45ed6444 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Mon, 9 Mar 2026 14:21:58 +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 | 18 ++++++++++++++---- src/views/business/comps/template/comps/dl/DL014.vue | 5 ++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index e9013dd..83c3c2b 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -135,7 +135,7 @@ :fieldItemLabel="fieldItemLabel" :type="col.bodyType" class="body-clickable" sourceFrom="customTable" :item="getBodyItem(col, rowIndex)" :value="row[col.prop]" :error="hasError(rowIndex, colIndex, col.prop)" - @onRegentSubmit="(data, inputValue) => onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row)" + @onRegentSubmit="(data, inputValue) => onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row, col.prop)" @beforeReagentSubmit="(data, callback) => onBeforeReagentSubmit(data, callback, col, row)" @update:error="onErrorUpdate(rowIndex, colIndex, col.prop, $event)" :orange-bg="hasOrangeBg(rowIndex, colIndex, col.prop)" /> @@ -204,6 +204,16 @@ :value="row[col.bodySubKey]" @clickButton="(e, data) => handleClickButton(e, data, col.bodySubKey, rowIndex, colIndex)" /> +
+ +
@@ -493,12 +503,12 @@ export default { this.$emit("onHeaderRegentSubmit", { selectInfo: data, headerIndex, colIndex, headerFields: this.headerFields }) }, - onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row) { + onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row,key) { // if (this.templateFillType !== 'actFill') { // return // } - this.updateDataSourceByRowIndex(rowIndex, { [col.prop]: inputValue }) - this.$emit("onRegentSubmit", { selectInfo: data, key: col.prop, col, rowIndex, colIndex, rowData: row }) + this.updateDataSourceByRowIndex(rowIndex, { [key]: inputValue }) + this.$emit("onRegentSubmit", { selectInfo: data, key, col, rowIndex, colIndex, rowData: row }) }, isShowAddRos() { if (this.showAddRow !== undefined) { diff --git a/src/views/business/comps/template/comps/dl/DL014.vue b/src/views/business/comps/template/comps/dl/DL014.vue index 85152c2..cb485c8 100644 --- a/src/views/business/comps/template/comps/dl/DL014.vue +++ b/src/views/business/comps/template/comps/dl/DL014.vue @@ -440,7 +440,10 @@ export default { label: 'template.dl.dl014.gspbh', prop: 'gspbh', bodyType: 'input', - bodyFillType: 'actFill' + bodyFillType: 'actFill', + bodySubType: 'gsp', + bodySubKey: 'gspbh1', + bodySubFillType: 'actFill' }, { label: 'template.dl.dl014.ysgspjrl',