|
@@ -2,29 +2,29 @@
|
|
|
<el-container style="margin-right: 10px">
|
|
|
<el-header height="36px" style="margin-top: 8px">
|
|
|
<el-input
|
|
|
- size="small"
|
|
|
- placeholder="在此输入住院号"
|
|
|
- clearable
|
|
|
- prefix-icon="el-icon-search"
|
|
|
- style="width: 300px"
|
|
|
- @keyup.enter="queryClick"
|
|
|
- @blur="inpatientNo = $event.target.value.trim()"
|
|
|
- v-model="inpatientNo"
|
|
|
+ size="small"
|
|
|
+ placeholder="在此输入住院号"
|
|
|
+ clearable
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ style="width: 300px"
|
|
|
+ @keyup.enter="queryClick"
|
|
|
+ @blur="inpatientNo = $event.target.value.trim()"
|
|
|
+ v-model="inpatientNo"
|
|
|
>
|
|
|
<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="在此输入机制号"
|
|
|
- clearable
|
|
|
- @keyup.enter="querySerialNo"
|
|
|
- prefix-icon="el-icon-search"
|
|
|
- style="width: 300px"
|
|
|
- v-model="serialNo"
|
|
|
- onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
|
|
|
- @blur="serialNo = $event.target.value.trim()"
|
|
|
+ size="small"
|
|
|
+ placeholder="在此输入机制号"
|
|
|
+ clearable
|
|
|
+ @keyup.enter="querySerialNo"
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
+ style="width: 300px"
|
|
|
+ v-model="serialNo"
|
|
|
+ onkeyup="this.value=this.value.replace(/[^\d]/g,'') "
|
|
|
+ @blur="serialNo = $event.target.value.trim()"
|
|
|
>
|
|
|
<template #prepend>机制号</template>
|
|
|
</el-input>
|
|
@@ -103,22 +103,25 @@
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</div>
|
|
|
- 收费日期:<el-date-picker type="datetime" v-model="chargeDate"></el-date-picker>
|
|
|
+ 收费日期:
|
|
|
+ <el-date-picker type="datetime" v-model="chargeDate"></el-date-picker>
|
|
|
<div style="width: 100%">
|
|
|
<div style="float: left; width: 45%">
|
|
|
- <el-table :height="windowHeight" highlight-current-row :data="mzXinXiList" @selection-change="mzSelectChecked" ref="multipleTable">
|
|
|
+ <el-table :height="windowHeight" highlight-current-row :data="mzXinXiList" @selection-change="mzSelectChecked"
|
|
|
+ ref="multipleTable">
|
|
|
<el-table-column label="门诊发票信息">
|
|
|
<el-table-column label="项目名称" prop="itemName"></el-table-column>
|
|
|
<el-table-column label="收费编码" prop="chargeCode"></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="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>
|
|
|
</el-table>
|
|
|
<el-tag>合计:{{ mzSum }}</el-tag>
|
|
|
</div>
|
|
|
- <div style="width: 9%; float: left; margin-left: 4px; text-align: center" :style="{ lineHeight: windowHeight + 'px' }">
|
|
|
+ <div style="width: 9%; float: left; margin-left: 4px; text-align: center"
|
|
|
+ :style="{ lineHeight: windowHeight + 'px' }">
|
|
|
<el-button icon="el-icon-right" type="primary"></el-button>
|
|
|
</div>
|
|
|
<div style="float: right; width: 45%">
|
|
@@ -127,7 +130,7 @@
|
|
|
<el-table-column label="项目名称" prop="itemName"></el-table-column>
|
|
|
<el-table-column label="收费编码" prop="chargeCode"></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="price"></el-table-column>
|
|
|
<el-table-column label="金额" prop="chargeFee"></el-table-column>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -137,18 +140,19 @@
|
|
|
<el-drawer title="查看患者通过急门诊转入的费用" v-model="huanZheFeiYongDrawer" size="50%">
|
|
|
<div style="margin-left: 20px">
|
|
|
<el-input
|
|
|
- placeholder="住院号"
|
|
|
- clearable
|
|
|
- style="width: 200px"
|
|
|
- @keyup.enter="getZyJiMenZhenZhuangRuFeiYongClick"
|
|
|
- v-model="inpatientNo"
|
|
|
- @blur="inpatientNo = $event.target.value.trim()"
|
|
|
+ placeholder="住院号"
|
|
|
+ clearable
|
|
|
+ style="width: 200px"
|
|
|
+ @keyup.enter="getZyJiMenZhenZhuangRuFeiYongClick"
|
|
|
+ v-model="inpatientNo"
|
|
|
+ @blur="inpatientNo = $event.target.value.trim()"
|
|
|
>
|
|
|
<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" placeholder="根据拼音首字母查找" filterable clearable remote
|
|
|
+ :remote-method="remoteMethodEntryName">
|
|
|
<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>
|
|
@@ -169,12 +173,12 @@
|
|
|
<el-table-column label="操作">
|
|
|
<template #default="scope">
|
|
|
<el-popconfirm
|
|
|
- confirm-button-text="删除"
|
|
|
- cancel-button-text="取消"
|
|
|
- icon="el-icon-info"
|
|
|
- iconColor="red"
|
|
|
- title="是否删除该费用"
|
|
|
- @confirm="shanChuFeiYongClick(scope.$index, scope.row)"
|
|
|
+ confirm-button-text="删除"
|
|
|
+ cancel-button-text="取消"
|
|
|
+ icon="el-icon-info"
|
|
|
+ iconColor="red"
|
|
|
+ title="是否删除该费用"
|
|
|
+ @confirm="shanChuFeiYongClick(scope.$index, scope.row)"
|
|
|
>
|
|
|
<template #reference>
|
|
|
<el-button type="danger">删除</el-button>
|
|
@@ -184,11 +188,11 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<el-pagination
|
|
|
- layout="prev, pager, next, total"
|
|
|
- @current-change="huanZheFeiYongCurrentChange"
|
|
|
- :total="huanZheFeiYongTotal"
|
|
|
- :page-size="huanZheFeiYongPageSize"
|
|
|
- background
|
|
|
+ layout="prev, pager, next, total"
|
|
|
+ @current-change="huanZheFeiYongCurrentChange"
|
|
|
+ :total="huanZheFeiYongTotal"
|
|
|
+ :page-size="huanZheFeiYongPageSize"
|
|
|
+ background
|
|
|
></el-pagination>
|
|
|
<el-tag style="margin-left: 7px">合计:{{ huanZheFeiYongZongHe }}</el-tag>
|
|
|
</div>
|
|
@@ -198,13 +202,21 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { ref } from '@vue/reactivity'
|
|
|
-import { baoCunHuanZheZhuYuanFeiYong, getSerialNo, getZyJiMenZhenZhuangRuFeiYong, queryEntryName, queryHuanZhe, shanChuFeiYong } from '@/api/yibao/transfer-in-of-expenses'
|
|
|
-import { cptSex } from '@/utils/computed'
|
|
|
+import {ref} from '@vue/reactivity'
|
|
|
+import {
|
|
|
+ baoCunHuanZheZhuYuanFeiYong,
|
|
|
+ getSerialNo,
|
|
|
+ getZyJiMenZhenZhuangRuFeiYong,
|
|
|
+ queryEntryName,
|
|
|
+ queryHuanZhe,
|
|
|
+ shanChuFeiYong
|
|
|
+} from '@/api/yibao/transfer-in-of-expenses'
|
|
|
+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 {computed} from 'vue'
|
|
|
+import {ElMessage, ElMessageBox} from 'element-plus'
|
|
|
+import {formatDatetime} from '../../utils/date'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'TransferInOfExpenses',
|
|
|
setup() {
|
|
@@ -257,12 +269,12 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
getSerialNo(serialNo.value, liShiFlag.value)
|
|
|
- .then((res) => {
|
|
|
- mzXinXiList.value = res
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- mzXinXiList.value = []
|
|
|
- })
|
|
|
+ .then((res) => {
|
|
|
+ mzXinXiList.value = res
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ mzXinXiList.value = []
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
//定义用来删除 多选框的选中状态 以及点击选中多选框
|
|
@@ -373,7 +385,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
for (let i = 0; mzXinXiList.value.length; i++) {
|
|
|
- if (huanZheXinXi.value.name !== mzXinXiList.value[i].patientName) {
|
|
|
+ if (huanZheXinXi.value.name !== mzXinXiList.value[i].patientName && typeof mzXinXiList.value[i].patientName !== 'undefined') {
|
|
|
return ElMessageBox.confirm('', '提示', {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
@@ -381,30 +393,31 @@ export default {
|
|
|
type: 'warning',
|
|
|
message: `门诊病人姓名【' ${mzXinXiList.value[i].patientName} '】住院病人姓名【' ${huanZheXinXi.value.name} '】不一致,是否继续?<br>收费日期:${huanZheXinXi.value.chargeDate}`,
|
|
|
})
|
|
|
- .then(() => {
|
|
|
- baoCunHuanZheZhuYuanFeiYong(huanZheXinXi.value).then((res) => {
|
|
|
- zyXinXiList.value = []
|
|
|
- mzXinXiList.value = []
|
|
|
+ .then(() => {
|
|
|
+ baoCunHuanZheZhuYuanFeiYong(huanZheXinXi.value).then((res) => {
|
|
|
+ zyXinXiList.value = []
|
|
|
+ mzXinXiList.value = []
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
- }
|
|
|
- }
|
|
|
- if (huanZheXinXi.value.name !== mzXinXiList.value[i].patientName) {
|
|
|
- return ElMessageBox.confirm('', '提示', {
|
|
|
- cancelButtonText: '取消',
|
|
|
- confirmButtonText: '确定',
|
|
|
- dangerouslyUseHTMLString: true,
|
|
|
- type: 'warning',
|
|
|
- message: `收费日期:${huanZheXinXi.value.chargeDate}`,
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- baoCunHuanZheZhuYuanFeiYong(huanZheXinXi.value).then((res) => {
|
|
|
- zyXinXiList.value = []
|
|
|
- mzXinXiList.value = []
|
|
|
- })
|
|
|
+ .catch(() => {
|
|
|
+ })
|
|
|
+ } else if (huanZheXinXi.value.name === mzXinXiList.value[i].patientName && typeof mzXinXiList.value[i].patientName !== 'undefined') {
|
|
|
+ return ElMessageBox.confirm('', '提示', {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ type: 'warning',
|
|
|
+ message: `收费日期:${huanZheXinXi.value.chargeDate}`,
|
|
|
})
|
|
|
- .catch(() => {})
|
|
|
+ .then(() => {
|
|
|
+ baoCunHuanZheZhuYuanFeiYong(huanZheXinXi.value).then((res) => {
|
|
|
+ zyXinXiList.value = []
|
|
|
+ mzXinXiList.value = []
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
//项目名称 数组
|
|
@@ -457,8 +470,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
let chaKanLiShi = [
|
|
|
- { code: 0, name: '不查看历史记录' },
|
|
|
- { code: 1, name: '查看历史记录' },
|
|
|
+ {code: 0, name: '不查看历史记录'},
|
|
|
+ {code: 1, name: '查看历史记录'},
|
|
|
]
|
|
|
</script>
|
|
|
|