From 20a372268b165730bff046b0adc276669657daad Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Wed, 20 May 2026 11:01:16 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#559:=20=E6=A0=B9=E5=9B=A0+?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B9=E6=A1=88=E6=91=98=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/inpatientDoctor/home/components/order/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/index.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/index.vue index b8ab7936..cd4daada 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/index.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/index.vue @@ -640,6 +640,10 @@ function getListInfo(addNewRow) { }; }) .sort((a, b) => { + // 没有 requestTime 的项(新增/组套添加)排在最前面 + if (!a.requestTime && !b.requestTime) return 0; + if (!a.requestTime) return -1; + if (!b.requestTime) return 1; return new Date(b.requestTime) - new Date(a.requestTime); }); getGroupMarkers(); // 更新标记