|
@@ -512,6 +512,46 @@ export default {
|
512
|
512
|
console.log("列表数据",schedules)
|
513
|
513
|
var config = resp.data.config
|
514
|
514
|
console.log("config222222",config.is_open)
|
|
515
|
+ let project_config = resp.data.project_config
|
|
516
|
+ console.log('project_config',resp.data.hisAdvices)
|
|
517
|
+ if(project_config.is_open == 1){
|
|
518
|
+ this.project = resp.data.project
|
|
519
|
+ resp.data.hisAdvices.map((item,index) => {
|
|
520
|
+ if(this.project[index].project.length > 0){
|
|
521
|
+ this.project[index].project.map(it => {
|
|
522
|
+ let obj = {
|
|
523
|
+ advice_doctor: it.doctor,
|
|
524
|
+ start_time:it.start_time,
|
|
525
|
+ advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
|
|
526
|
+ execution_time:it.execution_time,
|
|
527
|
+ execution_state:it.execution_state,
|
|
528
|
+ execution_staff:it.execution_staff,
|
|
529
|
+ check_time:it.check_time,
|
|
530
|
+ check_state:it.check_state,
|
|
531
|
+ checker:it.checker,
|
|
532
|
+ created_time:it.ctime,
|
|
533
|
+ delivery_way:'',
|
|
534
|
+ execution_frequency:'',
|
|
535
|
+ remark:'',
|
|
536
|
+ id:it.id,
|
|
537
|
+ patient_id:it.patient_id,
|
|
538
|
+ parent_id:0,
|
|
539
|
+ groupno:0
|
|
540
|
+ }
|
|
541
|
+ // let advice = []
|
|
542
|
+ // advice.push(obj)
|
|
543
|
+ // let advices = {
|
|
544
|
+ // advices: advice,
|
|
545
|
+ // group_no: 123
|
|
546
|
+ // }
|
|
547
|
+
|
|
548
|
+ // // console.log(11111,item.new_advice)
|
|
549
|
+ item.doctor_advice.push(obj)
|
|
550
|
+ })
|
|
551
|
+ }
|
|
552
|
+ })
|
|
553
|
+ }
|
|
554
|
+ console.log('resp.data.hisAdvices',resp.data.hisAdvices)
|
515
|
555
|
if(config.is_open == 0 || config.is_open == 2){
|
516
|
556
|
this.show = true
|
517
|
557
|
this.showOne = false
|
|
@@ -638,7 +678,7 @@ export default {
|
638
|
678
|
this.indexInfoList = newArr
|
639
|
679
|
}
|
640
|
680
|
}
|
641
|
|
- // console.log("列表22222",this.scheduleMap)
|
|
681
|
+ console.log("列表22222",this.indexInfoList)
|
642
|
682
|
})
|
643
|
683
|
},
|
644
|
684
|
getValue: function(val) {
|
|
@@ -878,7 +918,7 @@ export default {
|
878
|
918
|
tempSingleDoseDesc =
|
879
|
919
|
' 单次用量 ' + ' ' + row.single_dose + '' + row.single_dose_unit
|
880
|
920
|
} else {
|
881
|
|
- tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
|
|
921
|
+ tempSingleDoseDesc = row.single_dose ? row.single_dose : '' + '' + row.single_dose_unit ? row.single_dose_unit : ''
|
882
|
922
|
}
|
883
|
923
|
}
|
884
|
924
|
|
|
@@ -887,7 +927,12 @@ export default {
|
887
|
927
|
}
|
888
|
928
|
|
889
|
929
|
if (isChild == 1) {
|
890
|
|
- // 不是子药
|
|
930
|
+ // 不是子药
|
|
931
|
+ console.log(tempDrugSpecDesc)
|
|
932
|
+ console.log(tempPrescribingNumberDesc)
|
|
933
|
+ console.log(tempSingleDoseDesc)
|
|
934
|
+ console.log(11,row.delivery_way)
|
|
935
|
+ console.log(22,row.execution_frequency)
|
891
|
936
|
|
892
|
937
|
return (
|
893
|
938
|
row.advice_name +
|