Browse Source

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

see999 3 years ago
parent
commit
75e7f45d65

+ 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
+ 439 - 251
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 103 - 72
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,
@@ -1749,22 +1749,7 @@
1749 1749
             this.diagnoses = response.data.data.diagnose
1750 1750
             this.additions = response.data.data.additions
1751 1751
 
1752
-            // var info = response.data.data.info
1753
-            // if (info.user_type == 2 || info.user_type == 1) {
1754
-            //   this.doctorValue = info.admin_user_id
1755
-            //   if (info.department_id == 0) {
1756
-            //     if (this.department.length > 0) {
1757
-            //       this.departmentValue = this.department[0].id
1758
-            //     } else {
1759
-            //       this.departmentValue = ''
1760
-            //
1761
-            //     }
1762
-            //   } else {
1763
-            //     this.departmentValue = info.department_id
1764
-            //   }
1765
-            // }else{
1766
-            //   this.doctorValue = this.doctors[0].admin_user_id
1767
-            // }
1752
+
1768 1753
           }
1769 1754
         })
1770 1755
 
@@ -1869,14 +1854,12 @@
1869 1854
         this.teamList = []
1870 1855
 
1871 1856
       },
1872
-      setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1857
+      setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data,last_info) {
1873 1858
         this.curMonthPrescriptions = {}
1874 1859
         this.curPrescriptions = {}
1875 1860
         // this.$refs.tabProjectTeam.clearSelection()
1876 1861
 
1877 1862
 
1878
-
1879
-        console.log(doctors)
1880 1863
         for (let i = 0; i < doctors.length; i++) {
1881 1864
           if (doctors[i].user_type == 1) {
1882 1865
             doctors.splice(i, 1)
@@ -1904,14 +1887,7 @@
1904 1887
           this.curPrescriptions = {}
1905 1888
         }
1906 1889
 
1907
-        this.diagnose = info.diagnosis
1908
-        if (this.diagnose == 0) {
1909
-          this.diagnose = ""
1910
-          for (let i = 0; i < this.diagnoses.length; i++) {
1911
-            this.diagnose = this.diagnoses[0].id
1912
-          }
1913 1890
 
1914
-        }
1915 1891
         if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1916 1892
           this.curStatus = 1
1917 1893
           this.customTabIndex = 1
@@ -1928,14 +1904,6 @@
1928 1904
           this.showTwo = true
1929 1905
         }
1930 1906
 
1931
-        this.state1 = info.sick_type
1932
-        if (this.state1 == 0) {
1933
-          this.state1 = ''
1934
-          for (let i = 0; i < this.sick.length; i++) {
1935
-            this.state1 = this.sick[0].id
1936
-          }
1937
-
1938
-        }
1939 1907
         this.state2 = info.sick_history
1940 1908
         if (this.state2 == 0) {
1941 1909
           this.state2 = ''
@@ -1956,52 +1924,116 @@
1956 1924
           this.order_status = '已退费'
1957 1925
         }
1958 1926
 
1959
-        if (info.id > 0) {
1960
-          this.doctorValue = info.doctor_id
1961
-          this.departmentValue = info.departments
1962
-        } else {
1963
-          if (hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
1964
-            this.doctorValue = hisPatientInfo.doctor
1965
-            this.departmentValue = hisPatientInfo.department
1927
+
1928
+
1929
+        getInitData().then(response => {
1930
+          if (response.data.state == 0) {
1931
+            this.$message.error(response.data.msg)
1932
+            return false
1966 1933
           } else {
1967
-            if (admin_info.user_type == 2) {
1968
-              this.doctorValue = admin_info.admin_user_id
1969
-              if (admin_info.department_id == 0) {
1970
-                if (this.department.length > 0) {
1971
-                  if (department && department.length > 0) {
1972
-                    this.departmentValue = department[0].id
1934
+            this.drugs = response.data.data.drugs
1935
+            this.allDrugs = response.data.data.drugs
1936
+            this.advices_template = response.data.data.advices_template
1937
+            this.doctors = response.data.data.doctors
1938
+            for (let i = 0; i < this.doctors.length; i++) {
1939
+              if (this.doctors[i].user_type == 1) {
1940
+                this.doctors.splice(i, 1)
1941
+              }
1942
+            }
1943
+            this.department = response.data.data.department
1944
+            this.sick = response.data.data.sick
1945
+            this.diagnoses = response.data.data.diagnose
1946
+            this.additions = response.data.data.additions
1973 1947
 
1974
-                  } else {
1975 1948
 
1976
-                    this.departmentValue = ''
1977 1949
 
1950
+            if (info.id > 0) {
1951
+              this.doctorValue = info.doctor_id
1952
+              this.departmentValue = info.departments
1953
+            } else {
1954
+              if (hisPatientInfo.doctor != 0 && hisPatientInfo.department != 0) {
1955
+                this.doctorValue = hisPatientInfo.doctor
1956
+                this.departmentValue = hisPatientInfo.department
1957
+              } else {
1958
+                if (admin_info.user_type == 2) {
1959
+                  this.doctorValue = admin_info.admin_user_id
1960
+                  if (admin_info.department_id == 0) {
1961
+                    if (this.department.length > 0) {
1962
+                      if (department && department.length > 0) {
1963
+                        this.departmentValue = department[0].id
1964
+
1965
+                      } else {
1966
+
1967
+                        this.departmentValue = ''
1968
+
1969
+                      }
1970
+                    } else {
1971
+                      this.departmentValue = ''
1972
+                    }
1973
+                  } else {
1974
+                    this.departmentValue = admin_info.department_id
1978 1975
                   }
1979 1976
                 } else {
1980
-                  this.departmentValue = ''
1977
+                  this.doctorValue = doctors[0].admin_user_id
1981 1978
                 }
1982
-              } else {
1983
-                this.departmentValue = admin_info.department_id
1979
+                if (this.doctorValue == 0) {
1980
+                  this.doctorValue = ''
1981
+                }
1982
+              }
1983
+            }
1984
+            if (info.register_type == 0) {
1985
+              for (let i = 0; i < this.register.length; i++) {
1986
+                this.register_type = this.register[0].value
1984 1987
               }
1985 1988
             } else {
1986
-              this.doctorValue = doctors[0].admin_user_id
1989
+              this.register_type = info.register_type
1990
+            }
1991
+            this.diagnose = []
1992
+
1993
+
1994
+            if(info.id == 0){
1995
+              if(last_info.diagnosis.length == 0){
1996
+                this.diagnose = []
1997
+              }else{
1998
+                for(let i = 0; i < last_info.diagnosis.split(",").length;i++){
1999
+                  this.diagnose.push(parseInt(last_info.diagnosis.split(",")[i]))
2000
+
2001
+                }
2002
+              }
2003
+            }else{
2004
+              if(info.diagnosis.length == 0){
2005
+                this.diagnose = []
2006
+              }else{
2007
+                for(let i = 0; i < info.diagnosis.split(",").length;i++){
2008
+                  this.diagnose.push(parseInt(info.diagnosis.split(",")[i]))
2009
+
2010
+                }
2011
+                // this.diagnose = info.diagnosis.split(",")
2012
+
2013
+              }
2014
+
1987 2015
             }
1988
-            if (this.doctorValue == 0) {
1989
-              this.doctorValue = ''
2016
+
2017
+
2018
+
2019
+            this.state1 = info.sick_type
2020
+            if (this.state1 == 0 || this.state1 == "") {
2021
+              this.state1 = ''
2022
+              for (let i = 0; i < this.sick.length; i++) {
2023
+                this.state1 = this.sick[0].id
2024
+              }
1990 2025
             }
2026
+
2027
+            if(this.departmentValue == "" || this.departmentValue == 0){
2028
+              if(this.department.length > 0){
2029
+                this.departmentValue = this.department[0].id
2030
+
2031
+              }
2032
+            }
2033
+
1991 2034
           }
1992
-        }
1993
-        console.log(info.register_type)
1994
-        if (info.register_type == 0) {
1995
-          for (let i = 0; i < this.register.length; i++) {
1996
-            this.register_type = this.register[0].value
1997
-          }
1998
-        } else {
1999
-          this.register_type = info.register_type
2000
-        }
2035
+        })
2001 2036
 
2002
-        if (this.diagnose == 0) {
2003
-          this.diagnose = ""
2004
-        }
2005 2037
       },
2006 2038
       moreState(tab, event) {
2007 2039
         if (tab == 'more') {
@@ -2078,7 +2110,6 @@
2078 2110
             this.$message.error('疾病类型不能为空')
2079 2111
             return
2080 2112
           }
2081
-          console.log(this.prescriptions)
2082 2113
           for (let i = 0; i < this.prescriptions.length; i++) {
2083 2114
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2084 2115
               if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
@@ -2105,7 +2136,7 @@
2105 2136
             let params = {
2106 2137
               p_type: 2,
2107 2138
               patient_id: this.patientInfo.id,
2108
-              diagnose: this.diagnose,
2139
+              diagnose: this.diagnose.join(","),
2109 2140
               sick_type: this.state1,
2110 2141
               sick_history: this.state2,
2111 2142
               doctor: this.doctorValue,
@@ -2184,7 +2215,7 @@
2184 2215
             if (index == 1) {
2185 2216
               let params = {
2186 2217
                 patient_id: this.patientInfo.id,
2187
-                diagnose: this.diagnose,
2218
+                diagnose: this.diagnose.join(","),
2188 2219
                 sick_type: this.state1,
2189 2220
                 sick_history: this.state2,
2190 2221
                 doctor: this.doctorValue,

+ 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() {

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

@@ -1126,11 +1126,9 @@
1126 1126
                     })
1127 1127
                   } else {
1128 1128
                     that.$message({ message: '挂号成功', type: 'success' })
1129
-                    that.form.settlementValue = ''
1130
-                    that.form.medicalInsuranceCard = ''
1129
+
1131 1130
                     that.form.name = ''
1132 1131
                     that.form.sex = ''
1133
-                    that.form.certificates = ''
1134 1132
                     that.form.medicalCare = ''
1135 1133
                     that.form.birthday = ''
1136 1134
                     that.form.age = ''
@@ -1147,6 +1145,12 @@
1147 1145
                     that.form.social_type = ''
1148 1146
                     that.loadingone = false
1149 1147
 
1148
+                    that.form.medicalInsuranceCard = ''
1149
+
1150
+                    that.form.medicalCare = 11
1151
+                    that.form.settlementValue = 1
1152
+                    that.form.certificates = 2
1153
+                    that.form.id_card_type = 1
1150 1154
                     that.form.p_type = 14
1151 1155
                     that.form.sick_type = that.sick[0].id
1152 1156
                     that.form.diagnosis = that.diagnoses[0].id
@@ -1623,6 +1627,9 @@
1623 1627
       this.form.id_card_type = 1
1624 1628
       this.form.medicalCare = 11
1625 1629
       this.form.settlementValue = 1
1630
+      this.form.register = 4
1631
+      this.form.registrationFee = 0
1632
+      this.form.medicalExpenses = 0
1626 1633
 
1627 1634
     } else {
1628 1635
       this.form.settlementValue = 1

+ 2 - 2
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -720,7 +720,7 @@
720 720
         return ''
721 721
       }, toReturnSZPatient(val) {
722 722
         if(val.balance_accounts_type == 2){
723
-          this.$confirm('是否退费', '退费', {
723
+          this.$confirm('是否退号', '退号 ', {
724 724
             confirmButtonText: '确 定',
725 725
             cancelButtonText: '取 消',
726 726
             type: 'warning'
@@ -753,7 +753,7 @@
753 753
           }).then(() => {
754 754
             axios.get('http://127.0.0.1:9532/sz/api/refundnumber/get', {
755 755
               params: {
756
-                order_id: 0,
756
+                his_patient_id: val.id,
757 757
                 record_time: this.getTime(val.record_date, '{y}-{m}-{d}'),
758 758
                 admin_user_id: this.$store.getters.xt_user.user.id,
759 759
                 patient_id: val.patient_id