|
@@ -10,20 +10,7 @@
|
10
|
10
|
justify-content: space-between;
|
11
|
11
|
margin-bottom: 10px;
|
12
|
12
|
">
|
13
|
|
- <div>
|
14
|
|
- <el-button size="small" type="primary"
|
15
|
|
- @click="login">登录
|
16
|
|
- </el-button>
|
17
|
|
- <el-button size="small" type="primary"
|
18
|
|
- @click="query">查询
|
19
|
|
- </el-button>
|
20
|
|
- <el-button size="small" type="primary"
|
21
|
|
- @click="login">短信登录税局
|
22
|
|
- </el-button>
|
23
|
|
- <el-button size="small" type="primary"
|
24
|
|
- @click="auth">认证
|
25
|
|
- </el-button>
|
26
|
|
- </div>
|
|
13
|
+
|
27
|
14
|
</div>
|
28
|
15
|
<div style="margin-bottom: 10px;">
|
29
|
16
|
<el-date-picker
|
|
@@ -55,6 +42,15 @@
|
55
|
42
|
value-format="yyyy-MM-dd"
|
56
|
43
|
align="right"
|
57
|
44
|
></el-date-picker>
|
|
45
|
+ <el-button size="small" type="primary"
|
|
46
|
+ @click="query">查询
|
|
47
|
+ </el-button>
|
|
48
|
+ <el-button size="small" type="primary"
|
|
49
|
+ @click="login">短信登录税局
|
|
50
|
+ </el-button>
|
|
51
|
+ <el-button size="small" type="primary"
|
|
52
|
+ @click="auth">认证
|
|
53
|
+ </el-button>
|
58
|
54
|
</div>
|
59
|
55
|
|
60
|
56
|
<el-table
|
|
@@ -105,15 +101,14 @@
|
105
|
101
|
|
106
|
102
|
<el-table-column align="center" width="90" prop="name" label="就诊凭证类型">
|
107
|
103
|
<template slot-scope="scope">
|
108
|
|
- <div v-if="scope.row.mdtrt_cert_type =='01'">
|
109
|
|
- 医保电子凭证
|
|
104
|
+ <div v-if="scope.row.his_patient.id_card_type == 1">
|
|
105
|
+ 社会保障卡
|
110
|
106
|
</div>
|
111
|
|
- <div v-if="scope.row.mdtrt_cert_type =='02'">
|
|
107
|
+ <div v-if="scope.row.his_patient.id_card_type == 2">
|
112
|
108
|
居民身份证
|
113
|
109
|
</div>
|
114
|
|
-
|
115
|
|
- <div v-if="scope.row.mdtrt_cert_type =='03'">
|
116
|
|
- 社会保障卡
|
|
110
|
+ <div v-if="scope.row.his_patient.id_card_type == 4">
|
|
111
|
+ 医保电子凭证
|
117
|
112
|
</div>
|
118
|
113
|
</template>
|
119
|
114
|
</el-table-column>
|
|
@@ -193,15 +188,15 @@
|
193
|
188
|
>
|
194
|
189
|
<div>
|
195
|
190
|
<el-form :rules="rules" :label-position="labelPosition" label-width="100px" :model="formLabelAlign">
|
196
|
|
- <el-form-item label="税局账号">
|
197
|
|
- <el-input v-model="formLabelAlign.name"></el-input>
|
198
|
|
- </el-form-item>
|
199
|
|
- <el-form-item label="税局密码">
|
200
|
|
- <el-input v-model="formLabelAlign.region"></el-input>
|
201
|
|
- </el-form-item>
|
202
|
|
- <el-form-item label="手机号码">
|
203
|
|
- <el-input v-model="formLabelAlign.type"></el-input>
|
204
|
|
- </el-form-item>
|
|
191
|
+<!-- <el-form-item label="税局账号">-->
|
|
192
|
+<!-- <el-input v-model="formLabelAlign.name"></el-input>-->
|
|
193
|
+<!-- </el-form-item>-->
|
|
194
|
+<!-- <el-form-item label="税局密码">-->
|
|
195
|
+<!-- <el-input v-model="formLabelAlign.region"></el-input>-->
|
|
196
|
+<!-- </el-form-item>-->
|
|
197
|
+<!-- <el-form-item label="手机号码">-->
|
|
198
|
+<!-- <el-input v-model="formLabelAlign.type"></el-input>-->
|
|
199
|
+<!-- </el-form-item>-->
|
205
|
200
|
<el-form-item label="短信验证码" prop="verify">
|
206
|
201
|
<div style="display: inline-block;width: 50%;">
|
207
|
202
|
<el-input v-model="formLabelAlign.verify"></el-input>
|
|
@@ -214,7 +209,7 @@
|
214
|
209
|
</div>
|
215
|
210
|
<span slot="footer" class="dialog-footer">
|
216
|
211
|
<el-button @click="login_dialogVisible = false">取 消</el-button>
|
217
|
|
- <el-button type="primary" @click="login_dialogVisible = false">确 定</el-button>
|
|
212
|
+ <el-button type="primary" @click="loginSJ()">确 定</el-button>
|
218
|
213
|
</span>
|
219
|
214
|
</el-dialog>
|
220
|
215
|
|
|
@@ -251,7 +246,9 @@ import { jsGetAge, uParseTime } from '@/utils/tools'
|
251
|
246
|
import {
|
252
|
247
|
getOrderFapiaoList,
|
253
|
248
|
OpenBlueFapiao,
|
254
|
|
- OpenRedFapiao
|
|
249
|
+ OpenRedFapiao,
|
|
250
|
+ GetSMSCode,
|
|
251
|
+ SMSLogin, GetQRCode
|
255
|
252
|
} from '../../api/fapiao'
|
256
|
253
|
|
257
|
254
|
import { getDialysisRecordInitData } from '@/api/dialysis_record'
|
|
@@ -345,10 +342,47 @@ export default {
|
345
|
342
|
},
|
346
|
343
|
|
347
|
344
|
methods: {
|
|
345
|
+ loginSJ(){
|
|
346
|
+ let params = {
|
|
347
|
+ "code":this.formLabelAlign.verify,
|
|
348
|
+ }
|
|
349
|
+ SMSLogin(params).then((response) => {
|
|
350
|
+ if (response.data.state == 0) {
|
|
351
|
+ this.login_dialogVisible = false
|
|
352
|
+ this.$message.error(response.data.msg)
|
|
353
|
+ return false
|
|
354
|
+ } else {
|
|
355
|
+ this.login_dialogVisible = false
|
|
356
|
+ // this.$message.success(response.data.msg)
|
|
357
|
+ // this.$message.success(response.data.data.msg)
|
|
358
|
+ this
|
|
359
|
+ .$confirm(response.data.data.msg, '信息', {
|
|
360
|
+ confirmButtonText: '确 定',
|
|
361
|
+ type: 'warning'
|
|
362
|
+ })
|
|
363
|
+ .then(() => {
|
|
364
|
+ })
|
|
365
|
+ .catch(() => {
|
|
366
|
+ })
|
|
367
|
+
|
|
368
|
+ }
|
|
369
|
+ })
|
|
370
|
+ },
|
348
|
371
|
login(){
|
349
|
372
|
this.login_dialogVisible = true
|
350
|
373
|
},
|
351
|
374
|
verify_click(){
|
|
375
|
+ let params = {
|
|
376
|
+ "admin_user_id":this.$store.getters.xt_user.user.id,
|
|
377
|
+ }
|
|
378
|
+ GetSMSCode(params).then((response) => {
|
|
379
|
+ if (response.data.state == 0) {
|
|
380
|
+ this.$message.error(response.data.msg)
|
|
381
|
+ return false
|
|
382
|
+ } else {
|
|
383
|
+ this.$message.success(response.data.data.msg)
|
|
384
|
+ }
|
|
385
|
+ })
|
352
|
386
|
this.countdown = 60
|
353
|
387
|
this.time = setInterval(() => {
|
354
|
388
|
if (this.countdown > 0) {
|
|
@@ -359,22 +393,84 @@ export default {
|
359
|
393
|
}, 1000)
|
360
|
394
|
},
|
361
|
395
|
auth(){
|
362
|
|
- this.qr_dialogVisible =true
|
363
|
|
- this.$nextTick(() =>{
|
364
|
|
- var qrcode = new QRCode(this.$refs.qrCodeUrl, {
|
365
|
|
- text: 'https://blog.csdn.net/weixin_42601136', // 需要转换为二维码的内容
|
366
|
|
- width: 120,
|
367
|
|
- height: 120,
|
368
|
|
-
|
369
|
|
- colorDark: '#000000',
|
370
|
|
- colorLight: '#ffffff',
|
371
|
|
- correctLevel: QRCode.CorrectLevel.H
|
372
|
|
- })
|
373
|
|
- })
|
|
396
|
+ let params = {
|
|
397
|
+ }
|
|
398
|
+ GetQRCode(params).then((response) => {
|
|
399
|
+ if (response.data.state == 0) {
|
|
400
|
+ this.$message.error(response.data.msg)
|
|
401
|
+ return false
|
|
402
|
+ } else {
|
|
403
|
+ if(response.data.data.cus_status == 1){
|
|
404
|
+ this.$nextTick(() =>{
|
|
405
|
+ var qrcode = new QRCode(this.$refs.qrCodeUrl, {
|
|
406
|
+ text: response.data.data.qr_code, // 需要转换为二维码的内容
|
|
407
|
+ width: 120,
|
|
408
|
+ height: 120,
|
|
409
|
+ colorDark: '#000000',
|
|
410
|
+ colorLight: '#ffffff',
|
|
411
|
+ correctLevel: QRCode.CorrectLevel.H
|
|
412
|
+ })
|
|
413
|
+ })
|
|
414
|
+ this.qr_dialogVisible =true
|
|
415
|
+ }else if(response.data.data.cus_status == -1){
|
|
416
|
+ // this.$message.error(response.data.msg)/* */
|
|
417
|
+ this
|
|
418
|
+ .$confirm(response.data.data.msg, '信息', {
|
|
419
|
+ confirmButtonText: '确 定',
|
|
420
|
+ type: 'warning'
|
|
421
|
+ })
|
|
422
|
+ .then(() => {
|
|
423
|
+ })
|
|
424
|
+ .catch(() => {
|
|
425
|
+ })
|
|
426
|
+ }else if(response.data.data.cus_status == 2){
|
|
427
|
+ // this.$message.error(response.data.data.msg)
|
|
428
|
+ this
|
|
429
|
+ .$confirm(response.data.data.msg, '信息', {
|
|
430
|
+ confirmButtonText: '确 定',
|
|
431
|
+ type: 'warning'
|
|
432
|
+ })
|
|
433
|
+ .then(() => {
|
|
434
|
+ })
|
|
435
|
+ .catch(() => {
|
|
436
|
+ })
|
|
437
|
+
|
|
438
|
+ }else if(response.data.data.cus_status == -3){
|
|
439
|
+ // this.$message.error(response.data.data.msg)
|
|
440
|
+ this
|
|
441
|
+ .$confirm(response.data.data.msg, '信息', {
|
|
442
|
+ confirmButtonText: '确 定',
|
|
443
|
+ type: 'warning'
|
|
444
|
+ })
|
|
445
|
+ .then(() => {
|
|
446
|
+ })
|
|
447
|
+ .catch(() => {
|
|
448
|
+ })
|
|
449
|
+
|
|
450
|
+ }else if(response.data.data.cus_status == -4){
|
|
451
|
+ // this.$message.error(response.data.data.msg)
|
|
452
|
+ this
|
|
453
|
+ .$confirm(response.data.data.msg, '信息', {
|
|
454
|
+ confirmButtonText: '确 定',
|
|
455
|
+ type: 'warning'
|
|
456
|
+ })
|
|
457
|
+ .then(() => {
|
|
458
|
+ })
|
|
459
|
+ .catch(() => {
|
|
460
|
+ })
|
|
461
|
+
|
|
462
|
+ }
|
|
463
|
+ // this.$message.success(response.data.msg)
|
|
464
|
+ }
|
|
465
|
+ })
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
374
|
470
|
|
375
|
471
|
},
|
376
|
472
|
query(){
|
377
|
|
-
|
|
473
|
+ this.getHisOrderList()
|
378
|
474
|
},download(){
|
379
|
475
|
|
380
|
476
|
|
|
@@ -676,7 +772,7 @@ export default {
|
676
|
772
|
if(this.countdown ==0){
|
677
|
773
|
clearInterval(this.time)
|
678
|
774
|
}
|
679
|
|
-
|
|
775
|
+
|
680
|
776
|
}
|
681
|
777
|
|
682
|
778
|
}
|