eight
2025-04-11 e89834c34e8f987cd59a167aa8c8369a731ef44c
根据检查类型 , 自动确费
已修改2个文件
21 ■■■■ 文件已修改
src/views/ecg/devrent/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/components/DevReadyPanel.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/devrent/index.vue
@@ -102,6 +102,11 @@
      <el-table-column label="设备编号" align="center" prop="devId" />
      <el-table-column label="患者编号" align="center" prop="patId" />
      <el-table-column label="患者名称" align="center" prop="patName" />
      <el-table-column label="检查类型" align="center" prop="checkType" width="100px">
        <template #default="scope">
          <span>{{checkTypeStore.getCheckTypeName(scope.row.checkType)}}</span>
        </template>
      </el-table-column>
      <el-table-column label="检查状态" align="center" prop="state" width="90px">
        <template #default="scope">
          <span>{{tranlateCheckState(scope.row.state)}}</span>
@@ -174,6 +179,7 @@
import { DevRentApi, DevRentVO } from '@/api/ecg/devrent'
import DevRentForm from './DevRentForm.vue'
import {tranlateCheckState} from "../../../utils/statusFormatter";
import {useCheckTypeStore} from "@/store/modules/checkType";
/** 装机拆机 列表 */
defineOptions({ name: 'DevRent' })
@@ -181,6 +187,8 @@
const message = useMessage() // 消息弹窗
const { t } = useI18n() // 国际化
const checkTypeStore = useCheckTypeStore()
const loading = ref(true) // 列表的加载中
const list = ref<DevRentVO[]>([]) // 列表的数据
const total = ref(0) // 列表的总页数
src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -55,7 +55,6 @@
    <el-button @click="submitForm" type="primary" :disabled="formLoading">领用完成</el-button>
    <el-checkbox style="margin-left:10px" label="自动&nbsp;" v-model="autoPrint" />
    <el-button @click="printBill(formData.patId!, formData.checkType!)">打印小票</el-button>
    <el-button @click="printBill(formData.patId!, formData.checkType!, 8)">打印小票2</el-button>
    <el-button @click="cancelReady"  :disabled="formLoading">放弃领用</el-button>
    <el-button @click="resetForm()">重 置</el-button>
    <el-button v-if="formData.checkType && checkTypeStore.getExpenseRecognition(formData.checkType)" @click="feeConfirm"  :disabled="formLoading">确费</el-button>
@@ -243,8 +242,12 @@
    await DevRentApi.devReady(data)
    if (autoPrint.value && data.patId && data.checkType)
      printBill( data.patId, data.checkType)
    if (autoPrint.value && data.patId && data.checkType) {
      printBill(data.patId, data.checkType)
    }
    // 自动确费
    feeConfirm()
    dialogVisible.value = false
    // 发送操作成功的事件
@@ -387,8 +390,8 @@
  panel.addPrintText({ options: { width: 140, height: 22, top: 86, left: 20, title: curAppointment.episodeId, textType: 'barcode' } });
//打印
  if (undefined === printMode)
    hiprintTemplate.print2([{},{},{}]); // 可以传 [定位参数]  http://https://ccsimple.github.io/sv-print-docs/config/template.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AE%BE%E8%AE%A1%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B
  if (printMode == null)
    hiprintTemplate.print2([{},{},{}]); // 预览方式 可以传 [定位参数]  http://https://ccsimple.github.io/sv-print-docs/config/template.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AE%BE%E8%AE%A1%E4%BD%BF%E7%94%A8%E7%A4%BA%E4%BE%8B
  else
    hiprintTemplate.print([{},{},{}]);
}