提交逻辑
This commit is contained in:
parent
4cedd7a425
commit
51b3742b9f
@ -262,28 +262,11 @@ const handlePrint = async (row: PatientVO) => {
|
|||||||
await PatientApi.bindPatientProject(row.medicalSn)
|
await PatientApi.bindPatientProject(row.medicalSn)
|
||||||
await PatientApi.syncinspectApplyTj(row.medicalSn)
|
await PatientApi.syncinspectApplyTj(row.medicalSn)
|
||||||
await createPrint(row.medicalSn)
|
await createPrint(row.medicalSn)
|
||||||
} else {
|
|
||||||
// 如果检验单已存在,弹出确认对话框
|
|
||||||
const confirmResult = await ElMessageBox.confirm(
|
|
||||||
'检验单已存在,是否重新创建?',
|
|
||||||
'提示',
|
|
||||||
{
|
|
||||||
confirmButtonText: '是',
|
|
||||||
cancelButtonText: '否',
|
|
||||||
type: 'warning'
|
|
||||||
}
|
}
|
||||||
).catch(() => 'cancel')
|
|
||||||
|
|
||||||
// 用户点击"是",重新创建检验单
|
|
||||||
if (confirmResult === 'confirm') {
|
|
||||||
await PatientApi.syncinspectApplyTj(row.medicalSn)
|
await PatientApi.syncinspectApplyTj(row.medicalSn)
|
||||||
}
|
|
||||||
// 用户点击"否",直接继续打印流程
|
|
||||||
await createPrint(row.medicalSn)
|
await createPrint(row.medicalSn)
|
||||||
}
|
|
||||||
|
|
||||||
// 打印完成后更新状态
|
// 打印完成后更新状态
|
||||||
await PatientApi.updatePrintStatus(row.medicalSn, '1')
|
await PatientApi.updatePrintStatus(row.medicalSn)
|
||||||
// 刷新列表
|
// 刷新列表
|
||||||
await getList()
|
await getList()
|
||||||
message.success('打印成功')
|
message.success('打印成功')
|
||||||
|
Loading…
Reference in New Issue
Block a user