From 106d90222ad7fb031cae93876e904e9dc8e5ce7f Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 11 四月 2025 16:05:47 +0800
Subject: [PATCH] fix warnings

---
 src/views/ecg/doctor/components/DevReadyPanel.vue |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/views/ecg/doctor/components/DevReadyPanel.vue b/src/views/ecg/doctor/components/DevReadyPanel.vue
index 8c190ff..f846a23 100644
--- a/src/views/ecg/doctor/components/DevReadyPanel.vue
+++ b/src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -149,7 +149,7 @@
 import {calGender, getBookBeginTime} from "@/utils";
 import {DICT_TYPE} from "@/utils/dict";
 import {tranlateDevState} from "@/utils/statusFormatter";
-import {getCheckTypeName} from "../../../../utils/checkTypeFormatter";
+import {getCheckTypeName, needAutoFeeConfirm} from "../../../../utils/checkTypeFormatter";
 
 /** 璁惧棰嗙敤 琛ㄥ崟 */
 defineComponent({ name: 'DevReadyPanel' })
@@ -203,13 +203,6 @@
 })
 
 const displayBarCode = ref<string> ()
-
-const needAutoFeeConfirm = (checkType: number | null | undefined) => {
-  if (checkType == null)
-    return false
-
-  return checkTypeStore.getExpenseRecognition(checkType)
-}
 
 const getRentInfoByPatId = () => {
   const tempPatId = formData.value.patId;
@@ -473,7 +466,7 @@
 }
 
 const getDisplayBarcode = (): string => {
-  if (!formData.value.checkType)
+  if (formData.value.checkType == null)
     return ""
 
   const displayBarcode: number[] = checkTypeStore.getCheckTypeDispBarCode(formData.value.checkType!)
@@ -485,7 +478,7 @@
 }
 
 const getBarcode = (): string => {
-  if (!formData.value.checkType)
+  if (formData.value.checkType == null)
     return ""
 
   const patSource = formData.value.patDetails?.source

--
Gitblit v1.9.3