From 06997ad92d77b7dd8a002df16b5b0cadc528d5f5 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 24 八月 2023 15:28:52 +0800
Subject: [PATCH] 111
---
 h5_standard/src/views/workOrder/reportingForWork.vue |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/h5_standard/src/views/workOrder/reportingForWork.vue b/h5_standard/src/views/workOrder/reportingForWork.vue
index 256d10c..241b071 100644
--- a/h5_standard/src/views/workOrder/reportingForWork.vue
+++ b/h5_standard/src/views/workOrder/reportingForWork.vue
@@ -697,6 +697,7 @@
             getDeviceByCondition({ procedureId: res.procedureId })
                 .then(res1 => {
                     if (res1.code === 200) {
+                        if (res1.data && res1.data.length > 0)
                         deviceId.value = res1.data[0].id
                         from.deviceId = res1.data[0].id
                         from.deviceName = res1.data[0].name
--
Gitblit v1.9.3