修复bug
This commit is contained in:
@@ -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 '查看'
|
||||
|
||||
Reference in New Issue
Block a user