|
|
|
@ -99,8 +99,8 @@ |
|
|
|
sourceFrom = "customTable" |
|
|
|
:item="getBodyItem(col, rowIndex)" :value="row[col.prop]" |
|
|
|
:error="hasError(rowIndex, colIndex, col.prop)" |
|
|
|
@onRegentSubmit="(data)=>onRegentSubmit(data,col, rowIndex, colIndex, row)" |
|
|
|
@beforeReagentSubmit="(data, callback)=>onBeforeReagentSubmit(data, callback,col,row)" |
|
|
|
@onRegentSubmit="(data,inputValue)=>onRegentSubmit(data,inputValue,col, rowIndex, colIndex, row)" |
|
|
|
@beforeReagentSubmit="(data, callback)=>onBeforeReagentSubmit(data, callback,col,row)" |
|
|
|
@update:error="onErrorUpdate(rowIndex, colIndex, col.prop, $event)" |
|
|
|
:orange-bg="hasOrangeBg(rowIndex, colIndex, col.prop)" /> |
|
|
|
</div> |
|
|
|
@ -354,11 +354,11 @@ export default { |
|
|
|
} |
|
|
|
this.$emit("beforeReagentSubmit", {selectData:data, callback, key:col.prop, rowData:row}) |
|
|
|
}, |
|
|
|
onRegentSubmit(data, col, rowIndex, colIndex, row){ |
|
|
|
onRegentSubmit(data, inputValue, col, rowIndex, colIndex, row){ |
|
|
|
if (this.templateFillType !== 'actFill') { |
|
|
|
return |
|
|
|
} |
|
|
|
this.updateDataSourceByRowIndex(rowIndex,{[col.prop]:data.selectedId}) |
|
|
|
this.updateDataSourceByRowIndex(rowIndex,{[col.prop]:inputValue}) |
|
|
|
this.$emit("onRegentSubmit", {selectInfo:data,key:col.prop, col, rowIndex, colIndex, rowData:row}) |
|
|
|
}, |
|
|
|
isShowAddRos() { |
|
|
|
@ -651,6 +651,7 @@ export default { |
|
|
|
copyFrom: col.copyFrom || "", |
|
|
|
compareTo: col.compareTo, // 添加 compareTo 字段 |
|
|
|
type: col.bodyType || "input", |
|
|
|
filledCodes:col.filledCodes, |
|
|
|
}; |
|
|
|
if (col.bodyDisabled) { |
|
|
|
item.disabled = col.bodyDisabled; |
|
|
|
|