|
@@ -100,7 +100,7 @@
|
100
|
100
|
<template slot-scope="scope">
|
101
|
101
|
<el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
|
102
|
102
|
<el-button size="mini" type="primary" @click="toPrint(scope.row)"
|
103
|
|
- v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
|
|
103
|
+ v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) || ($store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
|
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>
|
|
@@ -247,8 +247,8 @@
|
247
|
247
|
}
|
248
|
248
|
|
249
|
249
|
},toRefund(row){
|
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 || this.$store.getters.xt_user.org_id == 9990) {
|
251
|
|
- var that = this;
|
|
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
|
252
|
252
|
this.$confirm('是否退费', '退费', {
|
253
|
253
|
confirmButtonText: '确 定',
|
254
|
254
|
cancelButtonText: '取 消',
|
|
@@ -259,19 +259,19 @@
|
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) {
|
272
|
272
|
that.$message.error(response.data.data.msg)
|
273
|
273
|
} else {
|
274
|
|
- that.$message({ message: '退费成功', type: 'success', duration: 5000 });
|
|
274
|
+ that.$message({ message: '退费成功', type: 'success', duration: 5000 })
|
275
|
275
|
that.getHisOrderList()
|
276
|
276
|
|
277
|
277
|
}
|
|
@@ -293,13 +293,13 @@
|
293
|
293
|
'patient_id': this.patientInfo.id,
|
294
|
294
|
'record_time': this.record_date
|
295
|
295
|
|
296
|
|
- };
|
|
296
|
+ }
|
297
|
297
|
Refund(params).then(response => {
|
298
|
298
|
if (response.data.state == 0) {
|
299
|
|
- this.$message.error(response.data.msg);
|
|
299
|
+ this.$message.error(response.data.msg)
|
300
|
300
|
return false
|
301
|
301
|
} else {
|
302
|
|
- this.$message({ message: '退费成功', type: 'success' });
|
|
302
|
+ this.$message({ message: '退费成功', type: 'success' })
|
303
|
303
|
this.getHisOrderList()
|
304
|
304
|
}
|
305
|
305
|
})
|
|
@@ -309,51 +309,51 @@
|
309
|
309
|
},
|
310
|
310
|
toPrint(row) {
|
311
|
311
|
if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
|
312
|
|
- this.statementVisible9504 = true;
|
|
312
|
+ this.statementVisible9504 = true
|
313
|
313
|
let obj = {
|
314
|
314
|
order_id: row.id,
|
315
|
315
|
patient_id: row.patient_id,
|
316
|
316
|
record_time: this.getTimes(row.settle_accounts_date),
|
317
|
317
|
admin_user_id: this.$store.getters.xt_user.user.id
|
318
|
|
- };
|
|
318
|
+ }
|
319
|
319
|
this.orderObj9504 = obj
|
320
|
320
|
} else {
|
321
|
|
- this.statementVisible = true;
|
|
321
|
+ this.statementVisible = true
|
322
|
322
|
let obj = {
|
323
|
323
|
order_id: row.id
|
324
|
|
- };
|
|
324
|
+ }
|
325
|
325
|
this.orderObj = obj
|
326
|
326
|
}
|
327
|
327
|
|
328
|
328
|
},
|
329
|
329
|
settlementPrint(row){
|
330
|
|
- this.settlementVisible = true;
|
|
330
|
+ this.settlementVisible = true
|
331
|
331
|
let obj = {
|
332
|
332
|
order_id: row.id
|
333
|
|
- };
|
|
333
|
+ }
|
334
|
334
|
this.settlementObj = obj
|
335
|
335
|
},
|
336
|
336
|
export_detail() {
|
337
|
337
|
let params = {
|
338
|
338
|
start_time: this.start_time,
|
339
|
339
|
end_time: this.end_time
|
340
|
|
- };
|
|
340
|
+ }
|
341
|
341
|
getExportConsumeDetailList(params).then(response => {
|
342
|
342
|
if (response.data.state == 0) {
|
343
|
|
- this.$message.error(response.data.msg);
|
|
343
|
+ this.$message.error(response.data.msg)
|
344
|
344
|
return false
|
345
|
345
|
} else {
|
346
|
346
|
|
347
|
|
- let list = [];
|
|
347
|
+ let list = []
|
348
|
348
|
for (let i = 0; i < response.data.data.order.length; i++) {
|
349
|
|
- let order = response.data.data.order[i];
|
350
|
|
- let number = '';
|
351
|
|
- let name = '';
|
352
|
|
- let department = '';
|
353
|
|
- let doctor_name = '';
|
354
|
|
- let balance_accounts = '';
|
|
349
|
+ let order = response.data.data.order[i]
|
|
350
|
+ let number = ''
|
|
351
|
+ let name = ''
|
|
352
|
+ let department = ''
|
|
353
|
+ let doctor_name = ''
|
|
354
|
+ let balance_accounts = ''
|
355
|
355
|
|
356
|
|
- let order_status = '';
|
|
356
|
+ let order_status = ''
|
357
|
357
|
|
358
|
358
|
if (order.his_patient != null && order.his_patient.number.length > 0) {
|
359
|
359
|
number = order.his_patient.number
|
|
@@ -414,13 +414,13 @@
|
414
|
414
|
'收费日期': '',
|
415
|
415
|
'收费状态': order_status,
|
416
|
416
|
'退费日期': ''
|
417
|
|
- };
|
|
417
|
+ }
|
418
|
418
|
list.push(obj)
|
419
|
419
|
}
|
420
|
420
|
import('@/vendor/Export2Excel').then(excel => {
|
421
|
|
- const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
|
422
|
|
- const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
|
423
|
|
- const data = this.formatJson(filterVal, list);
|
|
421
|
+ const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
|
422
|
+ const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
|
|
423
|
+ const data = this.formatJson(filterVal, list)
|
424
|
424
|
excel.export_json_to_excel({
|
425
|
425
|
header: tHeader,
|
426
|
426
|
data,
|
|
@@ -435,30 +435,30 @@
|
435
|
435
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
436
|
436
|
},
|
437
|
437
|
changeDoctor() {
|
438
|
|
- this.page = 1;
|
439
|
|
- this.keywords = '';
|
|
438
|
+ this.page = 1
|
|
439
|
+ this.keywords = ''
|
440
|
440
|
this.getHisOrderList()
|
441
|
441
|
},
|
442
|
442
|
handleSizeChange(limit) {
|
443
|
|
- this.limit = limit;
|
|
443
|
+ this.limit = limit
|
444
|
444
|
this.getHisOrderList()
|
445
|
445
|
|
446
|
446
|
}, handleCurrentChange(page) {
|
447
|
|
- this.page = page;
|
|
447
|
+ this.page = page
|
448
|
448
|
this.getHisOrderList()
|
449
|
449
|
|
450
|
450
|
},
|
451
|
451
|
handleStartTimeChange() {
|
452
|
|
- this.page = 1;
|
453
|
|
- this.keywords = '';
|
|
452
|
+ this.page = 1
|
|
453
|
+ this.keywords = ''
|
454
|
454
|
this.getHisOrderList()
|
455
|
455
|
}, handleEndTimeChange() {
|
456
|
|
- this.page = 1;
|
457
|
|
- this.keywords = '';
|
|
456
|
+ this.page = 1
|
|
457
|
+ this.keywords = ''
|
458
|
458
|
this.getHisOrderList()
|
459
|
459
|
},
|
460
|
460
|
searchAction() {
|
461
|
|
- this.page = 1;
|
|
461
|
+ this.page = 1
|
462
|
462
|
this.getHisOrderList()
|
463
|
463
|
|
464
|
464
|
},
|
|
@@ -480,13 +480,13 @@
|
480
|
480
|
start_time: this.start_time,
|
481
|
481
|
end_time: this.end_time,
|
482
|
482
|
type: this.admin_user_id
|
483
|
|
- };
|
|
483
|
+ }
|
484
|
484
|
getHisOrderList(params).then(response => {
|
485
|
485
|
if (response.data.state == 0) {
|
486
|
|
- this.$message.error(response.data.msg);
|
|
486
|
+ this.$message.error(response.data.msg)
|
487
|
487
|
return false
|
488
|
488
|
} else {
|
489
|
|
- this.tableData = response.data.data.order;
|
|
489
|
+ this.tableData = response.data.data.order
|
490
|
490
|
this.total = response.data.data.total
|
491
|
491
|
}
|
492
|
492
|
})
|
|
@@ -494,7 +494,7 @@
|
494
|
494
|
}, getDoctorList() {
|
495
|
495
|
getDoctorList().then(response => {
|
496
|
496
|
if (response.data.state == 0) {
|
497
|
|
- this.$message.error(response.data.msg);
|
|
497
|
+ this.$message.error(response.data.msg)
|
498
|
498
|
return false
|
499
|
499
|
} else {
|
500
|
500
|
this.doctors = response.data.data.doctors
|
|
@@ -509,7 +509,7 @@
|
509
|
509
|
}
|
510
|
510
|
},
|
511
|
511
|
invoicePrint(obj){
|
512
|
|
- console.log(obj);
|
|
512
|
+ console.log(obj)
|
513
|
513
|
let paramsObj = {
|
514
|
514
|
order_id: obj.id,
|
515
|
515
|
patient_id: obj.patient_id,
|
|
@@ -517,15 +517,15 @@
|
517
|
517
|
age:obj.age,
|
518
|
518
|
gend:obj.gend,
|
519
|
519
|
setl_time:obj.setl_time
|
520
|
|
- };
|
521
|
|
- this.invoiceParams = paramsObj;
|
|
520
|
+ }
|
|
521
|
+ this.invoiceParams = paramsObj
|
522
|
522
|
this.invoiceVisible = true
|
523
|
523
|
}
|
524
|
524
|
}, created() {
|
525
|
525
|
|
526
|
526
|
|
527
|
|
- this.fetchAllAdminUsers();
|
528
|
|
- this.getDoctorList();
|
|
527
|
+ this.fetchAllAdminUsers()
|
|
528
|
+ this.getDoctorList()
|
529
|
529
|
this.getHisOrderList()
|
530
|
530
|
|
531
|
531
|
|