eight
2025-04-15 49206ee0689d44367b9f5de3decf0c3ec02bfb51
src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -166,15 +166,13 @@
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
const dialogVisible = ref(false) // 弹窗的是否展示
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
const autoPrint = ref<boolean>(true);
const checkTypeStore = useCheckTypeStore()
const formData = ref<Partial<DevRentVO>>({
const formData = ref<DevRentVO>({
  id: undefined,
  devId: undefined,
  patId: undefined,
@@ -248,12 +246,11 @@
      feeConfirm()
    }
    dialogVisible.value = false
    // 发送操作成功的事件
    emit('event_dev_ready')
    resetForm()
    getList()
    // 发送操作成功的事件
    emit('event_dev_ready')
    message.success(t('操作完成'))
  } finally {
    formLoading.value = false
@@ -305,7 +302,7 @@
  formData.value.patId = queueVO?.patId
  formData.value.patName = queueVO?.patName
  formData.value.checkType = queueVO?.bookCheckType
  getFreeRentInfo(formData.value)
  getFreeRentInfo(formData.value)  // 待检查的信息  @ dev_rent 表
  copyBarcode()
}
defineExpose({ setPatient }) // 提供 setPatient 方法,用于设置患者
@@ -360,7 +357,7 @@
const printBill = async (patId: string, checkType: number, printMode?: number) => {
  const curAppointment: AppointmentVO = await AppointmentApi.getCurAppointmentByPatIdAndCheckType( patId, checkType )
  console.info( curAppointment )
  //console.info( curAppointment )
// 引入后使用示例
  hiprint.init({