From 8ce35ee72e52f51f93e61d2dec6084c3cfd397b6 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 18 十二月 2024 15:31:36 +0800
Subject: [PATCH] 设备查询完善

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

diff --git a/src/views/ecg/doctor/components/DevReadyPanel.vue b/src/views/ecg/doctor/components/DevReadyPanel.vue
index 6f6424a..66c0701 100644
--- a/src/views/ecg/doctor/components/DevReadyPanel.vue
+++ b/src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -15,7 +15,7 @@
       </el-form-item>
       <el-form-item label="鎮h�呯紪鍙�" prop="patId">
         <el-input v-model="formData.patId" placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�" @input="getRentInfoByPatId" />
-        <Barcode v-if="getDisplayBarcode()" :value="getDisplayBarcode()" :width=100 />
+        <Barcode v-if="displayBarCode" :value="displayBarCode" :width=100 />
         <el-button @click="copyBarcode()">澶嶅埗</el-button>
       </el-form-item>
       <el-form-item label="鎮h�呭悕绉�" prop="patName">
@@ -54,12 +54,12 @@
     </el-form>
     <el-button @click="submitForm" type="primary" :disabled="formLoading">棰嗙敤瀹屾垚</el-button>
     <el-checkbox style="margin-left:10px" label="鑷姩&nbsp;" v-model="autoPrint" />
-    <el-button @click="printBill(formData.patId, formData.checkType)">鎵撳嵃灏忕エ</el-button>
-    <el-button @click="printBill(formData.patId, formData.checkType, 8)">鎵撳嵃灏忕エ2</el-button>
+    <el-button @click="printBill(formData.patId!, formData.checkType!)">鎵撳嵃灏忕エ</el-button>
+    <el-button @click="printBill(formData.patId!, formData.checkType!, 8)">鎵撳嵃灏忕エ2</el-button>
     <el-button @click="cancelReady"  :disabled="formLoading">鏀惧純棰嗙敤</el-button>
     <el-button @click="resetForm()">閲� 缃�</el-button>
-    <el-button @click="feeConfirm"  :disabled="formLoading">纭垂</el-button>
-    <el-button @click="feeCancel"  :disabled="formLoading">鍙栨秷纭垂</el-button>
+    <el-button v-if="formData.checkType && checkTypeStore.getExpenseRecognition(formData.checkType)" @click="feeConfirm"  :disabled="formLoading">纭垂</el-button>
+    <el-button v-if="formData.checkType && checkTypeStore.getExpenseRecognition(formData.checkType)" @click="feeCancel"  :disabled="formLoading">鍙栨秷纭垂</el-button>
 
   <!-- 鍖荤敓瑁呮満鍒楄〃 -->
   <ContentWrap>
@@ -209,6 +209,8 @@
   purchaseDate: 0,
   state: 0,
 })
+
+const displayBarCode = ref<string> ()
 
 const getRentInfoByPatId = () => {
   const tempPatId = formData.value.patId;
@@ -479,14 +481,15 @@
     return ""
 
   if (1 === formData.value.patSrc || 2 === formData.value.patSrc)
-    return formData.value.applyNo
+    return formData.value.applyNo??""
   else if (3 === formData.value.patSrc || 4 === formData.value.patSrc)
-    return formData.value.episodeId
+    return formData.value.episodeId??""
 
   return ""
 }
 
 const copyBarcode = async () => {
+  displayBarCode.value = getDisplayBarcode()
   await navigator.clipboard.writeText( getBarcode() );
 }
 

--
Gitblit v1.9.3