Explorar el Código

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx hace 3 años
padre
commit
f843d0757a

+ 11 - 0
src/api/his/his.js Ver fichero

499
 }
499
 }
500
 
500
 
501
 
501
 
502
+export function changeMedType(params) {
503
+  return request({
504
+    url: "/api/changemedtype/post",
505
+    method: "post",
506
+    params:params,
507
+  });
508
+}
509
+
510
+
511
+
512
+
502
 
513
 
503
 
514
 
504
 
515
 

+ 4 - 0
src/xt_pages/outpatientCharges/components/registerDialog9504.vue Ver fichero

523
         this.form.certificates = 1
523
         this.form.certificates = 1
524
         this.form.medical_care = 11
524
         this.form.medical_care = 11
525
         this.form.settlement_value = 1
525
         this.form.settlement_value = 1
526
+        this.form.register = 4
527
+        this.form.registration_fee = 0
528
+        this.form.medical_expenses = 0
529
+
526
 
530
 
527
         // if( this.form.social_type == 0){
531
         // if( this.form.social_type == 0){
528
         //   this.form.social_type = ""
532
         //   this.form.social_type = ""

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 438 - 251
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 107 - 76
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver fichero

48
 
48
 
49
                     <el-form-item label="诊断:" prop="name" label-position="right">
49
                     <el-form-item label="诊断:" prop="name" label-position="right">
50
 
50
 
51
-                        <el-select style="width:100%;" v-model="diagnose" placeholder="">
51
+                        <el-select style="width:100%;" v-model="diagnose" placeholder="" multiple>
52
                             <el-option
52
                             <el-option
53
                                     v-for="(item,index) in diagnoses"
53
                                     v-for="(item,index) in diagnoses"
54
                                     :key="index"
54
                                     :key="index"
613
         department: [],
613
         department: [],
614
         sick: [],
614
         sick: [],
615
         diagnoses: [],
615
         diagnoses: [],
616
-        diagnose: "",
616
+        diagnose: [],
617
         state1: '',
617
         state1: '',
618
         curTotal: 0,
618
         curTotal: 0,
619
         prescription_id: 0,
619
         prescription_id: 0,
1748
             this.diagnoses = response.data.data.diagnose
1748
             this.diagnoses = response.data.data.diagnose
1749
             this.additions = response.data.data.additions
1749
             this.additions = response.data.data.additions
1750
 
1750
 
1751
-            // var info = response.data.data.info
1752
-            // if (info.user_type == 2 || info.user_type == 1) {
1753
-            //   this.doctorValue = info.admin_user_id
1754
-            //   if (info.department_id == 0) {
1755
-            //     if (this.department.length > 0) {
1756
-            //       this.departmentValue = this.department[0].id
1757
-            //     } else {
1758
-            //       this.departmentValue = ''
1759
-            //
1760
-            //     }
1761
-            //   } else {
1762
-            //     this.departmentValue = info.department_id
1763
-            //   }
1764
-            // }else{
1765
-            //   this.doctorValue = this.doctors[0].admin_user_id
1766
-            // }
1751
+
1767
           }
1752
           }
1768
         })
1753
         })
1769
 
1754
 
1868
         this.teamList = []
1853
         this.teamList = []
1869
 
1854
 
1870
       },
1855
       },
