eight
2025-04-15 49206ee0689d44367b9f5de3decf0c3ec02bfb51
src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -149,7 +149,7 @@
import {calGender, getBookBeginTime} from "@/utils";
import {DICT_TYPE} from "@/utils/dict";
import {tranlateDevState} from "@/utils/statusFormatter";
import {getCheckTypeName} from "../../../../utils/checkTypeFormatter";
import {getCheckTypeName, needAutoFeeConfirm} from "../../../../utils/checkTypeFormatter";
/** 设备领用 表单 */
defineComponent({ name: 'DevReadyPanel' })
@@ -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,
@@ -203,13 +201,6 @@
})
const displayBarCode = ref<string> ()
const needAutoFeeConfirm = (checkType: number | null | undefined) => {
  if (checkType == null)
    return false
  return checkTypeStore.getExpenseRecognition(checkType)
}
const getRentInfoByPatId = () => {
  const tempPatId = formData.value.patId;
@@ -255,12 +246,11 @@
      feeConfirm()
    }
    dialogVisible.value = false
    // 发送操作成功的事件
    emit('event_dev_ready')
    resetForm()
    getList()
    // 发送操作成功的事件
    emit('event_dev_ready')
    message.success(t('操作完成'))
  } finally {
    formLoading.value = false
@@ -312,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 方法,用于设置患者
@@ -367,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({
@@ -473,7 +463,7 @@
}
const getDisplayBarcode = (): string => {
  if (!formData.value.checkType)
  if (formData.value.checkType == null)
    return ""
  const displayBarcode: number[] = checkTypeStore.getCheckTypeDispBarCode(formData.value.checkType!)
@@ -485,7 +475,7 @@
}
const getBarcode = (): string => {
  if (!formData.value.checkType)
  if (formData.value.checkType == null)
    return ""
  const patSource = formData.value.patDetails?.source