|
@@ -4,7 +4,7 @@
|
|
|
<el-button icon="el-icon-thumb" type="success" @click="preCalculateCost">获取费用</el-button>
|
|
|
<el-button icon="el-icon-upload2" type="success" @click="uploadFees">费用上传</el-button>
|
|
|
<el-button icon="el-icon-remove-outline" type="warning" :disabled="!isAdmin" @click="cancelFees">取消上传</el-button>
|
|
|
- <el-button type="primary" @click="weiGuiTuiFeiFenXiDialogOpen">违规费用分析</el-button>
|
|
|
+ <el-button type="primary" @click="weiGuiTuiFeiFenXiDialogOpen(false)">违规费用分析</el-button>
|
|
|
<el-popover placement="left" width="730" trigger="click">
|
|
|
<template #reference>
|
|
|
<el-button type="warning" icon="el-icon-circle-close" plain>错误信息 ({{ errorMessages.length }}) </el-button>
|
|
@@ -103,7 +103,7 @@
|
|
|
|
|
|
<script>
|
|
|
import store from '@/store'
|
|
|
-import { computed, onActivated, onDeactivated, onMounted, reactive, ref, watchEffect } from 'vue'
|
|
|
+import { computed, onActivated, onDeactivated, onMounted, reactive, ref, watch, watchEffect } from 'vue'
|
|
|
import { fetchNotUploadedFees } from '@/api/yibao/patient'
|
|
|
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus'
|
|
|
import { nullPatient } from '@/utils/validate'
|
|
@@ -175,17 +175,22 @@ export default {
|
|
|
store.commit('app/setCurrentPageName', '')
|
|
|
})
|
|
|
|
|
|
- watchEffect(() => {
|
|
|
- if (actived.value) {
|
|
|
- if (patient.value.inpatientNo) {
|
|
|
- fetchProjectFees()
|
|
|
- fetchMedicineFees()
|
|
|
- weiGuiTuiFeiFenXiDialogOpen()
|
|
|
- } else {
|
|
|
- clearFees()
|
|
|
+ watch(
|
|
|
+ () => patient.value.inpatientNo,
|
|
|
+ () => {
|
|
|
+ if (actived.value) {
|
|
|
+ if (patient.value.inpatientNo) {
|
|
|
+ fetchProjectFees()
|
|
|
+ fetchMedicineFees()
|
|
|
+ console.log(1)
|
|
|
+ weiGuiTuiFeiFenXiDialogOpen(true)
|
|
|
+ } else {
|
|
|
+ clearFees()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
+ )
|
|
|
+
|
|
|
const errorMessages = ref([])
|
|
|
const clearErrorMessages = () => {
|
|
|
errorMessages.value = []
|
|
@@ -235,6 +240,7 @@ export default {
|
|
|
proofread(data)
|
|
|
.then((res) => {
|
|
|
percentage.value = 0
|
|
|
+ patient.value.chargeYb = res.fundPay
|
|
|
showProofread.value = false
|
|
|
ElMessageBox.alert('患者【' + patient.value.name + '】院内总费用与医保中心总费用一致,医保报销金额为:¥ ' + res.fundPay + '。', '成功', {
|
|
|
type: 'success',
|
|
@@ -382,10 +388,11 @@ export default {
|
|
|
|
|
|
const weiGui = ref()
|
|
|
|
|
|
- const weiGuiTuiFeiFenXiDialogOpen = () => {
|
|
|
+ const weiGuiTuiFeiFenXiDialogOpen = (val) => {
|
|
|
+ console.log(val)
|
|
|
weiGuiTuiFeiInit.value += 1
|
|
|
weiGuiJiBenXinXi.value.deptCode = ''
|
|
|
- weiGuiJiBenXinXi.value.inpatientNo = typeof patient.value.inpatientNo === 'undefined' ? '' : patient.value.inpatientNo
|
|
|
+ weiGuiJiBenXinXi.value.inpatientNo = val ? patient.value.inpatientNo : ''
|
|
|
}
|
|
|
|
|
|
const weiGuiTuiFeiOpenDialog = (val) => {
|