1871
-      setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1856
+      setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data,last_info) {
1872
         this.curMonthPrescriptions = {}
1857
         this.curMonthPrescriptions = {}
1873
         this.curPrescriptions = {}
1858
         this.curPrescriptions = {}
1874
         // this.$refs.tabProjectTeam.clearSelection()
1859
         // this.$refs.tabProjectTeam.clearSelection()
1875
 
1860
 
1876
 
1861
 
1877
-
1878
-        console.log(doctors)
1879
         for (let i = 0; i < doctors.length; i++) {
1862
         for (let i = 0; i < doctors.length; i++) {
1880
           if (doctors[i].user_type == 1) {
1863
           if (doctors[i].user_type == 1) {
1881
             doctors.splice(i, 1)
1864
             doctors.splice(i, 1)
1903
           this.curPrescriptions = {}
1886
           this.curPrescriptions = {}
1904
         }
1887
         }
1905
 
1888
 
1906
-        this.diagnose = info.diagnosis
1907
-        if (this.diagnose == 0) {
1908
-          this.diagnose = ""
1909
-          for (let i = 0; i < this.diagnoses.length; i++) {
1910
-            this.diagnose = this.diagnoses[0].id
1911
-          }
1912
 
1889
 
1913
-        }
1914
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1890
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1915
           this.curStatus = 1
1891
           this.curStatus = 1
1916
           this.customTabIndex = 1
1892
           this.customTabIndex = 1
1927
           this.showTwo = true
1903
           this.showTwo = true
1928
         }
1904
         }
1929
 
1905
 
1930
-        this.state1 = info.sick_type
1931
-        if (this.state1 == 0) {
1932
-          this.state1 = ''
1933
-          for (let i = 0; i < this.sick.length; i++) {
1934
-            this.state1 = this.sick[0].id
1935
-          }
1936
-
1937
-        }
1938
         this.state2 = info.sick_history
1906
         this.state2 = info.sick_history
1939
         if (this.state2 == 0) {
1907
         if (this.state2 == 0) {
1940
           this.state2 = ''
1908
           this.state2 = ''
1955
           this.order_status = '已退费'
1923
           this.order_status = '已退费'
1956
         }
1924
         }
1957
 
1925
 
1958
-        if (info.id > 0) {
1959
-          this.doctorValue = info.doctor_id
1960
-          this.departmentValue = info.departments
1961
-        } else {
1962
-          if (hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
1963
-            this.doctorValue = hisPatientInfo.doctor
1964
-            this.departmentValue = hisPatientInfo.department
1926
+
1927
+
1928
+        getInitData().then(response => {
1929
+          if (response.data.state == 0) {
1930
+            this.$message.error(response.data.msg)
1931
+            return false
1965
           } else {
1932
           } else {
1966
-            if (admin_info.user_type == 2) {
1967
-              this.doctorValue = admin_info.admin_user_id
1968
-              if (admin_info.department_id == 0) {
1969
-                if (this.department.length > 0) {
1970
-                  if (department && department.length > 0) {
1971
-                    this.departmentValue = department[0].id
1933
+            this.drugs = response.data.data.drugs
1934
+            this.allDrugs = response.data.data.drugs
1935
+            this.advices_template = response.data.data.advices_template
1936
+            this.doctors = response.data.data.doctors
1937
+            for (let i = 0; i < this.doctors.length; i++) {
1938
+              if (this.doctors[i].user_type == 1) {
1939
+                this.doctors.splice(i, 1)
1940
+              }
1941
+            }
1942
+            this.department = response.data.data.department
1943
+            this.sick = response.data.data.sick
1944
+            this.diagnoses = response.data.data.diagnose
1945
+            this.additions = response.data.data.additions
1972
 
1946
 
1973
-                  } else {
1974
 
1947
 
1975
-                    this.departmentValue = ''
1976
 
1948
 
1949
+            if (info.id > 0) {
1950
+              this.doctorValue = info.doctor_id
1951
+              this.departmentValue = info.departments
1952
+            } else {
1953
+              if (hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
1954
+                this.doctorValue = hisPatientInfo.doctor
1955
+                this.departmentValue = hisPatientInfo.department
1956
+              } else {
1957
+                if (admin_info.user_type == 2) {
1958
+                  this.doctorValue = admin_info.admin_user_id
1959
+                  if (admin_info.department_id == 0) {
1960
+                    if (this.department.length > 0) {
1961
+                      if (department && department.length > 0) {
1962
+                        this.departmentValue = department[0].id
1963
+
1964
+                      } else {
1965
+
1966
+                        this.departmentValue = ''
1967
+
1968
+                      }
1969
+                    } else {
1970
+                      this.departmentValue = ''
1971
+                    }
1972
+                  } else {
1973
+                    this.departmentValue = admin_info.department_id
1977
                   }
1974
                   }
1978
                 } else {
1975
                 } else {
1979
-                  this.departmentValue = ''
1976
+                  this.doctorValue = doctors[0].admin_user_id
1980
                 }
1977
                 }
1981
-              } else {
1982
-                this.departmentValue = admin_info.department_id
1978
+                if (this.doctorValue == 0) {
1979
+                  this.doctorValue = ''
1980
+                }
1981
+              }
1982
+            }
1983
+            if (info.register_type == 0) {
1984
+              for (let i = 0; i < this.register.length; i++) {
1985
+                this.register_type = this.register[0].value
1983
               }
1986
               }
1984
             } else {
1987
             } else {
1985
-              this.doctorValue = doctors[0].admin_user_id
1988
+              this.register_type = info.register_type
1989
+            }
1990
+            this.diagnose = []
1991
+
1992
+
1993
+            if(info.id == 0){
1994
+              if(last_info.diagnosis.length == 0){
1995
+                this.diagnose = []
1996
+              }else{
1997
+                for(let i = 0; i < last_info.diagnosis.split(",").length;i++){
1998
+                  this.diagnose.push(parseInt(last_info.diagnosis.split(",")[i]))
1999
+
2000
+                }
2001
+              }
2002
+            }else{
2003
+              if(info.diagnosis.length == 0){
2004
+                this.diagnose = []
2005
+              }else{
2006
+                for(let i = 0; i < info.diagnosis.split(",").length;i++){
2007
+                  this.diagnose.push(parseInt(info.diagnosis.split(",")[i]))
2008
+
2009
+                }
2010
+                // this.diagnose = info.diagnosis.split(",")
2011
+
2012
+              }
2013
+
1986
             }
2014
             }
1987
-            if (this.doctorValue == 0) {
1988
-              this.doctorValue = ''
2015
+
2016
+
2017
+
2018
+            this.state1 = info.sick_type
2019
+            if (this.state1 == 0 || this.state1 == "") {
2020
+              this.state1 = ''
2021
+              for (let i = 0; i < this.sick.length; i++) {
2022
+                this.state1 = this.sick[0].id
2023
+              }
1989
             }
2024
             }
2025
+
2026
+            if(this.departmentValue == "" || this.departmentValue == 0){
2027
+              if(this.department.length > 0){
2028
+                this.departmentValue = this.department[0].id
2029
+
2030
+              }
2031
+            }
2032
+
1990
           }
2033
           }
1991
-        }
1992
-        console.log(info.register_type)
1993
-        if (info.register_type == 0) {
1994
-          for (let i = 0; i < this.register.length; i++) {
1995
-            this.register_type = this.register[0].value
1996
-          }
1997
-        } else {
1998
-          this.register_type = info.register_type
1999
-        }
2034
+        })
2000
 
2035
 
2001
-        if (this.diagnose == 0) {
2002
-          this.diagnose = ""
2003
-        }
2004
       },
