|
@@ -20,6 +20,10 @@
|
|
|
<span>{{ item.name }}</span>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ 医嘱号:
|
|
|
+ <el-input v-model="actOrderNo"
|
|
|
+ style="width: 120px"
|
|
|
+ onkeyup="this.value=this.value.replace(/[^\d]/g,'') "/>
|
|
|
频率:
|
|
|
<el-select v-model="pinLv" :disabled="zhuangTai === 8 || zhuangTai === 9" clearable filterable size="small"
|
|
|
style="width: 120px">
|
|
@@ -61,14 +65,18 @@
|
|
|
@currentChange="handleCurrentChange"
|
|
|
@sizeChange="handleSizeChange"
|
|
|
:height="windowSize.h / 1.5"
|
|
|
+ @rowContextmenu="clickToViewTheDoctorSOrderFee"
|
|
|
@selectionChange="huoQuXuanZhongDeShuJu"
|
|
|
ref="tableRef">
|
|
|
<el-table-column fixed="left" type="selection"></el-table-column>
|
|
|
- <el-table-column fixed="left" label="医嘱号" prop="actOrderNo" width="120">
|
|
|
+ <el-table-column fixed="left" label="医嘱号" prop="actOrderNo"
|
|
|
+ width="120" show-overflow-tooltip>
|
|
|
<template #default="scope">
|
|
|
<el-tag :type="getYiZhuFlag(scope.row.statusFlag)" effect="dark">
|
|
|
{{ scope.row.actOrderNo }}
|
|
|
</el-tag>
|
|
|
+ <span v-html="getFeeInfor(scope.row.actOrderNo)">
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="left" width="20">
|
|
@@ -154,12 +162,17 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+ <doctor-s-order-fee :data="chargeDetails.data"
|
|
|
+ v-if="chargeDetails.dialog"
|
|
|
+ :sum="chargeDetails.sum"
|
|
|
+ @close="chargeDetails.dialog = false"/>
|
|
|
</el-container>
|
|
|
</template>
|
|
|
|
|
|
<script name="YiZhuLuRuZhuJian" setup>
|
|
|
import {shortcuts} from '@/data/shortcuts'
|
|
|
import {
|
|
|
+ expensesForGettingADoctorSOrder,
|
|
|
huoQuYiZhuMingCheng,
|
|
|
huoQuYiZhuShuJu,
|
|
|
piLiangXiuGaiTingZhiShiJian,
|
|
@@ -168,11 +181,13 @@ import {
|
|
|
import {fuZhiYiZhu, huanZhePinLvData, huanZheXinXi, youWuXuanZheHuanZhe, zkList} from '../public-js/zhu-yuan-yi-sheng'
|
|
|
import {getDateRangeFormatDate, getFormatDatetime} from '@/utils/date'
|
|
|
import store from '@/store'
|
|
|
-import {stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
|
|
|
+import {stringIsBlank} from '@/utils/blank-utils'
|
|
|
import {getServerDateApi, getTheTransferList} from '@/api/public-api'
|
|
|
import router from '@/router'
|
|
|
import XcTable from "@/components/xc/xc-table/XcTable.vue";
|
|
|
import sleep from "@/utils/sleep";
|
|
|
+import DoctorSOrderFee from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/DoctorSOrderFee.vue";
|
|
|
+import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
|
|
|
const windowSize = computed(() => {
|
|
|
return store.state.app.windowSize
|
|
@@ -192,6 +207,8 @@ const pinLv = ref('')
|
|
|
let tableRef = $ref(null)
|
|
|
// 状态
|
|
|
const zhuangTai = ref(0)
|
|
|
+// 医嘱号
|
|
|
+let actOrderNo = $ref('')
|
|
|
// 分页
|
|
|
const yiZhuPage = ref({
|
|
|
currentPage: 1,
|
|
@@ -243,6 +260,7 @@ const chaXunYiZhuClick = (total) => {
|
|
|
frequCode: pinLv.value,
|
|
|
orderName: orderName,
|
|
|
zhuangTai: zhuangTai.value,
|
|
|
+ actOrderNo: actOrderNo
|
|
|
}
|
|
|
huoQuYiZhuShuJu(data)
|
|
|
.then((res) => {
|
|
@@ -380,6 +398,46 @@ const dianJiFuZhuXuanZhongYiZhu = () => {
|
|
|
fuZhiYiZhu.value = xuanZhongDeShuJu.value
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * 右键点击查看医嘱产生的费用
|
|
|
+ * @param val
|
|
|
+ */
|
|
|
+let doctorSOrderFee = $ref({
|
|
|
+ data: {},
|
|
|
+ problem: {},
|
|
|
+ totalCost: {}
|
|
|
+})
|
|
|
+let chargeDetails = $ref({
|
|
|
+ dialog: false,
|
|
|
+ data: [],
|
|
|
+ sum: {}
|
|
|
+})
|
|
|
+const clickToViewTheDoctorSOrderFee = (val) => {
|
|
|
+ chargeDetails.data = doctorSOrderFee.data[val.actOrderNoStr]
|
|
|
+ if (chargeDetails.data) {
|
|
|
+ chargeDetails.sum = doctorSOrderFee.totalCost[val.actOrderNoStr]
|
|
|
+ chargeDetails.dialog = true
|
|
|
+ } else {
|
|
|
+ BizException(ExceptionEnum.MESSAGE_ERROR, '该医嘱还没有产生费用')
|
|
|
+ }
|
|
|
+}
|
|
|
+const getFeeInfor = (actOrderNo) => {
|
|
|
+ try {
|
|
|
+ let problem = doctorSOrderFee.problem[actOrderNo]
|
|
|
+ if (typeof problem === 'undefined') {
|
|
|
+ problem = ''
|
|
|
+ } else {
|
|
|
+ problem = '有' + problem
|
|
|
+ }
|
|
|
+
|
|
|
+ return `<br>金额:${doctorSOrderFee.totalCost[actOrderNo].sum} 元,
|
|
|
+ ${doctorSOrderFee.totalCost[actOrderNo].amount}条,
|
|
|
+ <br/>${problem}`
|
|
|
+ } catch (e) {
|
|
|
+ return ""
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
await sleep(200)
|
|
|
// addYiZhuClick()
|
|
@@ -397,6 +455,11 @@ onActivated(() => {
|
|
|
watch(
|
|
|
() => huanZheXinXi.value,
|
|
|
() => {
|
|
|
+ expensesForGettingADoctorSOrder(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes).then((res) => {
|
|
|
+ // console.log(res)
|
|
|
+ doctorSOrderFee = res
|
|
|
+ })
|
|
|
+
|
|
|
getServerDateApi().then((res) => {
|
|
|
if (dateRange.value === null) {
|
|
|
dateRange.value = []
|