Browse Source

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

csx 3 years ago
parent
commit
f843d0757a

+ 11 - 0
src/api/his/his.js View File

@@ -499,6 +499,17 @@ export function refundNumber(params) {
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 View File

@@ -523,6 +523,10 @@
523 523
         this.form.certificates = 1
524 524
         this.form.medical_care = 11
525 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 531
         // if( this.form.social_type == 0){
528 532
         //   this.form.social_type = ""

File diff suppressed because it is too large
+ 438 - 251
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 107 - 76
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -48,7 +48,7 @@
48 48
 
49 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 52
                             <el-option
53 53
                                     v-for="(item,index) in diagnoses"
54 54
                                     :key="index"
@@ -613,7 +613,7 @@
613 613
         department: [],
614 614
         sick: [],
615 615
         diagnoses: [],
616
-        diagnose: "",
616
+        diagnose: [],
617 617
         state1: '',
618 618
         curTotal: 0,
619 619
         prescription_id: 0,
@@ -1748,22 +1748,7 @@
1748 1748
             this.diagnoses = response.data.data.diagnose
1749 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,14 +1853,12 @@
1868 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 1857
         this.curMonthPrescriptions = {}
1873 1858
         this.curPrescriptions = {}
1874 1859
         // this.$refs.tabProjectTeam.clearSelection()
1875 1860
 
1876 1861
 
1877
-
1878
-        console.log(doctors)
1879 1862
         for (let i = 0; i < doctors.length; i++) {
1880 1863
           if (doctors[i].user_type == 1) {
1881 1864
             doctors.splice(i, 1)
@@ -1903,14 +1886,7 @@
1903 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 1890
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1915 1891
           this.curStatus = 1
1916 1892
           this.customTabIndex = 1
@@ -1927,14 +1903,6 @@
1927 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 1906
         this.state2 = info.sick_history
1939 1907
         if (this.state2 == 0) {
1940 1908
           this.state2 = ''
@@ -1955,52 +1923,116 @@
1955 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 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 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 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 2037
       moreState(tab, event) {
2006 2038
         if (tab == 'more') {
@@ -2077,7 +2109,6 @@
2077 2109
             this.$message.error('疾病类型不能为空')
2078 2110
             return
2079 2111
           }
2080
-          console.log(this.prescriptions)
2081 2112
           for (let i = 0; i < this.prescriptions.length; i++) {
2082 2113
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2083 2114
               if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
@@ -2104,7 +2135,7 @@
2104 2135
             let params = {
2105 2136
               p_type: 2,
2106 2137
               patient_id: this.patientInfo.id,
2107
-              diagnose: this.diagnose,
2138
+              diagnose: this.diagnose.join(","),
2108 2139
               sick_type: this.state1,
2109 2140
               sick_history: this.state2,
2110 2141
               doctor: this.doctorValue,
@@ -2183,7 +2214,7 @@
2183 2214
             if (index == 1) {
2184 2215
               let params = {
2185 2216
                 patient_id: this.patientInfo.id,
2186
-                diagnose: this.diagnose,
2217
+                diagnose: this.diagnose.join(","),
2187 2218
                 sick_type: this.state1,
2188 2219
                 sick_history: this.state2,
2189 2220
                 doctor: this.doctorValue,
@@ -2613,8 +2644,8 @@
2613 2644
                   remark: '',
2614 2645
                   day: "1",
2615 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 2649
                   medical_insurance_number: temp3[b].drug.medical_insurance_number
2619 2650
                 }
2620 2651
 
@@ -2640,8 +2671,8 @@
2640 2671
                   remark: '',
2641 2672
                   day: temp[b].drug_day ? temp[b].drug_day : 1,
2642 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 2676
                   medical_insurance_number: temp[b].medical_insurance_number,
2646 2677
                   drug: temp[b]
2647 2678
                 }

+ 24 - 125
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -267,6 +267,7 @@
267 267
         diagnoses: [],
268 268
         other_sick: [],
269 269
         info: {},
270
+        last_info:{},
270 271
         templatedetail: {},
271 272
         detalid: 0,
272 273
         prescription_id: 0,
@@ -1126,7 +1127,6 @@
1126 1127
           '-' +
1127 1128
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1128 1129
           ':' + (min < 10 ? '0' + min : min)
1129
-        this.patientid = val.id
1130 1130
         let params = {
1131 1131
           'record_date': this.record_date,
1132 1132
           'patient_id': val.id,
@@ -1144,6 +1144,7 @@
1144 1144
 
1145 1145
             return false
1146 1146
           } else {
1147
+            this.patientid = val.id
1147 1148
             this.isloading = false
1148 1149
 
1149 1150
             this.prescriptions = []
@@ -1153,6 +1154,8 @@
1153 1154
             this.hisPatientInfo = response.data.data.his_info
1154 1155
             this.case_history = response.data.data.case_history
1155 1156
             this.info = response.data.data.info
1157
+            this.last_info = response.data.data.last_info
1158
+
1156 1159
             this.doctors = response.data.data.doctors
1157 1160
             this.department = response.data.data.department
1158 1161
 
@@ -1428,126 +1431,9 @@
1428 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,6 +1476,8 @@
1590 1476
                   this.hisPatientInfo = response.data.data.his_info;
1591 1477
                   this.case_history = response.data.data.case_history;
1592 1478
                   this.info = response.data.data.info;
1479
+                  this.last_info = response.data.data.last_info
1480
+
1593 1481
                   this.doctors = response.data.data.doctors;
1594 1482
                   this.department = response.data.data.department;
1595 1483
 
@@ -1983,7 +1871,7 @@
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 1875
                   this.$refs.child.watchSign = 0
1988 1876
                 }
1989 1877
               });
@@ -2016,6 +1904,8 @@
2016 1904
                   this.hisPatientInfo = response.data.data.his_info;
2017 1905
                   this.case_history = response.data.data.case_history;
2018 1906
                   this.info = response.data.data.info;
1907
+                  this.last_info = response.data.data.last_info
1908
+
2019 1909
                   this.doctors = response.data.data.doctors;
2020 1910
                   this.department = response.data.data.department;
2021 1911
 
@@ -2402,7 +2292,7 @@
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 2296
                   this.$refs.child.watchSign = 0
2407 2297
                 }
2408 2298
               })
@@ -2436,6 +2326,8 @@
2436 2326
                   this.hisPatientInfo = response.data.data.his_info;
2437 2327
                   this.case_history = response.data.data.case_history;
2438 2328
                   this.info = response.data.data.info;
2329
+                  this.last_info = response.data.data.last_info
2330
+
2439 2331
                   this.doctors = response.data.data.doctors;
2440 2332
                   this.department = response.data.data.department;
2441 2333
 
@@ -2821,7 +2713,7 @@
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 2717
                   this.$refs.child.watchSign = 0
2826 2718
                 }
2827 2719
               });
