Commit 49bf0896 authored by 郭小龙-DEL's avatar 郭小龙-DEL

Merge branch 'func_eccs_2376' into 'master'

Func eccs 2376 增加统计账单数及理赔金额

See merge request !66
parents 2395fac7 86a3b704
...@@ -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,
......
...@@ -1049,3 +1049,11 @@ button::-moz-focus-inner { ...@@ -1049,3 +1049,11 @@ button::-moz-focus-inner {
.p-r() { .p-r() {
position: relative; position: relative;
} }
.blue-text{
color: #2B63FF;
}
.red-text{
color: red;
}
This diff is collapsed.
...@@ -110,13 +110,13 @@ ...@@ -110,13 +110,13 @@
<div class="btn-div flex"> <div class="btn-div flex">
<div class="total-div flex"> <div class="total-div flex">
<div> <div>
<span>单数:</span> <span>单数:</span>
<span>{{ totalListNum + selectedRowKeys.length }}</span> <span class="blue-text">{{ totalListNum + selectedRowKeys.length }}</span>
<span :style="{color: 'red'}" v-if="invalidNum > 0">(无效{{ invalidNum }}</span> <span :style="{color: 'red'}" v-if="invalidNum > 0">(无效{{ invalidNum }}</span>
</div> </div>
<div> <div>
<span>理赔金额合计:</span> <span>理赔金额合计:</span>
<span>{{ totalAmount }}</span> <span class="blue-text">{{ totalAmount }}</span>
<span :style="{color: 'red'}" v-if="invalidActualAmount > 0">(无效{{ invalidActualAmount }}元)</span> <span :style="{color: 'red'}" v-if="invalidActualAmount > 0">(无效{{ invalidActualAmount }}元)</span>
</div> </div>
</div> </div>
......
...@@ -252,7 +252,4 @@ export default { ...@@ -252,7 +252,4 @@ export default {
.ant-btn .icon-class { .ant-btn .icon-class {
.mg-r(10); .mg-r(10);
} }
.red-text{
color: red;
}
</style> </style>
...@@ -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,27 +26,17 @@ ...@@ -25,27 +26,17 @@
</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="10" :lg="10" :sm="12" class="none-label"> <a-col :xl="6" :lg="10" :sm="12" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="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" />重置
...@@ -58,21 +49,42 @@ ...@@ -58,21 +49,42 @@
</a-button> </a-button>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :xl="3" :lg="6" :sm="12" class="none-label" style="position: relative; top: 10px;">
<a-form-model-item label="账单回款金额合计">
<div>
共计 <span class="blue-text">{{ ciReceiptTotalVo.totalNum || 0 }}</span>
<!-- <span v-if="ciReceiptTotalVo.invalidNum">,其中:无效 <span style="color: red;">{{ ciReceiptTotalVo.invalidNum || 0 }}</span></span> -->
</div>
</a-form-model-item>
</a-col>
<a-col :xl="3" :lg="10" :sm="12" class="none-label" style="position: relative; top: 10px;">
<a-form-model-item label="回款金额合计">
<div>账单金额合计:<span class="blue-text">{{ ciReceiptTotalVo.actualAmountTotal || 0 }}</span></div>
</a-form-model-item>
</a-col>
<a-col :xl="3" :lg="10" :sm="12" class="none-label" style="position: relative; top: 10px;">
<a-form-model-item label="回款金额合计">
<div>回款金额合计:<span class="blue-text">{{ ciReceiptTotalVo.paidAmountEobTotal || 0 }}</span></div>
</a-form-model-item>
</a-col>
<a-col :xl="3" :lg="10" :sm="12" class="none-label" style="position: relative; top: 10px;">
<a-form-model-item label="个人欠费合计">
<div>个人欠费合计:<span class="red-text">{{ ciReceiptTotalVo.arrearsAmountTotal || 0 }}</span></div>
</a-form-model-item>
</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>
...@@ -105,7 +117,10 @@ export default { ...@@ -105,7 +117,10 @@ export default {
{ title: '账单编号', dataIndex: 'receiptNo', width: 120 }, { title: '账单编号', dataIndex: 'receiptNo', width: 120 },
{ title: '账单日期', dataIndex: 'receiptDate', width: 120 }, { title: '账单日期', dataIndex: 'receiptDate', width: 120 },
{ title: '收银', dataIndex: 'receiptTellerName', width: 120 }, { title: '收银', dataIndex: 'receiptTellerName', width: 120 },
{ title: '账单金额', dataIndex: 'actualAmount', width: 120 }, {
title: '账单金额', dataIndex: 'actualAmount', width: 120,
// customRender: val => <span class="blue-text">{val}</span>
},
{ title: '回款金额', dataIndex: 'paidAmountEob', width: 120 }, { title: '回款金额', dataIndex: 'paidAmountEob', width: 120 },
{ {
title: '个人欠费', title: '个人欠费',
...@@ -133,6 +148,7 @@ export default { ...@@ -133,6 +148,7 @@ export default {
columns, columns,
billRange: null, billRange: null,
returnRange: null, returnRange: null,
ciReceiptTotalVo:{},
form: { form: {
payorCode: '', payorCode: '',
mrnNo: '', mrnNo: '',
...@@ -165,6 +181,18 @@ export default { ...@@ -165,6 +181,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 = {
...@@ -174,7 +202,7 @@ export default { ...@@ -174,7 +202,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;
}); });
}, },
...@@ -228,10 +256,12 @@ export default { ...@@ -228,10 +256,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);
} }
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
</a-col> </a-col>
</template> </template>
<template v-else> <template v-else>
<a-col :lg="9" :sm="12"> <a-col :lg="6" :sm="12">
<a-form-model-item label="保险公司" prop="payorCode"> <a-form-model-item label="保险公司" prop="payorCode">
<a-select <a-select
v-model="form.payorCode" v-model="form.payorCode"
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="8" :sm="12"> <a-col :lg="6" :sm="12">
<a-form-model-item label="回款金额(人民币)" prop="backAmountCny"> <a-form-model-item label="回款金额(人民币)" prop="backAmountCny">
<a-input <a-input
class="fixed_width" class="fixed_width"
...@@ -128,7 +128,13 @@ ...@@ -128,7 +128,13 @@
/> />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="7" :sm="12"> <a-col :lg="6" :sm="12">
<a-form-model-item label="本次账单回款金额合计">
<div class="blue-text">{{ ciReceiptTotalVo.backAmountTotal || 0 }}</div>
</a-form-model-item>
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="可核销余额"> <a-form-model-item label="可核销余额">
<a-input class="fixed_width" v-model="residueBackAmount" disabled /> <a-input class="fixed_width" v-model="residueBackAmount" disabled />
</a-form-model-item> </a-form-model-item>
...@@ -138,6 +144,7 @@ ...@@ -138,6 +144,7 @@
</a-form-model> </a-form-model>
<template v-if="activeKey === '1'"> <template v-if="activeKey === '1'">
<div class="bill-content"> <div class="bill-content">
<div class="checked-count">已勾选账单:<span class="blue-text">{{ selectedRowKeys.length || 0 }}</span><span v-if="selectedRows.filter(v=> v.status == 2).length != 0">,其中:无效 <span style="color: red;">{{ selectedRows.filter(v=> v.status == 2).length || 0 }}</span></span></div>
<a-tabs type="card" v-model="activeKey1"> <a-tabs type="card" v-model="activeKey1">
<a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title"> <a-tab-pane v-for="pane in panes1" :key="pane.key" :tab="pane.title">
<div> <div>
...@@ -319,6 +326,7 @@ export default { ...@@ -319,6 +326,7 @@ export default {
isEdit: false, isEdit: false,
EOBStatusOptions, EOBStatusOptions,
dialogShow: false, dialogShow: false,
ciReceiptTotalVo:{},
form: { form: {
payorCode: undefined, payorCode: undefined,
backDate: null, backDate: null,
...@@ -615,6 +623,18 @@ export default { ...@@ -615,6 +623,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;
...@@ -787,6 +807,14 @@ export default { ...@@ -787,6 +807,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) => {
...@@ -816,6 +844,15 @@ export default { ...@@ -816,6 +844,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 =
...@@ -1022,6 +1059,7 @@ export default { ...@@ -1022,6 +1059,7 @@ export default {
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
padding-right: 12px; padding-right: 12px;
position: relative;
::v-deep { ::v-deep {
.ant-form-item { .ant-form-item {
margin-right: 0; margin-right: 0;
...@@ -1066,4 +1104,9 @@ export default { ...@@ -1066,4 +1104,9 @@ export default {
height: calc(100vh - 400px); height: calc(100vh - 400px);
} }
} }
.checked-count{
position: absolute;
top: 14px;
left: 210px;
}
</style> </style>
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