2036
       },
2005
       moreState(tab, event) {
2037
       moreState(tab, event) {
2006
         if (tab == 'more') {
2038
         if (tab == 'more') {
2077
             this.$message.error('疾病类型不能为空')
2109
             this.$message.error('疾病类型不能为空')
2078
             return
2110
             return
2079
           }
2111
           }
2080
-          console.log(this.prescriptions)
2081
           for (let i = 0; i < this.prescriptions.length; i++) {
2112
           for (let i = 0; i < this.prescriptions.length; i++) {
2082
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2113
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2083
               if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
2114
               if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
2104
             let params = {
2135
             let params = {
2105
               p_type: 2,
2136
               p_type: 2,
2106
               patient_id: this.patientInfo.id,
2137
               patient_id: this.patientInfo.id,
2107
-              diagnose: this.diagnose,
2138
+              diagnose: this.diagnose.join(","),
2108
               sick_type: this.state1,
2139
               sick_type: this.state1,
2109
               sick_history: this.state2,
2140
               sick_history: this.state2,
2110
               doctor: this.doctorValue,
2141
               doctor: this.doctorValue,
2183
             if (index == 1) {
2214
             if (index == 1) {
2184
               let params = {
2215
               let params = {
2185
                 patient_id: this.patientInfo.id,
2216
                 patient_id: this.patientInfo.id,
2186
-                diagnose: this.diagnose,
2217
+                diagnose: this.diagnose.join(","),
2187
                 sick_type: this.state1,
2218
                 sick_type: this.state1,
2188
                 sick_history: this.state2,
2219
                 sick_history: this.state2,
2189
                 doctor: this.doctorValue,
2220
                 doctor: this.doctorValue,
2613
                   remark: '',
2644
                   remark: '',
2614
                   day: "1",
2645
                   day: "1",
2615
                   prescribing_number: temp3[b].prescribing_number,
2646
                   prescribing_number: temp3[b].prescribing_number,
2616
-                  single_dose_unit: temp3[b].drug.min_unit,
2617
-                  prescribing_number_unit: temp3[b].drug.max_unit,
2647
+                  single_dose_unit: temp3[b].drug.dose_unit,
2648
+                  prescribing_number_unit: temp3[b].drug.prescribing_number_unit,
2618
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
2649
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
2619
                 }
2650
                 }
2620
 
2651
 
2640
                   remark: '',
2671
                   remark: '',
2641
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2672
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2642
                   prescribing_number: temp[b].prescribing_number,
2673
                   prescribing_number: temp[b].prescribing_number,
2643
-                  single_dose_unit: temp[b].min_unit,
2644
-                  prescribing_number_unit: temp[b].max_unit,
2674
+                  single_dose_unit: temp[b].dose_unit,
2675
+                  prescribing_number_unit: temp[b].prescribing_number_unit,
2645
                   medical_insurance_number: temp[b].medical_insurance_number,
2676
                   medical_insurance_number: temp[b].medical_insurance_number,
2646
                   drug: temp[b]
2677
                   drug: temp[b]
2647
                 }
2678
                 }

+ 24 - 125
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Ver fichero

267
         diagnoses: [],
267
         diagnoses: [],
268
         other_sick: [],
268
         other_sick: [],
269
         info: {},
269
         info: {},
270
+        last_info:{},
270
         templatedetail: {},
271
         templatedetail: {},
271
         detalid: 0,
272
         detalid: 0,
272
         prescription_id: 0,
273
         prescription_id: 0,
1126
           '-' +
1127
           '-' +
1127
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1128
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1128
           ':' + (min < 10 ? '0' + min : min)
1129
           ':' + (min < 10 ? '0' + min : min)
1129
-        this.patientid = val.id
1130
         let params = {
1130
         let params = {
1131
           'record_date': this.record_date,
1131
           'record_date': this.record_date,
1132
           'patient_id': val.id,
1132
           'patient_id': val.id,
1144
 
1144
 
1145
             return false
1145
             return false
1146
           } else {
1146
           } else {
1147
+            this.patientid = val.id
1147
             this.isloading = false
1148
             this.isloading = false
1148
 
1149
 
1149
             this.prescriptions = []
1150
             this.prescriptions = []
1153
             this.hisPatientInfo = response.data.data.his_info
1154
             this.hisPatientInfo = response.data.data.his_info
1154
             this.case_history = response.data.data.case_history
1155
             this.case_history = response.data.data.case_history
1155
             this.info = response.data.data.info
1156
             this.info = response.data.data.info
1157
+            this.last_info = response.data.data.last_info
1158
+
1156
             this.doctors = response.data.data.doctors
1159
             this.doctors = response.data.data.doctors
1157
             this.department = response.data.data.department
1160
             this.department = response.data.data.department
1158
 
1161
 
1428
                 this.prescriptions.push(obj)
1431
                 this.prescriptions.push(obj)
1429
 
1432
 
1430
               }
1433
               }
1431
-              // else{
1432
-              //
1433
-              //   if(response.data.data.count <= 1 ){
1434
-              //     if(response.data.data.last_prescriptions.length == 0){
1435
-              //       let obj = {
1436
-              //         id: 0,
1437
-              //         name: '处方' + 1,
1438
-              //         advices: [],
1439
-              //         project: [],
1440
-              //         addition: [],
1441
-              //         order_status: 0,
1442
-              //         pre_time: nowTime,
1443
-              //
1444
-              //       };
1445
-              //       this.prescriptions.push(obj)
1446
-              //
1447
-              //
1448
-              //     }else {
1449
-              //       for (let i = 0; i < response.data.data.last_prescriptions.length; i++) {
1450
-              //         var prescription = response.data.data.last_prescriptions[i];
1451
-              //         let tempAdvice = [];
1452
-              //         let tempProject = [];
1453
-              //         let tempAddition = [];
1454
-              //
1455
-              //         //药品
1456
-              //         for (let b = 0; b < prescription.advices.length; b++) {
1457
-              //           let obj = {
1458
-              //             advice_id:0,
1459
-              //             drug_name: prescription.advices[b].advice_name,
1460
-              //             single_dose: prescription.advices[b].single_dose,
1461
-              //             delivery_way: prescription.advices[b].delivery_way,
1462
-              //             execution_frequency: prescription.advices[b].execution_frequency,
1463
-              //             retail_price: prescription.advices[b].price.toString(),
1464
-              //             remark: prescription.advices[b].remark,
1465
-              //             day: prescription.advices[b].day,
1466
-              //             prescribing_number: prescription.advices[b].prescribing_number.toString(),
1467
-              //             single_dose_unit: prescription.advices[b].single_dose_unit,
1468
-              //             prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1469
-              //             medical_insurance_number: prescription.advices[b].med_list_codg,
1470
-              //             id: prescription.advices[b].drug_id,
1471
-              //             drug:prescription.advices[b].drug
1472
-              //
1473
-              //           };
1474
-              //           tempAdvice.push(obj)
1475
-              //         }
1476
-              //
1477
-              //         //项目
1478
-              //         for (let b = 0; b < prescription.project.length; b++) {
1479
-              //           let obj = {
1480
-              //             id:0,
1481
-              //             project_id: prescription.project[b].project_id,
1482
-              //             project_name: prescription.project[b].project.project_name,
1483
-              //             statistical_classification: prescription.project[b].project.statistical_classification,
1484
-              //             single_dose: prescription.project[b].single_dose,
1485
-              //             delivery_way: prescription.project[b].delivery_way,
1486
-              //             execution_frequency: prescription.project[b].execution_frequency,
1487
-              //             number_days: prescription.project[b].day,
1488
-              //             total: prescription.project[b].count.toString(),
1489
-              //             price: prescription.project[b].price,
1490
-              //             remark: prescription.project[b].remark,
1491
-              //             medical_code: prescription.project[b].project.medical_code,
1492
-              //             unit: prescription.project[b].project.unit,
1493
-              //             type: prescription.project[b].type
1494
-              //           };
1495
-              //
1496
-              //           if (prescription.project[b].type == 2) {
1497
-              //             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1498
-              //             obj['medical_code'] = prescription.project[b].project.medical_code
1499
-              //             obj['project_name'] = prescription.project[b].project.project_name
1500
-              //
1501
-              //           } else if (prescription.project[b].type == 3) {
1502
-              //             obj['statistical_classification'] = ""
1503
-              //             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1504
-              //             obj['project_name'] = prescription.project[b].good_info.good_name
1505
-              //           }
1506
-              //           tempProject.push(obj)
1507
-              //         }
1508
-              //
1509
-              //         //附加收费
1510
-              //         for (let b = 0; b < prescription.addition.length; b++) {
1511
-              //           let obj = {
1512
-              //             item_name: prescription.addition[b].item_name,
1513
-              //             price: prescription.addition[b].price,
1514
-              //             count: prescription.addition[b].count,
1515
-              //             item_id: prescription.addition[b].item_id,
1516
-              //           };
1517
-              //           tempAddition.push(obj)
1518
-              //         }
1519
-              //
1520
-              //         var preTime = nowTime
1521
-              //
1522
-              //         let index = i + 1;
1523
-              //         let obj = {
1524
-              //           id: 0,
1525
-              //           name: '处方' + index,
1526
-              //           advices: tempAdvice,
1527
-              //           project: tempProject,
1528
-              //           addition: tempAddition,
1529
-              //           order_status: 1,
1530
-              //           pre_time: preTime
1531
-              //         };
1532
-              //         this.prescriptions.push(obj)
1533
-              //       }
1534
-              //     }
1535
-              //   }else{
1536
-              //     let obj = {
1537
-              //       id: 0,
1538
-              //       name: '处方' + 1,
1539
-              //       advices: [],
1540
-              //       project: [],
1541
-              //       addition: [],
1542
-              //       order_status: 0,
1543
-              //       pre_time: nowTime,
1544
-              //
1545
-              //     };
1546
-              //     this.prescriptions.push(obj)
1547
-              //   }
1548
-              // }
1549
             }
1434
             }
1550
-            this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
1435
+            console.log("~~~~~00000222222")
1436
+            this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
1551
           }
1437
           }
1552
         })
