|
@@ -0,0 +1,541 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="main-contain">
|
|
3
|
+
|
|
4
|
+ <div class="app-container">
|
|
5
|
+ <div class="cell clearfix">
|
|
6
|
+ <el-input
|
|
7
|
+ style="width: 400px;"
|
|
8
|
+ v-model.trim="searchKey"
|
|
9
|
+ class="filter-item"
|
|
10
|
+ placeholder="病人姓名/透析号"
|
|
11
|
+ size="small"
|
|
12
|
+ @keyup.enter.native='search'
|
|
13
|
+ />
|
|
14
|
+ <el-button
|
|
15
|
+ class="filter-item"
|
|
16
|
+ type="primary"
|
|
17
|
+ icon="el-icon-search"
|
|
18
|
+ @click="search"
|
|
19
|
+ size="small"
|
|
20
|
+ >搜索
|
|
21
|
+ </el-button
|
|
22
|
+ >
|
|
23
|
+ </div>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+ <el-table
|
|
28
|
+ ref="multipleTable"
|
|
29
|
+ :row-style="{ color: '#303133' }"
|
|
30
|
+ :header-cell-style="{
|
|
31
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
32
|
+ color: '#606266'
|
|
33
|
+ }"
|
|
34
|
+ :data="tableData"
|
|
35
|
+ border
|
|
36
|
+ fit
|
|
37
|
+ highlight-current-row
|
|
38
|
+ style="width: 100%;margin-top: 10px;"
|
|
39
|
+ >
|
|
40
|
+
|
|
41
|
+ <el-table-column
|
|
42
|
+ type="index"
|
|
43
|
+ label="序号"
|
|
44
|
+ width="40px"
|
|
45
|
+ align="center"
|
|
46
|
+ ></el-table-column>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+ <el-table-column
|
|
50
|
+ property="name"
|
|
51
|
+ label="姓名"
|
|
52
|
+ min-width="70"
|
|
53
|
+ align="center"
|
|
54
|
+ >
|
|
55
|
+ <template slot-scope="scope">
|
|
56
|
+ <router-link
|
|
57
|
+ :to="'/patients/patient/' + scope.row.id"
|
|
58
|
+ style="color:#409eff;width:100%;display:block;"
|
|
59
|
+ >{{ scope.row.name }}
|
|
60
|
+ </router-link
|
|
61
|
+ >
|
|
62
|
+ </template>
|
|
63
|
+ </el-table-column>
|
|
64
|
+ <el-table-column label="性别" min-width="60" align="center">
|
|
65
|
+ <template slot-scope="scope">
|
|
66
|
+ <span v-if="scope.row.gender == 1">男</span>
|
|
67
|
+ <span v-else-if="scope.row.gender == 2">女</span>
|
|
68
|
+ <span v-else>未知</span>
|
|
69
|
+ </template>
|
|
70
|
+ </el-table-column>
|
|
71
|
+
|
|
72
|
+ <el-table-column label="转归" align="center">
|
|
73
|
+ <template slot-scope="scope">
|
|
74
|
+ <span>{{ LapsetoInfo(scope.row) }}</span>
|
|
75
|
+ </template>
|
|
76
|
+ </el-table-column>
|
|
77
|
+
|
|
78
|
+ <el-table-column label="操作" align="center" min-width="140">
|
|
79
|
+ <template slot-scope="scope">
|
|
80
|
+ <el-tooltip
|
|
81
|
+ class="item"
|
|
82
|
+ effect="dark"
|
|
83
|
+ content="人员信息查询"
|
|
84
|
+ placement="top"
|
|
85
|
+ >
|
|
86
|
+ <el-button
|
|
87
|
+ type="primary"
|
|
88
|
+ icon="el-icon-edit"
|
|
89
|
+ size="small"
|
|
90
|
+ @click="OpenQuery(scope.row, scope.$index)"
|
|
91
|
+ ></el-button>
|
|
92
|
+ </el-tooltip>
|
|
93
|
+
|
|
94
|
+ </template>
|
|
95
|
+ </el-table-column>
|
|
96
|
+ </el-table>
|
|
97
|
+ <el-pagination
|
|
98
|
+ @size-change="handleSizeChange"
|
|
99
|
+ @current-change="handleCurrentChange"
|
|
100
|
+ :current-page="listQuery.page"
|
|
101
|
+ :page-sizes="[10, 20, 50, 100,200,500,1000,2000]"
|
|
102
|
+ :page-size="listQuery.limit"
|
|
103
|
+ background
|
|
104
|
+ style="margin-top:20px;"
|
|
105
|
+ align="right"
|
|
106
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
107
|
+ :total="total"
|
|
108
|
+ >
|
|
109
|
+ </el-pagination>
|
|
110
|
+
|
|
111
|
+ </div>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+ </div>
|
|
115
|
+</template>
|
|
116
|
+
|
|
117
|
+<script>
|
|
118
|
+import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind } from '@/api/patient'
|
|
119
|
+import { generateLog } from '@/api/config'
|
|
120
|
+import QRCode from 'qrcodejs2'
|
|
121
|
+import Vue from 'vue'
|
|
122
|
+import { Base64 } from 'js-base64'
|
|
123
|
+import { jsGetAge,uParseTime } from '@/utils/tools'
|
|
124
|
+import { log } from 'util'
|
|
125
|
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
126
|
+import UploadExcel from '@/xt_pages/components/UploadExcel'
|
|
127
|
+import axios from 'axios'
|
|
128
|
+
|
|
129
|
+export default {
|
|
130
|
+ name: 'Patient',
|
|
131
|
+ components: {
|
|
132
|
+ UploadExcel,
|
|
133
|
+ BreadCrumb
|
|
134
|
+ },
|
|
135
|
+ data() {
|
|
136
|
+ return {
|
|
137
|
+
|
|
138
|
+ currentIndex: -1,
|
|
139
|
+ LapsetoDialogVisible: false,
|
|
140
|
+ centerDialogVisible: false,
|
|
141
|
+ checkAll: false,
|
|
142
|
+ isIndeterminate: true,
|
|
143
|
+ dialogVisible: false,
|
|
144
|
+ exportLogVisible: false,
|
|
145
|
+ exportVisible:false,
|
|
146
|
+ phoneVisible:false,
|
|
147
|
+ idCardNoVisible:false,
|
|
148
|
+ wechatbindimg: '',
|
|
149
|
+ isShow:true,
|
|
150
|
+ active: true,
|
|
151
|
+ schedulType: 0,
|
|
152
|
+ lapsetoForm: {
|
|
153
|
+ lapseto_type: 0,
|
|
154
|
+ lapseto_time: '',
|
|
155
|
+ patient_id: 0,
|
|
156
|
+ out_reason:''
|
|
157
|
+ },
|
|
158
|
+ sourceType: 0,
|
|
159
|
+ sourceID: 0,
|
|
160
|
+ lapsetoType: 1,
|
|
161
|
+ sourceArr: [
|
|
162
|
+ { value: 0, label: '全部', source: 0, lapseto: 0 },
|
|
163
|
+ { value: 3, label: '门诊', source: 1, lapseto: 1 },
|
|
164
|
+ { value: 4, label: '住院', source: 2, lapseto: 1 }
|
|
165
|
+ ],
|
|
166
|
+ lapsetoArr: [
|
|
167
|
+ { value: 0, label: '全部', source: 0, lapseto: 0 },
|
|
168
|
+ { value: 1, label: '转出', source: 0, lapseto: 2 },
|
|
169
|
+ { value: 2, label: '留治', source: 0, lapseto: 1 },
|
|
170
|
+ { value: 3, label: '死亡', source:0, lapseto: 3 },
|
|
171
|
+ ],
|
|
172
|
+ scheduling: [
|
|
173
|
+ {
|
|
174
|
+ value: 1,
|
|
175
|
+ label: '已排班'
|
|
176
|
+ },
|
|
177
|
+ {
|
|
178
|
+ value: 2,
|
|
179
|
+ label: '未排班'
|
|
180
|
+ }
|
|
181
|
+ ],
|
|
182
|
+ prescription: [
|
|
183
|
+ {
|
|
184
|
+ value: 1,
|
|
185
|
+ label: '有处方'
|
|
186
|
+ },
|
|
187
|
+ {
|
|
188
|
+ value: 2,
|
|
189
|
+ label: '无处方'
|
|
190
|
+ }
|
|
191
|
+ ],
|
|
192
|
+ tableData: null,
|
|
193
|
+ searchKey: '',
|
|
194
|
+ // value2: '',
|
|
195
|
+ total: 0,
|
|
196
|
+ pageTotal: 0,
|
|
197
|
+ dialysisVisible:false,
|
|
198
|
+ pageSelect: 0,
|
|
199
|
+ max_dialysis_no: '',
|
|
200
|
+ listQuery: {
|
|
201
|
+ page: 1,
|
|
202
|
+ limit: 10,
|
|
203
|
+ schedul_type: 0,
|
|
204
|
+ binding_state: 0,
|
|
205
|
+ lapseto: 1,
|
|
206
|
+ source: 0,
|
|
207
|
+ start_time: '',
|
|
208
|
+ end_time: '',
|
|
209
|
+ keywords: '',
|
|
210
|
+ contagion: '',
|
|
211
|
+ reimbursement_way: '',
|
|
212
|
+ isscheduling: '',
|
|
213
|
+ isprescription: ''
|
|
214
|
+ },
|
|
215
|
+ multipleSelection: [],
|
|
216
|
+ bindWechatDialog: false,
|
|
217
|
+ contagionList: [],
|
|
218
|
+ reimbursement_ways: [],
|
|
219
|
+ patient: null,
|
|
220
|
+ id: '',
|
|
221
|
+ name: '',
|
|
222
|
+ dialysis_no: '',
|
|
223
|
+ patientPrint: {},
|
|
224
|
+ patient_id: '',
|
|
225
|
+ gender: '',
|
|
226
|
+ idcardno: '',
|
|
227
|
+ phone: '',
|
|
228
|
+ healthcareno: '',
|
|
229
|
+ startTime: '',
|
|
230
|
+ export_date: [],
|
|
231
|
+ lapeseto:"",
|
|
232
|
+ value:13,
|
|
233
|
+ dialogTableVisible:false,
|
|
234
|
+ gridData:[],
|
|
235
|
+ totalOne: 0,
|
|
236
|
+ page: 1,
|
|
237
|
+ limit: 5
|
|
238
|
+ }
|
|
239
|
+ },
|
|
240
|
+ created() {
|
|
241
|
+ if(sessionStorage.getItem('patientPageSize')){
|
|
242
|
+ this.listQuery.limit = parseInt(sessionStorage.getItem('patientPageSize'))
|
|
243
|
+ }
|
|
244
|
+ this.getList()
|
|
245
|
+ this.contagionList = this.$store.getters.contagions
|
|
246
|
+ this.reimbursement_ways = this.$store.getters.reimbursement_ways
|
|
247
|
+
|
|
248
|
+ const keyword = this.$route.query && this.$route.query.keyword
|
|
249
|
+ if (typeof keyword === 'string' && keyword.length > 0) {
|
|
250
|
+ this.listQuery.keywords = keyword
|
|
251
|
+ this.searchKey = keyword
|
|
252
|
+ }
|
|
253
|
+ //获取
|
|
254
|
+ this.GetRemindPatientList()
|
|
255
|
+ },
|
|
256
|
+
|
|
257
|
+ methods: {
|
|
258
|
+ OpenQuery(row, index){
|
|
259
|
+ let params ={
|
|
260
|
+ id_card_no:row.id_card_no,
|
|
261
|
+ admin_user_id: this.$store.getters.xt_user.user.id,
|
|
262
|
+ };
|
|
263
|
+ var that = this;
|
|
264
|
+ axios.get('http://127.0.0.1:9532/api/patient/info', {
|
|
265
|
+ params: params
|
|
266
|
+ })
|
|
267
|
+ .then(function(response) {
|
|
268
|
+ if (response.data.state == 0) {
|
|
269
|
+ that.$message.error(response.data.msg);
|
|
270
|
+ return false
|
|
271
|
+ } else {
|
|
272
|
+
|
|
273
|
+ if(response.data.data.failed_code == -10){
|
|
274
|
+ // that.$message.error(response.data.data.msg)
|
|
275
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
276
|
+ confirmButtonText: '确 定',
|
|
277
|
+ type: 'warning'
|
|
278
|
+ }).then(() => {
|
|
279
|
+
|
|
280
|
+ }).catch(() => {
|
|
281
|
+ })
|
|
282
|
+ }else{
|
|
283
|
+ that.dialogFormVisible = true;
|
|
284
|
+ that.insutypes = [];
|
|
285
|
+ that.psn_no = response.data.data.info.output.baseinfo.psn_no;
|
|
286
|
+
|
|
287
|
+ }
|
|
288
|
+ }
|
|
289
|
+ })
|
|
290
|
+ .catch(function(error) {
|
|
291
|
+
|
|
292
|
+ })
|
|
293
|
+
|
|
294
|
+ },
|
|
295
|
+ handleSizeChange(val) {
|
|
296
|
+ sessionStorage.setItem('patientPageSize',val)
|
|
297
|
+ this.listQuery.limit = val
|
|
298
|
+ this.getList()
|
|
299
|
+ },
|
|
300
|
+ handleCurrentChange(val) {
|
|
301
|
+ this.listQuery.page = val
|
|
302
|
+ this.getList()
|
|
303
|
+ },
|
|
304
|
+ search() {
|
|
305
|
+
|
|
306
|
+ this.listQuery.keywords = this.searchKey
|
|
307
|
+ this.getList()
|
|
308
|
+ },
|
|
309
|
+ changeOtherSearch() {
|
|
310
|
+ this.getList()
|
|
311
|
+ },
|
|
312
|
+ getList() {
|
|
313
|
+ console.log("parasm2222",this.listQuery)
|
|
314
|
+ fetchList(this.listQuery).then(response => {
|
|
315
|
+ if (response.data.state === 0) {
|
|
316
|
+ this.$message.error(response.data.msg)
|
|
317
|
+ return false
|
|
318
|
+ } else {
|
|
319
|
+ this.tableData = response.data.data.patients
|
|
320
|
+ console.log('病人是', this.tableData)
|
|
321
|
+ this.pageTotal = this.tableData.length
|
|
322
|
+ this.total = response.data.data.total
|
|
323
|
+
|
|
324
|
+ }
|
|
325
|
+ })
|
|
326
|
+ },
|
|
327
|
+
|
|
328
|
+ }
|
|
329
|
+}
|
|
330
|
+Vue.prototype.$QRCode = function() {
|
|
331
|
+ var name = this.name
|
|
332
|
+ var dialysis_no = this.dialysis_no
|
|
333
|
+ var id = this.id
|
|
334
|
+ var gender = this.gender
|
|
335
|
+ if (gender === 1) {
|
|
336
|
+ gender = '男'
|
|
337
|
+ }
|
|
338
|
+ if (gender === 2) {
|
|
339
|
+ gender = '女'
|
|
340
|
+ }
|
|
341
|
+ var idcardno = this.idcardno
|
|
342
|
+ var phone = this.phone
|
|
343
|
+ var healthcareno = this.healthcareno
|
|
344
|
+
|
|
345
|
+ // BASE64加密
|
|
346
|
+ // var eid = this.Base64.encode(id)
|
|
347
|
+ // var ename = this.Base64.encode(name)
|
|
348
|
+ // var egender = this.Base64.encode(gender)
|
|
349
|
+ // var eidcardno = this.Base64.encode(idcardno)
|
|
350
|
+ // var ephone = this.Base64.encode(phone)
|
|
351
|
+ // var ehealthcareno = this.Base64.encode(healthcareno)
|
|
352
|
+ // var edialysisno = this.Base64.encode(dialysis_no)
|
|
353
|
+ var eid = id
|
|
354
|
+ var ename = name
|
|
355
|
+ var egender = gender
|
|
356
|
+ var eidcardno = idcardno
|
|
357
|
+ var ephone = phone
|
|
358
|
+ var ehealthcareno = healthcareno
|
|
359
|
+ var edialysisno = dialysis_no
|
|
360
|
+ console.log(
|
|
361
|
+ 'user_id' + eid,
|
|
362
|
+ 'name:' + ename,
|
|
363
|
+ 'gender:' + egender,
|
|
364
|
+ 'idcard_no:' + eidcardno,
|
|
365
|
+ 'phone:' + ephone,
|
|
366
|
+ 'healthcare_no:' + ehealthcareno,
|
|
367
|
+ 'edialysis_no:' + edialysisno
|
|
368
|
+ )
|
|
369
|
+ const salting = 'admin-authority'
|
|
370
|
+ new QRCode('qrcode', {
|
|
371
|
+ width: 150, // 设置宽度
|
|
372
|
+ height: 150, // 设置高度
|
|
373
|
+ text:
|
|
374
|
+ 'user_id:' +
|
|
375
|
+ eid +
|
|
376
|
+ ',' +
|
|
377
|
+ 'name:' +
|
|
378
|
+ ename +
|
|
379
|
+ ',' +
|
|
380
|
+ 'dialysis_no:' +
|
|
381
|
+ edialysisno +
|
|
382
|
+ ',' +
|
|
383
|
+ 'gender:' +
|
|
384
|
+ egender +
|
|
385
|
+ ',' +
|
|
386
|
+ 'idcard_no:' +
|
|
387
|
+ eidcardno +
|
|
388
|
+ ',' +
|
|
389
|
+ 'phone:' +
|
|
390
|
+ ephone +
|
|
391
|
+ ',' +
|
|
392
|
+ 'healthcare_no:' +
|
|
393
|
+ ehealthcareno
|
|
394
|
+ })
|
|
395
|
+}
|
|
396
|
+</script>
|
|
397
|
+
|
|
398
|
+<style rel="stylesheet/scss" lang="scss">
|
|
399
|
+.app-container {
|
|
400
|
+ /*margin: 20 px;*/
|
|
401
|
+ font-size: 15px;
|
|
402
|
+
|
|
403
|
+.filter-container {
|
|
404
|
+ padding-bottom: 5px;
|
|
405
|
+}
|
|
406
|
+
|
|
407
|
+.search-component {
|
|
408
|
+ width: 500px;
|
|
409
|
+
|
|
410
|
+.searchBox {
|
|
411
|
+ width: 300px;
|
|
412
|
+ height: 36px;
|
|
413
|
+ line-height: 36px;
|
|
414
|
+ padding-left: 15px;
|
|
415
|
+ border: 1px #dcdfe6 solid;
|
|
416
|
+ border-right: none;
|
|
417
|
+ outline: none;
|
|
418
|
+ float: left;
|
|
419
|
+ border-radius: 6px 0 0 6px;
|
|
420
|
+ font-size: 14px;
|
|
421
|
+ color: #333;
|
|
422
|
+ background: #fff;
|
|
423
|
+ box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
|
|
424
|
+}
|
|
425
|
+
|
|
426
|
+.searchBtn {
|
|
427
|
+ background-color: #409eff;
|
|
428
|
+ color: #fff;
|
|
429
|
+ font-size: 15px;
|
|
430
|
+ text-align: center;
|
|
431
|
+ height: 36px;
|
|
432
|
+ line-height: 36px;
|
|
433
|
+ float: left;
|
|
434
|
+ outline: none;
|
|
435
|
+ width: 70px;
|
|
436
|
+ border: none;
|
|
437
|
+ border-radius: 0 6px 6px 0;
|
|
438
|
+ font-family: "Microsoft Yahei";
|
|
439
|
+ cursor: pointer;
|
|
440
|
+}
|
|
441
|
+
|
|
442
|
+}
|
|
443
|
+.amount {
|
|
444
|
+ font-weight: normal;
|
|
445
|
+ padding: 10px 0 0 0;
|
|
446
|
+ color: #606266;
|
|
447
|
+ font-size: 14px;
|
|
448
|
+
|
|
449
|
+span {
|
|
450
|
+ color: #ef2525;
|
|
451
|
+ font-family: "Arial";
|
|
452
|
+ padding: 0 2px;
|
|
453
|
+}
|
|
454
|
+
|
|
455
|
+}
|
|
456
|
+
|
|
457
|
+.print_main_content {
|
|
458
|
+ background-color: white;
|
|
459
|
+ width: 960px;
|
|
460
|
+ margin: 0 auto;
|
|
461
|
+ padding: 0 0 20px 0;
|
|
462
|
+}
|
|
463
|
+
|
|
464
|
+.print_main_content .order_title {
|
|
465
|
+ text-align: center;
|
|
466
|
+ font-size: 23px;
|
|
467
|
+ line-height: 50px;
|
|
468
|
+ font-weight: 500px;
|
|
469
|
+}
|
|
470
|
+
|
|
471
|
+.print_main_content table {
|
|
472
|
+ width: 100%;
|
|
473
|
+ border: 1px solid;
|
|
474
|
+ border-collapse: collapse;
|
|
475
|
+ padding: 2px;
|
|
476
|
+}
|
|
477
|
+
|
|
478
|
+.print_main_content table tbody tr td {
|
|
479
|
+ border: 1px solid;
|
|
480
|
+ text-align: center;
|
|
481
|
+ /* font-size: 17px; */
|
|
482
|
+ padding: 10px 8px;
|
|
483
|
+}
|
|
484
|
+
|
|
485
|
+.td_proj_title {
|
|
486
|
+ font-size: 18px;
|
|
487
|
+ line-height: 25px;
|
|
488
|
+ font-weight: 500;
|
|
489
|
+}
|
|
490
|
+
|
|
491
|
+.td_proj_content {
|
|
492
|
+ font-size: 18px;
|
|
493
|
+ line-height: 25px;
|
|
494
|
+}
|
|
495
|
+
|
|
496
|
+.td_align_left {
|
|
497
|
+ text-align: left;
|
|
498
|
+}
|
|
499
|
+
|
|
500
|
+.print_footnote_panel {
|
|
501
|
+ font-size: 17px;
|
|
502
|
+ line-height: 40px;
|
|
503
|
+}
|
|
504
|
+
|
|
505
|
+.print_footnote_panel .proj {
|
|
506
|
+ display: inline-block;
|
|
507
|
+ width: 49%;
|
|
508
|
+}
|
|
509
|
+
|
|
510
|
+.print_footnote_panel .proj .proj_title {
|
|
511
|
+ font-weight: 500;
|
|
512
|
+}
|
|
513
|
+
|
|
514
|
+}
|
|
515
|
+.el-table td,
|
|
516
|
+.el-table th.is-leaf,
|
|
517
|
+.el-table--border,
|
|
518
|
+.el-table--group {
|
|
519
|
+ border-color: #d0d3da;
|
|
520
|
+}
|
|
521
|
+
|
|
522
|
+.el-table--border::after,
|
|
523
|
+.el-table--group::after,
|
|
524
|
+.el-table::before {
|
|
525
|
+ background-color: #d0d3da;
|
|
526
|
+}
|
|
527
|
+
|
|
528
|
+.el-select--small {
|
|
529
|
+ width: 196px;
|
|
530
|
+}
|
|
531
|
+
|
|
532
|
+.el-checkbox__inner::after {
|
|
533
|
+ height: 10px;
|
|
534
|
+ left: 7px;
|
|
535
|
+}
|
|
536
|
+
|
|
537
|
+.el-checkbox__inner {
|
|
538
|
+ width: 20px;
|
|
539
|
+ height: 20px;
|
|
540
|
+}
|
|
541
|
+</style>
|