1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<template>
<!-- 收费查询-账单查询 -->
<div class="white_bg burt-container custom-info">
<!-- form -->
<a-form-model ref="form" layout="vertical" :model="form">
<a-row :gutter="30">
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="保险公司">
<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">
{{ item.longName }}
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="病案号">
<a-input v-model="form.mrnNo" placeholder="请输入" allow-clear />
</a-form-model-item>
</a-col>
<a-col :xl="4" :lg="6" :sm="12">
<a-form-model-item label="客户名称">
<a-input v-model="form.patientName" placeholder="请输入" allow-clear />
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="账单起止日期">
<a-range-picker
format="YYYY-MM-DD"
format-value="YYYY-MM-DD"
v-model="billRange"
:placeholder="['开始时间','结束时间']"
@change="onSelectBillTime"
/>
</a-form-model-item>
</a-col>
<a-col :xl="6" :lg="6" :sm="12">
<a-form-model-item label="回款起止日期">
<a-range-picker
format="YYYY-MM-DD"
format-value="YYYY-MM-DD"
v-model="returnRange"
:placeholder="['开始时间','结束时间']"
@change="onSelectReturnTime"
/>
</a-form-model-item>
</a-col>
<a-col :xl="10" :lg="10" :sm="12" class="none-label">
<a-form-model-item label="button">
<a-button class="mar-left10" type="primary" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置
</a-button>
<a-button class="mar-left10" type="primary" @click="handlerSearch">
<Icon name="ssisearch_active" :size="14" />查询
</a-button>
<a-button class="mar-left10" type="primary" @click="exportExcel">
<Icon name="ssidaochu" :size="14" />导出
</a-button>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
<!-- table -->
<a-table
:columns="columns"
:data-source="dataList"
:scroll="{ x: true }"
:pagination="false"
:rowKey="record => {record.id+record.backMoneyNo}"
>
<template slot="index" slot-scope="text, record, index">
{{ index + 1 }}
</template>
</a-table>
<!--分页-->
<BurtPagination :pagination="pagination" @pageChange="getList" />
</div>
</template>
<script>
import BurtPagination from "@/components/CUSTOMER/pagation";
import { exportFile } from '@/utils/index';
export default {
data() {
const columns = [
{ title: "序号", dataIndex: "index", key:"index",align:'center', width: 80,scopedSlots: { customRender: "index" }},
{ title: "病历号", dataIndex: "mrnNo",width: 120},
{ title: "客户姓名",dataIndex: "patientName",width: 120,},
{ title: "保险公司", dataIndex: "payorName", width: 120 },
{ title: "客户生日", dataIndex: "birthday", width: 120 },
{ title: "保险卡号", dataIndex: "cardNo", width: 120 },
{ title: "账单编号", dataIndex: "receiptNo", width: 120 },
{ title: "账单日期", dataIndex: "receiptDate", width: 120 },
{ title: "收银", dataIndex: "receiptTellerName", width: 120 },
{ title: "账单金额", dataIndex: "actualAmount", width: 120 },
{ title: "回款金额", dataIndex: "paidAmountEob", width: 120 },
{ title: "回款日期", dataIndex: "eobBackDate", width: 120 },
{ title: "回款编号", dataIndex: "backMoneyNo", width: 120 },
{ title: "EOB号", dataIndex: "eobNo", width: 120 },
{ title: "EOB备注", dataIndex: "eobName", width: 120 },
{ title: "账龄", dataIndex: "diffDay", width: 120 },
];
return {
columns,
billRange: null,
returnRange: null,
form: {
payorCode: '',
mrnNo: '',
patientName: '',
receiptDateStart: '',
receiptDateEnd: '',
eobBackDateStart: '',
eobBackDateEnd: ''
},
pageForm: {}, // 搜索form
companyOptions: [], //保险公司
dataList: [],
pagination: {
pageNum: 1,
pageSize: 10,
total: 0
},
};
},
components: {
BurtPagination,
},
created() {
this.getList();
this._getCompanyOptions();
},
methods: {
// 选择框筛选
filterCode(input, option) {
return (
option.componentOptions.children[0].text
.toLowerCase()
.indexOf(input.toLowerCase()) >= 0
);
},
// 获取列表数据
getList() {
const data = {
...this.pageForm,
...this.pagination,
};
this.$apis.backMoneyReport(data).then((res) => {
let content = res.content || {};
this.dataList = content.list || [];
this.pagination.total = content.total || 0;
});
},
// 获取保险公司下拉选项
_getCompanyOptions() {
this.$apis.GETCOMPANYOPTIONS().then((res) => {
this.companyOptions = res.content || [];
});
},
onSelectBillTime(date, dateString) {
this.form.receiptDateStart = dateString[0] ? dateString[0] + ' 00:00:00' : ''
this.form.receiptDateEnd = dateString[1] ? dateString[1] + ' 23:59:59' : ''
},
onSelectReturnTime(date, dateString) {
this.form.eobBackDateStart = dateString[0] ? dateString[0] + ' 00:00:00' : ''
this.form.eobBackDateEnd = dateString[1] ? dateString[1] + ' 23:59:59' : ''
},
// 重置
handlerReset() {
this.form = {}
this.returnRange = null;
this.billRange = null;
},
// 搜索
handlerSearch() {
this.$refs.form.validate((valid) => {
if (!valid) {
return false;
}
this.pagination.pageNum = 1;
this.pageForm = this.$lodash.cloneDeep(this.form);
this.getList();
});
},
//导出报表
exportExcel(){
let filter = {
...this.form,
}
this.$apis.exportBackMoneyReport(filter).then(res => {
exportFile(res, '账单回款报表.xls');
})
}
},
};
</script>
<style lang="less" scoped>
.none-label {
text-align: left;
.ant-form-item-label {
opacity: 0;
}
}
.ant-btn .icon-class {
.mg-r(10);
}
</style>