1438
         })
1553
 
1439
 
1590
                   this.hisPatientInfo = response.data.data.his_info;
1476
                   this.hisPatientInfo = response.data.data.his_info;
1591
                   this.case_history = response.data.data.case_history;
1477
                   this.case_history = response.data.data.case_history;
1592
                   this.info = response.data.data.info;
1478
                   this.info = response.data.data.info;
1479
+                  this.last_info = response.data.data.last_info
1480
+
1593
                   this.doctors = response.data.data.doctors;
1481
                   this.doctors = response.data.data.doctors;
1594
                   this.department = response.data.data.department;
1482
                   this.department = response.data.data.department;
1595
 
1483
 
1983
                     //   }
1871
                     //   }
1984
                     }
1872
                     }
1985
                   }
1873
                   }
1986
-                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
1874
+                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
1987
                   this.$refs.child.watchSign = 0
1875
                   this.$refs.child.watchSign = 0
1988
                 }
1876
                 }
1989
               });
1877
               });
2016
                   this.hisPatientInfo = response.data.data.his_info;
1904
                   this.hisPatientInfo = response.data.data.his_info;
2017
                   this.case_history = response.data.data.case_history;
1905
                   this.case_history = response.data.data.case_history;
2018
                   this.info = response.data.data.info;
1906
                   this.info = response.data.data.info;
