|
@@ -3,7 +3,7 @@
|
|
|
<el-main>
|
|
|
<el-button type="danger" @click="xiangMuTuiFeiClick" icon="el-icon-delete-solid">退费</el-button>
|
|
|
<el-button type="primary" @click="weiGuiTuiFeiFenXiDialogOpen">违规费用分析</el-button>
|
|
|
- <el-table :data="cptTableDataHuanZheFeiYong" :height="windowHeigth - 170" @selection-change="handleSelectionChange" highlight-current-row stripe>
|
|
|
+ <el-table :data="cptTableDataHuanZheFeiYong" :height="windowHeigth / 1.35" @selection-change="handleSelectionChange" highlight-current-row stripe>
|
|
|
<el-table-column type="selection"></el-table-column>
|
|
|
<el-table-column label="流水号" prop="detailSn" width="70px"></el-table-column>
|
|
|
<el-table-column label="医嘱号" prop="orderNo" width="70px"></el-table-column>
|
|
@@ -58,7 +58,7 @@ import { costState } from '@/utils/computed'
|
|
|
import store from '@/store'
|
|
|
import { getChargeCode, xiangMuTuiFei, weiGuiFeiYongFenXi } from '@/api/yibao/xiang-mu-lu-ru'
|
|
|
import WeiGuiFeiYongFenXi from '@/components/inpatient/WeiGuiFeiYongFenXi.vue'
|
|
|
-import { ElNotification } from 'element-plus'
|
|
|
+import { ElMessage, ElMessageBox, ElNotification } from 'element-plus'
|
|
|
export default {
|
|
|
components: { WeiGuiFeiYongFenXi },
|
|
|
name: 'huanZheFeiYong',
|
|
@@ -84,18 +84,28 @@ export default {
|
|
|
() => props.init,
|
|
|
() => {
|
|
|
cptTableDataHuanZheFeiYong.value = props.init.records
|
|
|
- fenYe.value.total = props.init.total
|
|
|
- fenYe.value.currentPage = props.init.currentPage
|
|
|
- weiGuiTuiFeiFenXiDialogOpen()
|
|
|
+ fenYe.value.total = typeof props.init.total === 'undefined' ? 0 : props.init.total
|
|
|
+ console.log(fenYe.value)
|
|
|
+ if (props.patient.inpatientNo === weiGuiJiBenXinXi.value.inpatientNo) {
|
|
|
+ return
|
|
|
+ } else {
|
|
|
+ weiGuiJiBenXinXi.value.inpatientNo = props.patient.inpatientNo
|
|
|
+ weiGuiJiBenXinXi.value.admissTimes = props.patient.admissTimes
|
|
|
+ weiGuiJiBenXinXi.value.name = props.patient.name
|
|
|
+ weiGuiTuiFeiFenXiDialogOpen()
|
|
|
+ }
|
|
|
}
|
|
|
)
|
|
|
|
|
|
// 分页
|
|
|
const handleSizeChange = (val) => {
|
|
|
+ fenYe.value.pageSize = val
|
|
|
+ fenYe.value.currentPage = 1
|
|
|
ctx.emit('size', { val })
|
|
|
}
|
|
|
|
|
|
const handleCurrentChange = (val) => {
|
|
|
+ fenYe.value.currentPage = val
|
|
|
ctx.emit('current', { val })
|
|
|
}
|
|
|
|
|
@@ -163,12 +173,8 @@ export default {
|
|
|
|
|
|
const weiGuiTuiFeiFenXiDialogOpen = () => {
|
|
|
weiGuiFeiYongFenXi(props.patient.inpatientNo, props.patient.admissTimes, store.state.user.info.deptCode).then((res) => {
|
|
|
- if (res.weiXieDaiYuanLiuShui.length > 0 || res.weiPiPei.length > 0) {
|
|
|
- console.log(res)
|
|
|
+ if (res.weiXieDaiYuanLiuShui.length > 0) {
|
|
|
weiGuiTuiFeiFenXiDialog.value = true
|
|
|
- weiGuiJiBenXinXi.value.inpatientNo = props.patient.inpatientNo
|
|
|
- weiGuiJiBenXinXi.value.admissTimes = props.patient.admissTimes
|
|
|
- weiGuiJiBenXinXi.value.name = props.patient.name
|
|
|
weiGuiJiBenXinXi.value.weiPiPei = res.weiPiPei
|
|
|
weiGuiJiBenXinXi.value.weiXieDaiYuanLiuShui = res.weiXieDaiYuanLiuShui
|
|
|
weiGuiJiBenXinXi.value.pageSize = 20
|