|
@@ -99,9 +99,9 @@
|
99
|
99
|
<el-select v-model="admin_user_id" placeholder="请选择" style="width: 120px;" :disabled="disabled">
|
100
|
100
|
<el-option
|
101
|
101
|
v-for="item in doctorOptions"
|
102
|
|
- :key="item.id"
|
103
|
|
- :label="item.name"
|
104
|
|
- :value="item.id">
|
|
102
|
+ :key="item.admin_user_id"
|
|
103
|
+ :label="item.user_name"
|
|
104
|
+ :value="item.admin_user_id">
|
105
|
105
|
</el-option>
|
106
|
106
|
</el-select>
|
107
|
107
|
</div>
|
|
@@ -203,7 +203,7 @@
|
203
|
203
|
<div style="width: 100%;text-align: center;margin-bottom: 10px;">
|
204
|
204
|
<h2>{{orgname}}</h2>
|
205
|
205
|
</div>
|
206
|
|
- <div style="display: flex;padding: 5px 0;border-bottom: 1px solid black;">
|
|
206
|
+ <div style="display: flex;padding: 5px 0;border-bottom: 1px solid black;">
|
207
|
207
|
<div style="flex: 1;">姓名:</div>
|
208
|
208
|
<div style="flex: 1;">病历号:</div>
|
209
|
209
|
<div style="flex: 1;">病区-床号:</div>
|
|
@@ -319,7 +319,7 @@ import PatientSidebar from './components/PatientSidebar'
|
319
|
319
|
import PatientSidebar_new from './components/PatientSidebar_new'
|
320
|
320
|
import Editor from '@/components/Editor'
|
321
|
321
|
import ueditor from '@/components/Uedtior'
|
322
|
|
-import { fetchAllDoctorAndNurse } from "@/api/doctor";
|
|
322
|
+import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
|
323
|
323
|
import print from 'print-js'
|
324
|
324
|
import {
|
325
|
325
|
createNewSickHistoryRecord,
|
|
@@ -412,12 +412,19 @@ export default {
|
412
|
412
|
},
|
413
|
413
|
created() {
|
414
|
414
|
this.orgname = this.$store.getters.xt_user.org.org_name;
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+ this.fetchAllDoctorAndNurse()
|
415
|
418
|
this.wayOptions = getDataConfig("patient", "reimbursement_ways");
|
416
|
419
|
console.log('this.wayOptions',this.wayOptions);
|
417
|
|
-
|
|
420
|
+
|
418
|
421
|
this.admin_user_id = this.$store.getters.xt_user.user.id
|
|
422
|
+
|
|
423
|
+ if(this.admin_user_id == 0){
|
|
424
|
+ this.admin_user_id = ""
|
|
425
|
+ }
|
419
|
426
|
this.patient_id = parseInt(this.$route.query.id)
|
420
|
|
-
|
|
427
|
+
|
421
|
428
|
if (isNaN(this.patient_id) || this.patient_id <= 0) {
|
422
|
429
|
this.$notify.error({
|
423
|
430
|
title: '错误',
|
|
@@ -449,10 +456,9 @@ export default {
|
449
|
456
|
(nowMonth < 10 ? '0' + nowMonth : nowMonth) +
|
450
|
457
|
'-' +
|
451
|
458
|
(nowDay < 10 ? '0' + nowDay : nowDay)
|
|
459
|
+ this.getlist()
|
|
460
|
+ this.fetchPatient(this.patient_id)
|
452
|
461
|
|
453
|
|
- this.getlist()
|
454
|
|
- this.fetchAllDoctorAndNurse()
|
455
|
|
- this.fetchPatient(this.patient_id)
|
456
|
462
|
},
|
457
|
463
|
methods: {
|
458
|
464
|
template_dele(){
|
|
@@ -498,7 +504,7 @@ export default {
|
498
|
504
|
this.edit_index = row.index
|
499
|
505
|
},
|
500
|
506
|
template_click(){
|
501
|
|
-
|
|
507
|
+
|
502
|
508
|
console.log('this.add_index',this.getwayoption(this.form.reimbursement_way_id));
|
503
|
509
|
if(this.add_index ==0){
|
504
|
510
|
this.template_dialog = true
|
|
@@ -683,9 +689,9 @@ export default {
|
683
|
689
|
console.log("haaaaaaaaaaaaa",this.templateList)
|
684
|
690
|
}
|
685
|
691
|
})
|
686
|
|
-
|
|
692
|
+
|
687
|
693
|
// this.templateList.push(obj)
|
688
|
|
-
|
|
694
|
+
|
689
|
695
|
console.log('11111111',obj);
|
690
|
696
|
|
691
|
697
|
}
|
|
@@ -716,7 +722,7 @@ export default {
|
716
|
722
|
},
|
717
|
723
|
|
718
|
724
|
fetchAllDoctorAndNurse() {
|
719
|
|
- fetchAllDoctorAndNurse().then(response => {
|
|
725
|
+ fetchMoibleAllDoctorAndNurse().then(response => {
|
720
|
726
|
if (response.data.state == 1) {
|
721
|
727
|
this.doctorOptions= []
|
722
|
728
|
this.doctorOptions = response.data.data.doctors;
|
|
@@ -741,7 +747,7 @@ export default {
|
741
|
747
|
this.$message.error('请选择医生')
|
742
|
748
|
return
|
743
|
749
|
}
|
744
|
|
- if(this.sick_history_time.length == 0){
|
|
750
|
+ if(this.start_time==""){
|
745
|
751
|
this.$message.error('请选择时间')
|
746
|
752
|
return
|
747
|
753
|
}
|
|
@@ -755,7 +761,11 @@ export default {
|
755
|
761
|
if(this.shen_guomi == ""){
|
756
|
762
|
this.shen_guomi = 0
|
757
|
763
|
}
|
758
|
|
-
|
|
764
|
+
|
|
765
|
+ if(this.admin_user_id == ""){
|
|
766
|
+ this.admin_user_id = 0
|
|
767
|
+ }
|
|
768
|
+
|
759
|
769
|
let params = {
|
760
|
770
|
id:this.id,
|
761
|
771
|
patient_id: this.patient_id,
|
|
@@ -810,7 +820,7 @@ export default {
|
810
|
820
|
this.$message.error('请选择医生')
|
811
|
821
|
return
|
812
|
822
|
}
|
813
|
|
- if(this.sick_history_time.length == 0){
|
|
823
|
+ if(this.start_time == ""){
|
814
|
824
|
this.$message.error('请选择时间')
|
815
|
825
|
return
|
816
|
826
|
}
|
|
@@ -823,7 +833,10 @@ export default {
|
823
|
833
|
if(this.shen_guomi == ""){
|
824
|
834
|
this.shen_guomi = 0
|
825
|
835
|
}
|
826
|
|
-
|
|
836
|
+ if(this.admin_user_id == ""){
|
|
837
|
+ this.admin_user_id = 0
|
|
838
|
+ }
|
|
839
|
+
|
827
|
840
|
let params = {
|
828
|
841
|
id:this.id,
|
829
|
842
|
patient_id: this.patient_id,
|
|
@@ -918,8 +931,8 @@ export default {
|
918
|
931
|
getDocName(admin_user_id){
|
919
|
932
|
var user_name = ""
|
920
|
933
|
for(let i=0;i<this.doctorOptions.length;i++){
|
921
|
|
- if(admin_user_id == this.doctorOptions[i].id){
|
922
|
|
- user_name = this.doctorOptions[i].name
|
|
934
|
+ if(admin_user_id == this.doctorOptions[i].admin_user_id){
|
|
935
|
+ user_name = this.doctorOptions[i].user_name
|
923
|
936
|
}
|
924
|
937
|
}
|
925
|
938
|
return user_name
|
|
@@ -930,7 +943,7 @@ export default {
|
930
|
943
|
}else{
|
931
|
944
|
return uParseTime(time, '{y}-{m}-{d}')
|
932
|
945
|
}
|
933
|
|
-
|
|
946
|
+
|
934
|
947
|
},
|
935
|
948
|
getCurrentChange(val){
|
936
|
949
|
console.log("val--------------",val)
|
|
@@ -955,7 +968,12 @@ export default {
|
955
|
968
|
}
|
956
|
969
|
|
957
|
970
|
this.patient_id = val.patient_id
|
958
|
|
- this.admin_user_id = val.recorder?val.doctor_id:"0"
|
|
971
|
+ this.admin_user_id = val.doctor_id
|
|
972
|
+ if(this.admin_user_id == 0){
|
|
973
|
+ this.admin_user_id = ""
|
|
974
|
+ }
|
|
975
|
+
|
|
976
|
+ this.start_time = this.getTime(val.record_date)
|
959
|
977
|
|
960
|
978
|
},
|
961
|
979
|
getCurrentChangeOne(val){
|
|
@@ -971,34 +989,34 @@ export default {
|
971
|
989
|
title:this.template_name,
|
972
|
990
|
content: this.$refs.editor.contents,
|
973
|
991
|
}
|
974
|
|
- saveSickHistoryTemplate(params).then(response=>{
|
975
|
|
- if(response.data.state == 1){
|
976
|
|
- var sickHistoryTemplate = response.data.data.sickHistoryTemplate
|
977
|
|
- this.$message.success("保存成功!")
|
978
|
|
- this.template_dialog = false
|
979
|
|
- }
|
980
|
|
- })
|
981
|
|
- },
|
982
|
|
- toContentPint(){
|
983
|
|
- this.$refs.editor.contents = this.template_content
|
984
|
|
- this.library_dialog = false
|
985
|
|
- },
|
986
|
|
- fetchPatient(id) {
|
987
|
|
- fetchPatient(id).then((response) => {
|
988
|
|
- console.log('fetchPatient11111',response.data.data);
|
989
|
|
- if(response.data.state ==1){
|
990
|
|
- this.form = response.data.data.patient;
|
991
|
|
- this.patientVascularAccessOne = response.data.data.patientVascularAccessOne
|
992
|
|
- }
|
993
|
|
- })
|
994
|
|
- .catch((err) => {
|
995
|
|
- console.log("patient get err", err);
|
996
|
|
- this.$notify.error({
|
997
|
|
- title: "错误",
|
998
|
|
- message: "网络异常",
|
999
|
|
- });
|
1000
|
|
- this.$router.push("/patients/patients");
|
|
992
|
+ saveSickHistoryTemplate(params).then(response=>{
|
|
993
|
+ if(response.data.state == 1){
|
|
994
|
+ var sickHistoryTemplate = response.data.data.sickHistoryTemplate
|
|
995
|
+ this.$message.success("保存成功!")
|
|
996
|
+ this.template_dialog = false
|
|
997
|
+ }
|
|
998
|
+ })
|
|
999
|
+ },
|
|
1000
|
+ toContentPint(){
|
|
1001
|
+ this.$refs.editor.contents = this.template_content
|
|
1002
|
+ this.library_dialog = false
|
|
1003
|
+ },
|
|
1004
|
+ fetchPatient(id) {
|
|
1005
|
+ fetchPatient(id).then((response) => {
|
|
1006
|
+ console.log('fetchPatient11111',response.data.data);
|
|
1007
|
+ if(response.data.state ==1){
|
|
1008
|
+ this.form = response.data.data.patient;
|
|
1009
|
+ this.patientVascularAccessOne = response.data.data.patientVascularAccessOne
|
|
1010
|
+ }
|
|
1011
|
+ })
|
|
1012
|
+ .catch((err) => {
|
|
1013
|
+ console.log("patient get err", err);
|
|
1014
|
+ this.$notify.error({
|
|
1015
|
+ title: "错误",
|
|
1016
|
+ message: "网络异常",
|
1001
|
1017
|
});
|
|
1018
|
+ this.$router.push("/patients/patients");
|
|
1019
|
+ });
|
1002
|
1020
|
},
|
1003
|
1021
|
getwayoption(id){
|
1004
|
1022
|
if(id != 0){
|
|
@@ -1011,7 +1029,7 @@ export default {
|
1011
|
1029
|
}else{
|
1012
|
1030
|
return ''
|
1013
|
1031
|
}
|
1014
|
|
-
|
|
1032
|
+
|
1015
|
1033
|
}
|
1016
|
1034
|
}
|
1017
|
1035
|
}
|