From 07f97d4193385f776396d09a35362e7a37b1a867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BD=97?= Date: Sun, 31 May 2026 02:51:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(#615):=20=E8=AF=B7=E4=BF=AE=E5=A4=8D=20Bug?= =?UTF-8?q?=20#615=EF=BC=9A=E3=80=90=E4=BD=8F=E9=99=A2=E5=8C=BB=E7=94=9F?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E7=AB=99-=E4=B8=B4=E5=BA=8A=E5=8C=BB?= =?UTF-8?q?=E5=98=B1=E3=80=91=E5=BD=95=E5=85=A5=E2=80=9C=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E2=80=9D=E5=8C=BB=E5=98=B1=E6=97=B6=EF=BC=8C=E3=80=90=E7=94=A8?= =?UTF-8?q?=E8=8D=AF=E9=A2=91=E6=AC=A1=E3=80=91=E5=AD=97=E6=AE=B5=E8=A2=AB?= =?UTF-8?q?=E7=BD=AE=E7=81=B0=E9=94=81=E6=AD=BB=E4=B8=BA=E2=80=9C=E7=AB=8B?= =?UTF-8?q?=E5=8D=B3=E2=80=9D=E4=B8=94=E6=97=A0=E6=B3=95=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由 AI Agent (zhaoyun) 自动修复,请查看 diff 确认变更内容。 --- .../home/components/order/OrderForm.vue | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/OrderForm.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/OrderForm.vue index 80d3f8b50..c684db759 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/OrderForm.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/OrderForm.vue @@ -642,16 +642,16 @@ onMounted(() => { }); // Bug #589: 出院带药不自动设置频次为ST,由医生手动选择 if (props.row.therapyEnum == '2' && !props.row.rateCode && props.row.adviceType != 7) { - setRateCodeToST(); + setRateCodeToONCE(); } }); watch( () => props.row.therapyEnum, (newVal) => { - // Bug #589: 出院带药不自动设置频次为ST,由医生手动选择 + // Bug #589/#615: 出院带药不自动设置频次,临时医嘱默认频次为ONCE(临时一次) if (newVal == '2' && props.row.adviceType != 7) { - setRateCodeToST(); + setRateCodeToONCE(); } else if (newVal == '1') { props.row.rateCode = ''; props.row.rateCode_dictText = ''; @@ -659,15 +659,21 @@ watch( } ); -const setRateCodeToST = () => { +const setRateCodeToONCE = () => { if (Array.isArray(props.config.rateCode)) { - const stOption = props.config.rateCode.find((item) => item.value === 'ST'); - if (stOption) { - props.row.rateCode = 'ST'; - props.row.rateCode_dictText = 'ST ' + stOption.label; + const onceOption = props.config.rateCode.find((item) => item.value === 'ONCE'); + if (onceOption) { + props.row.rateCode = 'ONCE'; + props.row.rateCode_dictText = 'ONCE ' + onceOption.label; } else { - props.row.rateCode = 'ST'; - props.row.rateCode_dictText = 'ST 立即'; + const stOption = props.config.rateCode.find((item) => item.value === 'ST'); + if (stOption) { + props.row.rateCode = 'ST'; + props.row.rateCode_dictText = 'ST ' + stOption.label; + } else { + props.row.rateCode = 'ST'; + props.row.rateCode_dictText = 'ST 立即'; + } } } };