|
@@ -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
|
|
|
@@ -638,7 +638,7 @@
|
638
|
638
|
width="100"
|
639
|
639
|
>
|
640
|
640
|
<template slot-scope="scope" >
|
641
|
|
- <span v-if="scope.row.is_total ==1">{{getZoneName(scope.row.child)}}</span>
|
|
641
|
+ <span v-if="scope.row.is_total ==1">{{getZoneName(scope.row.child)}}</span>
|
642
|
642
|
</template>
|
643
|
643
|
|
644
|
644
|
</el-table-column>
|
|
@@ -651,7 +651,7 @@
|
651
|
651
|
<template slot-scope="scope">
|
652
|
652
|
<span v-if="scope.row.is_total ==1">
|
653
|
653
|
{{getAdminUserName(scope.row.execution_staff)}}
|
654
|
|
- </span>
|
|
654
|
+ </span>
|
655
|
655
|
</template>
|
656
|
656
|
|
657
|
657
|
</el-table-column>
|
|
@@ -669,7 +669,7 @@
|
669
|
669
|
</template>
|
670
|
670
|
|
671
|
671
|
</el-table-column>
|
672
|
|
-
|
|
672
|
+
|
673
|
673
|
<el-table-column
|
674
|
674
|
align="center"
|
675
|
675
|
prop="name"
|
|
@@ -680,15 +680,15 @@
|
680
|
680
|
<template slot-scope="scope">
|
681
|
681
|
<span v-if="scope.row.is_total ==1">
|
682
|
682
|
<span v-if="scope.row.child[index]!=null">{{getDrugCount(scope.row.child,item.advice_name)}}</span>
|
683
|
|
- </span>
|
|
683
|
+ </span>
|
684
|
684
|
<span v-if="scope.row.is_total == 0">
|
685
|
685
|
{{getAllSumCount(item.advice_name)}}
|
686
|
686
|
</span>
|
687
|
687
|
</template>
|
688
|
688
|
|
689
|
689
|
</el-table-column>
|
690
|
|
-
|
691
|
|
-
|
|
690
|
+
|
|
691
|
+
|
692
|
692
|
|
693
|
693
|
</el-table>
|
694
|
694
|
</span>
|
|
@@ -750,7 +750,7 @@ export default {
|
750
|
750
|
},
|
751
|
751
|
selecting_schs: [],
|
752
|
752
|
partitionArr: [],
|
753
|
|
-
|
|
753
|
+
|
754
|
754
|
scheduleMap:[],
|
755
|
755
|
show:true,
|
756
|
756
|
showOne:false,
|
|
@@ -829,7 +829,7 @@ export default {
|
829
|
829
|
});
|
830
|
830
|
},
|
831
|
831
|
clickCurrent(val) {
|
832
|
|
- console.log(val);
|
|
832
|
+ // console.log(val);
|
833
|
833
|
this.$router.push({
|
834
|
834
|
path: "/dialysis/details",
|
835
|
835
|
query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
|
|
@@ -903,16 +903,16 @@ export default {
|
903
|
903
|
var resp = rs.data
|
904
|
904
|
if (resp.state == 1) {
|
905
|
905
|
this.admin_users = resp.data.adminUser
|
906
|
|
-
|
907
|
|
-
|
|
906
|
+
|
|
907
|
+
|
908
|
908
|
var config = resp.data.config
|
909
|
909
|
this.config = config
|
910
|
910
|
let project_config = resp.data.project_config
|
911
|
|
-
|
|
911
|
+
|
912
|
912
|
if(project_config.is_open == 1){
|
913
|
913
|
this.project = resp.data.project
|
914
|
914
|
console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
|
915
|
|
-
|
|
915
|
+
|
916
|
916
|
let projectArr = []
|
917
|
917
|
if(this.org_id!= 10318 && this.org_id!=10265){
|
918
|
918
|
this.project.map(item => {
|
|
@@ -926,7 +926,7 @@ export default {
|
926
|
926
|
resp.data.hisAdvices.map((item,index) => {
|
927
|
927
|
if(projectArr[index].project && projectArr[index].project.length > 0){
|
928
|
928
|
projectArr[index].project.map(it => {
|
929
|
|
-
|
|
929
|
+
|
930
|
930
|
let obj = {
|
931
|
931
|
advice_doctor: it.doctor,
|
932
|
932
|
start_time:it.start_time,
|
|
@@ -958,12 +958,12 @@ export default {
|
958
|
958
|
|
959
|
959
|
|
960
|
960
|
|
961
|
|
-
|
|
961
|
+
|
962
|
962
|
if(config.is_open == 0 || config.is_open == 2){
|
963
|
963
|
var schedules = resp.data.scheduals
|
964
|
964
|
|
965
|
965
|
|
966
|
|
-
|
|
966
|
+
|
967
|
967
|
var newList = []
|
968
|
968
|
if(this.is_sort == 0){
|
969
|
969
|
newList = schedules
|
|
@@ -973,10 +973,10 @@ export default {
|
973
|
973
|
item.is_sort = item.device_number.sort
|
974
|
974
|
item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
|
975
|
975
|
})
|
976
|
|
-
|
|
976
|
+
|
977
|
977
|
newList = schedules.sort(this.compare('is_sort'))
|
978
|
|
-
|
979
|
|
-
|
|
978
|
+
|
|
979
|
+
|
980
|
980
|
|
981
|
981
|
}
|
982
|
982
|
if(this.is_sort == 2){
|
|
@@ -992,7 +992,7 @@ export default {
|
992
|
992
|
let arr = []
|
993
|
993
|
let newArr = []
|
994
|
994
|
let newSchedules = []
|
995
|
|
-
|
|
995
|
+
|
996
|
996
|
newList.map(item => {
|
997
|
997
|
item.doctor_advice.map(it =>{
|
998
|
998
|
it.name = item.patient.name
|
|
@@ -1015,10 +1015,10 @@ export default {
|
1015
|
1015
|
})
|
1016
|
1016
|
|
1017
|
1017
|
console.log("schedules9999999998888888888",schedules)
|
1018
|
|
-
|
1019
|
1018
|
|
1020
|
|
-
|
1021
|
|
-
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
|
1022
|
1022
|
if(this.schedulType == 0){
|
1023
|
1023
|
newSchedules = arr
|
1024
|
1024
|
}else{
|
|
@@ -1029,7 +1029,7 @@ export default {
|
1029
|
1029
|
})
|
1030
|
1030
|
}
|
1031
|
1031
|
|
1032
|
|
-
|
|
1032
|
+
|
1033
|
1033
|
if(this.partitionType == 0){
|
1034
|
1034
|
this.scheduleMap = newSchedules
|
1035
|
1035
|
}else {
|
|
@@ -1057,15 +1057,15 @@ export default {
|
1057
|
1057
|
})
|
1058
|
1058
|
this.indexInfoList = newArr
|
1059
|
1059
|
console.log("this.scheduleMap", this.scheduleMap)
|
1060
|
|
-
|
1061
|
|
-
|
|
1060
|
+
|
|
1061
|
+
|
1062
|
1062
|
}
|
1063
|
1063
|
|
1064
|
1064
|
if(config.is_open == 1){
|
1065
|
1065
|
this.show = false
|
1066
|
1066
|
this.showOne = true
|
1067
|
1067
|
var schedules = resp.data.hisAdvices
|
1068
|
|
-
|
|
1068
|
+
|
1069
|
1069
|
let arr = []
|
1070
|
1070
|
let newArr = []
|
1071
|
1071
|
let newSchedules = []
|
|
@@ -1078,10 +1078,10 @@ export default {
|
1078
|
1078
|
item.is_sort = item.device_number.sort
|
1079
|
1079
|
item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
|
1080
|
1080
|
})
|
1081
|
|
-
|
|
1081
|
+
|
1082
|
1082
|
newList = schedules.sort(this.compare('is_sort'))
|
1083
|
|
-
|
1084
|
|
-
|
|
1083
|
+
|
|
1084
|
+
|
1085
|
1085
|
|
1086
|
1086
|
}
|
1087
|
1087
|
if(this.is_sort == 2){
|
|
@@ -1109,7 +1109,7 @@ export default {
|
1109
|
1109
|
arr.push(it)
|
1110
|
1110
|
})
|
1111
|
1111
|
item.is_sort = item.device_number.sort
|
1112
|
|
-
|
|
1112
|
+
|
1113
|
1113
|
item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
|
1114
|
1114
|
})
|
1115
|
1115
|
if(this.schedulType == 0){
|
|
@@ -1134,7 +1134,7 @@ export default {
|
1134
|
1134
|
})
|
1135
|
1135
|
this.scheduleMap = a
|
1136
|
1136
|
}
|
1137
|
|
-
|
|
1137
|
+
|
1138
|
1138
|
this.scheduleMap.map(ele => {
|
1139
|
1139
|
let firstIndex = this.scheduleMap.findIndex(item => {
|
1140
|
1140
|
return item.patient_id === ele.patient_id // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
|
|
@@ -1151,9 +1151,9 @@ export default {
|
1151
|
1151
|
this.indexInfoList = newArr
|
1152
|
1152
|
}
|
1153
|
1153
|
}
|
1154
|
|
-
|
|
1154
|
+
|
1155
|
1155
|
})
|
1156
|
|
-
|
|
1156
|
+
|
1157
|
1157
|
},
|
1158
|
1158
|
compare:function (k) {
|
1159
|
1159
|
return function (a, b) {
|
|
@@ -1216,7 +1216,7 @@ export default {
|
1216
|
1216
|
if(name == '全部'){
|
1217
|
1217
|
name = ""
|
1218
|
1218
|
}
|
1219
|
|
-
|
|
1219
|
+
|
1220
|
1220
|
if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
|
1221
|
1221
|
this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name} });
|
1222
|
1222
|
}
|
|
@@ -1226,7 +1226,7 @@ export default {
|
1226
|
1226
|
}
|
1227
|
1227
|
|
1228
|
1228
|
|
1229
|
|
-
|
|
1229
|
+
|
1230
|
1230
|
|
1231
|
1231
|
},
|
1232
|
1232
|
signPrintAction:function(){
|
|
@@ -1483,7 +1483,7 @@ export default {
|
1483
|
1483
|
this.requestSchedualDoctors(this.time)
|
1484
|
1484
|
},
|
1485
|
1485
|
toExcution(){
|
1486
|
|
-
|
|
1486
|
+
|
1487
|
1487
|
if(this.selecting_schs.length ==0){
|
1488
|
1488
|
this.$message.error("请勾选需要执行的医嘱")
|
1489
|
1489
|
return false
|
|
@@ -1498,7 +1498,7 @@ export default {
|
1498
|
1498
|
},
|
1499
|
1499
|
|
1500
|
1500
|
excutionDoctorAdvice(){
|
1501
|
|
-
|
|
1501
|
+
|
1502
|
1502
|
if (this.execTime.length == 0) {
|
1503
|
1503
|
this.$message.error('请选择执行时间!')
|
1504
|
1504
|
return false
|
|
@@ -1520,7 +1520,7 @@ export default {
|
1520
|
1520
|
}
|
1521
|
1521
|
console.log("params232322323wo",params)
|
1522
|
1522
|
this.exceLoading = true
|
1523
|
|
-
|
|
1523
|
+
|
1524
|
1524
|
excutionDoctorAdvice(params).then(response=>{
|
1525
|
1525
|
if(response.data.state == 1){
|
1526
|
1526
|
if(response.data.data.msg == 2){
|
|
@@ -1539,7 +1539,7 @@ export default {
|
1539
|
1539
|
if(response.data.data.msg == 3){
|
1540
|
1540
|
this.$message.error("执行人和核对人不能是同一个人,执行失败!")
|
1541
|
1541
|
}
|
1542
|
|
-
|
|
1542
|
+
|
1543
|
1543
|
}
|
1544
|
1544
|
})
|
1545
|
1545
|
},
|
|
@@ -1550,7 +1550,7 @@ export default {
|
1550
|
1550
|
return false
|
1551
|
1551
|
}
|
1552
|
1552
|
|
1553
|
|
-
|
|
1553
|
+
|
1554
|
1554
|
var ids=[]
|
1555
|
1555
|
if(this.selecting_schs!=null && this.selecting_schs.length >0){
|
1556
|
1556
|
for(let i=0;i<this.selecting_schs.length;i++){
|
|
@@ -1573,7 +1573,7 @@ export default {
|
1573
|
1573
|
this.$message.success("核对成功!")
|
1574
|
1574
|
this.requestSchedualDoctors(this.time)
|
1575
|
1575
|
}
|
1576
|
|
-
|
|
1576
|
+
|
1577
|
1577
|
}
|
1578
|
1578
|
})
|
1579
|
1579
|
},
|
|
@@ -1606,21 +1606,21 @@ export default {
|
1606
|
1606
|
this.requestSchedualDoctors(this.time);
|
1607
|
1607
|
},
|
1608
|
1608
|
handleRowClick (row) {
|
1609
|
|
-
|
|
1609
|
+
|
1610
|
1610
|
},
|
1611
|
1611
|
tableRowClassName({row, rowIndex}) {
|
1612
|
1612
|
row.index = rowIndex
|
1613
|
1613
|
if(row.index = rowIndex){
|
1614
|
1614
|
return 'success-row'
|
1615
|
1615
|
}
|
1616
|
|
-
|
|
1616
|
+
|
1617
|
1617
|
},
|
1618
|
1618
|
handleCurrentChangeList(row){
|
1619
|
|
-
|
|
1619
|
+
|
1620
|
1620
|
this.selecting_schs.push(row)
|
1621
|
1621
|
this.current_row= row
|
1622
|
1622
|
this.is_status = 2
|
1623
|
|
-
|
|
1623
|
+
|
1624
|
1624
|
},
|
1625
|
1625
|
excutionDoctorAdviceOne(){
|
1626
|
1626
|
if(this.current_row.execution_state == 1){
|
|
@@ -1681,9 +1681,9 @@ export default {
|
1681
|
1681
|
this.druglist = druglist
|
1682
|
1682
|
this.startdialogVisible = true
|
1683
|
1683
|
var list = response.data.data.list
|
1684
|
|
-
|
|
1684
|
+
|
1685
|
1685
|
var config = response.data.data.config
|
1686
|
|
-
|
|
1686
|
+
|
1687
|
1687
|
console.log("dcotor---------------",this.doctorList)
|
1688
|
1688
|
if(list!=null && list.length > 0){
|
1689
|
1689
|
for(let i=0;i<list.length;i++){
|
|
@@ -1722,7 +1722,7 @@ export default {
|
1722
|
1722
|
}
|
1723
|
1723
|
}
|
1724
|
1724
|
}
|
1725
|
|
-
|
|
1725
|
+
|
1726
|
1726
|
this.tableList = []
|
1727
|
1727
|
for(let i=0;i<list.length;i++){
|
1728
|
1728
|
for(let j=0;j<arr.length;j++){
|
|
@@ -1731,10 +1731,10 @@ export default {
|
1731
|
1731
|
}
|
1732
|
1732
|
}
|
1733
|
1733
|
}
|
1734
|
|
-
|
|
1734
|
+
|
1735
|
1735
|
}
|
1736
|
1736
|
}
|
1737
|
|
-
|
|
1737
|
+
|
1738
|
1738
|
var his_doctor_advice = []
|
1739
|
1739
|
|
1740
|
1740
|
for(let i=0;i<list.length;i++){
|
|
@@ -1743,9 +1743,9 @@ export default {
|
1743
|
1743
|
}
|
1744
|
1744
|
}
|
1745
|
1745
|
console.log("his_doctor_advice",his_doctor_advice)
|
1746
|
|
-
|
|
1746
|
+
|
1747
|
1747
|
var newHisArr = []
|
1748
|
|
- for(let i=0;i<his_doctor_advice.length;i++){
|
|
1748
|
+ for(let i=0;i<his_doctor_advice.length;i++){
|
1749
|
1749
|
his_doctor_advice[i].count_one = 0
|
1750
|
1750
|
if(his_doctor_advice[i].prescribing_number_unit == his_doctor_advice[i].drug.max_unit){
|
1751
|
1751
|
his_doctor_advice[i].prescribing_number = parseInt(his_doctor_advice[i].prescribing_number) * his_doctor_advice[i].drug.min_number
|
|
@@ -1761,7 +1761,7 @@ export default {
|
1761
|
1761
|
}
|
1762
|
1762
|
}
|
1763
|
1763
|
console.log("下盘子3223323223",newHisArr)
|
1764
|
|
-
|
|
1764
|
+
|
1765
|
1765
|
if(config.is_open == 1){
|
1766
|
1766
|
if(newHisArr!=null && newHisArr.length > 0){
|
1767
|
1767
|
let dataInfoOne = {}
|
|
@@ -1801,7 +1801,7 @@ export default {
|
1801
|
1801
|
}
|
1802
|
1802
|
}
|
1803
|
1803
|
})
|
1804
|
|
-
|
|
1804
|
+
|
1805
|
1805
|
},
|
1806
|
1806
|
toStaticOne() {
|
1807
|
1807
|
this.tableList = []
|
|
@@ -1810,7 +1810,7 @@ export default {
|
1810
|
1810
|
partion_type:this.partion_type,
|
1811
|
1811
|
selected_date: moment(this.time).format('YYYY-MM-DD'),
|
1812
|
1812
|
}
|
1813
|
|
-
|
|
1813
|
+
|
1814
|
1814
|
getDialysisAdviceToday(params).then(response=>{
|
1815
|
1815
|
if(response.data.state == 1){
|
1816
|
1816
|
var doctorList = []
|
|
@@ -1818,10 +1818,10 @@ export default {
|
1818
|
1818
|
this.druglist = druglist
|
1819
|
1819
|
this.startdialogVisibleOne = true
|
1820
|
1820
|
var list = response.data.data.list
|
1821
|
|
-
|
|
1821
|
+
|
1822
|
1822
|
var config = response.data.data.config
|
1823
|
1823
|
this.adminUserList = response.data.data.doctorList
|
1824
|
|
-
|
|
1824
|
+
|
1825
|
1825
|
if(list!=null && list.length > 0){
|
1826
|
1826
|
for(let i=0;i<list.length;i++){
|
1827
|
1827
|
for(let j=0;j<list[i].xt_doctor_advice.length;j++){
|
|
@@ -1832,9 +1832,9 @@ export default {
|
1832
|
1832
|
}
|
1833
|
1833
|
}
|
1834
|
1834
|
}
|
1835
|
|
-
|
|
1835
|
+
|
1836
|
1836
|
if(config.is_open!=1){
|
1837
|
|
-
|
|
1837
|
+
|
1838
|
1838
|
|
1839
|
1839
|
if(doctorList!=null && doctorList.length > 0){
|
1840
|
1840
|
|
|
@@ -1866,7 +1866,7 @@ export default {
|
1866
|
1866
|
}
|
1867
|
1867
|
|
1868
|
1868
|
if(doctorList!=null && doctorList.length > 0){
|
1869
|
|
-
|
|
1869
|
+
|
1870
|
1870
|
let dataInfoOne = {}
|
1871
|
1871
|
doctorList.forEach((item, index) => {
|
1872
|
1872
|
let { execution_staff } = item
|
|
@@ -1903,16 +1903,16 @@ export default {
|
1903
|
1903
|
console.log("999999999999999999-------",this.tableDataList)
|
1904
|
1904
|
}
|
1905
|
1905
|
|
1906
|
|
-
|
1907
|
|
-
|
|
1906
|
+
|
|
1907
|
+
|
1908
|
1908
|
}
|
1909
|
|
-
|
1910
|
|
-
|
|
1909
|
+
|
|
1910
|
+
|
1911
|
1911
|
}
|
1912
|
1912
|
})
|
1913
|
|
-
|
|
1913
|
+
|
1914
|
1914
|
},
|
1915
|
|
-
|
|
1915
|
+
|
1916
|
1916
|
getSpecification(id){
|
1917
|
1917
|
var specification_name = ""
|
1918
|
1918
|
for(let i=0;i<this.druglist.length;i++){
|
|
@@ -1958,7 +1958,7 @@ export default {
|
1958
|
1958
|
}
|
1959
|
1959
|
}
|
1960
|
1960
|
return max_str + min_str;
|
1961
|
|
-
|
|
1961
|
+
|
1962
|
1962
|
},
|
1963
|
1963
|
toPrintOne(){
|
1964
|
1964
|
var schedule_date = moment(this.time).format('YYYY-MM-DD')
|
|
@@ -1969,8 +1969,8 @@ export default {
|
1969
|
1969
|
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})
|
1970
|
1970
|
},
|
1971
|
1971
|
toExportListOne(){
|
1972
|
|
- import('@/vendor/Export2Excel').then(excel => {
|
1973
|
|
-
|
|
1972
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
1973
|
+
|
1974
|
1974
|
if(this.tableList!=null && this.tableList.length > 0){
|
1975
|
1975
|
for(let i=0;i<this.tableList.length;i++){
|
1976
|
1976
|
this.tableList[i].index = i+1
|
|
@@ -1980,7 +1980,7 @@ export default {
|
1980
|
1980
|
if(this.config.is_open!=1){
|
1981
|
1981
|
this.tableList[i].total_count = this.getCount(this.tableList[i].child)
|
1982
|
1982
|
}
|
1983
|
|
-
|
|
1983
|
+
|
1984
|
1984
|
}
|
1985
|
1985
|
}
|
1986
|
1986
|
const tHeader = ['序号','药品名称','规格','数量']
|
|
@@ -1993,7 +1993,7 @@ export default {
|
1993
|
1993
|
filename: '药品统计'
|
1994
|
1994
|
})
|
1995
|
1995
|
this.downloadLoading = false
|
1996
|
|
- })
|
|
1996
|
+ })
|
1997
|
1997
|
},
|
1998
|
1998
|
formatJson(filterVal, jsonData) {
|
1999
|
1999
|
return jsonData.map(v => filterVal.map(j => v[j]));
|
|
@@ -2029,7 +2029,7 @@ export default {
|
2029
|
2029
|
}
|
2030
|
2030
|
})
|
2031
|
2031
|
let newArr = Object.values(dataInfo)
|
2032
|
|
-
|
|
2032
|
+
|
2033
|
2033
|
if(newArr!=null && newArr.length >0){
|
2034
|
2034
|
let dataInfo = {}
|
2035
|
2035
|
newArr.forEach((item, index) => {
|
|
@@ -2043,7 +2043,7 @@ export default {
|
2043
|
2043
|
}
|
2044
|
2044
|
})
|
2045
|
2045
|
let hisNewArr = Object.values(dataInfo)
|
2046
|
|
-
|
|
2046
|
+
|
2047
|
2047
|
if(hisNewArr!=null && hisNewArr.length >0){
|
2048
|
2048
|
for(let i=0;i<hisNewArr.length;i++){
|
2049
|
2049
|
for(let j=0;j<newArr.length;j++){
|
|
@@ -2053,8 +2053,8 @@ export default {
|
2053
|
2053
|
}
|
2054
|
2054
|
}
|
2055
|
2055
|
}
|
2056
|
|
-
|
2057
|
|
-
|
|
2056
|
+
|
|
2057
|
+
|
2058
|
2058
|
var str = ""
|
2059
|
2059
|
for(let i=0;i<hisNewArr.length;i++){
|
2060
|
2060
|
if(hisNewArr[i].mode_id == 1){
|
|
@@ -2141,9 +2141,9 @@ export default {
|
2141
|
2141
|
if(hisNewArr[i].mode_id == 32){
|
2142
|
2142
|
hisNewArr[i].mode_id = "HDP"
|
2143
|
2143
|
}
|
2144
|
|
- str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
|
|
2144
|
+ str += hisNewArr[i].mode_id +"("+hisNewArr[i].child.length+")" +"\n"
|
2145
|
2145
|
}
|
2146
|
|
-
|
|
2146
|
+
|
2147
|
2147
|
return str
|
2148
|
2148
|
}
|
2149
|
2149
|
|
|
@@ -2151,17 +2151,17 @@ export default {
|
2151
|
2151
|
}
|
2152
|
2152
|
},
|
2153
|
2153
|
getDrugCount(val,advice_name){
|
2154
|
|
-
|
|
2154
|
+
|
2155
|
2155
|
if(val!=null){
|
2156
|
2156
|
for(let i=0;i<val.length;i++){
|
2157
|
2157
|
val[i].advice_name = val[i].advice_name.replace(/\s/g,"")
|
2158
|
2158
|
}
|
2159
|
2159
|
}
|
2160
|
|
-
|
|
2160
|
+
|
2161
|
2161
|
if(val!=null && val.length >0){
|
2162
|
2162
|
let dataInfo = {}
|
2163
|
2163
|
val.forEach((item, index) => {
|
2164
|
|
-
|
|
2164
|
+
|
2165
|
2165
|
let { advice_name } = item
|
2166
|
2166
|
if (!dataInfo[advice_name]) {
|
2167
|
2167
|
dataInfo[advice_name] = {
|
|
@@ -2171,10 +2171,10 @@ export default {
|
2171
|
2171
|
}
|
2172
|
2172
|
}
|
2173
|
2173
|
})
|
2174
|
|
-
|
2175
|
|
- let newArr = Object.values(dataInfo)
|
2176
|
|
-
|
2177
|
|
-
|
|
2174
|
+
|
|
2175
|
+ let newArr = Object.values(dataInfo)
|
|
2176
|
+
|
|
2177
|
+
|
2178
|
2178
|
if(newArr!=null && newArr.length >0){
|
2179
|
2179
|
for(let i=0;i<newArr.length;i++){
|
2180
|
2180
|
for(let j=0;j<val.length;j++){
|
|
@@ -2184,7 +2184,7 @@ export default {
|
2184
|
2184
|
}
|
2185
|
2185
|
}
|
2186
|
2186
|
}
|
2187
|
|
-
|
|
2187
|
+
|
2188
|
2188
|
var total = 0
|
2189
|
2189
|
var newHisArr =[]
|
2190
|
2190
|
if(newArr!=null && newArr.length >0){
|
|
@@ -2196,14 +2196,14 @@ export default {
|
2196
|
2196
|
}
|
2197
|
2197
|
|
2198
|
2198
|
if(newHisArr!=null && newHisArr.length>0){
|
2199
|
|
-
|
|
2199
|
+
|
2200
|
2200
|
for(let i=0;i<newHisArr.length;i++){
|
2201
|
2201
|
for(let j=0;j<newHisArr[i].child.length;j++){
|
2202
|
2202
|
total += parseInt(newHisArr[i].child[j].prescribing_number)
|
2203
|
2203
|
}
|
2204
|
2204
|
}
|
2205
|
2205
|
}
|
2206
|
|
-
|
|
2206
|
+
|
2207
|
2207
|
return total
|
2208
|
2208
|
}
|
2209
|
2209
|
|
|
@@ -2244,16 +2244,16 @@ export default {
|
2244
|
2244
|
if(index > 2){
|
2245
|
2245
|
const values = data.map(item => item[column.property]);
|
2246
|
2246
|
console.log("data0----------------",data)
|
2247
|
|
-
|
|
2247
|
+
|
2248
|
2248
|
}
|
2249
|
|
-
|
|
2249
|
+
|
2250
|
2250
|
});
|
2251
|
2251
|
|
2252
|
2252
|
return sums;
|
2253
|
2253
|
},
|
2254
|
2254
|
|
2255
|
2255
|
getAllSumCount(advice_name){
|
2256
|
|
-
|
|
2256
|
+
|
2257
|
2257
|
var hisNewArr =[]
|
2258
|
2258
|
if(this.tabHead.length!=null && this.tabHead.length >0){
|
2259
|
2259
|
for(let i=0;i<this.tabHead.length;i++){
|
|
@@ -2262,7 +2262,7 @@ export default {
|
2262
|
2262
|
}
|
2263
|
2263
|
}
|
2264
|
2264
|
}
|
2265
|
|
-
|
|
2265
|
+
|
2266
|
2266
|
var total = 0
|
2267
|
2267
|
if(hisNewArr!=null && hisNewArr.length > 0){
|
2268
|
2268
|
for(let i=0;i<hisNewArr.length;i++){
|
|
@@ -2296,10 +2296,10 @@ export default {
|
2296
|
2296
|
arr.push(schedule[i])
|
2297
|
2297
|
}
|
2298
|
2298
|
}
|
2299
|
|
-
|
2300
|
2299
|
|
2301
|
|
- import('@/vendor/Export2Excel').then(excel => {
|
2302
|
|
-
|
|
2300
|
+
|
|
2301
|
+ import('@/vendor/Export2Excel').then(excel => {
|
|
2302
|
+
|
2303
|
2303
|
if(arr!=null && arr.length > 0){
|
2304
|
2304
|
for(let i=0;i<arr.length;i++){
|
2305
|
2305
|
arr[i].patient_name = arr[i].patient.name
|
|
@@ -2318,11 +2318,11 @@ export default {
|
2318
|
2318
|
data,
|
2319
|
2319
|
filename: '监测数据统计'
|
2320
|
2320
|
})
|
2321
|
|
- })
|
2322
|
|
- }
|
|
2321
|
+ })
|
|
2322
|
+ }
|
2323
|
2323
|
})
|
2324
|
2324
|
}
|
2325
|
|
-
|
|
2325
|
+
|
2326
|
2326
|
},
|
2327
|
2327
|
components: {
|
2328
|
2328
|
BreadCrumb
|
|
@@ -2400,7 +2400,7 @@ export default {
|
2400
|
2400
|
}
|
2401
|
2401
|
}
|
2402
|
2402
|
|
2403
|
|
-
|
|
2403
|
+
|
2404
|
2404
|
.el-table td .cell{
|
2405
|
2405
|
white-space: pre-wrap;
|
2406
|
2406
|
}
|