|
@@ -1954,36 +1954,11 @@
|
1954
|
1954
|
this.doctorValue = info.doctor_id
|
1955
|
1955
|
this.departmentValue = info.departments
|
1956
|
1956
|
} else {
|
1957
|
|
- if (hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
|
1958
|
|
- this.doctorValue = hisPatientInfo.doctor
|
1959
|
|
- this.departmentValue = hisPatientInfo.department
|
1960
|
|
- } else {
|
1961
|
|
- if (admin_info.user_type == 2) {
|
1962
|
|
- this.doctorValue = admin_info.admin_user_id
|
1963
|
|
- if (admin_info.department_id == 0) {
|
1964
|
|
- if (this.department.length > 0) {
|
1965
|
|
- if (department && department.length > 0) {
|
1966
|
|
- this.departmentValue = department[0].id
|
1967
|
|
-
|
1968
|
|
- } else {
|
1969
|
|
-
|
1970
|
|
- this.departmentValue = ''
|
|
1957
|
+ this.doctorValue = this.doctors[0].id
|
|
1958
|
+ this.departmentValue = this.department[0].id
|
1971
|
1959
|
|
1972
|
|
- }
|
1973
|
|
- } else {
|
1974
|
|
- this.departmentValue = ''
|
1975
|
|
- }
|
1976
|
|
- } else {
|
1977
|
|
- this.departmentValue = admin_info.department_id
|
1978
|
|
- }
|
1979
|
|
- } else {
|
1980
|
|
- this.doctorValue = doctors[0].admin_user_id
|
1981
|
|
- }
|
1982
|
|
- if (this.doctorValue == 0) {
|
1983
|
|
- this.doctorValue = ''
|
1984
|
|
- }
|
1985
|
|
- }
|
1986
|
1960
|
}
|
|
1961
|
+
|
1987
|
1962
|
if (info.register_type == 0) {
|
1988
|
1963
|
for (let i = 0; i < this.register.length; i++) {
|
1989
|
1964
|
this.register_type = this.register[0].value
|
|
@@ -1993,7 +1968,6 @@
|
1993
|
1968
|
}
|
1994
|
1969
|
this.diagnose = []
|
1995
|
1970
|
|
1996
|
|
-
|
1997
|
1971
|
if(info.id == 0){
|
1998
|
1972
|
if(last_info.diagnosis.length == 0){
|
1999
|
1973
|
this.diagnose = []
|
|
@@ -2011,7 +1985,6 @@
|
2011
|
1985
|
this.diagnose.push(parseInt(info.diagnosis.split(",")[i]))
|
2012
|
1986
|
|
2013
|
1987
|
}
|
2014
|
|
- // this.diagnose = info.diagnosis.split(",")
|
2015
|
1988
|
|
2016
|
1989
|
}
|
2017
|
1990
|
|