|
@@ -2,33 +2,33 @@
|
|
|
<el-container style="margin-right: 10px">
|
|
|
<el-header height="36px" style="margin-top: 8px">
|
|
|
<el-input
|
|
|
- size="small"
|
|
|
- placeholder="在此输入住院号"
|
|
|
+ v-model="inpatientNo"
|
|
|
clearable
|
|
|
+ placeholder="在此输入住院号"
|
|
|
prefix-icon="el-icon-search"
|
|
|
+ size="small"
|
|
|
style="width: 300px"
|
|
|
- @keyup.enter="queryClick"
|
|
|
@blur="inpatientNo = $event.target.value.trim()"
|
|
|
- v-model="inpatientNo"
|
|
|
+ @keyup.enter="queryClick"
|
|
|
>
|
|
|
<template #prepend>住院号</template>
|
|
|
</el-input>
|
|
|
<el-button style="margin-left: 10px" type="primary" @click="queryClick">查询患者信息</el-button>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<el-input
|
|
|
- size="small"
|
|
|
- placeholder="在此输入机制号"
|
|
|
+ v-model="serialNo"
|
|
|
clearable
|
|
|
- @keyup.enter="querySerialNo"
|
|
|
+ onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
|
|
|
+ placeholder="在此输入机制号"
|
|
|
prefix-icon="el-icon-search"
|
|
|
+ size="small"
|
|
|
style="width: 300px"
|
|
|
- v-model="serialNo"
|
|
|
- onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
|
|
|
@blur="serialNo = $event.target.value.trim()"
|
|
|
+ @keyup.enter="querySerialNo"
|
|
|
>
|
|
|
<template #prepend>机制号</template>
|
|
|
</el-input>
|
|
|
- <el-select size="small" v-model="liShiFlag">
|
|
|
+ <el-select v-model="liShiFlag" size="small">
|
|
|
<el-option v-for="item in chaKanLiShi" :key="item.code" :label="item.name" :value="item.code"></el-option>
|
|
|
</el-select>
|
|
|
<el-button style="margin-left: 10px" type="primary" @click="querySerialNo">查询机制号信息</el-button>
|
|
@@ -104,29 +104,29 @@
|
|
|
</el-descriptions>
|
|
|
</div>
|
|
|
收费日期:
|
|
|
- <el-date-picker type="datetime" v-model="chargeDate"></el-date-picker>
|
|
|
+ <el-date-picker v-model="chargeDate" type="datetime"></el-date-picker>
|
|
|
<div style="width: 100%">
|
|
|
<div style="float: left; width: 45%">
|
|
|
- <el-table :height="windowHeight / 1.4" highlight-current-row :data="mzXinXiList"
|
|
|
- @selection-change="mzSelectChecked"
|
|
|
- ref="multipleTable">
|
|
|
+ <el-table ref="multipleTable" :data="mzXinXiList" :height="windowHeight / 1.4"
|
|
|
+ highlight-current-row
|
|
|
+ @selection-change="mzSelectChecked">
|
|
|
<el-table-column label="门诊发票信息">
|
|
|
<el-table-column label="项目名称" prop="itemName"></el-table-column>
|
|
|
<el-table-column label="收费编码" prop="chargeCodeMx"></el-table-column>
|
|
|
<el-table-column label="数量" prop="chargeAmount"></el-table-column>
|
|
|
<el-table-column label="单价" prop="price"></el-table-column>
|
|
|
<el-table-column label="金额" prop="chargeFee"></el-table-column>
|
|
|
- <el-table-column label="选择" width="60" type="selection"></el-table-column>
|
|
|
+ <el-table-column label="选择" type="selection" width="60"></el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<el-tag>合计:{{ mzSum }}</el-tag>
|
|
|
</div>
|
|
|
- <div style="width: 9%; float: left; margin-left: 4px; text-align: center"
|
|
|
- :style="{ lineHeight: windowHeight / 1.4 + 'px' }">
|
|
|
+ <div :style="{ lineHeight: windowHeight / 1.4 + 'px' }"
|
|
|
+ style="width: 9%; float: left; margin-left: 4px; text-align: center">
|
|
|
<el-button icon="el-icon-right" type="primary"></el-button>
|
|
|
</div>
|
|
|
<div style="float: right; width: 45%">
|
|
|
- <el-table :height="windowHeight / 1.4" stripe :data="zyXinXiList">
|
|
|
+ <el-table :data="zyXinXiList" :height="windowHeight / 1.4" stripe>
|
|
|
<el-table-column label="住院收费项目">
|
|
|
<el-table-column label="项目名称" prop="itemName"></el-table-column>
|
|
|
<el-table-column label="收费编码" prop="chargeCodeMx"></el-table-column>
|
|
@@ -138,22 +138,23 @@
|
|
|
<el-tag>合计:{{ zySum }}</el-tag>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-drawer title="查看患者通过急门诊转入的费用" v-model="huanZheFeiYongDrawer" size="50%">
|
|
|
+ <el-drawer v-model="huanZheFeiYongDrawer" size="50%" title="查看患者通过急门诊转入的费用">
|
|
|
<div style="margin-left: 20px">
|
|
|
<el-input
|
|
|
- placeholder="住院号"
|
|
|
+ v-model="inpatientNo"
|
|
|
clearable
|
|
|
+ placeholder="住院号"
|
|
|
style="width: 200px"
|
|
|
- @keyup.enter="getZyJiMenZhenZhuangRuFeiYongClick"
|
|
|
- v-model="inpatientNo"
|
|
|
@blur="inpatientNo = $event.target.value.trim()"
|
|
|
+ @keyup.enter="getZyJiMenZhenZhuangRuFeiYongClick"
|
|
|
>
|
|
|
<template #prepend>住院号</template>
|
|
|
</el-input>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
项目名称:
|
|
|
- <el-select v-model="chargeCodeMX" placeholder="根据拼音首字母查找" filterable clearable remote
|
|
|
- :remote-method="remoteMethodEntryName">
|
|
|
+ <el-select v-model="chargeCodeMX" :remote-method="remoteMethodEntryName" clearable filterable
|
|
|
+ placeholder="根据拼音首字母查找"
|
|
|
+ remote>
|
|
|
<el-option v-for="item in entryNameList" :key="item.code" :label="item.name" :value="item.code">
|
|
|
<span style="color: #8492a6; font-size: 12px">{{ item.code }}</span>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
@@ -161,11 +162,11 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
- <el-button @click="getZyJiMenZhenZhuangRuFeiYongClick" type="primary">查询</el-button>
|
|
|
+ <el-button type="primary" @click="getZyJiMenZhenZhuangRuFeiYongClick">查询</el-button>
|
|
|
<el-table :data="zyDetailChargeList" :height="windowHeight / 1.1">
|
|
|
<el-table-column label="住院号" prop="inpatientNo"></el-table-column>
|
|
|
<el-table-column label="流水号" prop="detailSn"></el-table-column>
|
|
|
- <el-table-column label="收费日期" width="80" prop="chargeDate"></el-table-column>
|
|
|
+ <el-table-column label="收费日期" prop="chargeDate" width="80"></el-table-column>
|
|
|
<el-table-column label="收费代码" prop="chargeCode"></el-table-column>
|
|
|
<el-table-column label="项目名称" prop="chargeCodeName" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="费用录入日期" prop="genTime" width="80"></el-table-column>
|
|
@@ -174,8 +175,8 @@
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
|
<el-popconfirm
|
|
|
- confirm-button-text="删除"
|
|
|
cancel-button-text="取消"
|
|
|
+ confirm-button-text="删除"
|
|
|
icon="el-icon-info"
|
|
|
iconColor="red"
|
|
|
title="是否删除该费用"
|
|
@@ -189,11 +190,11 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination
|
|
|
- layout="prev, pager, next, total"
|
|
|
- @current-change="huanZheFeiYongCurrentChange"
|
|
|
- :total="huanZheFeiYongTotal"
|
|
|
:page-size="huanZheFeiYongPageSize"
|
|
|
+ :total="huanZheFeiYongTotal"
|
|
|
background
|
|
|
+ layout="prev, pager, next, total"
|
|
|
+ @current-change="huanZheFeiYongCurrentChange"
|
|
|
></el-pagination>
|
|
|
<el-tag style="margin-left: 7px">合计:{{ huanZheFeiYongZongHe }}</el-tag>
|
|
|
</div>
|
|
@@ -216,7 +217,9 @@ import {cptSex} from '@/utils/computed'
|
|
|
import store from '@/store'
|
|
|
import {computed} from 'vue'
|
|
|
import {ElMessage, ElMessageBox} from 'element-plus'
|
|
|
-import {formatDatetime} from '../../utils/date'
|
|
|
+import {compareDate, formatDatetime} from '@/utils/date'
|
|
|
+import {getServerDateApi} from "@/api/public-api";
|
|
|
+import {stringNotBlank} from "@/utils/blank-utils";
|
|
|
|
|
|
export default {
|
|
|
name: 'TransferInOfExpenses',
|
|
@@ -242,7 +245,7 @@ export default {
|
|
|
const zyXinXiList = ref([])
|
|
|
|
|
|
//查询患者信息
|
|
|
- const queryClick = () => {
|
|
|
+ const queryClick = async () => {
|
|
|
if (!inpatientNo.value) {
|
|
|
ElMessage({
|
|
|
type: 'warning',
|
|
@@ -252,8 +255,10 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ chargeDate.value = await getServerDateApi()
|
|
|
queryHuanZhe(inpatientNo.value).then((res) => {
|
|
|
huanZheXinXi.value = res
|
|
|
+ console.log(res)
|
|
|
admissTimes.value = res.admissTimes
|
|
|
})
|
|
|
}
|
|
@@ -354,8 +359,11 @@ export default {
|
|
|
}
|
|
|
//点击保存触发的事件
|
|
|
const baoCunClick = () => {
|
|
|
- if (chargeDate.value === null) {
|
|
|
- chargeDate.value = new Date()
|
|
|
+ if (compareDate(huanZheXinXi.value.admissDate, chargeDate.value)) {
|
|
|
+ return ElMessage.error('费用发生时间不能在入院时间之前。')
|
|
|
+ }
|
|
|
+ if (stringNotBlank(huanZheXinXi.value.disDate) && compareDate(chargeDate.value, huanZheXinXi.value.disDate)) {
|
|
|
+ return ElMessage.error('费用发生时间不能在出院时间之后。')
|
|
|
}
|
|
|
huanZheXinXi.value.chargeDate = formatDatetime(chargeDate.value)
|
|
|
if (typeof huanZheXinXi.value.inpatientNo === 'undefined') {
|
|
@@ -367,7 +375,6 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
if (zyXinXiList.value.length === 0) {
|
|
|
ElMessage({
|
|
|
type: 'warning',
|
|
@@ -378,7 +385,6 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
huanZheXinXi.value.list = zyXinXiList.value
|
|
|
-
|
|
|
if (huanZheXinXi.value.chargeDate === '') {
|
|
|
return ElMessage.error({
|
|
|
message: '请选择日期',
|