|
@@ -85,7 +85,9 @@
|
85
|
85
|
<template slot-scope="scope">{{scope.row.department_name}}</template>
|
86
|
86
|
</el-table-column>
|
87
|
87
|
<el-table-column align="center" width="90" prop="name" label="医疗类型">
|
88
|
|
- <template slot-scope="scope"><div>{{getMedType(scope.row.med_type)}}</div></template>
|
|
88
|
+ <template slot-scope="scope">
|
|
89
|
+ <div>{{getMedType(scope.row.med_type)}}</div>
|
|
90
|
+ </template>
|
89
|
91
|
</el-table-column>
|
90
|
92
|
<el-table-column align="center" width="100" prop="name" label="收费日期">
|
91
|
93
|
<template slot-scope="scope">
|
|
@@ -382,15 +384,7 @@
|
382
|
384
|
}
|
383
|
385
|
|
384
|
386
|
}, toRefund(row) {
|
385
|
|
-
|
386
|
|
- console.log("~~~~~")
|
387
|
|
- console.log(row)
|
388
|
|
- console.log(this.$store.getters.xt_user.org_id )
|
389
|
|
-
|
390
|
|
-
|
391
|
|
-
|
392
|
|
- if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
|
393
|
|
- var that = this
|
|
387
|
+ if (row.his_patient.balance_accounts_type == 2) {
|
394
|
388
|
this.$confirm('是否退费', '退费', {
|
395
|
389
|
confirmButtonText: '确 定',
|
396
|
390
|
cancelButtonText: '取 消',
|
|
@@ -398,110 +392,136 @@
|
398
|
392
|
}).then(() => {
|
399
|
393
|
let params = {
|
400
|
394
|
'order_id': row.id,
|
401
|
|
- 'patient_id': row.patient_id,
|
402
|
|
- 'record_time': that.getTimes(row.settle_accounts_date),
|
403
|
|
- 'admin_user_id': that.$store.getters.xt_user.user.id
|
|
395
|
+ 'patient_id': row.patient_id,
|
|
396
|
+ 'record_time':this.getTimes(row.settle_accounts_date),
|
404
|
397
|
}
|
405
|
|
- axios.get('http://127.0.0.1:9532/api/refund/post', {
|
406
|
|
- params: params
|
|
398
|
+ Refund(params).then(response => {
|
|
399
|
+ if (response.data.state == 0) {
|
|
400
|
+ this.$message.error(response.data.msg)
|
|
401
|
+ return false
|
|
402
|
+ } else {
|
|
403
|
+ this.$message({ message: '退费成功', type: 'success' })
|
|
404
|
+ this.getHisOrderList()
|
|
405
|
+ }
|
407
|
406
|
})
|
408
|
|
- .then(function(response) {
|
409
|
|
- if (response.data.state == 0) {
|
410
|
|
- that.$message.error(response.data.msg)
|
411
|
|
- return false
|
412
|
|
- } else {
|
413
|
|
- if (response.data.data.failed_code == -10) {
|
414
|
|
- // that.$message.error(response.data.data.msg)
|
415
|
|
- that.$confirm(response.data.data.msg, '医保错误信息', {
|
416
|
|
- confirmButtonText: '确 定',
|
417
|
|
- type: 'warning'
|
418
|
|
- }).then(() => {
|
419
|
|
-
|
420
|
|
- }).catch(() => {
|
421
|
|
- })
|
422
|
|
- } else {
|
423
|
|
- that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
424
|
|
- that.getHisOrderList()
|
425
|
|
-
|
426
|
|
- }
|
427
|
|
- }
|
428
|
|
- })
|
429
|
|
- .catch(function(error) {
|
430
|
|
- })
|
431
|
407
|
}).catch(() => {
|
432
|
408
|
})
|
433
|
409
|
|
434
|
|
- } else if (this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
|
|
410
|
+ } else {
|
|
411
|
+
|
|
412
|
+ if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
|
435
|
413
|
var that = this
|
436
|
|
- this.$confirm('是否退费', '退费', {
|
437
|
|
- confirmButtonText: '确 定',
|
438
|
|
- cancelButtonText: '取 消',
|
439
|
|
- type: 'warning'
|
440
|
|
- }).then(() => {
|
441
|
|
- let params = {
|
442
|
|
- 'order_id': row.id,
|
443
|
|
- 'patient_id': row.patient_id,
|
444
|
|
- 'record_time': this.getTimes(row.settle_accounts_date),
|
445
|
|
- 'admin_user_id': this.$store.getters.xt_user.user.id
|
446
|
|
- }
|
447
|
|
- axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
|
448
|
|
- params: params
|
449
|
|
- })
|
450
|
|
- .then(function(response) {
|
451
|
|
- if (response.data.state == 0) {
|
452
|
|
- that.$message.error(response.data.msg)
|
453
|
|
- return false
|
454
|
|
- } else {
|
455
|
|
- if (response.data.data.failed_code == -10) {
|
456
|
|
- that.$confirm(response.data.data.msg, '医保错误信息', {
|
457
|
|
- confirmButtonText: '确 定',
|
458
|
|
- type: 'warning'
|
459
|
|
- }).then(() => {
|
|
414
|
+ this.$confirm('是否退费', '退费', {
|
|
415
|
+ confirmButtonText: '确 定',
|
|
416
|
+ cancelButtonText: '取 消',
|
|
417
|
+ type: 'warning'
|
|
418
|
+ }).then(() => {
|
|
419
|
+ let params = {
|
|
420
|
+ 'order_id': row.id,
|
|
421
|
+ 'patient_id': row.patient_id,
|
|
422
|
+ 'record_time': that.getTimes(row.settle_accounts_date),
|
|
423
|
+ 'admin_user_id': that.$store.getters.xt_user.user.id
|
|
424
|
+ }
|
|
425
|
+ axios.get('http://127.0.0.1:9532/api/refund/post', {
|
|
426
|
+ params: params
|
|
427
|
+ })
|
|
428
|
+ .then(function(response) {
|
|
429
|
+ if (response.data.state == 0) {
|
|
430
|
+ that.$message.error(response.data.msg)
|
|
431
|
+ return false
|
|
432
|
+ } else {
|
|
433
|
+ if (response.data.data.failed_code == -10) {
|
|
434
|
+ // that.$message.error(response.data.data.msg)
|
|
435
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
436
|
+ confirmButtonText: '确 定',
|
|
437
|
+ type: 'warning'
|
|
438
|
+ }).then(() => {
|
|
439
|
+
|
|
440
|
+ }).catch(() => {
|
|
441
|
+ })
|
|
442
|
+ } else {
|
|
443
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
|
444
|
+ that.getHisOrderList()
|
460
|
445
|
|
461
|
|
- }).catch(() => {
|
462
|
|
- })
|
|
446
|
+ }
|
|
447
|
+ }
|
|
448
|
+ })
|
|
449
|
+ .catch(function(error) {
|
|
450
|
+ })
|
|
451
|
+ }).catch(() => {
|
|
452
|
+ })
|
463
|
453
|
|
|
454
|
+ } else if (this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
|
|
455
|
+ var that = this
|
|
456
|
+ this.$confirm('是否退费', '退费', {
|
|
457
|
+ confirmButtonText: '确 定',
|
|
458
|
+ cancelButtonText: '取 消',
|
|
459
|
+ type: 'warning'
|
|
460
|
+ }).then(() => {
|
|
461
|
+ let params = {
|
|
462
|
+ 'order_id': row.id,
|
|
463
|
+ 'patient_id': row.patient_id,
|
|
464
|
+ 'record_time': this.getTimes(row.settle_accounts_date),
|
|
465
|
+ 'admin_user_id': this.$store.getters.xt_user.user.id
|
|
466
|
+ }
|
|
467
|
+ axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
|
|
468
|
+ params: params
|
|
469
|
+ })
|
|
470
|
+ .then(function(response) {
|
|
471
|
+ if (response.data.state == 0) {
|
|
472
|
+ that.$message.error(response.data.msg)
|
|
473
|
+ return false
|
464
|
474
|
} else {
|
465
|
|
- that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
466
|
|
- that.getHisOrderList()
|
|
475
|
+ if (response.data.data.failed_code == -10) {
|
|
476
|
+ that.$confirm(response.data.data.msg, '医保错误信息', {
|
|
477
|
+ confirmButtonText: '确 定',
|
|
478
|
+ type: 'warning'
|
|
479
|
+ }).then(() => {
|
|
480
|
+
|
|
481
|
+ }).catch(() => {
|
|
482
|
+ })
|
|
483
|
+
|
|
484
|
+ } else {
|
|
485
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
|
486
|
+ that.getHisOrderList()
|
|
487
|
+ }
|
467
|
488
|
}
|
468
|
|
- }
|
469
|
|
- })
|
470
|
|
- .catch(function(error) {
|
471
|
|
- })
|
|
489
|
+ })
|
|
490
|
+ .catch(function(error) {
|
|
491
|
+ })
|
472
|
492
|
|
473
|
|
- }).catch(() => {
|
474
|
|
- })
|
|
493
|
+ }).catch(() => {
|
|
494
|
+ })
|
475
|
495
|
|
476
|
|
- } else {
|
477
|
|
- this.$confirm('是否退费', '退费', {
|
478
|
|
- confirmButtonText: '确 定',
|
479
|
|
- cancelButtonText: '取 消',
|
480
|
|
- type: 'warning'
|
481
|
|
- }).then(() => {
|
482
|
|
- let params = {
|
483
|
|
- 'order_id': this.order.id,
|
484
|
|
- 'patient_id': this.patientInfo.id,
|
485
|
|
- 'record_time': this.record_date
|
|
496
|
+ } else {
|
|
497
|
+ this.$confirm('是否退费', '退费', {
|
|
498
|
+ confirmButtonText: '确 定',
|
|
499
|
+ cancelButtonText: '取 消',
|
|
500
|
+ type: 'warning'
|
|
501
|
+ }).then(() => {
|
|
502
|
+ let params = {
|
|
503
|
+ 'order_id': row.id,
|
|
504
|
+ 'patient_id': row.patient_id,
|
|
505
|
+ 'record_time':this.getTimes(row.settle_accounts_date),
|
486
|
506
|
|
487
|
|
- }
|
488
|
|
- Refund(params).then(response => {
|
489
|
|
- if (response.data.state == 0) {
|
490
|
|
- this.$message.error(response.data.msg)
|
491
|
|
- return false
|
492
|
|
- } else {
|
493
|
|
- this.$message({ message: '退费成功', type: 'success' })
|
494
|
|
- this.getHisOrderList()
|
495
|
507
|
}
|
|
508
|
+ Refund(params).then(response => {
|
|
509
|
+ if (response.data.state == 0) {
|
|
510
|
+ this.$message.error(response.data.msg)
|
|
511
|
+ return false
|
|
512
|
+ } else {
|
|
513
|
+ this.$message({ message: '退费成功', type: 'success' })
|
|
514
|
+ this.getHisOrderList()
|
|
515
|
+ }
|
|
516
|
+ })
|
|
517
|
+ }).catch(() => {
|
496
|
518
|
})
|
497
|
|
- }).catch(() => {
|
498
|
|
- })
|
|
519
|
+ }
|
499
|
520
|
}
|
500
|
|
- },
|
501
|
|
- toPrint(row) {
|
|
521
|
+ }, toPrint(row) {
|
502
|
522
|
if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
|
503
|
|
- if(row.mdtrt_id.indexOf("H") > -1){
|
504
|
|
- this.statementVisible9504 = true
|
|
523
|
+ if (row.mdtrt_id.indexOf('H') > -1) {
|
|
524
|
+ this.statementVisible9504 = true
|
505
|
525
|
let obj = {
|
506
|
526
|
order_id: row.id,
|
507
|
527
|
patient_id: row.patient_id,
|
|
@@ -509,20 +529,19 @@
|
509
|
529
|
admin_user_id: this.$store.getters.xt_user.user.id
|
510
|
530
|
}
|
511
|
531
|
this.orderObj9504 = obj
|
512
|
|
- }else{
|
513
|
|
-
|
514
|
|
- this.statementVisible9504 = true
|
|
532
|
+ } else {
|
|
533
|
+
|
|
534
|
+ this.statementVisible9504 = true
|
515
|
535
|
let obj = {
|
516
|
536
|
order_id: row.id,
|
517
|
537
|
patient_id: row.patient_id,
|
518
|
538
|
record_time: this.getTimes(row.settle_accounts_date),
|
519
|
539
|
admin_user_id: this.$store.getters.xt_user.user.id,
|
520
|
|
- balance_accounts_type:2
|
|
540
|
+ balance_accounts_type: 2
|
521
|
541
|
}
|
522
|
542
|
this.orderObj9504 = obj
|
523
|
|
- }
|
|
543
|
+ }
|
524
|
544
|
|
525
|
|
-
|
526
|
545
|
} else {
|
527
|
546
|
this.statementVisible = true
|
528
|
547
|
let obj = {
|