eight
2024-10-11 f1d92d5c904f7d33a34abb651185b1d5034bdf02
src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -1,5 +1,6 @@
<template>
  当前患者: {{patient?.patId}} {{isStringEmpty(patient?.patName)?'无':patient.patName}}
    当前患者: {{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