|
@@ -1,140 +1,219 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="main-contain incomeStatistics">
|
3
|
|
- <div class="position">
|
4
|
|
- <bread-crumb :crumbs='crumbs'></bread-crumb>
|
5
|
|
- </div>
|
6
|
|
- <div class="app-container">
|
7
|
|
- <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
8
|
|
- <div>
|
9
|
|
- <el-input size="small" style="width:150px;" v-model="keywords"
|
10
|
|
- class="filter-item"/>
|
11
|
|
- <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary" @click="searchAction">
|
12
|
|
- 搜索
|
13
|
|
- </el-button>
|
|
2
|
+ <div class="main-contain incomeStatistics">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb :crumbs='crumbs'></bread-crumb>
|
14
|
5
|
</div>
|
15
|
|
- <el-button size="small" type="primary" @click="dialogFormVisible = true" >医保对账</el-button>
|
16
|
|
- </div>
|
17
|
|
- <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
18
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
19
|
|
- <el-table-column
|
20
|
|
- prop="date"
|
21
|
|
- label="序号"
|
22
|
|
- width="60"
|
23
|
|
- align="center"
|
24
|
|
- type="index"
|
25
|
|
- >
|
26
|
|
- </el-table-column>
|
27
|
|
- <el-table-column align="center" prop="name" label="对账申请人">
|
28
|
|
- <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
|
29
|
|
- </el-table-column>
|
30
|
|
- <el-table-column align="center" prop="name" label="开始日期">
|
31
|
|
- <template slot-scope="scope">{{getTimes(scope.row.start_time)}}</template>
|
32
|
|
- </el-table-column>
|
33
|
|
- <el-table-column align="center" prop="name" label="结束日期">
|
34
|
|
- <template slot-scope="scope">{{getTimes(scope.row.end_time)}}</template>
|
35
|
|
- </el-table-column>
|
36
|
|
- <el-table-column align="center" prop="name" label="险种类型">
|
37
|
|
- <template slot-scope="scope">
|
38
|
|
- <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
|
39
|
|
- <div v-if="scope.row.insutype == '320'">公务员医疗补助</div>
|
40
|
|
- <div v-if="scope.row.insutype == '330'">大额医疗费用补助</div>
|
41
|
|
- <div v-if="scope.row.insutype == '340'">离休人员医疗保障</div>
|
42
|
|
- <div v-if="scope.row.insutype == '390'">城乡居民基本医疗保险</div>
|
43
|
|
- <div v-if="scope.row.insutype == '392'">城乡居民大病医疗保险</div>
|
44
|
|
- <div v-if="scope.row.insutype == '510'">生育保险</div>
|
45
|
|
- </template>
|
46
|
|
- </el-table-column>
|
47
|
|
- <el-table-column align="center" prop="name" label="对账类型">
|
48
|
|
- <template slot-scope="scope">
|
49
|
|
- <div v-if="scope.row.check_type == 1">总账</div>
|
50
|
|
- <div v-if="scope.row.check_type == 2">明细</div>
|
51
|
|
- </template>
|
52
|
|
- </el-table-column>
|
53
|
|
- <el-table-column align="center" prop="name" label="结算笔数">
|
54
|
|
- <template slot-scope="scope">{{scope.row.num}}</template>
|
55
|
|
- </el-table-column>
|
56
|
|
- <el-table-column align="center" prop="name" label="医疗费用总数">
|
57
|
|
- <template slot-scope="scope">
|
58
|
|
- {{scope.row.cost_total}}元
|
59
|
|
- </template>
|
60
|
|
- </el-table-column>
|
61
|
|
- <el-table-column align="center" prop="name" width="160" label="基本医疗基金总费用">
|
62
|
|
- <template slot-scope="scope">
|
63
|
|
- {{scope.row.func_total}}元
|
64
|
|
- </template>
|
65
|
|
- </el-table-column>
|
66
|
|
- <el-table-column align="center" prop="name" label="个人支付总费用">
|
67
|
|
- <template slot-scope="scope">
|
68
|
|
- {{scope.row.psn_pay}}元
|
69
|
|
- </template>
|
70
|
|
- </el-table-column>
|
71
|
|
- </el-table>
|
72
|
|
- <el-pagination
|
73
|
|
- @size-change="handleSizeChange"
|
74
|
|
- @current-change="handleCurrentChange"
|
75
|
|
- :page-sizes="[10, 50, 100]"
|
76
|
|
- :page-size="10"
|
77
|
|
- background
|
78
|
|
- style="margin-top:20px;float: right"
|
79
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
80
|
|
- :total="total"
|
81
|
|
-
|
82
|
|
- >
|
83
|
|
- </el-pagination>
|
84
|
|
- <el-dialog title="医保对账" :visible.sync="dialogFormVisible">
|
85
|
|
- <el-form :model="form" label-width="100px">
|
86
|
|
- <el-form-item label="时间" :label-width="formLabelWidth">
|
87
|
|
- <el-date-picker v-model="start_time" prefix-icon="el-icon-date"
|
88
|
|
- @change="handleStartTimeChange" :editable="false" :clearable="false"
|
89
|
|
- style="width: 200px;" type="date" placeholder="选择开始日期"
|
90
|
|
- format="yyyy-MM-dd"
|
91
|
|
- value-format="yyyy-MM-dd"
|
92
|
|
- align="right"></el-date-picker>
|
93
|
|
- -
|
94
|
|
-
|
95
|
|
- <el-date-picker v-model="end_time" prefix-icon="el-icon-date"
|
96
|
|
- @change="handleEndTimeChange" :editable="false" :clearable="false"
|
97
|
|
- style="width: 200px;margin-right:10px;" type="date" placeholder="选择结束日期"
|
98
|
|
- format="yyyy-MM-dd"
|
99
|
|
- value-format="yyyy-MM-dd"
|
100
|
|
- align="right"></el-date-picker>
|
101
|
|
- </el-form-item>
|
102
|
|
- <el-form-item label="险种类型" :label-width="formLabelWidth">
|
103
|
|
- <el-select v-model=" insutype" placeholder="请选择" style="width: 200px;">
|
104
|
|
- <el-option
|
105
|
|
- v-for="item in insutypes"
|
106
|
|
- :key="item.value"
|
107
|
|
- :label="item.label"
|
108
|
|
- :value="item.value">
|
109
|
|
- </el-option>
|
110
|
|
- </el-select>
|
111
|
|
- </el-form-item>
|
112
|
|
- <el-form-item label="对账类型" :label-width="formLabelWidth">
|
113
|
|
- <el-select v-model="check_type" placeholder="请选择" style="width: 200px;">
|
114
|
|
- <el-option
|
115
|
|
- v-for="item in options"
|
116
|
|
- :key="item.value"
|
117
|
|
- :label="item.label"
|
118
|
|
- :value="item.value">
|
119
|
|
- </el-option>
|
120
|
|
- </el-select>
|
121
|
|
- </el-form-item>
|
122
|
|
- </el-form>
|
123
|
|
- <div slot="footer" class="dialog-footer">
|
124
|
|
- <el-button @click="dialogFormVisible = false">取 消</el-button>
|
125
|
|
- <el-button type="primary" @click="confirm">确 定</el-button>
|
|
6
|
+ <div class="app-container">
|
|
7
|
+ <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
|
|
8
|
+ <div>
|
|
9
|
+ <el-input size="small" style="width:130px;" v-model="keywords"
|
|
10
|
+ class="filter-item"/>
|
|
11
|
+ <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
|
|
12
|
+ @click="searchAction">
|
|
13
|
+ 搜索
|
|
14
|
+ </el-button>
|
|
15
|
+ <el-date-picker v-model="query_start_time" prefix-icon="el-icon-date"
|
|
16
|
+ @change="handleStartTimeChange" :editable="false" :clearable="false"
|
|
17
|
+ style="width: 130px;" type="date" placeholder="选择开始日期"
|
|
18
|
+ format="yyyy-MM-dd"
|
|
19
|
+ value-format="yyyy-MM-dd"
|
|
20
|
+ align="right"></el-date-picker>
|
|
21
|
+ -
|
|
22
|
+
|
|
23
|
+ <el-date-picker v-model="query_end_time" prefix-icon="el-icon-date"
|
|
24
|
+ @change="handleEndTimeChange" :editable="false" :clearable="false"
|
|
25
|
+ style="width: 130px;margin-right:10px;" type="date" placeholder="选择结束日期"
|
|
26
|
+ format="yyyy-MM-dd"
|
|
27
|
+ value-format="yyyy-MM-dd"
|
|
28
|
+ align="right"></el-date-picker>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+ <label class="title">险种<span class="name"></span> : </label>
|
|
32
|
+ <el-select v-model="query_insutype" style="width:140px;margin-right:10px;" placeholder="请选择"
|
|
33
|
+ @change="changeInsutype">
|
|
34
|
+ <el-option
|
|
35
|
+ v-for="item in insutypes"
|
|
36
|
+ :key="item.value"
|
|
37
|
+ :label="item.label"
|
|
38
|
+ :value="item.value">
|
|
39
|
+ </el-option>
|
|
40
|
+ </el-select>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+ <label class="title">清算类别<span class="name"></span> : </label>
|
|
44
|
+ <el-select v-model="query_clr_type" style="width:100px;margin-right:10px;" placeholder="请选择"
|
|
45
|
+ @change="changeClrType">
|
|
46
|
+ <el-option
|
|
47
|
+ v-for="item in clrOptions"
|
|
48
|
+ :key="item.value"
|
|
49
|
+ :label="item.label"
|
|
50
|
+ :value="item.value">
|
|
51
|
+ </el-option>
|
|
52
|
+ </el-select>
|
|
53
|
+
|
|
54
|
+ </div>
|
|
55
|
+
|
|
56
|
+ </div>
|
|
57
|
+ <div style="float: right;margin-bottom: 10px">
|
|
58
|
+ <el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>
|
|
59
|
+ <el-button size="small" type="primary" @click="getFormData">下载对账报表</el-button>
|
|
60
|
+ </div>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+ <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
|
64
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
65
|
+ highlight-current-row
|
|
66
|
+ @select="selectCostInfo"
|
|
67
|
+ @selection-change="changeCostInfoTableData"
|
|
68
|
+ @select-all="changeAllCostInfoTableData"
|
|
69
|
+ row-key="row_key"
|
|
70
|
+ ref="multipleTable"
|
|
71
|
+ >
|
|
72
|
+ <el-table-column
|
|
73
|
+ align="center"
|
|
74
|
+ type="selection"
|
|
75
|
+ width="55"
|
|
76
|
+ ></el-table-column>
|
|
77
|
+ <el-table-column
|
|
78
|
+ prop="date"
|
|
79
|
+ label="序号"
|
|
80
|
+ width="60"
|
|
81
|
+ align="center"
|
|
82
|
+ type="index"
|
|
83
|
+ >
|
|
84
|
+ </el-table-column>
|
|
85
|
+ <el-table-column align="center" prop="name" label="对账结果">
|
|
86
|
+ <template slot-scope="scope">{{'平'}}</template>
|
|
87
|
+ </el-table-column>
|
|
88
|
+ <el-table-column align="center" prop="name" label="操作机构">
|
|
89
|
+ <!--<template slot-scope="scope">{{// this.$store.getters.xt_user.org.org_name}}</template>-->
|
|
90
|
+ </el-table-column>
|
|
91
|
+ <el-table-column align="center" prop="name" label="对账申请人">
|
|
92
|
+ <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
|
|
93
|
+ </el-table-column>
|
|
94
|
+ <el-table-column align="center" prop="name" label="开始时间">
|
|
95
|
+ <template slot-scope="scope">{{getTimes(scope.row.start_time)}}</template>
|
|
96
|
+ </el-table-column>
|
|
97
|
+ <el-table-column align="center" prop="name" label="结束时间">
|
|
98
|
+ <template slot-scope="scope">{{getTimes(scope.row.end_time)}}</template>
|
|
99
|
+ </el-table-column>
|
|
100
|
+ <el-table-column align="center" prop="name" label="险种类型">
|
|
101
|
+ <template slot-scope="scope">
|
|
102
|
+ <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
|
|
103
|
+ <div v-if="scope.row.insutype == '320'">公务员医疗补助</div>
|
|
104
|
+ <div v-if="scope.row.insutype == '330'">大额医疗费用补助</div>
|
|
105
|
+ <div v-if="scope.row.insutype == '340'">离休人员医疗保障</div>
|
|
106
|
+ <div v-if="scope.row.insutype == '390'">城乡居民基本医疗保险</div>
|
|
107
|
+ <div v-if="scope.row.insutype == '392'">城乡居民大病医疗保险</div>
|
|
108
|
+ <div v-if="scope.row.insutype == '510'">生育保险</div>
|
|
109
|
+ </template>
|
|
110
|
+ </el-table-column>
|
|
111
|
+ <el-table-column align="center" prop="name" label="对账类型">
|
|
112
|
+ <template slot-scope="scope">
|
|
113
|
+ <div v-if="scope.row.check_type == 1">总账</div>
|
|
114
|
+ <div v-if="scope.row.check_type == 2">明细</div>
|
|
115
|
+ </template>
|
|
116
|
+ </el-table-column>
|
|
117
|
+ <el-table-column align="center" prop="name" label="清算经办机构">
|
|
118
|
+ <template slot-scope="scope">{{getName(scope.row.creator)}}</template>
|
|
119
|
+ </el-table-column>
|
|
120
|
+ <el-table-column align="center" prop="name" label="定点医药机构医疗费总额(元)">
|
|
121
|
+ <template slot-scope="scope">{{scope.row.setl_optins}}</template>
|
|
122
|
+ </el-table-column>
|
|
123
|
+ <el-table-column align="center" prop="name" label="医保中心医疗费总额(元)">
|
|
124
|
+ <template slot-scope="scope">{{scope.row.cost_total}}</template>
|
|
125
|
+ </el-table-column>
|
|
126
|
+ <el-table-column align="center" prop="name" label="定点医药机构基金总额(元)">
|
|
127
|
+ <template slot-scope="scope">{{scope.row.cost_total}}</template>
|
|
128
|
+ </el-table-column>
|
|
129
|
+ <el-table-column align="center" prop="name" label="医保中心基金总额(元)">
|
|
130
|
+ <template slot-scope="scope">{{scope.row.func_total}}</template>
|
|
131
|
+ </el-table-column>
|
|
132
|
+ <el-table-column align="center" prop="name" label="定点医药机构个人账号总额(元)">
|
|
133
|
+ <template slot-scope="scope">{{scope.row.func_total}}</template>
|
|
134
|
+ </el-table-column>
|
|
135
|
+ <el-table-column align="center" prop="name" label="医保中心个人账号总额(元)">
|
|
136
|
+ <template slot-scope="scope">{{scope.row.psn_pay}}</template>
|
|
137
|
+ </el-table-column>
|
|
138
|
+ <el-table-column align="center" prop="name" label="定点医药机构结算笔数">
|
|
139
|
+ <template slot-scope="scope">{{scope.row.psn_pay}}</template>
|
|
140
|
+ </el-table-column>
|
|
141
|
+ <el-table-column align="center" prop="name" label="医保中心结算笔数">
|
|
142
|
+ <template slot-scope="scope">{{scope.row.num}}</template>
|
|
143
|
+ </el-table-column>
|
|
144
|
+
|
|
145
|
+ </el-table>
|
|
146
|
+ <el-pagination
|
|
147
|
+ @size-change="handleSizeChange"
|
|
148
|
+ @current-change="handleCurrentChange"
|
|
149
|
+ :page-sizes="[10, 50, 100]"
|
|
150
|
+ :page-size="10"
|
|
151
|
+ background
|
|
152
|
+ style="margin-top:20px;float: right"
|
|
153
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
154
|
+ :total="total"
|
|
155
|
+ >
|
|
156
|
+ </el-pagination>
|
|
157
|
+ <el-dialog title="医保对账" :visible.sync="dialogFormVisible">
|
|
158
|
+ <el-form :model="form" label-width="100px">
|
|
159
|
+ <el-form-item label="时间" label-width="100px">
|
|
160
|
+ <el-date-picker v-model="start_time" prefix-icon="el-icon-date"
|
|
161
|
+ @change="handleStartTimeChange" :editable="false" :clearable="false"
|
|
162
|
+ style="width: 200px;" type="date" placeholder="选择开始日期"
|
|
163
|
+ format="yyyy-MM-dd"
|
|
164
|
+ value-format="yyyy-MM-dd"
|
|
165
|
+ align="right"></el-date-picker>
|
|
166
|
+ -
|
|
167
|
+
|
|
168
|
+ <el-date-picker v-model="end_time" prefix-icon="el-icon-date"
|
|
169
|
+ @change="handleEndTimeChange" :editable="false" :clearable="false"
|
|
170
|
+ style="width: 200px;margin-right:10px;" type="date" placeholder="选择结束日期"
|
|
171
|
+ format="yyyy-MM-dd"
|
|
172
|
+ value-format="yyyy-MM-dd"
|
|
173
|
+ align="right"></el-date-picker>
|
|
174
|
+ </el-form-item>
|
|
175
|
+ <el-form-item label="险种类型" :label-width="formLabelWidth">
|
|
176
|
+ <el-select v-model="insutype" placeholder="请选择" style="width: 200px;">
|
|
177
|
+ <el-option
|
|
178
|
+ v-for="item in insutypes"
|
|
179
|
+ :key="item.value"
|
|
180
|
+ :label="item.label"
|
|
181
|
+ :value="item.value">
|
|
182
|
+ </el-option>
|
|
183
|
+ </el-select>
|
|
184
|
+ </el-form-item>
|
|
185
|
+ <el-form-item label="对账类型" :label-width="formLabelWidth">
|
|
186
|
+ <el-select v-model="check_type" placeholder="请选择" style="width: 200px;">
|
|
187
|
+ <el-option
|
|
188
|
+ v-for="item in options"
|
|
189
|
+ :key="item.value"
|
|
190
|
+ :label="item.label"
|
|
191
|
+ :value="item.value">
|
|
192
|
+ </el-option>
|
|
193
|
+ </el-select>
|
|
194
|
+ </el-form-item>
|
|
195
|
+ </el-form>
|
|
196
|
+ <div slot="footer" class="dialog-footer">
|
|
197
|
+ <el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
198
|
+ <el-button type="primary" @click="confirm">确 定</el-button>
|
|
199
|
+ </div>
|
|
200
|
+ </el-dialog>
|
126
|
201
|
</div>
|
127
|
|
- </el-dialog>
|
128
|
|
- </div>
|
129
|
202
|
|
130
|
203
|
|
131
|
|
- </div>
|
|
204
|
+ </div>
|
132
|
205
|
</template>
|
133
|
206
|
|
134
|
207
|
|
135
|
208
|
<script>
|
136
|
209
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
137
|
|
- import { getDoctorList, getExportConsumeDetailList, getHisOrderList, getList } from '@/api/his/his'
|
|
210
|
+ import {
|
|
211
|
+ getCheckAccountFormData,
|
|
212
|
+ getDoctorList,
|
|
213
|
+ getExportConsumeDetailList,
|
|
214
|
+ getHisOrderList,
|
|
215
|
+ getList
|
|
216
|
+ } from '@/api/his/his'
|
138
|
217
|
import { uParseTime } from '@/utils/tools'
|
139
|
218
|
import { fetchAllAdminUsers } from '@/api/doctor'
|
140
|
219
|
import axios from 'axios'
|
|
@@ -145,6 +224,7 @@
|
145
|
224
|
},
|
146
|
225
|
data() {
|
147
|
226
|
return {
|
|
227
|
+ form: {},
|
148
|
228
|
crumbs: [
|
149
|
229
|
{ path: false, name: '门诊收费' },
|
150
|
230
|
{ path: false, name: '医保费用对照' }
|
|
@@ -155,65 +235,207 @@
|
155
|
235
|
dialogFormVisible: false,
|
156
|
236
|
total: 0,
|
157
|
237
|
adminUserOptions: [],
|
158
|
|
- start_time:"",
|
159
|
|
- end_time:"",
|
160
|
|
- insutype:"",
|
161
|
|
- check_type:"",
|
162
|
|
-
|
163
|
|
- options:[
|
|
238
|
+ start_time: '',
|
|
239
|
+ end_time: '',
|
|
240
|
+ insutype: '',
|
|
241
|
+ check_type: '',
|
|
242
|
+ keywords: '',
|
|
243
|
+ query_start_time: '',
|
|
244
|
+ query_end_time: '',
|
|
245
|
+ selection:[],
|
|
246
|
+ query_insutype: '',
|
|
247
|
+ query_clr_type: '',
|
|
248
|
+ fromData: [],
|
|
249
|
+ options: [
|
164
|
250
|
{
|
165
|
|
- value:1,
|
166
|
|
- label:"总账",
|
167
|
|
- }, {
|
168
|
|
- value:2,
|
169
|
|
- label:"明细",
|
170
|
|
- },
|
|
251
|
+ value: 1,
|
|
252
|
+ label: '总账'
|
|
253
|
+ }, {
|
|
254
|
+ value: 2,
|
|
255
|
+ label: '明细'
|
|
256
|
+ }
|
171
|
257
|
],
|
172
|
|
-
|
173
|
|
- insutypes:[
|
|
258
|
+ clrOptions: [
|
174
|
259
|
{
|
175
|
|
- value:"310",
|
176
|
|
- label:"职工基本医疗保险",
|
177
|
|
- }, {
|
178
|
|
- value:"320",
|
179
|
|
- label:"公务员医疗补助",
|
180
|
|
- }, {
|
181
|
|
- value:"330",
|
182
|
|
- label:"大额医疗费用补助",
|
183
|
|
- }, {
|
184
|
|
- value:"340",
|
185
|
|
- label:"离休人员医疗保障",
|
|
260
|
+ value: '11',
|
|
261
|
+ label: '门诊'
|
|
262
|
+ }, {
|
|
263
|
+ value: '21',
|
|
264
|
+ label: '住院'
|
|
265
|
+ }, {
|
|
266
|
+ value: '41',
|
|
267
|
+ label: '药店购药'
|
|
268
|
+ }, {
|
|
269
|
+ value: '99',
|
|
270
|
+ label: '其他'
|
|
271
|
+ }
|
|
272
|
+ ],
|
|
273
|
+ insutypes: [
|
|
274
|
+ {
|
|
275
|
+ value: '310',
|
|
276
|
+ label: '职工基本医疗保险'
|
|
277
|
+ }, {
|
|
278
|
+ value: '320',
|
|
279
|
+ label: '公务员医疗补助'
|
|
280
|
+ }, {
|
|
281
|
+ value: '330',
|
|
282
|
+ label: '大额医疗费用补助'
|
|
283
|
+ }, {
|
|
284
|
+ value: '340',
|
|
285
|
+ label: '离休人员医疗保障'
|
186
|
286
|
},
|
187
|
287
|
{
|
188
|
|
- value:"390",
|
189
|
|
- label:"城乡居民基本医疗保险",
|
|
288
|
+ value: '390',
|
|
289
|
+ label: '城乡居民基本医疗保险'
|
190
|
290
|
}, {
|
191
|
|
- value:"392",
|
192
|
|
- label:"城乡居民大病医疗保险",
|
|
291
|
+ value: '392',
|
|
292
|
+ label: '城乡居民大病医疗保险'
|
193
|
293
|
}, {
|
194
|
|
- value:"510",
|
195
|
|
- label:"生育保险",
|
|
294
|
+ value: '510',
|
|
295
|
+ label: '生育保险'
|
196
|
296
|
}
|
197
|
297
|
|
198
|
|
-
|
|
298
|
+ // 1617724800
|
199
|
299
|
|
200
|
300
|
]
|
201
|
301
|
|
202
|
302
|
}
|
203
|
303
|
},
|
204
|
304
|
methods: {
|
205
|
|
- confirm(){
|
206
|
|
- if(this.check_type == 1){
|
|
305
|
+ changeInsutype() {
|
|
306
|
+ let params = {
|
|
307
|
+ 'page': 1,
|
|
308
|
+ 'limit': 10,
|
|
309
|
+ 'keywords': this.keywords,
|
|
310
|
+ 'insutype': this.query_insutype,
|
|
311
|
+ 'clr_type': "11",
|
|
312
|
+ 'start_time': this.query_start_time,
|
|
313
|
+ 'end_time': this.query_end_time,
|
|
314
|
+ }
|
|
315
|
+ this.tableData = []
|
|
316
|
+ getList(params).then(response => {
|
|
317
|
+ if (response.data.state == 0) {
|
|
318
|
+ this.$message.error(response.data.msg)
|
|
319
|
+ return false
|
|
320
|
+ } else {
|
|
321
|
+ this.tableData = response.data.data.list
|
|
322
|
+ this.total = response.data.data.total
|
|
323
|
+ }
|
|
324
|
+ })
|
|
325
|
+
|
|
326
|
+ }, changeClrType(val) {
|
|
327
|
+ if (val != "11"){
|
|
328
|
+ this.tableData = []
|
|
329
|
+ this.total = 0
|
|
330
|
+ }else{
|
|
331
|
+ let params = {
|
|
332
|
+ 'page': 1,
|
|
333
|
+ 'limit': 10,
|
|
334
|
+ 'keywords': this.keywords,
|
|
335
|
+ 'insutype': this.query_insutype,
|
|
336
|
+ 'clr_type': "11",
|
|
337
|
+ 'start_time': this.query_start_time,
|
|
338
|
+ 'end_time': this.query_end_time,
|
|
339
|
+ }
|
|
340
|
+ this.tableData = []
|
|
341
|
+ getList(params).then(response => {
|
|
342
|
+ if (response.data.state == 0) {
|
|
343
|
+ this.$message.error(response.data.msg)
|
|
344
|
+ return false
|
|
345
|
+ } else {
|
|
346
|
+ this.tableData = response.data.data.list
|
|
347
|
+ this.total = response.data.data.total
|
|
348
|
+ }
|
|
349
|
+ })
|
|
350
|
+ }
|
|
351
|
+ },
|
|
352
|
+ handleStartTimeChange() {
|
|
353
|
+
|
|
354
|
+ let params = {
|
|
355
|
+ 'page': 1,
|
|
356
|
+ 'limit': 10,
|
|
357
|
+ 'keywords': this.keywords,
|
|
358
|
+ 'insutype': "",
|
|
359
|
+ 'clr_type': "11",
|
|
360
|
+ 'start_time': this.query_start_time,
|
|
361
|
+ 'end_time': this.query_end_time,
|
|
362
|
+ }
|
|
363
|
+ this.tableData = []
|
|
364
|
+ getList(params).then(response => {
|
|
365
|
+ if (response.data.state == 0) {
|
|
366
|
+ this.$message.error(response.data.msg)
|
|
367
|
+ return false
|
|
368
|
+ } else {
|
|
369
|
+ this.tableData = response.data.data.list
|
|
370
|
+ this.total = response.data.data.total
|
|
371
|
+ }
|
|
372
|
+ })
|
|
373
|
+
|
|
374
|
+ }, handleEndTimeChange() {
|
|
375
|
+
|
|
376
|
+ let params = {
|
|
377
|
+ 'page': 1,
|
|
378
|
+ 'limit': 10,
|
|
379
|
+ 'keywords': this.keywords,
|
|
380
|
+ 'insutype': "",
|
|
381
|
+ 'clr_type': "11",
|
|
382
|
+ 'start_time': this.query_start_time,
|
|
383
|
+ 'end_time': this.query_end_time,
|
|
384
|
+ }
|
|
385
|
+ this.tableData = []
|
|
386
|
+ getList(params).then(response => {
|
|
387
|
+ if (response.data.state == 0) {
|
|
388
|
+ this.$message.error(response.data.msg)
|
|
389
|
+ return false
|
|
390
|
+ } else {
|
|
391
|
+ this.tableData = response.data.data.list
|
|
392
|
+ this.total = response.data.data.total
|
|
393
|
+ }
|
|
394
|
+ })
|
|
395
|
+
|
|
396
|
+ },
|
|
397
|
+
|
|
398
|
+ searchAction() {
|
|
399
|
+ let params = {
|
|
400
|
+ 'page': 1,
|
|
401
|
+ 'limit': 10,
|
|
402
|
+ 'keywords': this.keywords,
|
|
403
|
+ 'insutype': "",
|
|
404
|
+ 'clr_type': "11",
|
|
405
|
+ 'start_time': "",
|
|
406
|
+ 'end_time': "",
|
|
407
|
+ }
|
|
408
|
+ this.tableData = []
|
|
409
|
+ getList(params).then(response => {
|
|
410
|
+ if (response.data.state == 0) {
|
|
411
|
+ this.$message.error(response.data.msg)
|
|
412
|
+ return false
|
|
413
|
+ } else {
|
|
414
|
+ this.tableData = response.data.data.list
|
|
415
|
+ this.total = response.data.data.total
|
|
416
|
+ }
|
|
417
|
+ })
|
|
418
|
+
|
|
419
|
+ },
|
|
420
|
+ selectCostInfo(selection, row) {
|
|
421
|
+ this.selection = selection
|
|
422
|
+
|
|
423
|
+ }, changeCostInfoTableData(val) {
|
|
424
|
+ this.selection = val
|
|
425
|
+ }, changeAllCostInfoTableData(selection) {
|
|
426
|
+ this.selection = selection
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+ }, confirm() {
|
|
430
|
+ if (this.check_type == 1) {
|
207
|
431
|
let params = {
|
208
|
432
|
start_time: this.start_time,
|
209
|
433
|
end_time: this.end_time,
|
210
|
434
|
insutype: this.insutype,
|
211
|
435
|
clr_type: '11'
|
212
|
436
|
}
|
213
|
|
-
|
214
|
437
|
var that = this
|
215
|
|
-
|
216
|
|
- if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
|
|
438
|
+ if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106) {
|
217
|
439
|
axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
|
218
|
440
|
params: params
|
219
|
441
|
})
|
|
@@ -222,11 +444,32 @@
|
222
|
444
|
that.$message.error(response.data.msg)
|
223
|
445
|
return false
|
224
|
446
|
} else {
|
225
|
|
- this.page =1
|
226
|
|
- this.limit = 10
|
227
|
|
- this.keywords = ""
|
228
|
|
- this.getList()
|
|
447
|
+ var result_desc = ''
|
|
448
|
+
|
|
449
|
+ if (response.data.data.stmt_rslt == 0) {
|
|
450
|
+ result_desc = '对账平'
|
|
451
|
+ } else if (response.data.data.stmt_rslt == 1) {
|
|
452
|
+ result_desc = '中心多' + '\n' + response.data.data.stmt_rslt_dscr
|
|
453
|
+
|
|
454
|
+ } else if (response.data.data.stmt_rslt == 2) {
|
|
455
|
+ result_desc = '机构多' + '\n' + response.data.data.stmt_rslt_dscr
|
|
456
|
+ }
|
|
457
|
+
|
|
458
|
+ that.$alert(result_desc, '对账结果', {
|
|
459
|
+ confirmButtonText: '确定',
|
|
460
|
+ callback: action => {
|
|
461
|
+ this.dialogFormVisible = false
|
|
462
|
+ }
|
|
463
|
+ })
|
229
|
464
|
|
|
465
|
+ that.page = 1
|
|
466
|
+ that.limit = 10
|
|
467
|
+ that.keywords = ''
|
|
468
|
+ that.query_start_time = ''
|
|
469
|
+ that.query_end_time = ''
|
|
470
|
+ that.query_insutype = ''
|
|
471
|
+ that.query_clr_type = ''
|
|
472
|
+ that.getList()
|
230
|
473
|
}
|
231
|
474
|
})
|
232
|
475
|
.catch(function(error) {
|
|
@@ -235,10 +478,10 @@
|
235
|
478
|
|
236
|
479
|
}
|
237
|
480
|
|
238
|
|
- }else {
|
|
481
|
+ } else {
|
239
|
482
|
let params = {
|
240
|
483
|
start_time: this.start_time,
|
241
|
|
- end_time: this.end_time,
|
|
484
|
+ end_time: this.end_time
|
242
|
485
|
}
|
243
|
486
|
var that = this
|
244
|
487
|
axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
|
|
@@ -249,20 +492,16 @@
|
249
|
492
|
that.$message.error(response.data.msg)
|
250
|
493
|
return false
|
251
|
494
|
} else {
|
252
|
|
- this.page =1
|
|
495
|
+ this.page = 1
|
253
|
496
|
this.limit = 10
|
254
|
|
- this.keywords = ""
|
|
497
|
+ this.keywords = ''
|
255
|
498
|
this.getList()
|
256
|
499
|
}
|
257
|
500
|
})
|
258
|
501
|
.catch(function(error) {
|
259
|
502
|
|
260
|
503
|
})
|
261
|
|
-
|
262
|
|
-
|
263
|
504
|
}
|
264
|
|
-
|
265
|
|
-
|
266
|
505
|
},
|
267
|
506
|
getInsutype(type) {
|
268
|
507
|
|
|
@@ -290,8 +529,11 @@
|
290
|
529
|
let params = {
|
291
|
530
|
'page': this.page,
|
292
|
531
|
'limit': this.limit,
|
293
|
|
- 'keywords': this.keywords
|
294
|
|
-
|
|
532
|
+ 'keywords': this.keywords,
|
|
533
|
+ 'insutype': this.query_insutype,
|
|
534
|
+ 'clr_type': this.query_clr_type,
|
|
535
|
+ 'start_time': this.query_start_time,
|
|
536
|
+ 'end_time': this.query_end_time
|
295
|
537
|
}
|
296
|
538
|
this.tableData = []
|
297
|
539
|
getList(params).then(response => {
|
|
@@ -313,6 +555,65 @@
|
313
|
555
|
this.page = page
|
314
|
556
|
this.getList()
|
315
|
557
|
|
|
558
|
+ }, getFormData() {
|
|
559
|
+ if (this.selection.length == 0) {
|
|
560
|
+ this.$message.error('请选择要下载的对账记录')
|
|
561
|
+ return
|
|
562
|
+ }
|
|
563
|
+
|
|
564
|
+ let params = {
|
|
565
|
+ 'start_time': this.getTimes(this.selection[0].start_time),
|
|
566
|
+ 'end_time': this.getTimes(this.selection[0].end_time),
|
|
567
|
+ 'insutype': this.selection[0].insutype
|
|
568
|
+ }
|
|
569
|
+ getCheckAccountFormData(params).then(response => {
|
|
570
|
+ if (response.data.state == 0) {
|
|
571
|
+ this.$message.error(response.data.msg)
|
|
572
|
+ return false
|
|
573
|
+ } else {
|
|
574
|
+ this.fromData = response.data.data.list
|
|
575
|
+ var list = []
|
|
576
|
+
|
|
577
|
+ for (let i = 0; i < this.fromData.length; i++) {
|
|
578
|
+ let obj = {
|
|
579
|
+ '结算金额': this.fromData[i].medfee_sumamt,
|
|
580
|
+ '姓名': this.fromData[i].psn_name,
|
|
581
|
+ '身份证': this.fromData[i].id_card_no,
|
|
582
|
+ '个人编号': this.fromData[i].psn_no,
|
|
583
|
+ '门诊流水号': this.fromData[i].mdtrt_id,
|
|
584
|
+ '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
|
|
585
|
+ '起付线': this.fromData[i].act_pay_dedc,
|
|
586
|
+ '统筹基金': this.fromData[i].fund_pay_sumamt,
|
|
587
|
+ '个人支付': this.fromData[i].psn_cash_pay,
|
|
588
|
+ '个账支付': this.fromData[i].acct_pay,
|
|
589
|
+ '现金支付': this.fromData[i].cash_pay,
|
|
590
|
+ '总费用': this.fromData[i].sumamt,
|
|
591
|
+ '冲销标志': '已结算'
|
|
592
|
+ }
|
|
593
|
+ list.push(obj)
|
|
594
|
+ }
|
|
595
|
+ var insutype_name = ''
|
|
596
|
+ if (this.query_insutype == '310') {
|
|
597
|
+ insutype_name = '职工基本医疗保险'
|
|
598
|
+ } else if (this.query_insutype == '390') {
|
|
599
|
+ insutype_name = '城乡居民基本医疗保险'
|
|
600
|
+ }
|
|
601
|
+
|
|
602
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
603
|
+ const tHeader = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
|
|
604
|
+ const filterVal = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
|
|
605
|
+ const data = this.formatJson(filterVal, list)
|
|
606
|
+ excel.export_json_to_excel({
|
|
607
|
+ header: tHeader,
|
|
608
|
+ data,
|
|
609
|
+ filename:this.getTimes(this.selection[0].start_time)+ '~' + this.getTimes(this.selection[0].end_time)+ insutype_name + '对账报表'
|
|
610
|
+ })
|
|
611
|
+ })
|
|
612
|
+ }
|
|
613
|
+ })
|
|
614
|
+
|
|
615
|
+ }, formatJson(filterVal, jsonData) {
|
|
616
|
+ return jsonData.map(v => filterVal.map(j => v[j]))
|
316
|
617
|
}
|
317
|
618
|
},
|
318
|
619
|
created() {
|