1907
+                  this.last_info = response.data.data.last_info
1908
+
2019
                   this.doctors = response.data.data.doctors;
1909
                   this.doctors = response.data.data.doctors;
2020
                   this.department = response.data.data.department;
1910
                   this.department = response.data.data.department;
2021
 
1911
 
2402
                       // }
2292
                       // }
2403
                     }
2293
                     }
2404
                   }
2294
                   }
2405
-                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
2295
+                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
2406
                   this.$refs.child.watchSign = 0
2296
                   this.$refs.child.watchSign = 0
2407
                 }
2297
                 }
2408
               })
2298
               })
2436
                   this.hisPatientInfo = response.data.data.his_info;
2326
                   this.hisPatientInfo = response.data.data.his_info;
2437
                   this.case_history = response.data.data.case_history;
2327
                   this.case_history = response.data.data.case_history;
2438
                   this.info = response.data.data.info;
2328
                   this.info = response.data.data.info;
2329
+                  this.last_info = response.data.data.last_info
2330
+
2439
                   this.doctors = response.data.data.doctors;
2331
                   this.doctors = response.data.data.doctors;
2440
                   this.department = response.data.data.department;
2332
                   this.department = response.data.data.department;
2441
 
2333
 
2821
                       // }
2713
                       // }
2822
                     }
