|
@@ -104,7 +104,7 @@
|
104
|
104
|
结算单
|
105
|
105
|
</el-button>
|
106
|
106
|
<el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
|
107
|
|
- <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
|
|
107
|
+ <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
|
108
|
108
|
退费
|
109
|
109
|
</el-button>
|
110
|
110
|
<el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
|
|
@@ -248,7 +248,7 @@
|
248
|
248
|
|
249
|
249
|
},toRefund(row){
|
250
|
250
|
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) {
|
251
|
|
- var that = this
|
|
251
|
+ var that = this;
|
252
|
252
|
this.$confirm('是否退费', '退费', {
|
253
|
253
|
confirmButtonText: '确 定',
|
254
|
254
|
cancelButtonText: '取 消',
|
|
@@ -259,13 +259,13 @@
|
259
|
259
|
'patient_id': row.patient_id,
|
260
|
260
|
'record_time': that.getTimes(row.settle_accounts_date),
|
261
|
261
|
'admin_user_id': that.$store.getters.xt_user.user.id,
|
262
|
|
- }
|
|
262
|
+ };
|
263
|
263
|
axios.get('http://127.0.0.1:9532/api/refund/post', {
|
264
|
264
|
params: params
|
265
|
265
|
})
|
266
|
266
|
.then(function(response) {
|
267
|
267
|
if (response.data.state == 0) {
|
268
|
|
- that.$message.error(response.data.msg)
|
|
268
|
+ that.$message.error(response.data.msg);
|
269
|
269
|
return false
|
270
|
270
|
} else {
|
271
|
271
|
if (response.data.data.failed_code == -10) {
|
|
@@ -278,7 +278,7 @@
|
278
|
278
|
}).catch(() => {
|
279
|
279
|
})
|
280
|
280
|
} else {
|
281
|
|
- that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
|
281
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 });
|
282
|
282
|
that.getHisOrderList()
|
283
|
283
|
|
284
|
284
|
}
|
|
@@ -300,13 +300,13 @@
|
300
|
300
|
'patient_id': this.patientInfo.id,
|
301
|
301
|
'record_time': this.record_date
|
302
|
302
|
|
303
|
|
- }
|
|
303
|
+ };
|
304
|
304
|
Refund(params).then(response => {
|
305
|
305
|
if (response.data.state == 0) {
|
306
|
|
- this.$message.error(response.data.msg)
|
|
306
|
+ this.$message.error(response.data.msg);
|
307
|
307
|
return false
|
308
|
308
|
} else {
|
309
|
|
- this.$message({ message: '退费成功', type: 'success' })
|
|
309
|
+ this.$message({ message: '退费成功', type: 'success' });
|
310
|
310
|
this.getHisOrderList()
|
311
|
311
|
}
|
312
|
312
|
})
|
|
@@ -316,51 +316,52 @@
|
316
|
316
|
},
|
317
|
317
|
toPrint(row) {
|
318
|
318
|
if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
|
319
|
|
- this.statementVisible9504 = true
|
|
319
|
+ this.statementVisible9504 = true;
|
320
|
320
|
let obj = {
|
321
|
321
|
order_id: row.id,
|
322
|
322
|
patient_id: row.patient_id,
|
323
|
323
|
record_time: this.getTimes(row.settle_accounts_date),
|
324
|
324
|
admin_user_id: this.$store.getters.xt_user.user.id
|
325
|
|
- }
|
|
325
|
+ };
|
326
|
326
|
this.orderObj9504 = obj
|
327
|
327
|
} else {
|
328
|
|
- this.statementVisible = true
|
|
328
|
+ this.statementVisible = true;
|
329
|
329
|
let obj = {
|
330
|
330
|
order_id: row.id
|
331
|
|
- }
|
|
331
|
+ };
|
332
|
332
|
this.orderObj = obj
|
333
|
333
|
}
|
334
|
334
|
|
335
|
335
|
},
|
336
|
336
|
settlementPrint(row){
|
337
|
|
- this.settlementVisible = true
|
|
337
|
+ this.settlementVisible = true;
|
338
|
338
|
let obj = {
|
339
|
339
|
order_id: row.id
|
340
|
|
- }
|
|
340
|
+ };
|
341
|
341
|
this.settlementObj = obj
|
342
|
342
|
},
|
343
|
343
|
export_detail() {
|
344
|
344
|
let params = {
|
345
|
345
|
start_time: this.start_time,
|
346
|
|
- end_time: this.end_time
|
347
|
|
- }
|
|
346
|
+ end_time: this.end_time,
|
|
347
|
+ p_type: 2,
|
|
348
|
+ };
|
348
|
349
|
getExportConsumeDetailList(params).then(response => {
|
349
|
350
|
if (response.data.state == 0) {
|
350
|
|
- this.$message.error(response.data.msg)
|
|
351
|
+ this.$message.error(response.data.msg);
|
351
|
352
|
return false
|
352
|
353
|
} else {
|
353
|
354
|
|
354
|
|
- let list = []
|
|
355
|
+ let list = [];
|
355
|
356
|
for (let i = 0; i < response.data.data.order.length; i++) {
|
356
|
|
- let order = response.data.data.order[i]
|
357
|
|
- let number = ''
|
358
|
|
- let name = ''
|
359
|
|
- let department = ''
|
360
|
|
- let doctor_name = ''
|
361
|
|
- let balance_accounts = ''
|
|
357
|
+ let order = response.data.data.order[i];
|
|
358
|
+ let number = '';
|
|
359
|
+ let name = '';
|
|
360
|
+ let department = '';
|
|
361
|
+ let doctor_name = '';
|
|
362
|
+ let balance_accounts = '';
|
362
|
363
|
|
363
|
|
- let order_status = ''
|
|
364
|
+ let order_status = '';
|
364
|
365
|
|
365
|
366
|
if (order.his_patient != null && order.his_patient.number.length > 0) {
|
366
|
367
|
number = order.his_patient.number
|
|
@@ -421,13 +422,13 @@
|
421
|
422
|
'收费日期': '',
|
422
|
423
|
'收费状态': order_status,
|
423
|
424
|
'退费日期': ''
|
424
|
|
- }
|
|
425
|
+ };
|
425
|
426
|
list.push(obj)
|
426
|
427
|
}
|
427
|
428
|
import('@/vendor/Export2Excel').then(excel => {
|
428
|
|
- const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
429
|
|
- const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
430
|
|
- const data = this.formatJson(filterVal, list)
|
|
429
|
+ const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
|
|
430
|
+ const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
|
|
431
|
+ const data = this.formatJson(filterVal, list);
|
431
|
432
|
excel.export_json_to_excel({
|
432
|
433
|
header: tHeader,
|
433
|
434
|
data,
|
|
@@ -442,30 +443,30 @@
|
442
|
443
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
443
|
444
|
},
|
444
|
445
|
changeDoctor() {
|
445
|
|
- this.page = 1
|
446
|
|
- this.keywords = ''
|
|
446
|
+ this.page = 1;
|
|
447
|
+ this.keywords = '';
|
447
|
448
|
this.getHisOrderList()
|
448
|
449
|
},
|
449
|
450
|
handleSizeChange(limit) {
|
450
|
|
- this.limit = limit
|
|
451
|
+ this.limit = limit;
|
451
|
452
|
this.getHisOrderList()
|
452
|
453
|
|
453
|
454
|
}, handleCurrentChange(page) {
|
454
|
|
- this.page = page
|
|
455
|
+ this.page = page;
|
455
|
456
|
this.getHisOrderList()
|
456
|
457
|
|
457
|
458
|
},
|
458
|
459
|
handleStartTimeChange() {
|
459
|
|
- this.page = 1
|
460
|
|
- this.keywords = ''
|
|
460
|
+ this.page = 1;
|
|
461
|
+ this.keywords = '';
|
461
|
462
|
this.getHisOrderList()
|
462
|
463
|
}, handleEndTimeChange() {
|
463
|
|
- this.page = 1
|
464
|
|
- this.keywords = ''
|
|
464
|
+ this.page = 1;
|
|
465
|
+ this.keywords = '';
|
465
|
466
|
this.getHisOrderList()
|
466
|
467
|
},
|
467
|
468
|
searchAction() {
|
468
|
|
- this.page = 1
|
|
469
|
+ this.page = 1;
|
469
|
470
|
this.getHisOrderList()
|
470
|
471
|
|
471
|
472
|
},
|
|
@@ -486,14 +487,15 @@
|
486
|
487
|
keywords: this.keywords,
|
487
|
488
|
start_time: this.start_time,
|
488
|
489
|
end_time: this.end_time,
|
489
|
|
- type: this.admin_user_id
|
490
|
|
- }
|
|
490
|
+ type: this.admin_user_id,
|
|
491
|
+ p_type: 2,
|
|
492
|
+ };
|
491
|
493
|
getHisOrderList(params).then(response => {
|
492
|
494
|
if (response.data.state == 0) {
|
493
|
|
- this.$message.error(response.data.msg)
|
|
495
|
+ this.$message.error(response.data.msg);
|
494
|
496
|
return false
|
495
|
497
|
} else {
|
496
|
|
- this.tableData = response.data.data.order
|
|
498
|
+ this.tableData = response.data.data.order;
|
497
|
499
|
this.total = response.data.data.total
|
498
|
500
|
}
|
499
|
501
|
})
|
|
@@ -501,7 +503,7 @@
|
501
|
503
|
}, getDoctorList() {
|
502
|
504
|
getDoctorList().then(response => {
|
503
|
505
|
if (response.data.state == 0) {
|
504
|
|
- this.$message.error(response.data.msg)
|
|
506
|
+ this.$message.error(response.data.msg);
|
505
|
507
|
return false
|
506
|
508
|
} else {
|
507
|
509
|
this.doctors = response.data.data.doctors
|
|
@@ -516,7 +518,7 @@
|
516
|
518
|
}
|
517
|
519
|
},
|
518
|
520
|
invoicePrint(obj){
|
519
|
|
- console.log(obj)
|
|
521
|
+ console.log(obj);
|
520
|
522
|
let paramsObj = {
|
521
|
523
|
order_id: obj.id,
|
522
|
524
|
patient_id: obj.patient_id,
|
|
@@ -524,15 +526,15 @@
|
524
|
526
|
age:obj.age,
|
525
|
527
|
gend:obj.gend,
|
526
|
528
|
setl_time:obj.setl_time
|
527
|
|
- }
|
528
|
|
- this.invoiceParams = paramsObj
|
|
529
|
+ };
|
|
530
|
+ this.invoiceParams = paramsObj;
|
529
|
531
|
this.invoiceVisible = true
|
530
|
532
|
}
|
531
|
533
|
}, created() {
|
532
|
534
|
|
533
|
535
|
|
534
|
|
- this.fetchAllAdminUsers()
|
535
|
|
- this.getDoctorList()
|
|
536
|
+ this.fetchAllAdminUsers();
|
|
537
|
+ this.getDoctorList();
|
536
|
538
|
this.getHisOrderList()
|
537
|
539
|
|
538
|
540
|
|