修复bug

This commit is contained in:
Your Name
2026-05-08 10:49:32 +08:00
parent 8c640abb26
commit 43110e015d
6 changed files with 169 additions and 36 deletions
+5 -2
View File
@@ -1446,10 +1446,13 @@ const handleEdit = (id: number) => {
editRef.value.open('edit', id)
}
/** 与预约列表开方一致:已通过且未作废 → 查看,否则开方 */
/** 与预约列表开方一致:已通过且未作废 → 查看,否则开方。(待分配医助 Tab 一律显示「开方」,避免误解为只读) */
function prescriptionActionLabel(row: any) {
if (formData.pending_assign === '1') {
return '开方'
}
if (
row?.prescription_audit_status === 1 &&
Number(row?.prescription_audit_status) === 1 &&
Number(row?.prescription_void_status) !== 1
) {
return '查看'