|
|
@ -54,6 +54,7 @@ |
|
|
|
@handleDeleteTable="handleDeleteTable" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@tableFormSelectOnBlur="tableFormSelectOnBlur" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -70,6 +71,7 @@ |
|
|
|
:Echo="Echo" |
|
|
|
@searchTableSuccessDetail="searchTableSuccessDetail" |
|
|
|
:detailValidate="detailValidate" |
|
|
|
@onBlur="onBlur" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
@ -400,6 +402,18 @@ const submitForm = async (formType, data) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const onBlur = (field, e) => { |
|
|
|
if (field == 'reason') { |
|
|
|
detailRef.value.formRef.formRef.formModel[field] = e.target.value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const tableFormSelectOnBlur = (field, val, row, index) => { |
|
|
|
if (field == 'reason') { |
|
|
|
tableData.value[index][field] = val.target.value |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 子表新增/编辑校验 |
|
|
|
const detailValidate = (data) => { |
|
|
|
let tag = false; |
|
|
|