2714
                     }
2823
                   }
2715
                   }
2824
-                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions);
2716
+                  this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department,this.hisPatientInfo, this.month_prescriptions,this.last_info);
2825
                   this.$refs.child.watchSign = 0
2717
                   this.$refs.child.watchSign = 0
2826
                 }
2718
                 }
2827
               });
2719
               });
2920
 
2812
 
2921
                 this.case_history = response.data.data.case_history
2813
                 this.case_history = response.data.data.case_history
2922
                 this.info = response.data.data.info
2814
                 this.info = response.data.data.info
2815
+                this.last_info = response.data.data.last_info
2816
+
2923
                 this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
2817
                 this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
2924
                 if (this.case_history.breathing <= 0) {
2818
                 if (this.case_history.breathing <= 0) {
2925
                   this.case_history.breathing = ''
2819
                   this.case_history.breathing = ''
3297
                     // }
3191
                     // }
3298
                   }
3192
                   }
3299
                 }
3193
                 }
3300
-                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
3194
+                this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
3301
               }
3195
               }
3302
             })
3196
             })
3303
 
3197
 
3330
               this.hisPatientInfo = response.data.data.his_info
3224
               this.hisPatientInfo = response.data.data.his_info
3331
               this.case_history = response.data.data.case_history
3225
               this.case_history = response.data.data.case_history
