|
|
@ -563,7 +563,7 @@ const openForm = async (type: string, row?: number) => { |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
try { |
|
|
|
// 子表新增编辑校验 如果业务需要子表提交校验 需在主页详情组件添加 detailValidate 参数及方法 |
|
|
|
const rs = (await props.detailValidate) ? props.detailValidate(data) : true |
|
|
|
const rs = (await props.detailValidate) ? await props.detailValidate(data) : true |
|
|
|
if (!rs) return |
|
|
|
if (formType === 'create') { |
|
|
|
await props.apiCreate(data) |
|
|
|