|
@@ -210,7 +210,7 @@
|
210
|
210
|
<span v-if="scope.row.dialysis_irrigation!=''">{{scope.row.dialysis_irrigation}}</span>
|
211
|
211
|
</template>
|
212
|
212
|
</el-table-column>
|
213
|
|
-
|
|
213
|
+
|
214
|
214
|
<el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
|
215
|
215
|
<template slot-scope="scope">
|
216
|
216
|
<span>
|
|
@@ -275,7 +275,7 @@
|
275
|
275
|
{{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
|
276
|
276
|
</span>
|
277
|
277
|
<span v-else>
|
278
|
|
-
|
|
278
|
+
|
279
|
279
|
</span>
|
280
|
280
|
</span>
|
281
|
281
|
</template>
|
|
@@ -533,7 +533,7 @@
|
533
|
533
|
</el-select>
|
534
|
534
|
<el-button size="small" icon="el-icon-printer" @click="toPrintOne" type="primary">打印</el-button>
|
535
|
535
|
<el-button size="small" @click="toExportListOne" type="primary">导出</el-button>
|
536
|
|
- </div>
|
|
536
|
+ </div>
|
537
|
537
|
|
538
|
538
|
<el-table
|
539
|
539
|
:data="tableList"
|
|
@@ -559,15 +559,15 @@
|
559
|
559
|
{{scope.row.specification_name}}
|
560
|
560
|
</template>
|
561
|
561
|
</el-table-column>
|
562
|
|
-
|
|
562
|
+
|
563
|
563
|
<el-table-column align="center" label="数量">
|
564
|
564
|
<template slot-scope="scope">
|
565
|
565
|
<span v-if="config.is_open!=1">{{getCount(scope.row.child)}}</span>
|
566
|
566
|
<span v-if="config.is_open ==1">{{getHisCount(scope.row.child,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
567
|
567
|
</template>
|
568
|
568
|
</el-table-column>
|
569
|
|
-
|
570
|
|
-
|
|
569
|
+
|
|
570
|
+
|
571
|
571
|
|
572
|
572
|
</el-table>
|
573
|
573
|
</span>
|
|
@@ -607,11 +607,11 @@
|
607
|
607
|
<!-- <el-button size="small" @click="toExportListOne" type="primary">导出</el-button> -->
|
608
|
608
|
|
609
|
609
|
<!-- <el-button @click="toJiao()">脚本</el-button> -->
|
610
|
|
- </div>
|
|
610
|
+ </div>
|
611
|
611
|
|
612
|
612
|
<el-table
|
613
|
613
|
:data="tableDataList"
|
614
|
|
-
|
|
614
|
+
|
615
|
615
|
border
|
616
|
616
|
:row-style="{ color: '#303133' }"
|
617
|
617
|
:header-cell-style="{
|
|
@@ -626,7 +626,7 @@
|
626
|
626
|
width="100"
|
627
|
627
|
>
|
628
|
628
|
<template slot-scope="scope" >
|
629
|
|
- <span v-if="scope.row.is_total == 1">{{scope.$index+1}}</span>
|
|
629
|
+ <span v-if="scope.row.is_total == 1">{{scope.$index+1}}</span>
|
630
|
630
|
<span v-if="scope.row.is_total == 0">总计</span>
|
631
|
631
|
</template>
|
632
|
632
|
|
|
@@ -641,7 +641,7 @@
|
641
|
641
|
<span v-if="scope.row.is_total ==1">
|
642
|
642
|
<!-- {{getZoneName(scope.row.child)}} -->
|
643
|
643
|
{{scope.row.zone_name }}
|
644
|
|
- </span>
|
|
644
|
+ </span>
|
645
|
645
|
</template>
|
646
|
646
|
|
647
|
647
|
</el-table-column>
|
|
@@ -654,7 +654,7 @@
|
654
|
654
|
<template slot-scope="scope">
|
655
|
655
|
<span v-if="scope.row.is_total ==1">
|
656
|
656
|
{{getAdminUserName(scope.row.execution_staff)}}
|
657
|
|
- </span>
|
|
657
|
+ </span>
|
658
|
658
|
</template>
|
659
|
659
|
|
660
|
660
|
</el-table-column> -->
|
|
@@ -672,7 +672,7 @@
|
672
|
672
|
</template>
|
673
|
673
|
|
674
|
674
|
</el-table-column>
|
675
|
|
-
|
|
675
|
+
|
676
|
676
|
<el-table-column
|
677
|
677
|
align="center"
|
678
|
678
|
prop="name"
|
|
@@ -684,17 +684,17 @@
|
684
|
684
|
<span v-if="scope.row.is_total ==1">
|
685
|
685
|
<span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
|
686
|
686
|
<span v-if="item&&item.advice_name == '肝素钠注射剂'">
|
687
|
|
- {{getDrugAdviceCount(item.advice_name,scope.row.zone_name)}}
|
|
687
|
+ {{getDrugAdviceCount(item.advice_name,scope.row.zone_name)}}
|
688
|
688
|
</span>
|
689
|
|
- </span>
|
|
689
|
+ </span>
|
690
|
690
|
<span v-if="scope.row.is_total == 0">
|
691
|
691
|
{{getAllSumCount(item.advice_name)}}
|
692
|
692
|
</span>
|
693
|
693
|
</template>
|
694
|
694
|
|
695
|
695
|
</el-table-column>
|
696
|
|
-
|
697
|
|
-
|
|
696
|
+
|
|
697
|
+
|
698
|
698
|
|
699
|
699
|
</el-table>
|
700
|
700
|
</span>
|
|
@@ -756,7 +756,7 @@ export default {
|
756
|
756
|
},
|
757
|
757
|
selecting_schs: [],
|
758
|
758
|
partitionArr: [],
|
759
|
|
-
|
|
759
|
+
|
760
|
760
|
scheduleMap:[],
|
761
|
761
|
show:true,
|
762
|
762
|
showOne:false,
|
|
@@ -836,7 +836,7 @@ export default {
|
836
|
836
|
});
|
837
|
837
|
},
|
838
|
838
|
clickCurrent(val) {
|
839
|
|
- console.log(val);
|
|
839
|
+ //console.log(val);
|
840
|
840
|
this.$router.push({
|
841
|
841
|
path: "/dialysis/details",
|
842
|
842
|
query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
|
|
@@ -910,16 +910,16 @@ export default {
|
910
|
910
|
var resp = rs.data
|
911
|
911
|
if (resp.state == 1) {
|
912
|
912
|
this.admin_users = resp.data.adminUser
|
913
|
|
-
|
914
|
|
-
|
|
913
|
+
|
|
914
|
+
|
915
|
915
|
var config = resp.data.config
|
916
|
916
|
this.config = config
|
917
|
917
|
let project_config = resp.data.project_config
|
918
|
|
-
|
|
918
|
+
|
919
|
919
|
if(project_config.is_open == 1){
|
920
|
920
|
this.project = resp.data.project
|
921
|
921
|
console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
|
922
|
|
-
|
|
922
|
+
|
923
|
923
|
let projectArr = []
|
924
|
924
|
if(this.org_id!= 10318 && this.org_id!=10265){
|
925
|
925
|
this.project.map(item => {
|
|
@@ -933,7 +933,7 @@ export default {
|
933
|
933
|
resp.data.hisAdvices.map((item,index) => {
|
934
|
934
|
if(projectArr[index].project && projectArr[index].project.length > 0){
|
935
|
935
|
projectArr[index].project.map(it => {
|
936
|
|
-
|
|
936
|
+
|
937
|
937
|
let obj = {
|
938
|
938
|
advice_doctor: it.doctor,
|
939
|
939
|
start_time:it.start_time,
|
|
@@ -965,12 +965,12 @@ export default {
|
965
|
965
|
|
966
|
966
|
|
967
|
967
|
|
968
|
|
-
|
|
968
|
+
|
969
|
969
|
if(config.is_open == 0 || config.is_open == 2){
|
970
|
970
|
var schedules = resp.data.scheduals
|
971
|
971
|
|
972
|
972
|
|
973
|
|
-
|
|
973
|
+
|
974
|
974
|
var newList = []
|
975
|
975
|
if(this.is_sort == 0){
|
976
|
976
|
newList = schedules
|
|
@@ -980,10 +980,10 @@ export default {
|
980
|
980
|
item.is_sort = item.device_number.sort
|
981
|
981
|
item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
|
982
|
982
|
})
|
983
|
|
-
|
|
983
|
+
|
984
|
984
|
newList = schedules.sort(this.compare('is_sort'))
|
985
|
|
-
|
986
|
|
-
|
|
985
|
+
|
|
986
|
+
|
987
|
987
|
|
988
|
988
|
}
|
989
|
989
|
if(this.is_sort == 2){
|
|
@@ -999,7 +999,7 @@ export default {
|
999
|
999
|
let arr = []
|
1000
|
1000
|
let newArr = []
|
1001
|
1001
|
let newSchedules = []
|
1002
|
|
-
|
|
1002
|
+
|
1003
|
1003
|
newList.map(item => {
|
1004
|
1004
|
item.doctor_advice.map(it =>{
|
1005
|
1005
|
it.name = item.patient.name
|
|
@@ -1022,10 +1022,10 @@ export default {
|
1022
|
1022
|
})
|
1023
|
1023
|
|
1024
|
1024
|
console.log("schedules9999999998888888888",schedules)
|
1025
|
|
-
|
1026
|
1025
|
|
1027
|
|
-
|
1028
|
|
-
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
1029
|
1029
|
if(this.schedulType == 0){
|
1030
|
1030
|
newSchedules = arr
|
1031
|
1031
|
}else{
|
|
@@ -1036,7 +1036,7 @@ export default {
|
1036
|
1036
|
})
|
1037
|
1037
|
}
|
1038
|
1038
|
|
1039
|
|
-
|
|
1039
|
+
|
1040
|
1040
|
if(this.partitionType == 0){
|
1041
|
1041
|
this.scheduleMap = newSchedules
|
1042
|
1042
|
}else {
|
|
@@ -1064,15 +1064,15 @@ export default {
|
1064
|
1064
|
})
|
1065
|
1065
|
this.indexInfoList = newArr
|
1066
|
1066
|
console.log("this.scheduleMap", this.scheduleMap)
|
1067
|
|
-
|
1068
|
|
-
|
|
1067
|
+
|
|
1068
|
+
|
1069
|
1069
|
}
|
1070
|
1070
|
|
1071
|
1071
|
if(config.is_open == 1){
|
1072
|
1072
|
this.show = false
|
1073
|
1073
|
this.showOne = true
|
1074
|
1074
|
var schedules = resp.data.hisAdvices
|
1075
|
|
-
|
|
1075
|
+
|
1076
|
1076
|
let arr = []
|
1077
|
1077
|
let newArr = []
|
1078
|
1078
|
let newSchedules = []
|
|
@@ -1085,10 +1085,10 @@ export default {
|
1085
|
1085
|
item.is_sort = item.device_number.sort
|
1086
|
1086
|
item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
|
1087
|
1087
|
})
|
1088
|
|
-
|
|
1088
|
+
|
1089
|
1089
|
newList = schedules.sort(this.compare('is_sort'))
|
1090
|
|
-
|
1091
|
|
-
|
|
1090
|
+
|
|
1091
|
+
|
1092
|
1092
|
|
1093
|
1093
|
}
|
1094
|
1094
|
if(this.is_sort == 2){
|
|
@@ -1116,7 +1116,7 @@ export default {
|
1116
|
1116
|
arr.push(it)
|
1117
|
1117
|
})
|
1118
|
1118
|
item.is_sort = item.device_number.sort
|
1119
|
|
-
|
|
1119
|
+
|
1120
|
1120
|
item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
|
1121
|
1121
|
})
|
1122
|
1122
|
if(this.schedulType == 0){
|
|
@@ -1141,7 +1141,7 @@ export default {
|
1141
|
1141
|
})
|
1142
|
1142
|
this.scheduleMap = a
|
1143
|
1143
|
}
|
1144
|
|
-
|
|
1144
|
+
|
1145
|
1145
|
this.scheduleMap.map(ele => {
|
1146
|
1146
|
let firstIndex = this.scheduleMap.findIndex(item => {
|
1147
|
1147
|
return item.patient_id === ele.patient_id // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
|
|
@@ -1158,9 +1158,9 @@ export default {
|
1158
|
1158
|
this.indexInfoList = newArr
|
1159
|
1159
|
}
|
1160
|
1160
|
}
|
1161
|
|
-
|
|
1161
|
+
|
1162
|
1162
|
})
|
1163
|
|
-
|
|
1163
|
+
|
1164
|
1164
|
},
|
1165
|
1165
|
compare:function (k) {
|
1166
|
1166
|
return function (a, b) {
|
|
@@ -1223,7 +1223,7 @@ export default {
|
1223
|
1223
|
if(name == '全部'){
|
1224
|
1224
|
name = ""
|
1225
|
1225
|
}
|
1226
|
|
-
|
|
1226
|
+
|
1227
|
1227
|
if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
|
1228
|
1228
|
this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name} });
|
1229
|
1229
|
}
|
|
@@ -1233,7 +1233,7 @@ export default {
|
1233
|
1233
|
}
|
1234
|
1234
|
|
1235
|
1235
|
|
1236
|
|
-
|
|
1236
|
+
|
1237
|
1237
|
|
1238
|
1238
|
},
|
1239
|
1239
|
signPrintAction:function(){
|
|
@@ -1490,7 +1490,7 @@ export default {
|
1490
|
1490
|
this.requestSchedualDoctors(this.time)
|
1491
|
1491
|
},
|
1492
|
1492
|
toExcution(){
|
1493
|
|
-
|
|
1493
|
+
|
1494
|
1494
|
if(this.selecting_schs.length ==0){
|
1495
|
1495
|
this.$message.error("请勾选需要执行的医嘱")
|
1496
|
1496
|
return false
|
|
@@ -1505,7 +1505,7 @@ export default {
|
1505
|
1505
|
},
|
1506
|
1506
|
|
1507
|
1507
|
excutionDoctorAdvice(){
|
1508
|
|
-
|
|
1508
|
+
|
1509
|
1509
|
if (this.execTime.length == 0) {
|
1510
|
1510
|
this.$message.error('请选择执行时间!')
|
1511
|
1511
|
return false
|
|
@@ -1527,7 +1527,7 @@ export default {
|
1527
|
1527
|
}
|
1528
|
1528
|
console.log("params232322323wo",params)
|
1529
|
1529
|
this.exceLoading = true
|
1530
|
|
-
|
|
1530
|
+
|
1531
|
1531
|
excutionDoctorAdvice(params).then(response=>{
|
1532
|
1532
|
if(response.data.state == 1){
|
1533
|
1533
|
if(response.data.data.msg == 2){
|
|
@@ -1546,7 +1546,7 @@ export default {
|
1546
|
1546
|
if(response.data.data.msg == 3){
|
1547
|
1547
|
this.$message.error("执行人和核对人不能是同一个人,执行失败!")
|
1548
|
1548
|
}
|
1549
|
|
-
|
|
1549
|
+
|
1550
|
1550
|
}
|
1551
|
1551
|
})
|
1552
|
1552
|
},
|
|
@@ -1557,7 +1557,7 @@ export default {
|
1557
|
1557
|
return false
|
1558
|
1558
|
}
|
1559
|
1559
|
|
1560
|
|
-
|
|
1560
|
+
|
1561
|
1561
|
var ids=[]
|
1562
|
1562
|
if(this.selecting_schs!=null && this.selecting_schs.length >0){
|
1563
|
1563
|
for(let i=0;i<this.selecting_schs.length;i++){
|
|
@@ -1580,7 +1580,7 @@ export default {
|
1580
|
1580
|
this.$message.success("核对成功!")
|
1581
|
1581
|
this.requestSchedualDoctors(this.time)
|
1582
|
1582
|
}
|
1583
|
|
-
|
|
1583
|
+
|
1584
|
1584
|
}
|
1585
|
1585
|
})
|
1586
|
1586
|
},
|
|
@@ -1613,21 +1613,21 @@ export default {
|
1613
|
1613
|
this.requestSchedualDoctors(this.time);
|
1614
|
1614
|
},
|
1615
|
1615
|
handleRowClick (row) {
|
1616
|
|
-
|
|
1616
|
+
|
1617
|
1617
|
},
|
1618
|
1618
|
tableRowClassName({row, rowIndex}) {
|
1619
|
1619
|
row.index = rowIndex
|
1620
|
1620
|
if(row.index = rowIndex){
|
1621
|
1621
|
return 'success-row'
|
1622
|
1622
|
}
|
1623
|
|
-
|
|
1623
|
+
|
1624
|
1624
|
},
|
1625
|
1625
|
handleCurrentChangeList(row){
|
1626
|
|
-
|
|
1626
|
+
|
1627
|
1627
|
this.selecting_schs.push(row)
|
1628
|
1628
|
this.current_row= row
|
1629
|
1629
|
this.is_status = 2
|
1630
|
|
-
|
|
1630
|
+
|
1631
|
1631
|
},
|
1632
|
1632
|
excutionDoctorAdviceOne(){
|
1633
|
1633
|
if(this.current_row.execution_state == 1){
|
|
@@ -1688,9 +1688,9 @@ export default {
|
1688
|
1688
|
this.druglist = druglist
|
1689
|
1689
|
this.startdialogVisible = true
|
1690
|
1690
|
var list = response.data.data.list
|
1691
|
|
-
|
|
1691
|
+
|
1692
|
1692
|
var config = response.data.data.config
|
1693
|
|
-
|
|
1693
|
+
|
1694
|
1694
|
console.log("dcotor---------------",this.doctorList)
|
1695
|
1695
|
if(list!=null && list.length > 0){
|
1696
|
1696
|
for(let i=0;i<list.length;i++){
|
|
@@ -1729,7 +1729,7 @@ export default {
|
1729
|
1729
|
}
|
1730
|
1730
|
}
|
1731
|
1731
|
}
|
1732
|
|
-
|
|
1732
|
+
|
1733
|
1733
|
this.tableList = []
|
1734
|
1734
|
for(let i=0;i<list.length;i++){
|
1735
|
1735
|
for(let j=0;j<arr.length;j++){
|
|
@@ -1738,10 +1738,10 @@ export default {
|
1738
|
1738
|
}
|
1739
|
1739
|
}
|
1740
|
1740
|
}
|
1741
|
|
-
|
|
1741
|
+
|
1742
|
1742
|
}
|
1743
|
1743
|
}
|
1744
|
|
-
|
|
1744
|
+
|
1745
|
1745
|
var his_doctor_advice = []
|
1746
|
1746
|
|
1747
|
1747
|
for(let i=0;i<list.length;i++){
|
|
@@ -1750,9 +1750,9 @@ export default {
|
1750
|
1750
|
}
|
1751
|
1751
|
}
|
1752
|
1752
|
console.log("his_doctor_advice",his_doctor_advice)
|
1753
|
|
-
|
|
1753
|
+
|
1754
|
1754
|
var newHisArr = []
|
1755
|
|
- for(let i=0;i<his_doctor_advice.length;i++){
|
|
1755
|
+ for(let i=0;i<his_doctor_advice.length;i++){
|
1756
|
1756
|
his_doctor_advice[i].count_one = 0
|
1757
|
1757
|
if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
|
1758
|
1758
|
his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
|
|
@@ -1768,7 +1768,7 @@ export default {
|
1768
|
1768
|
}
|
1769
|
1769
|
}
|
1770
|
1770
|
console.log("下盘子3223323223",newHisArr)
|
1771
|
|
-
|
|
1771
|
+
|
1772
|
1772
|
if(config.is_open == 1){
|
1773
|
1773
|
if(newHisArr!=null && newHisArr.length > 0){
|
1774
|
1774
|
let dataInfoOne = {}
|
|
@@ -1808,7 +1808,7 @@ export default {
|
1808
|
1808
|
}
|
1809
|
1809
|
}
|
1810
|
1810
|
})
|
1811
|
|
-
|
|
1811
|
+
|
1812
|
1812
|
},
|
1813
|
1813
|
toStaticOne() {
|
1814
|
1814
|
this.tableList = []
|
|
@@ -1817,7 +1817,7 @@ export default {
|
1817
|
1817
|
partion_type:this.partion_type,
|
1818
|
1818
|
selected_date: moment(this.time).format('YYYY-MM-DD'),
|
1819
|
1819
|
}
|
1820
|
|
-
|
|
1820
|
+
|
1821
|
1821
|
getDialysisAdviceToday(params).then(response=>{
|
1822
|
1822
|
if(response.data.state == 1){
|
1823
|
1823
|
var doctorList = []
|
|
@@ -1825,10 +1825,10 @@ export default {
|
1825
|
1825
|
this.druglist = druglist
|
1826
|
1826
|
this.startdialogVisibleOne = true
|
1827
|
1827
|
var list = response.data.data.list
|
1828
|
|
-
|
|
1828
|
+
|
1829
|
1829
|
var config = response.data.data.config
|
1830
|
1830
|
this.adminUserList = response.data.data.doctorList
|
1831
|
|
-
|
|
1831
|
+
|
1832
|
1832
|
if(list!=null && list.length > 0){
|
1833
|
1833
|
for(let i=0;i<list.length;i++){
|
1834
|
1834
|
for(let j=0;j<list[i].xt_doctor_advice.length;j++){
|
|
@@ -1839,9 +1839,9 @@ export default {
|
1839
|
1839
|
}
|
1840
|
1840
|
}
|
1841
|
1841
|
}
|
1842
|
|
-
|
|
1842
|
+
|
1843
|
1843
|
if(config.is_open!=1){
|
1844
|
|
-
|
|
1844
|
+
|
1845
|
1845
|
|
1846
|
1846
|
if(doctorList!=null && doctorList.length > 0){
|
1847
|
1847
|
|
|
@@ -1871,14 +1871,14 @@ export default {
|
1871
|
1871
|
this.tabHead = arr
|
1872
|
1872
|
console.log("tabHead",this.tabHead)
|
1873
|
1873
|
}
|
1874
|
|
-
|
|
1874
|
+
|
1875
|
1875
|
this.doctorMap = []
|
1876
|
1876
|
if(doctorList!=null && doctorList.length > 0){
|
1877
|
1877
|
let dataInfoOne = {}
|
1878
|
1878
|
doctorList.forEach((item, index) => {
|
1879
|
1879
|
if(item.advice_name == "肝素钠注射剂"){
|
1880
|
1880
|
this.doctorMap.push(item)
|
1881
|
|
- }
|
|
1881
|
+ }
|
1882
|
1882
|
let { zone_name } = item
|
1883
|
1883
|
if (!dataInfoOne[zone_name]) {
|
1884
|
1884
|
dataInfoOne[zone_name] = {
|
|
@@ -1913,14 +1913,14 @@ export default {
|
1913
|
1913
|
console.log("999999999999999999-------",this.tableDataList)
|
1914
|
1914
|
}
|
1915
|
1915
|
|
1916
|
|
-
|
1917
|
|
-
|
|
1916
|
+
|
|
1917
|
+
|
1918
|
1918
|
}
|
1919
|
|
-
|
1920
|
|
-
|
|
1919
|
+
|
|
1920
|
+
|
1921
|
1921
|
}
|
1922
|
1922
|
})
|
1923
|
|
-
|
|
1923
|
+
|
1924
|
1924
|
},
|
1925
|
1925
|
getDrugAdviceCount(advice_name,zone_name){
|
1926
|
1926
|
var str = ""
|
|
@@ -2003,7 +2003,7 @@ export default {
|
2003
|
2003
|
}
|
2004
|
2004
|
}
|
2005
|
2005
|
return max_str + min_str;
|
2006
|
|
-
|
|
2006
|
+
|
2007
|
2007
|
},
|
2008
|
2008
|
toPrintOne(){
|
2009
|
2009
|
var schedule_date = moment(this.time).format('YYYY-MM-DD')
|
|
@@ -2014,8 +2014,8 @@ export default {
|
2014
|
2014
|
this.$router.push({path:"/dialysis/doctorNewAdviceStaticPrint?schedule_type="+this.schedule_type+"&partion_type="+this.partion_type+"&schedule_date="+schedule_date+"&is_open="+this.config.is_open})
|
2015
|
2015
|
},
|
2016
|
2016
|
toExportListOne(){
|
2017
|
|
- import('@/vendor/Export2Excel').then(excel => {
|
2018
|
|
-
|
|
2017
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
2018
|
+
|
2019
|
2019
|
if(this.tableList!=null && this.tableList.length > 0){
|
2020
|
2020
|
for(let i=0;i<this.tableList.length;i++){
|
2021
|
2021
|
this.tableList[i].index = i+1
|
|
@@ -2025,7 +2025,7 @@ export default {
|
2025
|
2025
|
if(this.config.is_open!=1){
|
2026
|
2026
|
this.tableList[i].total_count = this.getCount(this.tableList[i].child)
|
2027
|
2027
|
}
|
2028
|
|
-
|
|
2028
|
+
|
2029
|
2029
|
}
|
2030
|
2030
|
}
|
2031
|
2031
|
const tHeader = ['序号','药品名称','规格','数量']
|
|
@@ -2038,7 +2038,7 @@ export default {
|
2038
|
2038
|
filename: '药品统计'
|
2039
|
2039
|
})
|
2040
|
2040
|
this.downloadLoading = false
|
2041
|
|
- })
|
|
2041
|
+ })
|
2042
|
2042
|
},
|
2043
|
2043
|
formatJson(filterVal, jsonData) {
|
2044
|
2044
|
return jsonData.map(v => filterVal.map(j => v[j]));
|
|
@@ -2074,7 +2074,7 @@ export default {
|
2074
|
2074
|
}
|
2075
|
2075
|
})
|
2076
|
2076
|
let newArr = Object.values(dataInfo)
|
2077
|
|
-
|
|
2077
|
+
|
2078
|
2078
|
if(newArr!=null && newArr.length >0){
|
2079
|
2079
|
let dataInfo = {}
|
2080
|
2080
|
newArr.forEach((item, index) => {
|
|
@@ -2088,7 +2088,7 @@ export default {
|
2088
|
2088
|
}
|
2089
|
2089
|
})
|
2090
|
2090
|
let hisNewArr = Object.values(dataInfo)
|
2091
|
|
-
|
|
2091
|
+
|
2092
|
2092
|
if(hisNewArr!=null && hisNewArr.length >0){
|
2093
|
2093
|
for(let i=0;i<hisNewArr.length;i++){
|
2094
|
2094
|
for(let j=0;j<newArr.length;j++){
|
|
@@ -2098,8 +2098,8 @@ export default {
|
2098
|
2098
|
}
|
2099
|
2099
|
}
|
2100
|
2100
|
}
|
2101
|
|
-
|
2102
|
|
-
|
|
2101
|
+
|
|
2102
|
+
|
2103
|
2103
|
var str = ""
|
2104
|
2104
|
for(let i=0;i<hisNewArr.length;i++){
|
2105
|
2105
|
if(hisNewArr[i].mode_id == 1){
|
|
@@ -2186,9 +2186,9 @@ export default {
|
2186
|
2186
|
if(hisNewArr[i].mode_id == 32){
|
2187
|
2187
|
hisNewArr[i].mode_id = "HDP"
|
2188
|
2188
|
}
|
2189
|
|
- str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
|
|
2189
|
+ str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
|
2190
|
2190
|
}
|
2191
|
|
-
|
|
2191
|
+
|
2192
|
2192
|
return str
|
2193
|
2193
|
}
|
2194
|
2194
|
|
|
@@ -2196,17 +2196,17 @@ export default {
|
2196
|
2196
|
}
|
2197
|
2197
|
},
|
2198
|
2198
|
getDrugCount(val,advice_name){
|
2199
|
|
-
|
|
2199
|
+
|
2200
|
2200
|
if(val!=null){
|
2201
|
2201
|
for(let i=0;i<val.length;i++){
|
2202
|
2202
|
val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
|
2203
|
2203
|
}
|
2204
|
2204
|
}
|
2205
|
|
-
|
|
2205
|
+
|
2206
|
2206
|
if(val!=null && val.length >0){
|
2207
|
2207
|
let dataInfo = {}
|
2208
|
2208
|
val.forEach((item, index) => {
|
2209
|
|
-
|
|
2209
|
+
|
2210
|
2210
|
let { advice_name } = item
|
2211
|
2211
|
if (!dataInfo[advice_name]) {
|
2212
|
2212
|
dataInfo[advice_name] = {
|
|
@@ -2216,10 +2216,10 @@ export default {
|
2216
|
2216
|
}
|
2217
|
2217
|
}
|
2218
|
2218
|
})
|
2219
|
|
-
|
2220
|
|
- let newArr = Object.values(dataInfo)
|
2221
|
|
-
|
2222
|
|
-
|
|
2219
|
+
|
|
2220
|
+ let newArr = Object.values(dataInfo)
|
|
2221
|
+
|
|
2222
|
+
|
2223
|
2223
|
if(newArr!=null && newArr.length >0){
|
2224
|
2224
|
for(let i=0;i<newArr.length;i++){
|
2225
|
2225
|
for(let j=0;j<val.length;j++){
|
|
@@ -2229,7 +2229,7 @@ export default {
|
2229
|
2229
|
}
|
2230
|
2230
|
}
|
2231
|
2231
|
}
|
2232
|
|
-
|
|
2232
|
+
|
2233
|
2233
|
var total = 0
|
2234
|
2234
|
var newHisArr =[]
|
2235
|
2235
|
if(newArr!=null && newArr.length >0){
|
|
@@ -2241,14 +2241,14 @@ export default {
|
2241
|
2241
|
}
|
2242
|
2242
|
|
2243
|
2243
|
if(newHisArr!=null && newHisArr.length>0){
|
2244
|
|
-
|
|
2244
|
+
|
2245
|
2245
|
for(let i=0;i<newHisArr.length;i++){
|
2246
|
2246
|
for(let j=0;j<newHisArr[i].child.length;j++){
|
2247
|
2247
|
total += parseInt(newHisArr[i].child[j].prescribing_number)
|
2248
|
2248
|
}
|
2249
|
2249
|
}
|
2250
|
2250
|
}
|
2251
|
|
-
|
|
2251
|
+
|
2252
|
2252
|
return total
|
2253
|
2253
|
}
|
2254
|
2254
|
|
|
@@ -2289,16 +2289,16 @@ export default {
|
2289
|
2289
|
if(index > 2){
|
2290
|
2290
|
const values = data.map(item => item[column.property]);
|
2291
|
2291
|
console.log("data0----------------",data)
|
2292
|
|
-
|
|
2292
|
+
|
2293
|
2293
|
}
|
2294
|
|
-
|
|
2294
|
+
|
2295
|
2295
|
});
|
2296
|
2296
|
|
2297
|
2297
|
return sums;
|
2298
|
2298
|
},
|
2299
|
2299
|
|
2300
|
2300
|
getAllSumCount(advice_name){
|
2301
|
|
-
|
|
2301
|
+
|
2302
|
2302
|
var hisNewArr =[]
|
2303
|
2303
|
if(this.tabHead.length!=null && this.tabHead.length >0){
|
2304
|
2304
|
for(let i=0;i<this.tabHead.length;i++){
|
|
@@ -2307,7 +2307,7 @@ export default {
|
2307
|
2307
|
}
|
2308
|
2308
|
}
|
2309
|
2309
|
}
|
2310
|
|
-
|
|
2310
|
+
|
2311
|
2311
|
var total = 0
|
2312
|
2312
|
if(hisNewArr!=null && hisNewArr.length > 0){
|
2313
|
2313
|
for(let i=0;i<hisNewArr.length;i++){
|
|
@@ -2342,10 +2342,10 @@ export default {
|
2342
|
2342
|
// arr.push(schedule[i])
|
2343
|
2343
|
// }
|
2344
|
2344
|
// }
|
2345
|
|
-
|
2346
|
2345
|
|
2347
|
|
- // import('@/vendor/Export2Excel').then(excel => {
|
2348
|
|
-
|
|
2346
|
+
|
|
2347
|
+ // import('@/vendor/Export2Excel').then(excel => {
|
|
2348
|
+
|
2349
|
2349
|
// if(arr!=null && arr.length > 0){
|
2350
|
2350
|
// for(let i=0;i<arr.length;i++){
|
2351
|
2351
|
// arr[i].patient_name = arr[i].patient.name
|
|
@@ -2364,11 +2364,11 @@ export default {
|
2364
|
2364
|
// data,
|
2365
|
2365
|
// filename: '监测数据统计'
|
2366
|
2366
|
// })
|
2367
|
|
- // })
|
2368
|
|
- }
|
|
2367
|
+ // })
|
|
2368
|
+ }
|
2369
|
2369
|
})
|
2370
|
2370
|
}
|
2371
|
|
-
|
|
2371
|
+
|
2372
|
2372
|
},
|
2373
|
2373
|
components: {
|
2374
|
2374
|
BreadCrumb
|
|
@@ -2446,7 +2446,7 @@ export default {
|
2446
|
2446
|
}
|
2447
|
2447
|
}
|
2448
|
2448
|
|
2449
|
|
-
|
|
2449
|
+
|
2450
|
2450
|
.el-table td .cell{
|
2451
|
2451
|
white-space: pre-wrap;
|
2452
|
2452
|
}
|