handleClickButton(e, sItem, val, data, sItem.thirdKey)" />
@@ -255,6 +257,7 @@
handleClickButton(e, sItem, val, data, sItem.subKey)" />
@@ -276,6 +279,7 @@
handleClickButton(e, sItem, val, data, sItem.thirdKey)" />
@@ -324,6 +328,7 @@
:orange-bg="orangeBgFields[sItem.thirdKey]" />
handleClickButton(e, sItem, val, data, sItem.fourthKey)" />
diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue
index c7f930e..40c4ebf 100644
--- a/src/components/Template/CustomTable.vue
+++ b/src/components/Template/CustomTable.vue
@@ -98,6 +98,7 @@
@blur="onBlur(rowIndex, col.prop, $event)" @copy="onCopy(rowIndex, col)"
class="body-input" :item="getBodyItem(col, rowIndex)"
v-model="row[col.prop]"
+ :ref = "col.prop+rowIndex"
@change="onBodyValueChange(rowIndex, colIndex, $event, row, col.bodyType)"
:error="hasError(rowIndex, colIndex, col.prop)"
@update:error="onErrorUpdate(rowIndex, colIndex, col.prop, $event)"
@@ -208,6 +209,7 @@
:fieldItemLabel="fieldItemLabel" :type="col.bodySubType"
@blur="onSubBlur(rowIndex, col.bodySubKey, $event)"
@copy="onCopy(rowIndex, col)" :item="getBodySubItem(col)"
+
v-model="row[col.bodySubKey]"
@change="onBodySubValueChange(rowIndex, colIndex, $event, row, col.bodySubType)"
:error="hasError(rowIndex, colIndex, col.bodySubKey)"
@@ -222,7 +224,7 @@
handleClickButton(e, data, col.bodySubKey, rowIndex, colIndex)" />
+ @clickButton="(e,val, data) => handleClickButton(e, data, col.bodySubKey, rowIndex, colIndex)" />
handleClickButton(e, data, col.bodyThirdKey, rowIndex, colIndex)" />
+ @clickButton="(e,val, data) => handleClickButton(e, data, col.bodyThirdKey, rowIndex, colIndex)" />
@@ -523,7 +525,6 @@ export default {
},
// 点击事件
handleClickable(col, rowIndex, colIndex, row) {
- console.log("clickable", rowIndex, colIndex, col, row)
if (this.templateFillType !== 'actFill') {
return
}
@@ -537,7 +538,6 @@ export default {
},
onHeaderRegentSubmit(data, inputValue, colIndex, headerIndex) {
this.headerFields[`${colIndex}_${headerIndex}`] = inputValue;
- console.log("onHeaderRegentSubmit", data, inputValue, colIndex, headerIndex, this.headerFields)
this.$emit("onHeaderRegentSubmit", { selectInfo: data, headerIndex, colIndex, headerFields: this.headerFields })
},
@@ -938,7 +938,7 @@ export default {
item.checkboxLabel = this.$t(col.checkboxLabel);
}
if (col.bodyType === "operableInput" ) {
- if(currentItem.isComplete){
+ if(currentItem.isComplete || this.templateFillType !== 'actFill'){
item.disabled = true;
}else{
item.disabled = false;
@@ -1017,10 +1017,21 @@ export default {
this.checkCompareToOnDataLoad();
},
// 根据行索引更新数据 autoUpdateRecord 是否自动更新记录
- updateDataSourceByRowIndex(rowIndex, data) {
+ updateDataSourceByRowIndex(rowIndex, data,updateFieldsInfo={}) {
+ const {signData,updateFields = []} = updateFieldsInfo;
this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource));
this.localDataSource[rowIndex] = { ...this.localDataSource[rowIndex], ...data };
this.localDataSource = [...this.localDataSource];
+ console.log(signData,"signData")
+ if(signData && signData.remark){
+ updateFields.map((key)=>{
+ const ref = this.$refs[key+rowIndex];
+ if(ref){
+ ref[0].handleUpdateRecord(signData, { oldValue: this.oldLocalDataSource[rowIndex][key], inputValue: data[key] });
+ }
+ })
+ }
+
this.checkCompareToOnDataLoad();
// justUpdateFilledFormData();
},
diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue
index 8c19bed..096ac34 100644
--- a/src/components/Template/HandleFormItem.vue
+++ b/src/components/Template/HandleFormItem.vue
@@ -6,6 +6,7 @@
{
+ filledRowData[item.prop] = row[item.prop];
+ if (item.bodySubKey && (item.bodySubType !== "button")) {
+ filledRowData[item.bodySubKey] = row[item.bodySubKey];
+ }
+ if (item.otherCode) {
+ filledRowData[item.otherCode] = row[item.otherCode];
+ }
+ })
+ const isFilled = Object.values(filledRowData).every((item) => !!item);
this.deleteIndex = index;
- if (this.templateFillType === "actFill") {
+ if (this.templateFillType === "actFill" && isFilled) {
EventBus.$emit('showEditSignDialog', { uuid: this.uuid });
} else {
this.sureDelete();
diff --git a/src/views/business/comps/template/comps/dl/DL022.vue b/src/views/business/comps/template/comps/dl/DL022.vue
index 41ef4f0..13e9306 100644
--- a/src/views/business/comps/template/comps/dl/DL022.vue
+++ b/src/views/business/comps/template/comps/dl/DL022.vue
@@ -14,19 +14,20 @@