3332
               this.info = response.data.data.info
3226
               this.info = response.data.data.info
3227
+              this.last_info = response.data.data.last_info
3228
+
3333
               this.doctors = response.data.data.doctors
3229
               this.doctors = response.data.data.doctors
3334
               this.department = response.data.data.department
3230
               this.department = response.data.data.department
3335
 
3231
 
3716
                   // }
3612
                   // }
3717
                 }
3613
                 }
3718
               }
3614
               }
3719
-              this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions)
3615
+              this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions,this.last_info)
3720
             }
3616
             }
3721
           })
3617
           })
3722
 
3618
 
3823
         if(this.titleType == "电子处方"){
3719
         if(this.titleType == "电子处方"){
3824
           if(this.radio == 1){
3720
           if(this.radio == 1){
3825
             this.un_cure_data.map(item => {
3721
             this.un_cure_data.map(item => {
3722
+              console.log("~~~~~~~~")
3826
               if(item.id == this.patientid){
3723
               if(item.id == this.patientid){
3724
+                console.log("~~~~~~~~22222222")
3725
+
3827
                 this.getPatientInfo(item)
3726
                 this.getPatientInfo(item)
3828
               }
3727
               }
3829
             })
3728
             })

+ 18 - 4
src/xt_pages/outpatientDoctorStation/pastInquiries.vue Ver fichero

159
         })
159
         })
160
       },
160
       },
161
       getDiagnosis(id){
161
       getDiagnosis(id){
162
+        let ids = id.split(",")
162
         var name = ""
163
         var name = ""
163
-        for(let i=0;i<this.diagnoses.length;i++){
164
-           if(id == this.diagnoses[i].id){
165
-              name = this.diagnoses[i].class_name
166
-           }
164
+        for(let i = 0; i < ids.length; i++){
165
+
166
+          for(let b=0;b<this.diagnoses.length;b++){
167
+            if(parseInt(ids[i]) == this.diagnoses[b].id){
168
+              if(name.length == 0){
169
+                name = this.diagnoses[b].class_name
170
+              }else{
171
+                name = name +"," + this.diagnoses[b].class_name
172
+
173
+              }
174
+            }
175
+          }
176
+
167
         }
177
         }
178
+
179
+
180
+
181
+
168
         return name
182
         return name
169
       }
183
       }
170
     }, created() {
184
     }, created() {

+ 3 - 0
src/xt_pages/outpatientRegistration/index.vue Ver fichero

1627
       this.form.id_card_type = 1
1627
       this.form.id_card_type = 1
1628
       this.form.medicalCare = 11
1628
       this.form.medicalCare = 11
1629
       this.form.settlementValue = 1
1629
       this.form.settlementValue = 1
1630
+      this.form.register = 4
1631
+      this.form.registrationFee = 0
1632
+      this.form.medicalExpenses = 0
1630
 
1633
 
1631
     } else {
1634
     } else {
1632
       this.form.settlementValue = 1
1635
       this.form.settlementValue = 1