From 0f6c6ec3c852aa6a2119261d5c87d7c384298d17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Wed, 17 Jun 2026 16:28:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(#784):=20=E8=AF=B7=E4=BF=AE=E5=A4=8D=20Bug?= =?UTF-8?q?=20#784=EF=BC=9A=E3=80=90=E4=BD=8F=E9=99=A2=E6=8A=A4=E5=A3=AB?= =?UTF-8?q?=E7=AB=99-=E5=8C=BB=E5=98=B1=E6=A0=A1=E5=AF=B9=E3=80=91?= =?UTF-8?q?=E5=9C=A8=E5=B7=B2=E6=A0=A1=E5=AF=B9=E7=9A=84=E7=9A=84=E5=8C=BB?= =?UTF-8?q?=E5=98=B1=E4=B8=AD=EF=BC=8C=E5=8F=AA=E6=9C=89=E6=A0=B8=E5=AF=B9?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E5=92=8C=E9=80=80=E5=9B=9E=EF=BC=8C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=89=A7=E8=A1=8C=E5=92=8C=E4=B8=8D=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/prescriptionList.vue | 133 ++++++++++++++++-- 1 file changed, 120 insertions(+), 13 deletions(-) diff --git a/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue b/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue index 5180fa2b8..39a24468f 100755 --- a/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue +++ b/healthlink-his-ui/src/views/inpatientNurse/medicalOrderProofread/components/prescriptionList.vue @@ -15,7 +15,6 @@ 全部 @@ -34,13 +33,9 @@ value-format="YYYY-MM-DD HH:mm:ss" style="width: 200px" /> - 查询 -
@@ -52,18 +47,10 @@ v-model="chooseAll" @change="handelSwitchChange" /> - - 核对通过 - - 退回
@@ -746,3 +733,123 @@ defineExpose({ background-color: #eef9fd !important; } + + + + + + encounterId: item.encounterId, + patientId: item.patientId, + accountId: item.accountId, + therapyEnum: item.therapyEnum, + exePerformRecordList: item.exePerformRecordList, +/** + * 执行医嘱 + */ +function handleExecute() { + let list = getSelectRows(); + if (list.length === 0) { + proxy.$message.warning('请先选择医嘱信息'); + return; + } + // 检查是否已有执行记录(已执行的不需要再执行) + let executedItems = list.filter(item => item.exePerformRecordList && item.exePerformRecordList.length > 0); + if (executedItems.length > 0) { + proxy.$message.warning('选中医嘱中包含已执行的医嘱,请取消勾选后重试'); + return; + } + const now = new Date(); + const exeDate = now.getFullYear() + '-' + + String(now.getMonth() + 1).padStart(2, '0') + '-' + + String(now.getDate()).padStart(2, '0') + ' ' + + String(now.getHours()).padStart(2, '0') + ':' + + String(now.getMinutes()).padStart(2, '0') + ':' + + String(now.getSeconds()).padStart(2, '0'); + const adviceExecuteDetailList = list.map(item => ({ + requestId: item.requestId, + encounterId: item.encounterId, + patientId: item.patientId, + accountId: item.accountId, + therapyEnum: item.therapyEnum, + adviceTable: item.requestTable, + executeTimes: [exeDate], + })); + adviceExecute({ + exeDate: exeDate, + adviceExecuteDetailList: adviceExecuteDetailList, + }).then((res) => { + if (res.code == 200) { + proxy.$modal.msgSuccess(res.msg); + handleGetPrescription(); + } + }); +} + +/** + * 不执行医嘱 + */ +function handleVoid() { + let list = getSelectRows(); + if (list.length === 0) { + proxy.$message.warning('请先选择医嘱信息'); + return; + } + // 检查是否已有执行记录(已执行的不能标记为不执行) + let executedItems = list.filter(item => item.exePerformRecordList && item.exePerformRecordList.length > 0); + if (executedItems.length > 0) { + proxy.$message.warning('选中医嘱中包含已执行的医嘱,请取消勾选后重试'); + return; + } + const now = new Date(); + const exeDate = now.getFullYear() + '-' + + String(now.getMonth() + 1).padStart(2, '0') + '-' + + String(now.getDate()).padStart(2, '0') + ' ' + + String(now.getHours()).padStart(2, '0') + ':' + + String(now.getMinutes()).padStart(2, '0') + ':' + + String(now.getSeconds()).padStart(2, '0'); + const adviceExecuteDetailList = list.map(item => ({ + requestId: item.requestId, + encounterId: item.encounterId, + patientId: item.patientId, + accountId: item.accountId, + therapyEnum: item.therapyEnum, + adviceTable: item.requestTable, + executeTimes: [exeDate], + })); + adviceNoExecute({ + exeDate: exeDate, + adviceExecuteDetailList: adviceExecuteDetailList, + }).then((res) => { + if (res.code == 200) { + proxy.$modal.msgSuccess(res.msg); + handleGetPrescription(); + } + }); +}