|
@ -333,18 +333,18 @@ |
|
|
} |
|
|
} |
|
|
getList() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
const detailSubmitForm = async (formType, data, getList, formRef, tableList) => { |
|
|
const detailSubmitForm = async (formType, data, formRef, tableList) => { |
|
|
try { |
|
|
try { |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
await ItemApplyDetailApi.createItemApplyDetail(data) |
|
|
await ItemApplyDetailApi.createItemApplyDetail(data) |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
|
formRef.dialogVisible = false |
|
|
formRef.dialogVisible = false |
|
|
await formRef.getList |
|
|
await detailRef.value.getList() |
|
|
} else { |
|
|
} else { |
|
|
await ItemApplyDetailApi.updateItemApplyDetail(data) |
|
|
await ItemApplyDetailApi.updateItemApplyDetail(data) |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
formRef.dialogVisible = false |
|
|
formRef.dialogVisible = false |
|
|
formRef.getList |
|
|
await detailRef.value.getList() |
|
|
} |
|
|
} |
|
|
}catch { |
|
|
}catch { |
|
|
} finally { |
|
|
} finally { |
|
|