From f1d92d5c904f7d33a34abb651185b1d5034bdf02 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期五, 11 十月 2024 11:50:00 +0800
Subject: [PATCH] update

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

diff --git a/src/views/ecg/doctor/components/DevReadyPanel.vue b/src/views/ecg/doctor/components/DevReadyPanel.vue
index dad4f57..e3329bb 100644
--- a/src/views/ecg/doctor/components/DevReadyPanel.vue
+++ b/src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -1,5 +1,6 @@
 <template>
-  褰撳墠鎮h��: {{patient?.patId}} {{isStringEmpty(patient?.patName)?'鏃�':patient.patName}}
+    褰撳墠鎮h��: {{patient?.patId}} {{isStringEmpty(patient?.patName)?'鏃�':patient.patName}}
+    <Qrcode :text="patient?.patId" logo="/logo.gif" width=100 />
     <el-form
       ref="formRef"
       :model="formData"
@@ -14,7 +15,7 @@
         <el-input v-model="formData.devId" placeholder="璇疯緭鍏ヨ澶囩紪鍙�" @input="getDevInfo"/>
       </el-form-item>
       <el-form-item label="璁惧鎻忚堪" prop="">
-        {{deviceInfo.brand + "&nbsp;&nbsp;" + deviceInfo.model}}
+        {{deviceInfo.brand + "&nbsp;&nbsp;" + deviceInfo.model + " " + deviceInfo.state}}
       </el-form-item>
       <el-form-item label="瑁呮満鏃堕棿" prop="rentTime">
         <el-date-picker
@@ -172,7 +173,7 @@
   brand: '',
   model: '',
   purchaseDate: 0,
-  lost: 0,
+  state: 0,
 })
 
 /** 鎻愪氦琛ㄥ崟 */
@@ -204,11 +205,11 @@
 const cancelInstall = async () => {
   const data = formData.value as unknown as DevRentVO
   if (formData.value.id === null || formData.value.id === undefined) {
-    const result = await DevRentApi.devCancel(data)
+    const result = await DevRentApi.devReadyCancel(data)
     formData.value.id = result
     message.success(t('鎿嶄綔鎴愬姛'))
   } else {
-    await DevRentApi.devCancel(data)
+    await DevRentApi.devReadyCancel(data)
     message.success(t('鎿嶄綔鎴愬姛'))
   }
   // 鍙戦�佹搷浣滄垚鍔熺殑浜嬩欢
@@ -236,6 +237,7 @@
   deviceInfo.value.category = ''
   deviceInfo.value.brand = ''
   deviceInfo.value.model = ''
+  deviceInfo.value.state = 0
 }
 
 const setPatient = (queueVO: QueueVO | undefined) => {
@@ -296,6 +298,7 @@
   deviceInfo.value.category = ''
   deviceInfo.value.brand = ''
   deviceInfo.value.model = ''
+  deviceInfo.value.state = 0
   if (isStringEmpty(formData.value.devId))
     return
 

--
Gitblit v1.9.3