Commit 89a53ff1 authored by 朱彩云's avatar 朱彩云

Merge branch 'ECCS-2215' into 'master'

Eccs 2215-【商保系统】-账单报表增加保险卡、客户生日、账龄 && ECCS2212【商保系统】-回款管理账单关联优化

See merge request !39
parents ba851e2f 9dd7880f
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
queryBackReceiptList: "/backstage/auth/queryBackReceiptList", //回销关联账单列表查询 queryBackReceiptList: "/backstage/auth/queryBackReceiptList", //回销关联账单列表查询
queryReceiptInfoList: "/backstage/auth/queryReceiptInfoList", //回销账单列表查询 queryReceiptInfoList: "/backstage/auth/queryReceiptInfoList", //回销账单列表查询
deleteReceiptRecord: "/backstage/auth/deleteBackReceipt", // 删除已关联账单 deleteReceiptRecord: "/backstage/auth/deleteBackReceipt", // 删除已关联账单
exportBackMoneyReport: "/backstage/auth/backMoneyListExport", // 回款列表导出 backMoneyListExport: "/backstage/auth/backMoneyListExport", // 回款列表导出
exportBackReceiptList: "/backstage/auth/exportBackReceiptList", // 关联账单列表导出 exportBackReceiptList: "/backstage/auth/exportBackReceiptList", // 关联账单列表导出
}; };
...@@ -69,7 +69,7 @@ const DELETERECEIPTRECORD = (data) => { ...@@ -69,7 +69,7 @@ const DELETERECEIPTRECORD = (data) => {
// 回款列表导出 // 回款列表导出
const EXPORTBACKMONEYREPORT = (data) => { const EXPORTBACKMONEYREPORT = (data) => {
return req.post(apis.exportBackMoneyReport, data, { responseType: "blob" }); return req.post(apis.backMoneyListExport, data, { responseType: "blob" });
}; };
// 关联账单导出 // 关联账单导出
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</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.payorId" placeholder="请选择保险公司" allowClear> <a-select v-model="form.payorId" placeholder="请选择保险公司" allowClear mode="multiple">
<a-select-option v-for="item in companyOptions" :key="item.corpCode" :value="item.id"> <a-select-option v-for="item in companyOptions" :key="item.corpCode" :value="item.id">
{{ item.longName }} {{ item.longName }}
</a-select-option> </a-select-option>
...@@ -150,6 +150,8 @@ export default { ...@@ -150,6 +150,8 @@ export default {
{ title: "病历号", dataIndex: "mrnNo",width: 180}, { title: "病历号", dataIndex: "mrnNo",width: 180},
{ title: "客户姓名",dataIndex: "patientName",width: 120,}, { title: "客户姓名",dataIndex: "patientName",width: 120,},
{ title: "保险公司", dataIndex: "payorName", width: 200 }, { title: "保险公司", dataIndex: "payorName", width: 200 },
{ title: "保险卡", dataIndex: "cardNo", width: 200 },
{ title: "客户生日", dataIndex: "birthday", width: 200 },
{ title: "就诊医生", dataIndex: "doctorName", width: 150 }, { title: "就诊医生", dataIndex: "doctorName", width: 150 },
{ title: "是否已关联寄送单", dataIndex: "isSend", width: 180,scopedSlots: { customRender: "isSend" } }, { title: "是否已关联寄送单", dataIndex: "isSend", width: 180,scopedSlots: { customRender: "isSend" } },
{ title: "是否已回款", dataIndex: "isEobBack", width: 180,scopedSlots: { customRender: "isEobBack" } }, { title: "是否已回款", dataIndex: "isEobBack", width: 180,scopedSlots: { customRender: "isEobBack" } },
...@@ -163,6 +165,7 @@ export default { ...@@ -163,6 +165,7 @@ export default {
{ title: "保险欠费", dataIndex: "insuranceArrearsAmount", width: 180 }, { title: "保险欠费", dataIndex: "insuranceArrearsAmount", width: 180 },
{ title: "个人欠费", dataIndex: "arrearsAmount", width: 180 }, { title: "个人欠费", dataIndex: "arrearsAmount", width: 180 },
{ title: "未清余额", dataIndex: "residueBackAmount", width: 180 }, { title: "未清余额", dataIndex: "residueBackAmount", width: 180 },
{ title: "账龄", dataIndex: "diffDay", width: 180 },
{ title: "操作", key: "operation", width: "175px",fixed: "right",scopedSlots: { customRender: "operation" }, align: "center"}, { title: "操作", key: "operation", width: "175px",fixed: "right",scopedSlots: { customRender: "operation" }, align: "center"},
]; ];
return { return {
...@@ -174,7 +177,7 @@ export default { ...@@ -174,7 +177,7 @@ export default {
patientName: "", patientName: "",
mrnNo: "", mrnNo: "",
paymentCode: "", paymentCode: "",
payorId: 0, payorId: [],
visitTimeEnd: "", visitTimeEnd: "",
visitTimeStart: "", visitTimeStart: "",
receiptType: "", receiptType: "",
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
:data-source="dataList" :data-source="dataList"
:scroll="{ x: true }" :scroll="{ x: true }"
:pagination="false" :pagination="false"
:rowKey="'id'" :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 }}
...@@ -89,14 +89,18 @@ export default { ...@@ -89,14 +89,18 @@ export default {
{ title: "病历号", dataIndex: "mrnNo",width: 120}, { title: "病历号", dataIndex: "mrnNo",width: 120},
{ title: "客户姓名",dataIndex: "patientName",width: 120,}, { title: "客户姓名",dataIndex: "patientName",width: 120,},
{ title: "保险公司", dataIndex: "payorName", width: 120 }, { title: "保险公司", dataIndex: "payorName", width: 120 },
{ title: "客户生日", dataIndex: "birthday", width: 120 },
{ title: "保险卡号", dataIndex: "cardNo", width: 120 },
{ 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 },
{ title: "回款金额", dataIndex: "paidAmountEob", width: 120 }, { title: "回款金额", dataIndex: "paidAmountEob", width: 120 },
{ title: "回款日期", dataIndex: "eobBackDate", width: 120 }, { title: "回款日期", dataIndex: "eobBackDate", width: 120 },
{ title: "回款编号", dataIndex: "backMoneyNo", width: 120 },
{ title: "EOB号", dataIndex: "eobNo", width: 120 }, { title: "EOB号", dataIndex: "eobNo", width: 120 },
{ title: "EOB名称", dataIndex: "eobName", width: 120 }, { title: "EOB备注", dataIndex: "eobName", width: 120 },
{ title: "账龄", dataIndex: "diffDay", width: 120 },
]; ];
return { return {
columns, columns,
...@@ -118,8 +122,8 @@ export default { ...@@ -118,8 +122,8 @@ export default {
pagination: { pagination: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
total: 0
}, },
total: 0
}; };
}, },
components: { components: {
...@@ -139,7 +143,8 @@ export default { ...@@ -139,7 +143,8 @@ 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.total = content.total || 0;
this.pagination.total = content.total || 0;
}); });
}, },
// 获取保险公司下拉选项 // 获取保险公司下拉选项
...@@ -161,6 +166,8 @@ export default { ...@@ -161,6 +166,8 @@ export default {
// 重置 // 重置
handlerReset() { handlerReset() {
this.form = {} this.form = {}
this.returnRange = null;
this.billRange = null;
}, },
// 搜索 // 搜索
......
...@@ -62,6 +62,11 @@ ...@@ -62,6 +62,11 @@
<a-input v-model="form.backMoneyNo" placeholder="回款编号" /> <a-input v-model="form.backMoneyNo" placeholder="回款编号" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="账单编号">
<a-input v-model="form.receiptNo" placeholder="账单编号" />
</a-form-model-item>
</a-col>
<a-col :md="24" class="none-label"> <a-col :md="24" class="none-label">
<a-form-model-item label="button"> <a-form-model-item label="button">
<a-button class="mar-left10" type="primary" @click="handlerSearch"> <a-button class="mar-left10" type="primary" @click="handlerSearch">
...@@ -156,9 +161,10 @@ export default { ...@@ -156,9 +161,10 @@ export default {
dateRange: [], //创建时间范围 dateRange: [], //创建时间范围
startDate: "", startDate: "",
endDate: "", endDate: "",
backStatus: "", backStatus: "0",
backAmountCny: "", // 回款金额 backAmountCny: "", // 回款金额
backMoneyNo: "", // 回款编号 backMoneyNo: "", // 回款编号
receiptNo:"", // 账单编号
}, },
dataList: [], dataList: [],
companyOptions: [], //保险公司 companyOptions: [], //保险公司
...@@ -196,7 +202,8 @@ export default { ...@@ -196,7 +202,8 @@ export default {
dateRange: [], //创建时间范围 dateRange: [], //创建时间范围
startDate: "", startDate: "",
endDate: "", endDate: "",
backStatus: "" backStatus: "0",
receiptNo:"", // 账单编号
}; };
}, },
// 获取保险公司下拉选项 // 获取保险公司下拉选项
......
...@@ -132,6 +132,8 @@ ...@@ -132,6 +132,8 @@
v-model="form.payorCode" v-model="form.payorCode"
placeholder="请选择保险公司" placeholder="请选择保险公司"
allow-clear allow-clear
show-search
:filter-option="filterOption"
:disabled="!isEdit" :disabled="!isEdit"
@change="changePayor" @change="changePayor"
> >
...@@ -430,14 +432,16 @@ export default { ...@@ -430,14 +432,16 @@ export default {
width: 150, width: 150,
customRender: (val, row) => { customRender: (val, row) => {
return ( return (
<a-input-number <a-input-number
v-model={row.backAmount} v-model={row.backAmount}
allow-clear allow-clear
disabled={!this.isEdit} disabled={!this.isEdit}
style={{"color": row.backAmount == row.currentReceiptAmount ? '' : 'red'}}
onBlur={() => { onBlur={() => {
changeAmount(row); changeAmount(row);
}} }}
/> />
); );
}, },
}; };
...@@ -499,6 +503,9 @@ export default { ...@@ -499,6 +503,9 @@ export default {
this.selectedRows.forEach((item) => { this.selectedRows.forEach((item) => {
totalMoney -= Number(item.backAmount); totalMoney -= Number(item.backAmount);
}); });
if(totalMoney < 0){
this.$message.error('可核销余额不足')
}
return Number(totalMoney.toFixed(2)); return Number(totalMoney.toFixed(2));
}, },
}, },
...@@ -546,6 +553,7 @@ export default { ...@@ -546,6 +553,7 @@ export default {
} }
}, },
onSelectChange(selectedRow, selected) { onSelectChange(selectedRow, selected) {
selectedRow['backAmount'] = this.residueBackAmount > selectedRow.currentReceiptAmount ? selectedRow.currentReceiptAmount: this.residueBackAmount;
if (selected) { if (selected) {
this.selectedRowKeys.push(selectedRow.id); this.selectedRowKeys.push(selectedRow.id);
this.selectedRows.push(selectedRow); this.selectedRows.push(selectedRow);
...@@ -557,6 +565,7 @@ export default { ...@@ -557,6 +565,7 @@ export default {
this.selectedRows.splice(index, 1); this.selectedRows.splice(index, 1);
this._confirmDelReceipt([selectedRow]); this._confirmDelReceipt([selectedRow]);
} }
this.addNewEvt(0)
}, },
onSelectAll(selected, selectedRows, changeRows) { onSelectAll(selected, selectedRows, changeRows) {
console.log(selected, selectedRows, changeRows); console.log(selected, selectedRows, changeRows);
...@@ -818,6 +827,10 @@ export default { ...@@ -818,6 +827,10 @@ export default {
this.$apis.EXPORTBACKRECEIPTLIST(filter).then(res => { this.$apis.EXPORTBACKRECEIPTLIST(filter).then(res => {
exportFile(res, '已关联账单.xls'); exportFile(res, '已关联账单.xls');
}) })
},
// 保险公司支持输入搜索
filterOption(input,option ) {
return option.componentOptions.children[0].text.indexOf(input) >= 0
} }
}, },
}; };
......
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