|
@@ -115,7 +115,9 @@
|
115
|
115
|
:value="item.value">
|
116
|
116
|
</el-option>
|
117
|
117
|
</el-select>
|
118
|
|
- <el-input v-if="shen_guomi == 2" v-model="guominyaowu_desc"></el-input>
|
|
118
|
+ </div>
|
|
119
|
+ <div style="width: 50%;" v-if="shen_guomi == 2" >
|
|
120
|
+ 过敏药物备注: <el-input v-model="guominyaowu_desc" style="width: 300px;"></el-input>
|
119
|
121
|
</div>
|
120
|
122
|
</div>
|
121
|
123
|
|
|
@@ -622,7 +624,25 @@ export default {
|
622
|
624
|
this.$message.error('请填写病程内容')
|
623
|
625
|
return
|
624
|
626
|
}
|
|
627
|
+ if(this.admin_user_id == 0){
|
|
628
|
+ this.$message.error('请选择医生')
|
|
629
|
+ return
|
|
630
|
+ }
|
|
631
|
+ if(this.sick_history_time.length == 0){
|
|
632
|
+ this.$message.error('请选择时间')
|
|
633
|
+ return
|
|
634
|
+ }
|
625
|
635
|
this.uploading_new_record = true
|
|
636
|
+ if(this.shen_yizhi == ""){
|
|
637
|
+ this.shen_yizhi = 0
|
|
638
|
+ }
|
|
639
|
+ if(this.shen_fumo == ""){
|
|
640
|
+ this.shen_fumo = 0
|
|
641
|
+ }
|
|
642
|
+ if(this.shen_guomi == ""){
|
|
643
|
+ this.shen_guomi = 0
|
|
644
|
+ }
|
|
645
|
+
|
626
|
646
|
let params = {
|
627
|
647
|
id:this.id,
|
628
|
648
|
patient_id: this.patient_id,
|
|
@@ -673,6 +693,24 @@ export default {
|
673
|
693
|
this.$message.error('请填写病程内容')
|
674
|
694
|
return
|
675
|
695
|
}
|
|
696
|
+ if(this.admin_user_id == 0){
|
|
697
|
+ this.$message.error('请选择医生')
|
|
698
|
+ return
|
|
699
|
+ }
|
|
700
|
+ if(this.sick_history_time.length == 0){
|
|
701
|
+ this.$message.error('请选择时间')
|
|
702
|
+ return
|
|
703
|
+ }
|
|
704
|
+ if(this.shen_yizhi == ""){
|
|
705
|
+ this.shen_yizhi = 0
|
|
706
|
+ }
|
|
707
|
+ if(this.shen_fumo == ""){
|
|
708
|
+ this.shen_fumo = 0
|
|
709
|
+ }
|
|
710
|
+ if(this.shen_guomi == ""){
|
|
711
|
+ this.shen_guomi = 0
|
|
712
|
+ }
|
|
713
|
+
|
676
|
714
|
let params = {
|
677
|
715
|
id:this.id,
|
678
|
716
|
patient_id: this.patient_id,
|
|
@@ -780,25 +818,37 @@ export default {
|
780
|
818
|
return user_name
|
781
|
819
|
},
|
782
|
820
|
getTime (time) {
|
783
|
|
- return uParseTime(time, '{y}-{m}-{d}')
|
|
821
|
+ if(time <0){
|
|
822
|
+ return ""
|
|
823
|
+ }else{
|
|
824
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
|
825
|
+ }
|
|
826
|
+
|
784
|
827
|
},
|
785
|
828
|
getCurrentChange(val){
|
|
829
|
+ console.log("val--------------",val)
|
786
|
830
|
this.$refs.editor.contents = val.content
|
787
|
831
|
this.record_time = this.getTime(val.record_time)
|
788
|
832
|
this.id = val.id
|
789
|
833
|
this.guominyaowu_desc = val.hypersusceptibility_desc
|
790
|
834
|
if(val.is_fumo_dialysis_history>0){
|
791
|
835
|
this.shen_fumo = val.is_fumo_dialysis_history
|
|
836
|
+ }else{
|
|
837
|
+ this.shen_fumo = ""
|
792
|
838
|
}
|
793
|
839
|
if(val.is_shenyizhi_history>0){
|
794
|
840
|
this.shen_yizhi = val.is_shenyizhi_history
|
|
841
|
+ }else{
|
|
842
|
+ this.shen_yizhi = ""
|
795
|
843
|
}
|
796
|
844
|
if(val.is_hypersusceptibility>0){
|
797
|
845
|
this.shen_guomi = val.is_hypersusceptibility
|
|
846
|
+ }else{
|
|
847
|
+ this.shen_guomi = ""
|
798
|
848
|
}
|
799
|
849
|
|
800
|
850
|
this.patient_id = val.patient_id
|
801
|
|
- this.admin_user_id = val.admin_user_id
|
|
851
|
+ this.admin_user_id = val.recorder?val.doctor_id:"0"
|
802
|
852
|
|
803
|
853
|
},
|
804
|
854
|
getCurrentChangeOne(val){
|