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 99754bb7..ace8cdda 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(); // 更新标记