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)" />
+
+ onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row, col.bodySubKey)"
+ @beforeReagentSubmit="(data, callback) => onBeforeReagentSubmit(data, callback, col, row)"
+ @update:error="onErrorUpdate(rowIndex, colIndex, col.bodySubKey, $event)"
+ :orange-bg="hasOrangeBg(rowIndex, colIndex, col.bodySubKey)" />
+
@@ -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',