From d79ce11fcd47db138764557d214f4ea2169fb90a Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 20 六月 2025 18:05:38 +0800 Subject: [PATCH] 维护 --- src/views/ecg/appointment/AppointmentConfirm.vue | 65 ++++++++++++++++++++++---------- 1 files changed, 44 insertions(+), 21 deletions(-) diff --git a/src/views/ecg/appointment/AppointmentConfirm.vue b/src/views/ecg/appointment/AppointmentConfirm.vue index 93a42f6..2ab1298 100644 --- a/src/views/ecg/appointment/AppointmentConfirm.vue +++ b/src/views/ecg/appointment/AppointmentConfirm.vue @@ -1,12 +1,17 @@ <template> <div style="display: flex; justify-content: center; "> + <el-form-item label="鎮h�呯紪鍙�" > <el-input v-model="queryParams.patId" placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�" clearable @input="searchBookInfo" /> </el-form-item> </div> + <div style="color: #ff0000; text-align: center; font-size: 12px; margin-top: 4px;"> + <i class="el-icon-warning" style="margin-right: 4px;"></i> + 鏀寔韬唤璇佸彿锛岀敵璇峰崟鍙凤紝灏辫瘖娴佹按鍙凤紝浣忛櫌鍙� + </div> <div style="display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 20px"> - <div v-for="_appointment in appointmentVOList" :key="_appointment.applyNo"> + <div v-for="(_appointment, index) in appointmentVOList" :key="index"> <CheckItemPanel :appointment="_appointment" @event_appoint_confirm="onEventAppointConfirm"/> </div> </div> @@ -23,7 +28,19 @@ <el-form-item label="鎮h�呭鍚�" prop="patName"> <el-input v-model="formData.patName" placeholder="鎮h�呭鍚�" readonly /> </el-form-item> - <el-form-item label="鎮h�呮�у埆" prop="patGender"> + + <el-form-item label="鎮h�呯敓鏃�" prop="patBirthday"> + <el-date-picker + v-model="formData.patBirthday" + type="date" + value-format="x" + placeholder="閫夋嫨鎮h�呯敓鏃�" + readonly + /> + </el-form-item> + </div> + <div class="form-row"> + <el-form-item label="鎮h�呮�у埆" prop="patGender"> <el-radio-group v-model="formData.patGender" readonly> <el-radio v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_USER_SEX)" @@ -33,14 +50,16 @@ </el-radio> </el-radio-group> </el-form-item> - <el-form-item label="鎮h�呯敓鏃�" prop="patBirthday"> - <el-date-picker - v-model="formData.patBirthday" - type="date" - value-format="x" - placeholder="閫夋嫨鎮h�呯敓鏃�" - readonly - /> + + <el-form-item label="鏄惁澶氳��" prop="tolerance"> + <el-radio-group v-model="formData.tolerance" readonly> + <el-radio + v-for="dict in getIntDictOptions(DICT_TYPE.ecg_tolerance)" + :key="dict.value" + :value="dict.value"> + {{ dict.label }} + </el-radio> + </el-radio-group> </el-form-item> </div> <div class="form-row"> @@ -87,13 +106,11 @@ <script setup lang="ts"> import {DICT_TYPE, getIntDictOptions} from '@/utils/dict' import { AppointmentApi, AppointmentVO } from '@/api/ecg/appointment' -import {useCheckTypeStore} from "@/store/modules/checkType"; import CheckItemPanel from "@/views/ecg/appointment/CheckItemPanel.vue"; +import {getCheckTypeName} from "@/utils/checkTypeFormatter"; /** 棰勭害纭 琛ㄥ崟 */ defineOptions({ name: 'AppointmentConfirm' }) - -const checkTypeStore = useCheckTypeStore(); const queryParams = reactive({ patId: '' @@ -104,9 +121,11 @@ const formData = ref<AppointmentVO>({ id: 0, applyNo: "", + episodeId: "", patSrc: 0, patId: "", patName: "", + tolerance:0, patGender: 1, // 1 鐢� 2 濂� patBirthday: new Date(), patMobile: "", @@ -118,26 +137,29 @@ patWardCode: "", patWardDesc: "", patBedNo: "", - bookId: "", bookTime: new Date(), bookDate: new Date(), bookTimeslot: 9301030, - bookCheckType: checkTypeStore.getCheckTypeName(100), + bookCheckType: getCheckTypeName(100), paid: 0, + bookSeqNum: 0, }) const formRef = ref() // 琛ㄥ崟 Ref const searchBookInfo = async () => { resetForm() - if (null === queryParams.patId || "" === queryParams.patId) + if (null === queryParams.patId || "" === queryParams.patId.trim()) return - const data = await AppointmentApi.queryAndCreateAppointmentByPatId(queryParams.patId) // 瀵瑰簲鏁版嵁搴撲腑 pat_id + const _patId = queryParams.patId.trim() + console.warn("===" + _patId + "===") + + const data = await AppointmentApi.queryAndCreateAppointmentByPatId(_patId) // 瀵瑰簲鏁版嵁搴撲腑 pat_id console.info( data ) - appointmentVOList.value = data if (null !== data && data.length > 0) { formData.value = data[0] + appointmentVOList.value = data console.info( formData.value ) return } @@ -155,9 +177,11 @@ formData.value = { id: 0, applyNo: "", + episodeId: "", patSrc: 0, patId: "", patName: "", + tolerance:0, patGender: 1, // 1 鐢� 2 濂� patBirthday: new Date(), patMobile: "", @@ -169,13 +193,12 @@ patWardCode: "", patWardDesc: "", patBedNo: "", - bookId: "", bookTime: new Date(), bookDate: new Date(), bookTimeslot: 9301030, - bookCheckType: checkTypeStore.getCheckTypeName(100), + bookCheckType: getCheckTypeName(100), paid: 0, - bookSeqNum: 0 + bookSeqNum: 0, } formRef.value?.resetFields() } -- Gitblit v1.9.3