Commit 370fe7c5 authored by 金王方-del's avatar 金王方-del

fix: 增加统计账单数及理赔金额

parent 493dfbcf
...@@ -6,6 +6,9 @@ export default { ...@@ -6,6 +6,9 @@ export default {
planCodeList: "/backstage/auth/planList", // 根据corporCode查询 planCodeList: "/backstage/auth/planList", // 根据corporCode查询
uploadImg: "/common/upload", uploadImg: "/common/upload",
specialtyList: "/backstage/auth/specialtyList", specialtyList: "/backstage/auth/specialtyList",
receiptCount: "/backstage/auth/receiptCount",
backMoneyReportCount: "/backstage/auth/backMoneyReportCount",
queryBackReceiptCount: "/backstage/auth/queryBackReceiptCount",
coverageCode: "/backstage/auth/coverageMasterList", coverageCode: "/backstage/auth/coverageMasterList",
getRefcdByRefgrp: "/common/getRefcdByRefgrp", // 公共获取码表接口 getRefcdByRefgrp: "/common/getRefcdByRefgrp", // 公共获取码表接口
checkUserEmail: "/backstage/user/checkUserEmail", // 校验用户邮箱 checkUserEmail: "/backstage/user/checkUserEmail", // 校验用户邮箱
......
...@@ -51,6 +51,17 @@ const CHECKUSEREMAIL = (data) => { ...@@ -51,6 +51,17 @@ const CHECKUSEREMAIL = (data) => {
return req.post(`${apis.checkUserEmail}?userName=${data.userName}`); return req.post(`${apis.checkUserEmail}?userName=${data.userName}`);
}; };
//
const receiptCount = (data) => {
return req.post(`${apis.receiptCount}`, data);
};
const backMoneyReportCount = (data) => {
return req.post(`${apis.backMoneyReportCount}`, data);
};
const queryBackReceiptCount = (data) => {
return req.post(`${apis.queryBackReceiptCount}`, data);
};
// 对象数组 // 对象数组
export default { export default {
GETUSERINFO, GETUSERINFO,
...@@ -59,6 +70,9 @@ export default { ...@@ -59,6 +70,9 @@ export default {
GETPLANCODEBYCORP, GETPLANCODEBYCORP,
GETSPECIALTYLIST, GETSPECIALTYLIST,
UPLOADIMG, UPLOADIMG,
receiptCount,
queryBackReceiptCount,
backMoneyReportCount,
GETCOVERAGECODE, GETCOVERAGECODE,
GETREFCDBYREFGRP, GETREFCDBYREFGRP,
CHECKUSEREMAIL, CHECKUSEREMAIL,
......
<template> <template>
<!-- 收费查询-账单查询 --> <!-- 收费查询-账单查询 -->
<div class="white_bg burt-container custom-info"> <div class="white_bg burt-container custom-info">
<!-- form --> <!-- form -->
<a-form-model ref="form" layout="vertical" :model="form"> <a-form-model ref="form" layout="vertical" :model="form">
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="病历号"> <a-form-model-item label="病历号">
<a-input v-model="form.mrnNo" placeholder="请输入病历号" allow-clear /> <a-input v-model="form.mrnNo" placeholder="请输入病历号" allow-clear />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="客户姓名"> <a-form-model-item label="客户姓名">
<a-input v-model="form.patientName" placeholder="请输入客户姓名" allow-clear /> <a-input v-model="form.patientName" placeholder="请输入客户姓名" allow-clear />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select v-model="form.payorIds" placeholder="请选择保险公司" allowClear show-search mode="multiple" <a-select v-model="form.payorIds" placeholder="请选择保险公司" allowClear show-search mode="multiple"
:filterOption="filterCode" optionFilterProp="label"> :filterOption="filterCode" optionFilterProp="label">
<a-select-option v-for="item in companyOptions" :key="item.corpCode" :value="item.id" :label="item.longName"> <a-select-option v-for="item in companyOptions" :key="item.corpCode" :value="item.id"
{{ item.longName }} :label="item.longName">
</a-select-option> {{ item.longName }}
</a-select> </a-select-option>
</a-form-model-item> </a-select>
</a-col> </a-form-model-item>
<a-col :xl="6" :lg="6" :sm="12"> </a-col>
<a-form-model-item label="看诊医生"> <a-col :xl="6" :lg="6" :sm="12">
<a-select v-model="form.doctorCode" placeholder="请选择看诊医生" allowClear> <a-form-model-item label="看诊医生">
<a-select-option v-for="item in doctorOptions" :key="item.doctorCode" :value="item.doctorCode"> <a-select v-model="form.doctorCode" placeholder="请选择看诊医生" allowClear>
{{ item.doctorDesc }} <a-select-option v-for="item in doctorOptions" :key="item.doctorCode" :value="item.doctorCode">
</a-select-option> {{ item.doctorDesc }}
</a-select> </a-select-option>
</a-form-model-item> </a-select>
</a-col> </a-form-model-item>
<a-col :xl="6" :lg="6" :sm="12"> </a-col>
<a-form-model-item label="收费时间"> <a-col :xl="6" :lg="6" :sm="12">
<a-range-picker format="YYYY-MM-DD" v-model="form.dateRange" :placeholder="['开始时间','结束时间']" @change="onSelectVisitTime" /> <a-form-model-item label="收费时间">
</a-form-model-item> <a-range-picker format="YYYY-MM-DD" v-model="form.dateRange" :placeholder="['开始时间', '结束时间']"
</a-col> @change="onSelectVisitTime" />
<a-col :xl="6" :lg="6" :sm="12"> </a-form-model-item>
<a-form-model-item label="是否已关联寄送单"> </a-col>
<a-select v-model="form.isSend" placeholder="请选择是否已关联寄送单" allowClear> <a-col :xl="6" :lg="6" :sm="12">
<a-select-option value="Y" allow-clear> <a-form-model-item label="是否已关联寄送单">
<a-select v-model="form.isSend" placeholder="请选择是否已关联寄送单" allowClear>
</a-select-option> <a-select-option value="Y" allow-clear>
<a-select-option value="N" allow-clear>
</a-select-option>
</a-select-option> <a-select-option value="N" allow-clear>
</a-select>
</a-form-model-item> </a-select-option>
</a-col> </a-select>
<a-col :xl="6" :lg="6" :sm="12"> </a-form-model-item>
<a-form-model-item label="是否已回款"> </a-col>
<a-select v-model="form.isEobBack" placeholder="请选择是否已回款" allowClear> <a-col :xl="6" :lg="6" :sm="12">
<a-select-option value="Y" allow-clear> <a-form-model-item label="是否已回款">
<a-select v-model="form.isEobBack" placeholder="请选择是否已回款" allowClear>
</a-select-option> <a-select-option value="Y" allow-clear>
<a-select-option value="N" allow-clear>
</a-select-option>
</a-select-option> <a-select-option value="N" allow-clear>
</a-select>
</a-form-model-item> </a-select-option>
</a-col> </a-select>
<a-col :xl="6" :lg="6" :sm="12"> </a-form-model-item>
<a-form-model-item label="账单类型"> </a-col>
<a-select v-model="form.receiptType" placeholder="请选择账单类型" allowClear> <a-col :xl="6" :lg="6" :sm="12">
<a-select-option v-for="item in receiptTypeOptions" :key="item.value" :value="item.value"> <a-form-model-item label="账单类型">
{{ item.name }} <a-select v-model="form.receiptType" placeholder="请选择账单类型" allowClear>
</a-select-option> <a-select-option v-for="item in receiptTypeOptions" :key="item.value" :value="item.value">
</a-select> {{ item.name }}
</a-form-model-item> </a-select-option>
</a-col> </a-select>
<a-col :xl="6" :lg="6" :sm="12"> </a-form-model-item>
<a-form-model-item label="账单编号"> </a-col>
<a-input v-model="form.receiptNo" placeholder="请输入账单编号" allow-clear /> <a-col :xl="6" :lg="6" :sm="12">
</a-form-model-item> <a-form-model-item label="账单编号">
</a-col> <a-input v-model="form.receiptNo" placeholder="请输入账单编号" allow-clear />
<a-col :xl="6" :lg="6" :sm="12"> </a-form-model-item>
<a-form-model-item label="状态"> </a-col>
<a-select v-model="form.status" placeholder="请选择状态" allowClear> <a-col :xl="6" :lg="6" :sm="12">
<a-select-option v-for="item in statusOptions" :key="item.code" :value="item.code"> <a-form-model-item label="状态">
{{ item.name }} <a-select v-model="form.status" placeholder="请选择状态" allowClear>
</a-select-option> <a-select-option v-for="item in statusOptions" :key="item.code" :value="item.code">
</a-select> {{ item.name }}
</a-form-model-item> </a-select-option>
</a-col> </a-select>
<a-col :xl="6" :lg="3" :sm="3"> </a-form-model-item>
<div>未清余额合计:(共计100条,其中:无效222条)</div> </a-col>
</a-col> <a-col :xl="6" :lg="3" :sm="3">
<a-col :xl="6" :lg="3" :sm="3" class="none-label"> <a-form-model-item :label="` 未清余额合计 `">
<a-form-model-item label="button"> <div>未清余额合计:{{ ciReceiptTotalVo.residueBackAmount || 0 }}(共计{{ ciReceiptTotalVo.totalNum || 0 }}条,其中:无效 <span style="color: red;">{{ ciReceiptTotalVo.invalidNum || 0 }}</span> 条)</div>
<!-- <a-button>更新数据</a-button> --> </a-form-model-item>
<!-- <a-button class="mar-left10" type="primary" @click="addNewCharge">
</a-col>
<a-col :xl="6" :lg="3" :sm="3" class="none-label">
<a-form-model-item label="button">
<!-- <a-button>更新数据</a-button> -->
<!-- <a-button class="mar-left10" type="primary" @click="addNewCharge">
<Icon name="ssiadd" :size="14" />新建预授权</a-button> --> <Icon name="ssiadd" :size="14" />新建预授权</a-button> -->
<a-button class="mar-left10" type="primary" @click="handlerReset"> <a-button class="mar-left10" type="primary" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置 <Icon name="ssireset" :size="14" />重置
...@@ -238,7 +243,8 @@ export default { ...@@ -238,7 +243,8 @@ export default {
name: '有效', name: '有效',
code: 1 code: 1
} }
] ],
ciReceiptTotalVo: {}
}; };
}, },
components: { components: {
...@@ -255,6 +261,18 @@ export default { ...@@ -255,6 +261,18 @@ export default {
}, },
methods: { methods: {
moment, moment,
// 获取未清余额合计
getReceiptCount() {
this.$apis.receiptCount({
...this.pageForm,
...this.pagination
}).then((res) => {
if (res.returnCode == '0000') {
console.log(res.content)
this.ciReceiptTotalVo = res.content
}
});
},
// 选择框筛选 // 选择框筛选
filterCode(input, option) { filterCode(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0; return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
...@@ -338,6 +356,7 @@ export default { ...@@ -338,6 +356,7 @@ export default {
if (!valid) { if (!valid) {
return false; return false;
} }
this.getReceiptCount()
this.pagination.pageNum = 1; this.pagination.pageNum = 1;
this.pageForm = this.$lodash.cloneDeep({ ...this.form, dateRange: undefined }); this.pageForm = this.$lodash.cloneDeep({ ...this.form, dateRange: undefined });
this._getChargeList(); this._getChargeList();
...@@ -362,10 +381,12 @@ export default { ...@@ -362,10 +381,12 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.none-label { .none-label {
text-align: right; text-align: right;
.ant-form-item-label { .ant-form-item-label {
opacity: 0; opacity: 0;
} }
} }
.ant-btn .icon-class { .ant-btn .icon-class {
.mg-r(10); .mg-r(10);
} }
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :xl="4" :lg="6" :sm="12"> <a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="保险公司"> <a-form-model-item label="保险公司">
<a-select v-model="form.payorCode" placeholder="请选择" show-search allowClear :filterOption="filterCode"> <a-select v-model="form.payorCode" placeholder="请选择" show-search allowClear
:filterOption="filterCode">
<a-select-option v-for="item in companyOptions" :key="item.payorCode" :value="item.payorCode"> <a-select-option v-for="item in companyOptions" :key="item.payorCode" :value="item.payorCode">
{{ item.longName }} {{ item.longName }}
</a-select-option> </a-select-option>
...@@ -25,24 +26,14 @@ ...@@ -25,24 +26,14 @@
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="账单起止日期"> <a-form-model-item label="账单起止日期">
<a-range-picker <a-range-picker format="YYYY-MM-DD" format-value="YYYY-MM-DD" v-model="billRange"
format="YYYY-MM-DD" :placeholder="['开始时间', '结束时间']" @change="onSelectBillTime" />
format-value="YYYY-MM-DD"
v-model="billRange"
:placeholder="['开始时间', '结束时间']"
@change="onSelectBillTime"
/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="6" :sm="12"> <a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="回款起止日期"> <a-form-model-item label="回款起止日期">
<a-range-picker <a-range-picker format="YYYY-MM-DD" format-value="YYYY-MM-DD" v-model="returnRange"
format="YYYY-MM-DD" :placeholder="['开始时间', '结束时间']" @change="onSelectReturnTime" />
format-value="YYYY-MM-DD"
v-model="returnRange"
:placeholder="['开始时间', '结束时间']"
@change="onSelectReturnTime"
/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="6" :lg="10" :sm="12" class="none-label"> <a-col :xl="6" :lg="10" :sm="12" class="none-label">
...@@ -58,29 +49,39 @@ ...@@ -58,29 +49,39 @@
</a-button> </a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="14" :lg="10" :sm="12" class="none-label"> <a-col :xl="4" :lg="6" :sm="12" class="none-label">
<div class="flex"> <a-form-model-item label="账单回款金额合计">
<div>未清余额合计:(共计100条,其中:无效222条)</div> <div>共计{{ ciReceiptTotalVo.totalNum || 0 }}条,其中:无效 <span style="color: red;">{{ ciReceiptTotalVo.invalidNum || 0 }}</span></div>
<div>账单金额合计</div>
<div>回款金额合计</div> </a-form-model-item>
<div>个人欠费合计</div>
</div> </a-col>
<a-col :xl="3" :lg="10" :sm="12" class="none-label">
<a-form-model-item label="回款金额合计">
<div>账单金额合计:{{ ciReceiptTotalVo.actualAmountTotal || 0 }}</div>
</a-form-model-item>
</a-col>
<a-col :xl="3" :lg="10" :sm="12" class="none-label">
<a-form-model-item label="回款金额合计">
<div>回款金额合计:{{ ciReceiptTotalVo.paidAmountEobTotal || 0 }}</div>
</a-form-model-item>
</a-col>
<a-col :xl="3" :lg="10" :sm="12" class="none-label">
<a-form-model-item label="个人欠费合计">
<div>个人欠费合计:{{ ciReceiptTotalVo.arrearsAmountTotal || 0 }}</div>
</a-form-model-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form-model> </a-form-model>
<!-- table --> <!-- table -->
<a-table <a-table :columns="columns" :data-source="dataList" :scroll="{ x: true }" :pagination="false" :rowKey="(record) => {
:columns="columns" record.id + record.backMoneyNo;
:data-source="dataList" }
:scroll="{ x: true }" ">
:pagination="false"
:rowKey="
(record) => {
record.id + record.backMoneyNo;
}
"
>
<template slot="index" slot-scope="text, record, index"> <template slot="index" slot-scope="text, record, index">
{{ index + 1 }} {{ index + 1 }}
</template> </template>
...@@ -141,6 +142,7 @@ export default { ...@@ -141,6 +142,7 @@ export default {
columns, columns,
billRange: null, billRange: null,
returnRange: null, returnRange: null,
ciReceiptTotalVo:{},
form: { form: {
payorCode: '', payorCode: '',
mrnNo: '', mrnNo: '',
...@@ -173,6 +175,18 @@ export default { ...@@ -173,6 +175,18 @@ export default {
filterCode(input, option) { filterCode(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0; return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0;
}, },
// 获取未清余额合计
getBackMoneyReportCount() {
this.$apis.backMoneyReportCount({
...this.pageForm,
...this.pagination
}).then((res) => {
if (res.returnCode == '0000') {
console.log(res.content)
this.ciReceiptTotalVo = res.content
}
});
},
// 获取列表数据 // 获取列表数据
getList() { getList() {
const data = { const data = {
...@@ -182,7 +196,7 @@ export default { ...@@ -182,7 +196,7 @@ export default {
this.$apis.backMoneyReport(data).then((res) => { this.$apis.backMoneyReport(data).then((res) => {
let content = res.content || {}; let content = res.content || {};
this.dataList = content.list || []; this.dataList = content.list || [];
this.getBackMoneyReportCount()
this.pagination.total = content.total || 0; this.pagination.total = content.total || 0;
}); });
}, },
...@@ -236,10 +250,12 @@ export default { ...@@ -236,10 +250,12 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.none-label { .none-label {
text-align: left; text-align: left;
.ant-form-item-label { .ant-form-item-label {
opacity: 0; opacity: 0;
} }
} }
.ant-btn .icon-class { .ant-btn .icon-class {
.mg-r(10); .mg-r(10);
} }
......
...@@ -129,7 +129,10 @@ ...@@ -129,7 +129,10 @@
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :lg="6" :sm="12">
<div>未清余额合计:(共计100条,其中:无效222条)</div> <a-form-model-item label="回款金额统计">
<div>{{ ciReceiptTotalVo.backAmountTotal || 0 }}(共计{{ ciReceiptTotalVo.totalNum || 0 }}条,其中:无效 <span style="color: red;">{{ ciReceiptTotalVo.invalidNum || 0 }}</span> 条)</div>
</a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12"> <a-col :lg="6" :sm="12">
<a-form-model-item label="可核销余额"> <a-form-model-item label="可核销余额">
...@@ -322,6 +325,7 @@ export default { ...@@ -322,6 +325,7 @@ export default {
isEdit: false, isEdit: false,
EOBStatusOptions, EOBStatusOptions,
dialogShow: false, dialogShow: false,
ciReceiptTotalVo:{},
form: { form: {
payorCode: undefined, payorCode: undefined,
backDate: null, backDate: null,
...@@ -618,6 +622,18 @@ export default { ...@@ -618,6 +622,18 @@ export default {
}, },
methods: { methods: {
moment, moment,
// 获取未清余额合计
getBackMoneyReportCount(params) {
this.$apis.queryBackReceiptCount({
...params,
...this.pagination
}).then((res) => {
if (res.returnCode == '0000') {
console.log(res.content)
this.ciReceiptTotalVo = res.content
}
});
},
// 计算表格最大高度 // 计算表格最大高度
calcTableHeight() { calcTableHeight() {
const dom = this.$refs.burt; const dom = this.$refs.burt;
...@@ -790,6 +806,14 @@ export default { ...@@ -790,6 +806,14 @@ export default {
}) })
.then((res) => { .then((res) => {
if (res.returnCode == '0000') { if (res.returnCode == '0000') {
this.getBackMoneyReportCount({
pageNum: 1,
pageSize: 999,
backMoneyNo: this.backMoneyNo,
...this.searchForm,
receiptEndDate: billDate[1] ? billDate[1] + ' 23:59:59' : undefined,
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined
})
const list = res.content.list || []; const list = res.content.list || [];
let ids = []; let ids = [];
this.selectedRows = list.map((item) => { this.selectedRows = list.map((item) => {
...@@ -819,6 +843,15 @@ export default { ...@@ -819,6 +843,15 @@ export default {
}) })
.then((res) => { .then((res) => {
if (res.returnCode == '0000') { if (res.returnCode == '0000') {
this.getBackMoneyReportCount({
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
backMoneyNo: this.backMoneyNo,
payorCode: this.form.payorCode,
...this.searchForm,
receiptEndDate: billDate[1] ? billDate[1] + ' 23:59:59' : undefined,
receiptStartDate: billDate[0] ? billDate[0] + ' 00:00:00' : undefined
})
let content = res.content || {}; let content = res.content || {};
this.pagination.total = content.total || 0; this.pagination.total = content.total || 0;
this.dataList = this.dataList =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment