From 1446994d504819c367e1ff667360eadb314f9ac6 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期日, 18 十月 2026 16:52:18 +0800
Subject: [PATCH] 修改了诊室工号
---
src/views/ecg/appointment/CheckItemPanel.vue | 31 ++++++++++++++++++++++---------
1 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/src/views/ecg/appointment/CheckItemPanel.vue b/src/views/ecg/appointment/CheckItemPanel.vue
index 86355cb..63c379c 100644
--- a/src/views/ecg/appointment/CheckItemPanel.vue
+++ b/src/views/ecg/appointment/CheckItemPanel.vue
@@ -9,7 +9,7 @@
import { cloneDeep } from 'lodash-es'
import { hiprint } from 'vue-plugin-hiprint'
import { calGender, getBookBeginTime } from '@/utils'
-import { getCheckTypeName } from '@/utils/checkTypeFormatter'
+import { getCheckTypeName, getCheckTypeSeqPrefix } from '@/utils/checkTypeFormatter'
defineComponent({
name: 'CheckItemPanel'
@@ -29,7 +29,21 @@
const checkTypeTimeslotList = ref<QueueSequenceVO>()
const bookTimeSlotVip = ref<number>()
-const bookSeqNum = ref<number>()
+/**
+ * 鏈绛惧埌鎷垮埌鐨勬帓闃熷彿锛堝彿缁熶竴鍚庣敱鍚庣鍐欏叆 queue.seq_num锛屽苟鐢辩‘璁ゆ帴鍙g洿鎺ヨ繑鍥烇級銆�
+ *
+ * 璇存槑锛氬彉閲忓悕浠� bookSeqNum 鏀逛负 seqNum 鈥斺�� 鍙峰凡缁忕粺涓�锛岀郴缁熼噷涓嶅啀鏈� book_seq_num 杩欎竴璺��
+ * 棰勭害瀵硅薄涓婄殑 `bookSeqNum` 瀛楁鍚嶄繚鐣欙紙鎺ュ彛瀛楁涓嶅姩锛夛紝鍊兼潵婧愪篃宸叉敼涓� queue.seq_num锛�
+ * 浠呭湪"璇ラ绾﹀凡缁忔帓杩囬槦"鏃剁敤浜庡洖鏄俱��
+ */
+const seqNum = ref<number>()
+
+/** 鎺掗槦鍙锋樉绀烘枃妗堬細妫�鏌ラ」鐩墠缂� + 鍙凤紙鍙锋寜妫�鏌ラ」鐩悇鑷紪鍙凤紝蹇呴』闈犲墠缂�鍖哄垎锛� */
+const seqNumText = computed(() => {
+ const num = seqNum.value ?? props.appointment?.bookSeqNum
+ if (num === undefined || num === null || num === '') return ''
+ return `${getCheckTypeSeqPrefix(props.appointment?.bookCheckType)}${num}`
+})
const _confirmAppointment = async () => {
if (!isCurrentDay(props.appointment.bookDate)) {
@@ -44,7 +58,7 @@
tempAppointment.bookTimeslot = bookTimeSlotVip.value
}
const data = await AppointmentApi.confirmAppointmentVip(tempAppointment)
- bookSeqNum.value = data
+ seqNum.value = data
// 鍙戦�佹搷浣滄垚鍔熺殑浜嬩欢
emit('event_appoint_confirm')
_printNote()
@@ -79,7 +93,7 @@
tempAppointment.bookTimeslot = bookTimeSlotVip.value
}
const data = await AppointmentApi.confirmAppointmentVip(tempAppointment)
- bookSeqNum.value = data
+ seqNum.value = data
// 鍙戦�佹搷浣滄垚鍔熺殑浜嬩欢
emit('event_appoint_confirm')
_printNote()
@@ -100,7 +114,7 @@
})
} else {
const data = await AppointmentApi.confirmAppointment(props.appointment)
- bookSeqNum.value = data
+ seqNum.value = data
// 鍙戦�佹搷浣滄垚鍔熺殑浜嬩欢
emit('event_appoint_confirm')
// _printNote()
@@ -206,15 +220,14 @@
}
})
- // 鍙充晶 Pane 杈撳嚭
- const _bookSeqNum = bookSeqNum.value ?? props.appointment?.bookSeqNum
+ // 鍙充晶 Pane 杈撳嚭锛氭帓闃熷彿锛堝墠缂� + 鍙凤紝涓庡睆涓婃樉绀轰竴鑷达級
panel.addPrintText({
options: {
width: 130,
height: 20,
top: 7,
left: 170,
- title: '' + _bookSeqNum,
+ title: seqNumText.value,
textAlign: 'center',
fontSize: 30,
fontFamily: '寰蒋闆呴粦',
@@ -268,7 +281,7 @@
:disabled="item.queueVipNo === item.queueVipFull"
/>
</el-select>
- {{ bookSeqNum ?? appointment.bookSeqNum }}
+ {{ seqNumText }}
<el-divider />
<el-button
@click="_confirmAppointment"
--
Gitblit v1.9.3