|
@@ -57,9 +57,9 @@
|
57
|
57
|
<printTen :info="info" v-if="org_id == 10210"></printTen>
|
58
|
58
|
<printEleven :info="info" v-if="org_id == 10485"></printEleven>
|
59
|
59
|
<!-- 阜阳经沃 org_id != 0 && -->
|
60
|
|
- <printtwelve :info="info" v-if="org_id == 10480 "></printtwelve>
|
|
60
|
+ <printtwelve :info="info" v-if="org_id == 10480 || org_id == 0 "></printtwelve>
|
61
|
61
|
<!-- 大冶 -->
|
62
|
|
- <printthirteen :info="info" v-if="org_id == 10510 || org_id == 0"></printthirteen>
|
|
62
|
+ <printthirteen :info="info" v-if="org_id == 10510"></printthirteen>
|
63
|
63
|
|
64
|
64
|
<printOne :info="info" v-if=" org_id != 9990 &&
|
65
|
65
|
org_id != 10138 &&
|
|
@@ -478,7 +478,7 @@ export default {
|
478
|
478
|
})
|
479
|
479
|
|
480
|
480
|
}else if (
|
481
|
|
- this.$store.getters.xt_user.org_id == 10480
|
|
481
|
+ this.$store.getters.xt_user.org_id == 10480 || this.$store.getters.xt_user.org_id == 0
|
482
|
482
|
) {
|
483
|
483
|
const style =
|
484
|
484
|
'@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 2px;line-height: 30px;border: 1px solid black;text-align: center;}'
|
|
@@ -489,7 +489,7 @@ export default {
|
489
|
489
|
scanStyles: false
|
490
|
490
|
})
|
491
|
491
|
|
492
|
|
- }else if( this.$store.getters.xt_user.org_id == 10510 || this.$store.getters.xt_user.org_id == 0) {
|
|
492
|
+ }else if( this.$store.getters.xt_user.org_id == 10510 ) {
|
493
|
493
|
const style =
|
494
|
494
|
'@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
|
495
|
495
|
printJS({
|
|
@@ -1069,7 +1069,7 @@ export default {
|
1069
|
1069
|
}
|
1070
|
1070
|
} else {
|
1071
|
1071
|
console.log(this.org_id)
|
1072
|
|
- if (this.org_id == 0) {
|
|
1072
|
+ if (this.org_id == 1111111111) {
|
1073
|
1073
|
let params = {
|
1074
|
1074
|
order_id: obj.order_id,
|
1075
|
1075
|
admin_user_id: this.$store.getters.xt_user.user.id
|
|
@@ -1220,25 +1220,22 @@ export default {
|
1220
|
1220
|
}
|
1221
|
1221
|
})
|
1222
|
1222
|
} else {
|
1223
|
|
- var that = this
|
1224
|
|
- axios
|
1225
|
|
- .get('http://127.0.0.1:9532/api/settle/query', {
|
1226
|
|
- params: {
|
1227
|
|
- order_id: order_id,
|
1228
|
|
- admin_user_id: this.$store.getters.xt_user.user.id
|
1229
|
|
- }
|
1230
|
|
- })
|
1231
|
|
- .then(function(response) {
|
|
1223
|
+ if(this.org_id == 10480 || this.org_id == 0){
|
|
1224
|
+ let params = {
|
|
1225
|
+ order_id: obj.order_id,
|
|
1226
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
|
1227
|
+ }
|
|
1228
|
+ getPrivateExpensesOrder(params).then((response) => {
|
1232
|
1229
|
if (response.data.state == 0) {
|
1233
|
|
- this.$message.error(response.data.msg)
|
|
1230
|
+ // this.$message.error(response.data.msg)
|
|
1231
|
+
|
1234
|
1232
|
return false
|
1235
|
1233
|
} else {
|
1236
|
|
- console.log(response.data.data.info)
|
|
1234
|
+ var that = this
|
1237
|
1235
|
that.info = response.data.data.info
|
1238
|
1236
|
that.p_admin = response.data.data.printor_admin
|
1239
|
1237
|
that.charge_admin = response.data.data.charge_admin
|
1240
|
|
- that.info['psn_cash_pay'] = response.data.data.psn_cash_pay
|
1241
|
|
- that.info['new_order'] = response.data.data.order
|
|
1238
|
+ that.info['new_order'] = response.data.data.info
|
1242
|
1239
|
that.info['p_admin'] = that.p_admin
|
1243
|
1240
|
that.info['charge_admin'] = that.charge_admin
|
1244
|
1241
|
that.info['order_number'] = response.data.data.order_number
|
|
@@ -1247,11 +1244,11 @@ export default {
|
1247
|
1244
|
that.info['number'] = response.data.data.number
|
1248
|
1245
|
that.info['order_infos'] = response.data.data.order_infos
|
1249
|
1246
|
that.info['diagnosis'] = response.data.data.diagnosis
|
1250
|
|
- that.info['org_code'] = response.data.data.org_code
|
1251
|
|
- that.info['org_name'] = response.data.data.org_name
|
1252
|
|
- that.info['doctor_code'] = response.data.data.doctor_code
|
1253
|
|
- that.info['department'] = response.data.data.department
|
1254
|
|
- that.info['health_card_no'] = response.data.data.health_card_no
|
|
1247
|
+ that.info['fixmedins_name'] = response.data.data.org_name
|
|
1248
|
+ that.info['fixmedins_code'] = response.data.data.org_code
|
|
1249
|
+ // that.info["doctor_code"] = response.data.data.doctor_code;
|
|
1250
|
+ // that.info["department"] = response.data.data.department;
|
|
1251
|
+ // that.info["health_card_no"] = response.data.data.health_card_no;
|
1255
|
1252
|
|
1256
|
1253
|
that.info['bed_cost_total'] = response.data.data.bedCostTotal
|
1257
|
1254
|
that.info['bed_cost_self_total'] =
|
|
@@ -1314,54 +1311,32 @@ export default {
|
1314
|
1311
|
that.info['date'] = response.data.data.date
|
1315
|
1312
|
that.info['number'] = response.data.data.number
|
1316
|
1313
|
that.info['order_infos'] = response.data.data.order_infos
|
1317
|
|
-
|
1318
|
|
- that.info['bedInscpTotal'] =
|
1319
|
|
- response.data.data.bedInscpTotal
|
1320
|
|
- that.info['bedSelfTotal'] =
|
1321
|
|
- response.data.data.bedSelfTotal
|
1322
|
|
-
|
1323
|
|
- that.info['operationInscpTotal'] =
|
1324
|
|
- response.data.data.operationInscpTotal
|
1325
|
|
- that.info['operationSelfTotal'] =
|
1326
|
|
- response.data.data.operationSelfTotal
|
1327
|
|
-
|
1328
|
|
- that.info['checkInscpTotal'] =
|
1329
|
|
- response.data.data.checkInscpTotal
|
1330
|
|
- that.info['checkSelfTotal'] =
|
1331
|
|
- response.data.data.checkSelfTotal
|
1332
|
|
-
|
1333
|
|
- that.info['treatInscpTotal'] =
|
1334
|
|
- response.data.data.treatInscpTotal
|
1335
|
|
- that.info['treatSelfTotal'] =
|
1336
|
|
- response.data.data.treatSelfTotal
|
1337
|
|
-
|
1338
|
|
- that.info['laboratoryInscpTotal'] =
|
1339
|
|
- response.data.data.laboratoryInscpTotal
|
1340
|
|
- that.info['laboratorySelfTotal'] =
|
1341
|
|
- response.data.data.laboratorySelfTotal
|
1342
|
|
-
|
1343
|
|
- that.info['westernMedicineInscpTotal'] =
|
1344
|
|
- response.data.data.westernMedicineInscpTotal
|
1345
|
|
- that.info['westernMedicineSelfTotal'] =
|
1346
|
|
- response.data.data.westernMedicineSelfTotal
|
1347
|
|
-
|
1348
|
|
- that.info['materialInscpTotal'] =
|
1349
|
|
- response.data.data.materialInscpTotal
|
1350
|
|
- that.info['materialSelfTotal'] =
|
1351
|
|
- response.data.data.materialSelfTotal
|
1352
|
|
-
|
1353
|
|
- that.info['chineseTraditionalInscpTotal'] =
|
1354
|
|
- response.data.data.chineseTraditionalInscpTotal
|
1355
|
|
- that.info['chineseTraditionalSelfTotal'] =
|
1356
|
|
- response.data.data.chineseTraditionalSelfTotal
|
1357
|
|
-
|
1358
|
|
- that.info['otherInscpTotal'] =
|
1359
|
|
- response.data.data.otherInscpTotal
|
1360
|
|
- that.info['otherSelfTotal'] =
|
1361
|
|
- response.data.data.otherSelfTotal
|
|
1314
|
+ that.info['diagnosis'] = response.data.data.diagnosis
|
|
1315
|
+ that.info['his'] = response.data.data.his
|
1362
|
1316
|
that.info['dia_config'] = response.data.data.dia_config
|
1363
|
1317
|
|
1364
|
|
- //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
|
|
1318
|
+
|
|
1319
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
1320
|
+ if (response.data.data.order_infos[i].advice_id > 0 && response.data.data.order_infos[i].project_id == 0) {
|
|
1321
|
+ response.data.data.order_infos[i].med_chrgitm_type = '09'
|
|
1322
|
+ }
|
|
1323
|
+ if (response.data.data.order_infos[i].advice_id == 0 && response.data.data.order_infos[i].project_id > 0) {
|
|
1324
|
+ if (response.data.data.order_infos[i].project.type == 2) { //项目
|
|
1325
|
+ if (response.data.data.order_infos[i].project.project.cost_classify == 2) {
|
|
1326
|
+ response.data.data.order_infos[i].med_chrgitm_type = '05'
|
|
1327
|
+ } else if (response.data.data.order_infos[i].project.project.cost_classify == 3) {
|
|
1328
|
+ response.data.data.order_infos[i].med_chrgitm_type = '04'
|
|
1329
|
+ } else {
|
|
1330
|
+ response.data.data.order_infos[i].med_chrgitm_type = '14'
|
|
1331
|
+ }
|
|
1332
|
+ } else if (response.data.data.order_infos[i].project.type == 3) { //耗材
|
|
1333
|
+ response.data.data.order_infos[i].med_chrgitm_type = '08'
|
|
1334
|
+ }
|
|
1335
|
+ }
|
|
1336
|
+ }
|
|
1337
|
+ console.log(response.data.data.order_infos)
|
|
1338
|
+ console.log(that.info)
|
|
1339
|
+
|
1365
|
1340
|
var list = []
|
1366
|
1341
|
//获取所有项目类型进行去重
|
1367
|
1342
|
let med_chrgitm_types = []
|
|
@@ -1373,6 +1348,7 @@ export default {
|
1373
|
1348
|
obj10[next] ? '' : obj10[next] = true && cur.push(next)
|
1374
|
1349
|
return cur
|
1375
|
1350
|
}, []) // 设置cur默认类型为数组,并且初始值为空的数组
|
|
1351
|
+ let tempOrderInfo = []
|
1376
|
1352
|
for (let i = 0; i < med_chrgitm_types.length; i++) {
|
1377
|
1353
|
|
1378
|
1354
|
let obj9 = {
|
|
@@ -1381,19 +1357,30 @@ export default {
|
1381
|
1357
|
total:0,
|
1382
|
1358
|
}
|
1383
|
1359
|
|
|
1360
|
+ // if(med_chrgitm_types[i] == '09'){
|
|
1361
|
+ // obj.sort = 99
|
|
1362
|
+ // } else if(med_chrgitm_types[i] == '05'){
|
|
1363
|
+ // obj.sort = 98
|
|
1364
|
+ // } else if(med_chrgitm_types[i] == '08'){
|
|
1365
|
+ // obj.sort = 97
|
|
1366
|
+ // }else if(med_chrgitm_types[i] == '03'){
|
|
1367
|
+ // obj.sort = 96
|
|
1368
|
+ // }
|
|
1369
|
+
|
1384
|
1370
|
let tempDetails = []
|
1385
|
1371
|
for (let b = 0; b < response.data.data.order_infos.length; b++) {
|
1386
|
1372
|
if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
|
1387
|
1373
|
tempDetails.push(response.data.data.order_infos[b])
|
1388
|
1374
|
}
|
1389
|
1375
|
}
|
|
1376
|
+ console.log(med_chrgitm_types[i])
|
|
1377
|
+ console.log(tempDetails)
|
1390
|
1378
|
obj9.total = that.getTotal(tempDetails)
|
1391
|
1379
|
obj9.details = that.set10265NewData(tempDetails)
|
1392
|
1380
|
list.push(obj9)
|
1393
|
1381
|
}
|
1394
|
1382
|
that.info['new_list'] = list
|
1395
|
|
- //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
|
1396
|
|
-
|
|
1383
|
+ // list.sort((a,b) => a.sort < b.sort ? 1 : a.sort > b.sort ? -1 : 0)
|
1397
|
1384
|
|
1398
|
1385
|
let obj = {
|
1399
|
1386
|
type: 1,
|
|
@@ -1441,6 +1428,22 @@ export default {
|
1441
|
1428
|
// num++
|
1442
|
1429
|
//
|
1443
|
1430
|
// })
|
|
1431
|
+ var funds = []
|
|
1432
|
+ for(let i = 0; i < response.data.data.funds.length; i++){
|
|
1433
|
+ var objs = {}
|
|
1434
|
+ objs["number"] = i + 1
|
|
1435
|
+ objs["fund_pay"] = response.data.data.funds[i].fund_payamt
|
|
1436
|
+ objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
|
|
1437
|
+ objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
|
|
1438
|
+ for(let b = 0; b < that.fundsArray.length; b++){
|
|
1439
|
+ if(response.data.data.funds[i].fund_pay_type == that.fundsArray[b].code){
|
|
1440
|
+ objs["name"] =that.fundsArray[b].name
|
|
1441
|
+ }
|
|
1442
|
+ }
|
|
1443
|
+ funds.push(objs)
|
|
1444
|
+ }
|
|
1445
|
+ that.info['funds'] = funds
|
|
1446
|
+ console.log(that.info)
|
1444
|
1447
|
|
1445
|
1448
|
that.info.new_detail_list = []
|
1446
|
1449
|
that.info.new_detail_list.push(obj)
|
|
@@ -1455,73 +1458,320 @@ export default {
|
1455
|
1458
|
that.info.enddate = that.getTimes(that.paramsObj.end_time)
|
1456
|
1459
|
}
|
1457
|
1460
|
|
1458
|
|
- let list = []
|
1459
|
|
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
1460
|
|
- let order = response.data.data.order_infos[i]
|
1461
|
|
- let obj = {
|
1462
|
|
- name: '',
|
1463
|
|
- spec: '',
|
1464
|
|
- cnt: '',
|
1465
|
|
- det_item_fee_sumamt: ''
|
|
1461
|
+ that.info.order_infos.map((item) => {
|
|
1462
|
+
|
|
1463
|
+ })
|
|
1464
|
+
|
|
1465
|
+ }
|
|
1466
|
+ })
|
|
1467
|
+
|
|
1468
|
+
|
|
1469
|
+
|
|
1470
|
+ }else{
|
|
1471
|
+ var that = this
|
|
1472
|
+ axios
|
|
1473
|
+ .get('http://127.0.0.1:9532/api/settle/query', {
|
|
1474
|
+ params: {
|
|
1475
|
+ order_id: order_id,
|
|
1476
|
+ admin_user_id: this.$store.getters.xt_user.user.id
|
|
1477
|
+ }
|
|
1478
|
+ })
|
|
1479
|
+ .then(function(response) {
|
|
1480
|
+ if (response.data.state == 0) {
|
|
1481
|
+ this.$message.error(response.data.msg)
|
|
1482
|
+ return false
|
|
1483
|
+ } else {
|
|
1484
|
+ console.log(response.data.data.info)
|
|
1485
|
+ that.info = response.data.data.info
|
|
1486
|
+ that.p_admin = response.data.data.printor_admin
|
|
1487
|
+ that.charge_admin = response.data.data.charge_admin
|
|
1488
|
+ that.info['psn_cash_pay'] = response.data.data.psn_cash_pay
|
|
1489
|
+ that.info['new_order'] = response.data.data.order
|
|
1490
|
+ that.info['p_admin'] = that.p_admin
|
|
1491
|
+ that.info['charge_admin'] = that.charge_admin
|
|
1492
|
+ that.info['order_number'] = response.data.data.order_number
|
|
1493
|
+ that.info['patient'] = response.data.data.patient
|
|
1494
|
+ that.info['date'] = response.data.data.date
|
|
1495
|
+ that.info['number'] = response.data.data.number
|
|
1496
|
+ that.info['order_infos'] = response.data.data.order_infos
|
|
1497
|
+ that.info['diagnosis'] = response.data.data.diagnosis
|
|
1498
|
+ that.info['org_code'] = response.data.data.org_code
|
|
1499
|
+ that.info['org_name'] = response.data.data.org_name
|
|
1500
|
+ that.info['doctor_code'] = response.data.data.doctor_code
|
|
1501
|
+ that.info['department'] = response.data.data.department
|
|
1502
|
+ that.info['health_card_no'] = response.data.data.health_card_no
|
|
1503
|
+
|
|
1504
|
+ that.info['bed_cost_total'] = response.data.data.bedCostTotal
|
|
1505
|
+ that.info['bed_cost_self_total'] =
|
|
1506
|
+ response.data.data.bedCostSelfTotal
|
|
1507
|
+ that.info['bed_cost_part_self_total'] =
|
|
1508
|
+ response.data.data.bedCostPartSelfTotal
|
|
1509
|
+
|
|
1510
|
+ that.info['operation_cost_total'] =
|
|
1511
|
+ response.data.data.operationCostTotal
|
|
1512
|
+ that.info['operation_cost_self_total'] =
|
|
1513
|
+ response.data.data.operationCostSelfTotal
|
|
1514
|
+ that.info['operation_cost_part_self_total'] =
|
|
1515
|
+ response.data.data.operationCostPartSelfTotal
|
|
1516
|
+
|
|
1517
|
+ that.info['other_cost_total'] = response.data.data.otherCostTotal
|
|
1518
|
+ that.info['other_cost_self_total'] =
|
|
1519
|
+ response.data.data.otherCostSelfTotal
|
|
1520
|
+ that.info['other_cost_part_self_total'] =
|
|
1521
|
+ response.data.data.otherCostPartSelfTotal
|
|
1522
|
+
|
|
1523
|
+ that.info['material_cost_total'] =
|
|
1524
|
+ response.data.data.materialCostTotal
|
|
1525
|
+ that.info['material_cost_self_total'] =
|
|
1526
|
+ response.data.data.materialCostSelfTotal
|
|
1527
|
+ that.info['material_cost_part_self_total'] =
|
|
1528
|
+ response.data.data.materialCostPartSelfTotal
|
|
1529
|
+
|
|
1530
|
+ that.info['western_medicine_cost_total'] =
|
|
1531
|
+ response.data.data.westernMedicineCostTotal
|
|
1532
|
+ that.info['western_medicine_cost_self_total'] =
|
|
1533
|
+ response.data.data.westernMedicineCostSelfTotal
|
|
1534
|
+ that.info['western_medicine_cost_part_self_total'] =
|
|
1535
|
+ response.data.data.westernMedicineCostPartSelfTotal
|
|
1536
|
+
|
|
1537
|
+ that.info['chinese_traditional_medicine_cost_total'] =
|
|
1538
|
+ response.data.data.chineseTraditionalMedicineCostTotal
|
|
1539
|
+ that.info['chinese_traditional_medicine_cost_self_total'] =
|
|
1540
|
+ response.data.data.chineseTraditionalMedicineCostSelfTotal
|
|
1541
|
+ that.info['chinese_traditional_medicine_cost_part_self_total'] =
|
|
1542
|
+ response.data.data.chineseTraditionalMedicineCostPartSelfTotal
|
|
1543
|
+
|
|
1544
|
+ that.info['check_cost_total'] = response.data.data.checkCostTotal
|
|
1545
|
+ that.info['check_cost_self_total'] =
|
|
1546
|
+ response.data.data.checkCostSelfTotal
|
|
1547
|
+ that.info['check_cost_part_self_total'] =
|
|
1548
|
+ response.data.data.checkCostPartSelfTotal
|
|
1549
|
+
|
|
1550
|
+ that.info['laboratory_cost_total'] =
|
|
1551
|
+ response.data.data.laboratoryCostTotal
|
|
1552
|
+ that.info['laboratory_cost_self_total'] =
|
|
1553
|
+ response.data.data.laboratoryCostSelfTotal
|
|
1554
|
+ that.info['laboratory_cost_part_self_total'] =
|
|
1555
|
+ response.data.data.laboratoryCostPartSelfTotal
|
|
1556
|
+
|
|
1557
|
+ that.info['treat_cost_total'] = response.data.data.treatCostTotal
|
|
1558
|
+ that.info['treat_cost_self_total'] =
|
|
1559
|
+ response.data.data.treatCostSelfTotal
|
|
1560
|
+ that.info['treat_cost_part_self_total'] =
|
|
1561
|
+ response.data.data.treatCostPartSelfTotal
|
|
1562
|
+ that.info['date'] = response.data.data.date
|
|
1563
|
+ that.info['number'] = response.data.data.number
|
|
1564
|
+ that.info['order_infos'] = response.data.data.order_infos
|
|
1565
|
+
|
|
1566
|
+ that.info['bedInscpTotal'] =
|
|
1567
|
+ response.data.data.bedInscpTotal
|
|
1568
|
+ that.info['bedSelfTotal'] =
|
|
1569
|
+ response.data.data.bedSelfTotal
|
|
1570
|
+
|
|
1571
|
+ that.info['operationInscpTotal'] =
|
|
1572
|
+ response.data.data.operationInscpTotal
|
|
1573
|
+ that.info['operationSelfTotal'] =
|
|
1574
|
+ response.data.data.operationSelfTotal
|
|
1575
|
+
|
|
1576
|
+ that.info['checkInscpTotal'] =
|
|
1577
|
+ response.data.data.checkInscpTotal
|
|
1578
|
+ that.info['checkSelfTotal'] =
|
|
1579
|
+ response.data.data.checkSelfTotal
|
|
1580
|
+
|
|
1581
|
+ that.info['treatInscpTotal'] =
|
|
1582
|
+ response.data.data.treatInscpTotal
|
|
1583
|
+ that.info['treatSelfTotal'] =
|
|
1584
|
+ response.data.data.treatSelfTotal
|
|
1585
|
+
|
|
1586
|
+ that.info['laboratoryInscpTotal'] =
|
|
1587
|
+ response.data.data.laboratoryInscpTotal
|
|
1588
|
+ that.info['laboratorySelfTotal'] =
|
|
1589
|
+ response.data.data.laboratorySelfTotal
|
|
1590
|
+
|
|
1591
|
+ that.info['westernMedicineInscpTotal'] =
|
|
1592
|
+ response.data.data.westernMedicineInscpTotal
|
|
1593
|
+ that.info['westernMedicineSelfTotal'] =
|
|
1594
|
+ response.data.data.westernMedicineSelfTotal
|
|
1595
|
+
|
|
1596
|
+ that.info['materialInscpTotal'] =
|
|
1597
|
+ response.data.data.materialInscpTotal
|
|
1598
|
+ that.info['materialSelfTotal'] =
|
|
1599
|
+ response.data.data.materialSelfTotal
|
|
1600
|
+
|
|
1601
|
+ that.info['chineseTraditionalInscpTotal'] =
|
|
1602
|
+ response.data.data.chineseTraditionalInscpTotal
|
|
1603
|
+ that.info['chineseTraditionalSelfTotal'] =
|
|
1604
|
+ response.data.data.chineseTraditionalSelfTotal
|
|
1605
|
+
|
|
1606
|
+ that.info['otherInscpTotal'] =
|
|
1607
|
+ response.data.data.otherInscpTotal
|
|
1608
|
+ that.info['otherSelfTotal'] =
|
|
1609
|
+ response.data.data.otherSelfTotal
|
|
1610
|
+ that.info['dia_config'] = response.data.data.dia_config
|
|
1611
|
+
|
|
1612
|
+ //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
|
|
1613
|
+ var list = []
|
|
1614
|
+ //获取所有项目类型进行去重
|
|
1615
|
+ let med_chrgitm_types = []
|
|
1616
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
1617
|
+ med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
|
1466
|
1618
|
}
|
|
1619
|
+ const obj10 = {}
|
|
1620
|
+ med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
|
|
1621
|
+ obj10[next] ? '' : obj10[next] = true && cur.push(next)
|
|
1622
|
+ return cur
|
|
1623
|
+ }, []) // 设置cur默认类型为数组,并且初始值为空的数组
|
|
1624
|
+ for (let i = 0; i < med_chrgitm_types.length; i++) {
|
|
1625
|
+
|
|
1626
|
+ let obj9 = {
|
|
1627
|
+ details: [],
|
|
1628
|
+ med_chrgitm_name: that.getType(med_chrgitm_types[i]),
|
|
1629
|
+ total:0,
|
|
1630
|
+ }
|
1467
|
1631
|
|
1468
|
|
- if (order.advice_id > 0 && order.project_id == 0) {
|
1469
|
|
- obj.name = order.advice.advice_name
|
1470
|
|
- let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
|
1471
|
|
- obj.spec = spec
|
1472
|
|
- obj.cnt = order.cnt
|
1473
|
|
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
1474
|
|
- list.push(obj)
|
|
1632
|
+ let tempDetails = []
|
|
1633
|
+ for (let b = 0; b < response.data.data.order_infos.length; b++) {
|
|
1634
|
+ if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
|
|
1635
|
+ tempDetails.push(response.data.data.order_infos[b])
|
|
1636
|
+ }
|
|
1637
|
+ }
|
|
1638
|
+ obj9.total = that.getTotal(tempDetails)
|
|
1639
|
+ obj9.details = that.set10265NewData(tempDetails)
|
|
1640
|
+ list.push(obj9)
|
|
1641
|
+ }
|
|
1642
|
+ that.info['new_list'] = list
|
|
1643
|
+ //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
|
1475
|
1644
|
|
1476
|
|
- } else if (order.advice_id == 0 && order.project_id > 0) {
|
1477
|
|
- if (order.project.type == 2) {
|
1478
|
|
- obj.name = order.project.project.project_name
|
1479
|
|
- obj.spec = ''
|
1480
|
|
- obj.cnt = order.cnt
|
1481
|
|
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
1482
|
|
- list.push(obj)
|
1483
|
1645
|
|
|
1646
|
+ let obj = {
|
|
1647
|
+ type: 1,
|
|
1648
|
+ details: [],
|
|
1649
|
+ total: 0
|
|
1650
|
+ }
|
|
1651
|
+ let obj2 = {
|
|
1652
|
+ type: 2,
|
|
1653
|
+ details: [],
|
|
1654
|
+ total: 0
|
|
1655
|
+ }
|
|
1656
|
+ let obj3 = {
|
|
1657
|
+ type: 3,
|
|
1658
|
+ details: [],
|
|
1659
|
+ total: 0
|
|
1660
|
+ }
|
|
1661
|
+
|
|
1662
|
+ let obj4 = {
|
|
1663
|
+ type: 4,
|
|
1664
|
+ details: [],
|
|
1665
|
+ total: 0
|
|
1666
|
+ }
|
|
1667
|
+ let num = 0
|
|
1668
|
+ that.info.order_infos.map((item) => {
|
|
1669
|
+ if (item.advice_id > 0) {
|
|
1670
|
+ obj.details.push(item)
|
|
1671
|
+ obj.total += item.pric * item.advice.prescribing_number
|
|
1672
|
+ num++
|
1484
|
1673
|
} else {
|
1485
|
|
- obj.name = order.project.good_info.good_name
|
1486
|
|
- obj.spec = order.project.good_info.specification_name
|
|
1674
|
+ if (item.project.type == 2) {
|
|
1675
|
+ obj2.details.push(item)
|
|
1676
|
+ obj2.total += item.pric * item.project.count
|
|
1677
|
+ num++
|
|
1678
|
+ } else {
|
|
1679
|
+ obj3.details.push(item)
|
|
1680
|
+ obj3.total += item.pric * item.project.count
|
|
1681
|
+ num++
|
|
1682
|
+ }
|
|
1683
|
+ }
|
|
1684
|
+ })
|
|
1685
|
+
|
|
1686
|
+ // this.info.order_infos.map(item => {
|
|
1687
|
+ // obj4.total = item.Total
|
|
1688
|
+ // obj4.details.push(item)
|
|
1689
|
+ // num++
|
|
1690
|
+ //
|
|
1691
|
+ // })
|
|
1692
|
+
|
|
1693
|
+ that.info.new_detail_list = []
|
|
1694
|
+ that.info.new_detail_list.push(obj)
|
|
1695
|
+ that.info.new_detail_list.push(obj2)
|
|
1696
|
+ that.info.new_detail_list.push(obj3)
|
|
1697
|
+ // that.info.new_detail_list.push(obj4)
|
|
1698
|
+
|
|
1699
|
+ that.num = num
|
|
1700
|
+
|
|
1701
|
+ if (that.paramsObj.settle_type != 1) {
|
|
1702
|
+ that.info.begndate = that.getTimes(that.paramsObj.start_time)
|
|
1703
|
+ that.info.enddate = that.getTimes(that.paramsObj.end_time)
|
|
1704
|
+ }
|
|
1705
|
+
|
|
1706
|
+ let list = []
|
|
1707
|
+ for (let i = 0; i < response.data.data.order_infos.length; i++) {
|
|
1708
|
+ let order = response.data.data.order_infos[i]
|
|
1709
|
+ let obj = {
|
|
1710
|
+ name: '',
|
|
1711
|
+ spec: '',
|
|
1712
|
+ cnt: '',
|
|
1713
|
+ det_item_fee_sumamt: ''
|
|
1714
|
+ }
|
|
1715
|
+
|
|
1716
|
+ if (order.advice_id > 0 && order.project_id == 0) {
|
|
1717
|
+ obj.name = order.advice.advice_name
|
|
1718
|
+ let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
|
|
1719
|
+ obj.spec = spec
|
1487
|
1720
|
obj.cnt = order.cnt
|
1488
|
1721
|
obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
1489
|
1722
|
list.push(obj)
|
|
1723
|
+
|
|
1724
|
+ } else if (order.advice_id == 0 && order.project_id > 0) {
|
|
1725
|
+ if (order.project.type == 2) {
|
|
1726
|
+ obj.name = order.project.project.project_name
|
|
1727
|
+ obj.spec = ''
|
|
1728
|
+ obj.cnt = order.cnt
|
|
1729
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
1730
|
+ list.push(obj)
|
|
1731
|
+
|
|
1732
|
+ } else {
|
|
1733
|
+ obj.name = order.project.good_info.good_name
|
|
1734
|
+ obj.spec = order.project.good_info.specification_name
|
|
1735
|
+ obj.cnt = order.cnt
|
|
1736
|
+ obj.det_item_fee_sumamt = order.det_item_fee_sumamt
|
|
1737
|
+ list.push(obj)
|
|
1738
|
+ }
|
1490
|
1739
|
}
|
1491
|
1740
|
}
|
1492
|
|
- }
|
1493
|
|
- let len = list.length / 2
|
1494
|
|
- let L_list = []
|
1495
|
|
- let R_list = []
|
1496
|
|
- len = Math.trunc(len)
|
1497
|
|
- for (let i = 0; i < len; i++) {
|
1498
|
|
- L_list.push(list[i])
|
1499
|
|
- }
|
1500
|
|
- for (let i = len; i < list.length; i++) {
|
1501
|
|
- R_list.push(list[i])
|
1502
|
|
- }
|
1503
|
|
- that.info['L_list'] = L_list
|
1504
|
|
- that.info['R_list'] = R_list
|
1505
|
|
- var funds = []
|
1506
|
|
- for(let i = 0; i < response.data.data.funds.length; i++){
|
1507
|
|
- var objs = {}
|
1508
|
|
- objs["number"] = i + 1
|
1509
|
|
- objs["fund_pay"] = response.data.data.funds[i].fund_payamt
|
1510
|
|
- objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
|
1511
|
|
- objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
|
1512
|
|
- for(let b = 0; b < that.fundsArray.length; b++){
|
|
1741
|
+ let len = list.length / 2
|
|
1742
|
+ let L_list = []
|
|
1743
|
+ let R_list = []
|
|
1744
|
+ len = Math.trunc(len)
|
|
1745
|
+ for (let i = 0; i < len; i++) {
|
|
1746
|
+ L_list.push(list[i])
|
|
1747
|
+ }
|
|
1748
|
+ for (let i = len; i < list.length; i++) {
|
|
1749
|
+ R_list.push(list[i])
|
|
1750
|
+ }
|
|
1751
|
+ that.info['L_list'] = L_list
|
|
1752
|
+ that.info['R_list'] = R_list
|
|
1753
|
+ var funds = []
|
|
1754
|
+ for(let i = 0; i < response.data.data.funds.length; i++){
|
|
1755
|
+ var objs = {}
|
|
1756
|
+ objs["number"] = i + 1
|
|
1757
|
+ objs["fund_pay"] = response.data.data.funds[i].fund_payamt
|
|
1758
|
+ objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
|
|
1759
|
+ objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
|
|
1760
|
+ for(let b = 0; b < that.fundsArray.length; b++){
|
1513
|
1761
|
if(response.data.data.funds[i].fund_pay_type == that.fundsArray[b].code){
|
1514
|
1762
|
objs["name"] =that.fundsArray[b].name
|
1515
|
1763
|
}
|
|
1764
|
+ }
|
|
1765
|
+ funds.push(objs)
|
1516
|
1766
|
}
|
1517
|
|
- funds.push(objs)
|
|
1767
|
+ that.info['funds'] = funds
|
|
1768
|
+ console.log(that.info)
|
1518
|
1769
|
}
|
1519
|
|
- that.info['funds'] = funds
|
1520
|
|
- console.log(that.info)
|
1521
|
|
- }
|
1522
|
|
- })
|
1523
|
|
- .catch(function(error) {
|
1524
|
|
- })
|
|
1770
|
+ })
|
|
1771
|
+ .catch(function(error) {
|
|
1772
|
+ })
|
|
1773
|
+ }
|
|
1774
|
+
|
1525
|
1775
|
}
|
1526
|
1776
|
}
|
1527
|
1777
|
|