@@ -2920,6 +2812,8 @@
2920 2812
 
2921 2813
                 this.case_history = response.data.data.case_history
2922 2814
                 this.info = response.data.data.info
2815
+                this.last_info = response.data.data.last_info
2816
+
2923 2817
                 this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
2924 2818
                 if (this.case_history.breathing <= 0) {
2925 2819
                   this.case_history.breathing = ''
@@ -3297,7 +3191,7 @@
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,6 +3224,8 @@
3330 3224
               this.hisPatientInfo = response.data.data.his_info
3331 3225
               this.case_history = response.data.data.case_history
3332 3226
               this.info = response.data.data.info
3227
+              this.last_info = response.data.data.last_info
3228
+
3333 3229
               this.doctors = response.data.data.doctors
3334 3230
               this.department = response.data.data.department
3335 3231
 
@@ -3716,7 +3612,7 @@
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,7 +3719,10 @@
3823 3719
         if(this.titleType == "电子处方"){
3824 3720
           if(this.radio == 1){
3825 3721
             this.un_cure_data.map(item => {
3722
+              console.log("~~~~~~~~")
3826 3723
               if(item.id == this.patientid){
3724
+                console.log("~~~~~~~~22222222")
3725
+
3827 3726
                 this.getPatientInfo(item)
3828 3727
               }
3829 3728
             })

+ 18 - 4
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

@@ -159,12 +159,26 @@
159 159
         })
160 160
       },
161 161
       getDiagnosis(id){
162
+        let ids = id.split(",")
162 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 182
         return name
169 183
       }
170 184
     }, created() {

+ 3 - 0
src/xt_pages/outpatientRegistration/index.vue View File

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