|
@@ -1,20 +1,107 @@
|
|
|
<template>
|
|
|
<div class="layout_container">
|
|
|
- <el-dialog v-model="electronicPrescription.dialog" title="打印电子处方">
|
|
|
+ <DefaultTemplate>
|
|
|
+ <el-descriptions border title="基本信息">
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-user"></i>
|
|
|
+ 患者姓名
|
|
|
+ </template>
|
|
|
+ {{ huanZheXinXi.name }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-user"></i>
|
|
|
+ 住院次数
|
|
|
+ </template>
|
|
|
+ {{ huanZheXinXi.admissTimes }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-user-solid"></i>
|
|
|
+ 性别
|
|
|
+ </template>
|
|
|
+ {{ cptSex(huanZheXinXi.sex) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-house"></i>
|
|
|
+ 床号
|
|
|
+ </template>
|
|
|
+ {{ huanZheXinXi.bedNo }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-s-home"></i>
|
|
|
+ 病房
|
|
|
+ </template>
|
|
|
+ {{ huanZheXinXi.wardName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-date"></i>
|
|
|
+ 入院日期
|
|
|
+ </template>
|
|
|
+ {{ huanZheXinXi.admissDate }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-tickets"></i>
|
|
|
+ 身份
|
|
|
+ </template>
|
|
|
+ {{ huanZheXinXi.responceTypeName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-coin"></i>
|
|
|
+ 总费用
|
|
|
+ </template>
|
|
|
+ {{ huanZheXinXi.totalCharge }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template #label>
|
|
|
+ <i class="el-icon-coin"></i>
|
|
|
+ 余额
|
|
|
+ </template>
|
|
|
+ <span style="color: red">{{ huanZheXinXi.balance }}</span>
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </DefaultTemplate>
|
|
|
+ <ZyFeeTemplate>
|
|
|
+ <el-tag> 住院收费项目:合计【{{ zySum }}】</el-tag>
|
|
|
+ <el-table :data="zyXinXiList" height="100%" stripe>
|
|
|
+ <el-table-column label="项目名称" prop="itemName"></el-table-column>
|
|
|
+ <el-table-column label="收费编码" prop="chargeCodeMx"></el-table-column>
|
|
|
+ <el-table-column label="数量" prop="chargeQuantity"></el-table-column>
|
|
|
+ <el-table-column label="单价" prop="unitPrice"></el-table-column>
|
|
|
+ <el-table-column label="金额" prop="chargeFee"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </ZyFeeTemplate>
|
|
|
+
|
|
|
+ <print-outpatient-dzfp ref="printQrCodeRef" />
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ v-model="electronicPrescription.dialog"
|
|
|
+ title="打印电子处方"
|
|
|
+ destroy-on-close
|
|
|
+ >
|
|
|
<div style="text-align: center">
|
|
|
- <img
|
|
|
- id="dzfpQrCode"
|
|
|
- :src="`data:image/png;base64,${electronicPrescription.qrCode}`"
|
|
|
- />
|
|
|
+ <div>
|
|
|
+ <img
|
|
|
+ id="dzfpQrCode"
|
|
|
+ :src="`data:image/png;base64,${electronicPrescription.qrCode}`"
|
|
|
+ />
|
|
|
+ <div></div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<template #footer>
|
|
|
- <el-button v-print="'#dzfpQrCode'" type="primary" size="default"
|
|
|
+ <el-button v-print="printObj" type="primary" size="default"
|
|
|
>打印
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog v-model="saveStore.dialog" title="保存">
|
|
|
+ <el-dialog v-model="saveStore.dialog" title="保存" destroy-on-close>
|
|
|
<div style="color: red">收费日期: {{ huanZheXinXi.chargeDate }}</div>
|
|
|
<div v-html="saveStore.message" style="color: red" />
|
|
|
<PatientInfo />
|
|
@@ -76,73 +163,7 @@
|
|
|
<el-button @click="handleOnlyChargeRed"> 仅充红</el-button>
|
|
|
</header>
|
|
|
<div>
|
|
|
- <DefaultTemplate>
|
|
|
- <el-descriptions border title="基本信息">
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-user"></i>
|
|
|
- 患者姓名
|
|
|
- </template>
|
|
|
- {{ huanZheXinXi.name }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-user"></i>
|
|
|
- 住院次数
|
|
|
- </template>
|
|
|
- {{ huanZheXinXi.admissTimes }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-user-solid"></i>
|
|
|
- 性别
|
|
|
- </template>
|
|
|
- {{ cptSex(huanZheXinXi.sex) }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-house"></i>
|
|
|
- 床号
|
|
|
- </template>
|
|
|
- {{ huanZheXinXi.bedNo }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-s-home"></i>
|
|
|
- 病房
|
|
|
- </template>
|
|
|
- {{ huanZheXinXi.wardName }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-date"></i>
|
|
|
- 入院日期
|
|
|
- </template>
|
|
|
- {{ huanZheXinXi.admissDate }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-tickets"></i>
|
|
|
- 身份
|
|
|
- </template>
|
|
|
- {{ huanZheXinXi.responceTypeName }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-coin"></i>
|
|
|
- 总费用
|
|
|
- </template>
|
|
|
- {{ huanZheXinXi.totalCharge }}
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <i class="el-icon-coin"></i>
|
|
|
- 余额
|
|
|
- </template>
|
|
|
- <span style="color: red">{{ huanZheXinXi.balance }}</span>
|
|
|
- </el-descriptions-item>
|
|
|
- </el-descriptions>
|
|
|
- </DefaultTemplate>
|
|
|
+ <PatientInfo />
|
|
|
</div>
|
|
|
<div>
|
|
|
收费日期:
|
|
@@ -191,22 +212,7 @@
|
|
|
<el-button icon="Right" type="primary"></el-button>
|
|
|
</div>
|
|
|
<div class="layout_flex_1-x layout_el-table">
|
|
|
- <ZyFeeTemplate>
|
|
|
- <el-tag> 住院收费项目:合计【{{ zySum }}】</el-tag>
|
|
|
- <el-table :data="zyXinXiList" height="100%" stripe>
|
|
|
- <el-table-column label="项目名称" prop="itemName"></el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="收费编码"
|
|
|
- prop="chargeCodeMx"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="数量"
|
|
|
- prop="chargeQuantity"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column label="单价" prop="unitPrice"></el-table-column>
|
|
|
- <el-table-column label="金额" prop="chargeFee"></el-table-column>
|
|
|
- </el-table>
|
|
|
- </ZyFeeTemplate>
|
|
|
+ <ZyTale />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -215,6 +221,7 @@
|
|
|
v-model="huanZheFeiYongDrawer"
|
|
|
size="50%"
|
|
|
title="查看患者通过急门诊转入的费用"
|
|
|
+ destroy-on-close
|
|
|
>
|
|
|
<div class="layout_display_flex_y">
|
|
|
<div>
|
|
@@ -319,7 +326,7 @@
|
|
|
</el-drawer>
|
|
|
</template>
|
|
|
|
|
|
-<script setup name="TransferInOfExpenses">
|
|
|
+<script setup lang="ts">
|
|
|
import { ref } from "vue";
|
|
|
import {
|
|
|
baoCunHuanZheZhuYuanFeiYong,
|
|
@@ -340,25 +347,28 @@ import Dig from "@/utils/math";
|
|
|
import SystemDeptSelect from "@/components/system/dept-select/SystemDeptSelect.vue";
|
|
|
import { isDev } from "@/utils/public";
|
|
|
import dayjs from "dayjs";
|
|
|
-import { useDefaultTemplate } from "@/utils/cy-use/useDefaultTemplate";
|
|
|
-import { CyMessageBox } from "@/utils/cy-message-box/index";
|
|
|
+import { CyMessageBox } from "@/utils/cy-message-box";
|
|
|
import { useCompShallowRef } from "@/utils/useCompRef";
|
|
|
import { BizException, ExceptionEnum } from "@/utils/BizException";
|
|
|
+import { createReusableTemplate } from "@vueuse/core";
|
|
|
+import PrintOutpatientDzfp from "@/views/clinic/transfer-expenses/print-outpatient-dzfp.vue";
|
|
|
|
|
|
//查询条件
|
|
|
//住院号
|
|
|
const inpatientNo = ref(isDev ? "022271" : "");
|
|
|
//机制号
|
|
|
-const serialNo = ref(isDev ? 4744398 : null);
|
|
|
+const serialNo = ref(isDev ? 4744457 : null);
|
|
|
//收费代码
|
|
|
const chargeCodeMX = ref("");
|
|
|
// 住院次数
|
|
|
const admissTimes = ref("");
|
|
|
|
|
|
+const printQrCodeRef = useCompShallowRef(PrintOutpatientDzfp);
|
|
|
+
|
|
|
let serialNoTmp = null;
|
|
|
|
|
|
-const [DefaultTemplate, PatientInfo] = useDefaultTemplate();
|
|
|
-const [ZyFeeTemplate, ZyTale] = useDefaultTemplate();
|
|
|
+const [DefaultTemplate, PatientInfo] = createReusableTemplate();
|
|
|
+const [ZyFeeTemplate, ZyTale] = createReusableTemplate();
|
|
|
|
|
|
const huanZheXinXi = ref({
|
|
|
execUnit: "",
|
|
@@ -635,7 +645,7 @@ function handleOpenPrint(res) {
|
|
|
|
|
|
function handleQueryQrCode() {
|
|
|
getDzfpQrcodeBySerialNo(serialNo.value).then(res => {
|
|
|
- handleOpenPrint(res);
|
|
|
+ printQrCodeRef.value.print({ ...res, serialNo: serialNo.value });
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -645,6 +655,11 @@ async function handleOnlyChargeRed() {
|
|
|
saveStore.message = "仅充红,不会在录入住院费用了。";
|
|
|
saveStore.func = () => handleCorrectInvoice(false);
|
|
|
}
|
|
|
+
|
|
|
+const printObj = {
|
|
|
+ id: "#dzfpQrCode",
|
|
|
+ extraCss: `/static/transferin-print.css`,
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
-<style></style>
|
|
|
+<style lang="scss"></style>
|