|
@@ -0,0 +1,349 @@
|
|
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"
|
|
12
|
+ @click="searchAction">
|
|
13
|
+ 搜索
|
|
14
|
+ </el-button>
|
|
15
|
+ </div>
|
|
16
|
+ <el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>
|
|
17
|
+ </div>
|
|
18
|
+ <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
|
|
19
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
20
|
+ highlight-current-row>
|
|
21
|
+ <el-table-column
|
|
22
|
+ prop="date"
|
|
23
|
+ label="序号"
|
|
24
|
+ width="60"
|
|
25
|
+ align="center"
|
|
26
|
+ type="index"
|
|
27
|
+ >
|
|
28
|
+ </el-table-column>
|
|
29
|
+ <el-table-column align="center" prop="name" label="流水号">
|
|
30
|
+ <template slot-scope="scope">{{scope.row.trt_dcla_detl_sn}}</template>
|
|
31
|
+ </el-table-column>
|
|
32
|
+ <el-table-column align="center" prop="name" label="时间">
|
|
33
|
+ <template slot-scope="scope">{{getTimes(scope.row.ctime)}}</template>
|
|
34
|
+ </el-table-column>
|
|
35
|
+ <el-table-column align="center" prop="name" label="姓名">
|
|
36
|
+ <template slot-scope="scope">{{scope.row.name}}</template>
|
|
37
|
+ </el-table-column>
|
|
38
|
+ <el-table-column align="center" prop="name" label="人员编号">
|
|
39
|
+ <template slot-scope="scope">
|
|
40
|
+ <div>{{scope.row.psn_no}}</div>
|
|
41
|
+ </template>
|
|
42
|
+ </el-table-column>
|
|
43
|
+ <el-table-column align="center" prop="name" label="联系电话">
|
|
44
|
+ <template slot-scope="scope">{{scope.row.phone}}</template>
|
|
45
|
+ </el-table-column>
|
|
46
|
+ <el-table-column align="center" prop="name" label="地址">
|
|
47
|
+ <template slot-scope="scope">
|
|
48
|
+ {{scope.row.home_address}}
|
|
49
|
+ </template>
|
|
50
|
+ </el-table-column>
|
|
51
|
+ <el-table-column align="center" prop="name" width="160" label="鉴定定点医药机构">
|
|
52
|
+ <template slot-scope="scope">
|
|
53
|
+ {{scope.row.org_name}}
|
|
54
|
+ </template>
|
|
55
|
+ </el-table-column>
|
|
56
|
+ <el-table-column align="center" prop="name" label="医生">
|
|
57
|
+ <template slot-scope="scope">
|
|
58
|
+ <el-select v-model="scope.row.doctor_id" placeholder="请选择">
|
|
59
|
+ <el-option
|
|
60
|
+ v-for="item in doctorList"
|
|
61
|
+ :key="item.admin_user_id"
|
|
62
|
+ :label="item.user_name"
|
|
63
|
+ :value="item.admin_user_id">
|
|
64
|
+ </el-option>
|
|
65
|
+ </el-select>
|
|
66
|
+ </template>
|
|
67
|
+ </el-table-column>
|
|
68
|
+ <el-table-column align="center" prop="name" label="科室">
|
|
69
|
+ <template slot-scope="scope">
|
|
70
|
+ <el-select style="margin-right:5px;width:140px;" v-model="scope.row.department_id" placeholder="请选择">
|
|
71
|
+ <el-option
|
|
72
|
+ v-for="(item,index) in department"
|
|
73
|
+ :key="index"
|
|
74
|
+ :label="item.name"
|
|
75
|
+ :value="item.id">
|
|
76
|
+ </el-option>
|
|
77
|
+ </el-select>
|
|
78
|
+ </template>
|
|
79
|
+ </el-table-column>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+ <el-table-column align="center" prop="name" label="险种类型">
|
|
84
|
+ <template slot-scope="scope">
|
|
85
|
+ <div v-if="scope.row.insutype == '310'">职工基本医疗保险</div>
|
|
86
|
+ <div v-if="scope.row.insutype == '320'">公务员医疗补助</div>
|
|
87
|
+ <div v-if="scope.row.insutype == '330'">大额医疗费用补助</div>
|
|
88
|
+ <div v-if="scope.row.insutype == '340'">离休人员医疗保障</div>
|
|
89
|
+ <div v-if="scope.row.insutype == '390'">城乡居民基本医疗保险</div>
|
|
90
|
+ <div v-if="scope.row.insutype == '392'">城乡居民大病医疗保险</div>
|
|
91
|
+ <div v-if="scope.row.insutype == '510'">生育保险</div>
|
|
92
|
+ </template>
|
|
93
|
+ </el-table-column>
|
|
94
|
+
|
|
95
|
+ <el-table-column align="center" prop="name" label="疾病类型">
|
|
96
|
+ <template slot-scope="scope">
|
|
97
|
+ <el-select style="width:100%;" v-model="scope.row.sick_type" placeholder="请选择">
|
|
98
|
+ <el-option
|
|
99
|
+ v-for="(item,index) in sick"
|
|
100
|
+ :key="index"
|
|
101
|
+ :label="item.class_name"
|
|
102
|
+ :value="item.id">
|
|
103
|
+ </el-option>
|
|
104
|
+ </el-select>
|
|
105
|
+ </template>
|
|
106
|
+ </el-table-column>
|
|
107
|
+
|
|
108
|
+ <el-table-column prop="date" label="操作" width="250" align="center" fixed="right">
|
|
109
|
+ <template slot-scope="scope">
|
|
110
|
+ <el-button type="primary" size="small" icon="el-icon-refresh-left">
|
|
111
|
+ <span v-if="scope.row.is_cancel == 0">备案</span>
|
|
112
|
+ <span v-if="scope.row.is_cancel == 2">撤消</span>
|
|
113
|
+ </el-button>
|
|
114
|
+ </template>
|
|
115
|
+ </el-table-column>
|
|
116
|
+ </el-table>
|
|
117
|
+
|
|
118
|
+ <el-dialog title="备案" :visible.sync="dialogFormVisible">
|
|
119
|
+ <el-form :model="form" label-width="100px">
|
|
120
|
+ <el-form-item label="险种类型" :label-width="formLabelWidth">
|
|
121
|
+ <el-select v-model=" insutype" placeholder="请选择" style="width: 200px;">
|
|
122
|
+ <el-option
|
|
123
|
+ v-for="item in insutypes"
|
|
124
|
+ :key="item.value"
|
|
125
|
+ :label="item.label"
|
|
126
|
+ :value="item.value">
|
|
127
|
+ </el-option>
|
|
128
|
+ </el-select>
|
|
129
|
+ </el-form-item>
|
|
130
|
+ </el-form>
|
|
131
|
+ <div slot="footer" class="dialog-footer">
|
|
132
|
+ <el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
133
|
+ <el-button type="primary" @click="confirm">确 定</el-button>
|
|
134
|
+ </div>
|
|
135
|
+ </el-dialog>
|
|
136
|
+ </div>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+ </div>
|
|
140
|
+</template>
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+<script>
|
|
144
|
+ import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
145
|
+ import { getRecordList,getAllDoctorList,getInitData } from '@/api/his/his'
|
|
146
|
+ import { uParseTime } from '@/utils/tools'
|
|
147
|
+ import { fetchAllAdminUsers } from '@/api/doctor'
|
|
148
|
+ import axios from 'axios'
|
|
149
|
+
|
|
150
|
+ export default {
|
|
151
|
+ components: {
|
|
152
|
+ BreadCrumb
|
|
153
|
+ },
|
|
154
|
+ data() {
|
|
155
|
+ return {
|
|
156
|
+ crumbs: [
|
|
157
|
+ { path: false, name: '门诊收费' },
|
|
158
|
+ { path: false, name: '医保费用对照' }
|
|
159
|
+ ],
|
|
160
|
+ tableData: [],
|
|
161
|
+ doctorList:[],
|
|
162
|
+ department:[],
|
|
163
|
+ sick:[],
|
|
164
|
+ limit: 10,
|
|
165
|
+ page: 1,
|
|
166
|
+ dialogFormVisible: false,
|
|
167
|
+ total: 0,
|
|
168
|
+ adminUserOptions: [],
|
|
169
|
+ start_time: '',
|
|
170
|
+ end_time: '',
|
|
171
|
+ insutype: '',
|
|
172
|
+ check_type: '',
|
|
173
|
+
|
|
174
|
+ options: [
|
|
175
|
+ {
|
|
176
|
+ value: 1,
|
|
177
|
+ label: '总账'
|
|
178
|
+ }, {
|
|
179
|
+ value: 2,
|
|
180
|
+ label: '明细'
|
|
181
|
+ }
|
|
182
|
+ ],
|
|
183
|
+
|
|
184
|
+ insutypes: [
|
|
185
|
+ {
|
|
186
|
+ value: '310',
|
|
187
|
+ label: '职工基本医疗保险'
|
|
188
|
+ }, {
|
|
189
|
+ value: '320',
|
|
190
|
+ label: '公务员医疗补助'
|
|
191
|
+ }, {
|
|
192
|
+ value: '330',
|
|
193
|
+ label: '大额医疗费用补助'
|
|
194
|
+ }, {
|
|
195
|
+ value: '340',
|
|
196
|
+ label: '离休人员医疗保障'
|
|
197
|
+ },
|
|
198
|
+ {
|
|
199
|
+ value: '390',
|
|
200
|
+ label: '城乡居民基本医疗保险'
|
|
201
|
+ }, {
|
|
202
|
+ value: '392',
|
|
203
|
+ label: '城乡居民大病医疗保险'
|
|
204
|
+ }, {
|
|
205
|
+ value: '510',
|
|
206
|
+ label: '生育保险'
|
|
207
|
+ }
|
|
208
|
+
|
|
209
|
+ ]
|
|
210
|
+
|
|
211
|
+ }
|
|
212
|
+ },
|
|
213
|
+ methods: {
|
|
214
|
+ getInitData() {
|
|
215
|
+ getInitData().then(response => {
|
|
216
|
+ if (response.data.state == 0) {
|
|
217
|
+ this.$message.error(response.data.msg)
|
|
218
|
+ return false
|
|
219
|
+ } else {
|
|
220
|
+ this.doctorList = response.data.data.doctors
|
|
221
|
+ this.department = response.data.data.department
|
|
222
|
+ this.sick = response.data.data.sick
|
|
223
|
+
|
|
224
|
+ }
|
|
225
|
+ })
|
|
226
|
+
|
|
227
|
+ },
|
|
228
|
+ getSickName(id){
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+ },
|
|
232
|
+ confirm() {
|
|
233
|
+ if (this.check_type == 1) {
|
|
234
|
+ let params = {
|
|
235
|
+ start_time: this.start_time,
|
|
236
|
+ end_time: this.end_time,
|
|
237
|
+ insutype: this.insutype,
|
|
238
|
+ clr_type: '11'
|
|
239
|
+ }
|
|
240
|
+
|
|
241
|
+ var that = this
|
|
242
|
+
|
|
243
|
+ if (this.$store.getters.xt_user.org_id == 9919) {
|
|
244
|
+ axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
|
|
245
|
+ params: params
|
|
246
|
+ })
|
|
247
|
+ .then(function(response) {
|
|
248
|
+ if (response.data.state == 0) {
|
|
249
|
+ that.$message.error(response.data.msg)
|
|
250
|
+ return false
|
|
251
|
+ } else {
|
|
252
|
+ this.page = 1
|
|
253
|
+ this.limit = 10
|
|
254
|
+ this.keywords = ''
|
|
255
|
+ this.getList()
|
|
256
|
+
|
|
257
|
+ }
|
|
258
|
+ })
|
|
259
|
+ .catch(function(error) {
|
|
260
|
+
|
|
261
|
+ })
|
|
262
|
+
|
|
263
|
+ }
|
|
264
|
+
|
|
265
|
+ } else {
|
|
266
|
+ let params = {
|
|
267
|
+ start_time: this.start_time,
|
|
268
|
+ end_time: this.end_time
|
|
269
|
+ }
|
|
270
|
+ var that = this
|
|
271
|
+ axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
|
|
272
|
+ params: params
|
|
273
|
+ })
|
|
274
|
+ .then(function(response) {
|
|
275
|
+ if (response.data.state == 0) {
|
|
276
|
+ that.$message.error(response.data.msg)
|
|
277
|
+ return false
|
|
278
|
+ } else {
|
|
279
|
+ this.page = 1
|
|
280
|
+ this.limit = 10
|
|
281
|
+ this.keywords = ''
|
|
282
|
+ this.getList()
|
|
283
|
+ }
|
|
284
|
+ })
|
|
285
|
+ .catch(function(error) {
|
|
286
|
+
|
|
287
|
+ })
|
|
288
|
+
|
|
289
|
+ }
|
|
290
|
+
|
|
291
|
+ },
|
|
292
|
+ getInsutype(type) {
|
|
293
|
+
|
|
294
|
+ },
|
|
295
|
+ fetchAllAdminUsers() {
|
|
296
|
+ fetchAllAdminUsers().then(response => {
|
|
297
|
+ if (response.data.state == 1) {
|
|
298
|
+ this.adminUserOptions = response.data.data.users
|
|
299
|
+
|
|
300
|
+ }
|
|
301
|
+ })
|
|
302
|
+ },
|
|
303
|
+ getName(admin_user_id) {
|
|
304
|
+ for (let i = 0; i < this.adminUserOptions.length; i++) {
|
|
305
|
+ if (this.adminUserOptions[i].id == admin_user_id) {
|
|
306
|
+ return this.adminUserOptions[i].name
|
|
307
|
+ }
|
|
308
|
+ }
|
|
309
|
+
|
|
310
|
+ },
|
|
311
|
+ getTimes(time) {
|
|
312
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
|
313
|
+ },
|
|
314
|
+ getList() {
|
|
315
|
+ let params = {
|
|
316
|
+ 'page': this.page,
|
|
317
|
+ 'limit': this.limit,
|
|
318
|
+ 'keywords': this.keywords
|
|
319
|
+
|
|
320
|
+ }
|
|
321
|
+ this.tableData = []
|
|
322
|
+ getList(params).then(response => {
|
|
323
|
+ if (response.data.state == 0) {
|
|
324
|
+ this.$message.error(response.data.msg)
|
|
325
|
+ return false
|
|
326
|
+ } else {
|
|
327
|
+ this.tableData = response.data.data.list
|
|
328
|
+ this.total = response.data.data.total
|
|
329
|
+ }
|
|
330
|
+ })
|
|
331
|
+
|
|
332
|
+ },
|
|
333
|
+ handleSizeChange(limit) {
|
|
334
|
+ this.limit = limit
|
|
335
|
+ this.getList()
|
|
336
|
+ },
|
|
337
|
+ handleCurrentChange(page) {
|
|
338
|
+ this.page = page
|
|
339
|
+ this.getList()
|
|
340
|
+
|
|
341
|
+ }
|
|
342
|
+ },
|
|
343
|
+ created() {
|
|
344
|
+ this.getList()
|
|
345
|
+ this.fetchAllAdminUsers()
|
|
346
|
+
|
|
347
|
+ }
|
|
348
|
+ }
|
|
349
|
+</script>
|