Ver código fonte

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

csx 3 anos atrás
pai
commit
918b36d107

+ 40 - 9
src/xt_pages/outpatientCharges/costComparison.vue Ver arquivo

@@ -212,7 +212,8 @@
212 212
     getDoctorList,
213 213
     getExportConsumeDetailList,
214 214
     getHisOrderList,
215
-    getList
215
+    getList,
216
+    getInitData
216 217
   } from '@/api/his/his'
217 218
   import { uParseTime } from '@/utils/tools'
218 219
   import { fetchAllAdminUsers } from '@/api/doctor'
@@ -230,6 +231,7 @@
230 231
           { path: false, name: '医保费用对照' }
231 232
         ],
232 233
         tableData: [],
234
+        diagnoses:[],
233 235
         limit: 10,
234 236
         page: 1,
235 237
         dialogFormVisible: false,
@@ -582,7 +584,7 @@
582 584
                 '个人编号': this.fromData[i].psn_no,
583 585
                 '门诊号': this.fromData[i].mdtrt_id,
584 586
                 '挂号日期': this.getTimes(this.fromData[i].settle_accounts_date),
585
-                '挂号科室': this.getTimes(this.fromData[i].settle_accounts_date),
587
+                '挂号科室': "",
586 588
                 '门诊费用': this.fromData[i].medfee_sumamt,
587 589
                 '自费': this.fromData[i].psn_cash_pay,
588 590
                 '起付线I': this.fromData[i].act_pay_dedc,
@@ -591,11 +593,15 @@
591 593
                 '统筹基金': this.fromData[i].fund_pay_sumamt,
592 594
                 '公务员补助': this.fromData[i].cvlserv_pay,
593 595
                 '单位补充保险': this.fromData[i].hifes_pay,
596
+                '煤矿补充保险': "0.00",
597
+                "超封顶线费用": "0.00",
594 598
                 '大额医疗保险应付': this.fromData[i].hifob_pay,
595
-                '大额合计': this.fromData[i].hifob_pay,
596
-                '诊断':"",
597
-                "血透次数":1,
598
-                "置留管数量":1,
599
+                '透析补助': "0.00",
600
+                '大额合计':  "0.00",
601
+                '实账支付额': "0.00",
602
+                '诊断': this.GetDiagnosisName(this.fromData[i].diagnosis_id),
603
+                "血透次数":this.fromData[i].DialysisCount,
604
+                "置留管数量":0,
599 605
                 "备注":"",
600 606
 
601 607
               }
@@ -609,8 +615,11 @@
609 615
             }
610 616
 
611 617
             import('@/vendor/Export2Excel').then(excel => {
612
-              const tHeader = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
613
-              const filterVal = ['结算金额', '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
618
+              const tHeader = ['序号', '姓名', '单位名称','个人编号', '门诊号', '挂号日期','挂号科室','门诊费用','自费', '起付线I','按比例自付II','小计I+II','统筹基金','公务员补助','单位补充保险','煤矿补充保险','超封顶线费用','大额医疗保险应付', '透析补助', '大额合计', '实账支付额', '诊断', '血透次数', '置留管数量','备注']
619
+              const filterVal = ['序号', '姓名', '单位名称','个人编号', '门诊号', '挂号日期','挂号科室','门诊费用','自费', '起付线I','按比例自付II','小计I+II','统筹基金','公务员补助','单位补充保险','煤矿补充保险','超封顶线费用','大额医疗保险应付', '透析补助', '大额合计', '实账支付额', '诊断', '血透次数', '置留管数量','备注']
620
+              // const filterVal = [ '姓名', '身份证', '个人编号', '门诊流水号', '挂号日期', '起付线', '统筹基金', '个人支付', '个账支付', '现金支付', '总费用', '冲销标志']
621
+              const merges = ['A1:A2', 'B1:B2', 'C1:E1', 'F1:H1', 'I1:K1', 'L1:N1', 'O1:Q1', 'R1:T1', 'U1:W1', 'X1:Z1', 'AA1:AC1', 'AD1:AF1', 'AG1:AI1', 'AJ1:AL1', 'AM1:AO1', 'AP1:AR1', 'AS1:AU1', 'AV1:AX1', 'AY1:BA1', 'BB1:BD1', 'BE1:BG1', 'BH1:BJ1', 'BK1:BM1']
622
+
614 623
               const data = this.formatJson(filterVal, list)
615 624
               excel.export_json_to_excel({
616 625
                 header: tHeader,
@@ -623,11 +632,33 @@
623 632
 
624 633
       }, formatJson(filterVal, jsonData) {
625 634
         return jsonData.map(v => filterVal.map(j => v[j]))
626
-      }
635
+      },GetDiagnosisName(id){
636
+        for(let i = 0;i < this.diagnoses.length; i++){
637
+          if(this.diagnoses[i].id == id){
638
+            return this.diagnoses[i].class_name
639
+          }
640
+        }
641
+        return ""
642
+
643
+      },  getInitData() {
644
+        getInitData().then(response => {
645
+          if (response.data.state == 0) {
646
+            this.$message.error(response.data.msg)
647
+            return false
648
+          } else {
649
+            this.diagnoses = response.data.data.diagnose
650
+
651
+
652
+          }
653
+        })
654
+
655
+      },
656
+
627 657
     },
628 658
     created() {
629 659
       this.getList()
630 660
       this.fetchAllAdminUsers()
661
+      this.getInitData()
631 662
 
632 663
     }
633 664
   }

+ 95 - 116
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -139,7 +139,8 @@
139 139
                         </el-button>
140 140
 
141 141
 
142
-                        <el-button v-if="this.radio == 2   && this.order.order_status == 2" size="small" @click="open(9)" type="primary"
142
+                        <el-button v-if="this.radio == 2   && this.order.order_status == 2" size="small"
143
+                                   @click="open(9)" type="primary"
143 144
                         >结算单
144 145
                         </el-button>
145 146
 
@@ -271,9 +272,9 @@
271 272
 
272 273
                                         <div class="costBox">
273 274
                                             <span>当前处方总费用:<span style="color:red;">{{items.total}}元</span></span>
274
-                                            <span>总费用:<span style="color:red;">{{ items.prescriptions[0].order.medfee_sumamt? items.prescriptions[0].order.medfee_sumamt:''}}元</span></span>
275
-                                            <span>基金支付:<span style="color:red;">{{ items.prescriptions[0].order.fund_pay_sumamt?items.prescriptions[0].order.fund_pay_sumamt:''}}元</span></span>
276
-                                            <span>个人支付:<span style="color:red;">{{ items.prescriptions[0].order.psn_cash_pay?items.prescriptions[0].order.psn_cash_pay:''}}元</span></span>
275
+                                            <span>总费用:<span style="color:red;">{{ items.curPrescriptions.order.medfee_sumamt ?  items.curPrescriptions.order.medfee_sumamt:getTotalFour(items.prescriptions)?getTotalFour(items.prescriptions):'' }}元</span></span>
276
+                                            <span>基金支付:<span style="color:red;">{{ items.curPrescriptions.order.fund_pay_sumamt?items.curPrescriptions.order.fund_pay_sumamt:''}}元</span></span>
277
+                                            <span>个人支付:<span style="color:red;">{{ items.curPrescriptions.order.psn_cash_pay?items.curPrescriptions.order.psn_cash_pay:''}}元</span></span>
277 278
 
278 279
                                             <span v-if="items.curPrescriptions.order_status  == 1">待结算</span>
279 280
                                             <span v-if="items.curPrescriptions.order_status  == 2">已结算</span>
@@ -284,8 +285,8 @@
284 285
 
285 286
                                 </div>
286 287
                                 <div class="centerRight">
287
-                                    <p class="centerRightTitle" style="padding-top: 10px;">就诊信息</p>
288
-                                    <div>
288
+                                    <p class="centerRightTitle" style="padding-top: 10px;" v-if="org_id != 9504 || org_id != 10028 || org_id != 10138">就诊信息</p>
289
+                                    <div v-if="org_id != 9504 || org_id != 10028 || org_id != 10138">
289 290
                                         <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
290 291
 
291 292
                                             <!--<el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">-->
@@ -356,7 +357,7 @@
356 357
                                     <ul class="basicUl">
357 358
                                         <li style="width:50%;">医生:{{ info.doctor }}</li>
358 359
                                         <li style="width:50%;">科室:{{ info.departments }}</li>
359
-                                        <li style="width:100%;">总费用:{{ getTotal() }}</li>
360
+                                        <!--<li style="width:100%;">总费用:{{ getTotal() }}</li>-->
360 361
 
361 362
                                         <li style="width:100%;">判断结果:{{info.diagnosis}}</li>
362 363
                                         <li style="width:100%;">是否有传染病:</li>
@@ -515,10 +516,23 @@
515 516
 
516 517
                                 </div>
517 518
                                 <div class="centerRight">
518
-                                    <p class="centerRightTitle" style="padding-top: 10px;">就诊信息</p>
519
-                                    <div>
519
+                                    <p class="centerRightTitle" style="padding-top: 10px;" v-if="org_id != 0 || org_id != 9504 || org_id != 10028 || org_id != 10138">就诊信息</p>
520
+                                    <div v-if="org_id != 0 || org_id != 9504 || org_id != 10028 || org_id != 10138">
520 521
                                         <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
521 522
 
523
+                                            <!--<el-form-item label="处方类型:" prop="p_type" :validate-event="is_Name">-->
524
+                                            <!--<el-select style="margin-right:5px;width:100px;" v-model="form.p_type"-->
525
+                                            <!--placeholder=""-->
526
+                                            <!--&gt;-->
527
+                                            <!--<el-option-->
528
+                                            <!--v-for="(item,index) in register"-->
529
+                                            <!--:key="index"-->
530
+                                            <!--:label="item.label"-->
531
+                                            <!--:value="item.value">-->
532
+                                            <!--</el-option>-->
533
+                                            <!--</el-select>-->
534
+                                            <!--</el-form-item>-->
535
+
522 536
                                             <el-form-item label="大病类别:" prop="sick_type" :validate-event="is_Name">
523 537
                                                 <el-select style="margin-right:5px;width:100px;"
524 538
                                                            v-model="form.sick_type" placeholder="">
@@ -1150,7 +1164,6 @@
1150 1164
       },
1151 1165
       confirm(forms) {
1152 1166
 
1153
-
1154 1167
         forms['record_time'] = this.record_date
1155 1168
         forms['admin_user_id'] = this.$store.getters.xt_user.user.id
1156 1169
         forms['org_id'] = this.$store.getters.xt_user.org_id
@@ -1649,19 +1662,19 @@
1649 1662
 
1650 1663
                 if (response.data.data.list[i].his_patient.length > 1) {
1651 1664
                   for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1652
-                    if(response.data.data.list[i].his_patient[b].orders.length  == 0){
1665
+                    if (response.data.data.list[i].his_patient[b].orders.length == 0) {
1653 1666
                       let obj = {
1654 1667
                         id: response.data.data.list[i].id,
1655 1668
                         name: response.data.data.list[i].name,
1656 1669
                         number: response.data.data.list[i].his_patient[b].number,
1657 1670
                         order_status: 1,
1658 1671
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
1659
-                        order_number: "",
1672
+                        order_number: '',
1660 1673
                         order_id: 0,
1661 1674
                         prescription: response.data.data.list[i].prescription
1662 1675
                       }
1663 1676
                       this.all_table_data.push(obj)
1664
-                    }else{
1677
+                    } else {
1665 1678
 
1666 1679
                       for (let c = 0; c < response.data.data.list[i].his_patient[b].orders.length; c++) {
1667 1680
                         let obj = {
@@ -1678,7 +1691,6 @@
1678 1691
                         this.all_table_data.push(obj)
1679 1692
                       }
1680 1693
 
1681
-
1682 1694
                     }
1683 1695
 
1684 1696
                   }
@@ -1696,35 +1708,30 @@
1696 1708
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
1697 1709
                 if (this.all_table_data[i].order_status != 2) {
1698 1710
                   isHasUnCharge = true
1699
-                }else {
1700
-                  if(this.all_table_data[i].his_patient_id > 0){
1701
-                    if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
1711
+                } else {
1712
+                  if (this.all_table_data[i].his_patient_id > 0) {
1713
+                    if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
1702 1714
                       isHasUnCharge = true
1703 1715
                     }
1704 1716
                   }
1705 1717
 
1706 1718
                 }
1707 1719
               }
1708
-              if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
1720
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
1709 1721
                 isHasUnCharge = true
1710 1722
 
1711 1723
               }
1712 1724
 
1713
-
1714
-
1715 1725
               if (isHasUnCharge) {
1716 1726
                 unChargePatient.push(this.all_table_data[i])
1717 1727
               }
1718 1728
 
1719 1729
             }
1720 1730
 
1721
-
1722
-
1723 1731
             unChargePatient = this.unique_four(unChargePatient)
1724 1732
 
1725 1733
             one_count = one_count + unChargePatient.length
1726 1734
 
1727
-
1728 1735
             let ChargePatient = []
1729 1736
             for (let i = 0; i < this.all_table_data.length; i++) {
1730 1737
               if (this.all_table_data[i].order_status == 2) {
@@ -1748,9 +1755,9 @@
1748 1755
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
1749 1756
                     if (this.all_table_data[i].order_status != 2) {
1750 1757
                       isHasUnCharge = true
1751
-                    }else {
1752
-                      if(this.all_table_data[i].his_patient_id > 0){
1753
-                        if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
1758
+                    } else {
1759
+                      if (this.all_table_data[i].his_patient_id > 0) {
1760
+                        if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
1754 1761
                           isHasUnCharge = true
1755 1762
                         }
1756 1763
                       }
@@ -1758,7 +1765,7 @@
1758 1765
                     }
1759 1766
 
1760 1767
                   }
1761
-                  if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
1768
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
1762 1769
                     isHasUnCharge = true
1763 1770
 
1764 1771
                   }
@@ -1784,7 +1791,6 @@
1784 1791
                 break
1785 1792
             }
1786 1793
 
1787
-
1788 1794
             this.cal_one = one_count
1789 1795
             this.cal_two = two_count
1790 1796
             this.cal_three = three_count
@@ -1874,19 +1880,19 @@
1874 1880
 
1875 1881
                 if (response.data.data.list[i].his_patient.length > 1) {
1876 1882
                   for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
1877
-                    if(response.data.data.list[i].his_patient[b].orders.length  == 0){
1883
+                    if (response.data.data.list[i].his_patient[b].orders.length == 0) {
1878 1884
                       let obj = {
1879 1885
                         id: response.data.data.list[i].id,
1880 1886
                         name: response.data.data.list[i].name,
1881 1887
                         number: response.data.data.list[i].his_patient[b].number,
1882 1888
                         order_status: 1,
1883 1889
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
1884
-                        order_number: "",
1890
+                        order_number: '',
1885 1891
                         order_id: 0,
1886 1892
                         prescription: response.data.data.list[i].prescription
1887 1893
                       }
1888 1894
                       this.all_table_data.push(obj)
1889
-                    }else{
1895
+                    } else {
1890 1896
 
1891 1897
                       for (let c = 0; c < response.data.data.list[i].his_patient[b].orders.length; c++) {
1892 1898
                         let obj = {
@@ -1903,7 +1909,6 @@
1903 1909
                         this.all_table_data.push(obj)
1904 1910
                       }
1905 1911
 
1906
-
1907 1912
                     }
1908 1913
 
1909 1914
                   }
@@ -1921,35 +1926,30 @@
1921 1926
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
1922 1927
                 if (this.all_table_data[i].order_status != 2) {
1923 1928
                   isHasUnCharge = true
1924
-                }else {
1925
-                  if(this.all_table_data[i].his_patient_id > 0){
1926
-                    if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
1929
+                } else {
1930
+                  if (this.all_table_data[i].his_patient_id > 0) {
1931
+                    if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
1927 1932
                       isHasUnCharge = true
1928 1933
                     }
1929 1934
                   }
1930 1935
 
1931 1936
                 }
1932 1937
               }
1933
-              if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
1938
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
1934 1939
                 isHasUnCharge = true
1935 1940
 
1936 1941
               }
1937 1942
 
1938
-
1939
-
1940 1943
               if (isHasUnCharge) {
1941 1944
                 unChargePatient.push(this.all_table_data[i])
1942 1945
               }
1943 1946
 
1944 1947
             }
1945 1948
 
1946
-
1947
-
1948 1949
             unChargePatient = this.unique_four(unChargePatient)
1949 1950
 
1950 1951
             one_count = one_count + unChargePatient.length
1951 1952
 
1952
-
1953 1953
             let ChargePatient = []
1954 1954
             for (let i = 0; i < this.all_table_data.length; i++) {
1955 1955
               if (this.all_table_data[i].order_status == 2) {
@@ -1973,9 +1973,9 @@
1973 1973
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
1974 1974
                     if (this.all_table_data[i].order_status != 2) {
1975 1975
                       isHasUnCharge = true
1976
-                    }else {
1977
-                      if(this.all_table_data[i].his_patient_id > 0){
1978
-                        if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
1976
+                    } else {
1977
+                      if (this.all_table_data[i].his_patient_id > 0) {
1978
+                        if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
1979 1979
                           isHasUnCharge = true
1980 1980
                         }
1981 1981
                       }
@@ -1983,7 +1983,7 @@
1983 1983
                     }
1984 1984
 
1985 1985
                   }
1986
-                  if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
1986
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
1987 1987
                     isHasUnCharge = true
1988 1988
 
1989 1989
                   }
@@ -2009,7 +2009,6 @@
2009 2009
                 break
2010 2010
             }
2011 2011
 
2012
-
2013 2012
             this.cal_one = one_count
2014 2013
             this.cal_two = two_count
2015 2014
             this.cal_three = three_count
@@ -2260,7 +2259,7 @@
2260 2259
           }
2261 2260
 
2262 2261
           if (month_prescriptions[i].addition != null) {
2263
-            for (let b = 0; b <month_prescriptions[i].addition.length; b++) {
2262
+            for (let b = 0; b < month_prescriptions[i].addition.length; b++) {
2264 2263
               total = parseFloat(total) + parseFloat(month_prescriptions[i].addition[a].price * month_prescriptions[i].addition[b].count)
2265 2264
             }
2266 2265
           }
@@ -2273,7 +2272,7 @@
2273 2272
           return false
2274 2273
         }
2275 2274
       },
2276
-      open(index, med_type, order,prescriptions) {
2275
+      open(index, med_type, order, prescriptions) {
2277 2276
 
2278 2277
         if (index == 1) {
2279 2278
 
@@ -2347,8 +2346,6 @@
2347 2346
           //   }
2348 2347
           // }
2349 2348
 
2350
-
2351
-
2352 2349
           if (this.activeName == 'first') {
2353 2350
 
2354 2351
             this.$refs.charge.show(this.getTotalFour(prescriptions), this.currentOrder)
@@ -2487,6 +2484,20 @@
2487 2484
 
2488 2485
         } else if (index == 8) {
2489 2486
 
2487
+          if (this.$store.getters.xt_user.org_id != 10028 || this.$store.getters.xt_user.org_id != 9504 || this.$store.getters.xt_user.org_id != 10138) {
2488
+            if (this.form.diagnosis.length || this.form.diagnosis == 0) {
2489
+              that.$message.error('诊断不能为空,请选择诊断内容')
2490
+              return
2491
+            }
2492
+
2493
+            if (this.form.sick_type.length || this.form.sick_type == 0) {
2494
+
2495
+              that.$message.error('疾病类型不能为空,请选择疾病类型')
2496
+              return
2497
+            }
2498
+
2499
+          }
2500
+
2490 2501
           var that = this
2491 2502
           let form = {}
2492 2503
           form['id'] = this.patientInfo.id
@@ -2507,7 +2518,7 @@
2507 2518
             form['settle_accounts_type'] = 2
2508 2519
           }
2509 2520
 
2510
-          if (that.$store.getters.xt_user.org_id == 0) {
2521
+          if (that.$store.getters.xt_user.org_id == 12) {
2511 2522
 
2512 2523
             this.$confirm('是否进行预结算', '预结算', {
2513 2524
               confirmButtonText: '确 定',
@@ -2957,19 +2968,19 @@
2957 2968
 
2958 2969
                 if (response.data.data.list[i].his_patient.length > 1) {
2959 2970
                   for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
2960
-                    if(response.data.data.list[i].his_patient[b].orders.length  == 0){
2971
+                    if (response.data.data.list[i].his_patient[b].orders.length == 0) {
2961 2972
                       let obj = {
2962 2973
                         id: response.data.data.list[i].id,
2963 2974
                         name: response.data.data.list[i].name,
2964 2975
                         number: response.data.data.list[i].his_patient[b].number,
2965 2976
                         order_status: 1,
2966 2977
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
2967
-                        order_number: "",
2978
+                        order_number: '',
2968 2979
                         order_id: 0,
2969 2980
                         prescription: response.data.data.list[i].prescription
2970 2981
                       }
2971 2982
                       this.all_table_data.push(obj)
2972
-                    }else{
2983
+                    } else {
2973 2984
 
2974 2985
                       for (let c = 0; c < response.data.data.list[i].his_patient[b].orders.length; c++) {
2975 2986
                         let obj = {
@@ -2986,7 +2997,6 @@
2986 2997
                         this.all_table_data.push(obj)
2987 2998
                       }
2988 2999
 
2989
-
2990 3000
                     }
2991 3001
 
2992 3002
                   }
@@ -3004,35 +3014,30 @@
3004 3014
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3005 3015
                 if (this.all_table_data[i].order_status != 2) {
3006 3016
                   isHasUnCharge = true
3007
-                }else {
3008
-                  if(this.all_table_data[i].his_patient_id > 0){
3009
-                    if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
3017
+                } else {
3018
+                  if (this.all_table_data[i].his_patient_id > 0) {
3019
+                    if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
3010 3020
                       isHasUnCharge = true
3011 3021
                     }
3012 3022
                   }
3013 3023
 
3014 3024
                 }
3015 3025
               }
3016
-              if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
3026
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
3017 3027
                 isHasUnCharge = true
3018 3028
 
3019 3029
               }
3020 3030
 
3021
-
3022
-
3023 3031
               if (isHasUnCharge) {
3024 3032
                 unChargePatient.push(this.all_table_data[i])
3025 3033
               }
3026 3034
 
3027 3035
             }
3028 3036
 
3029
-
3030
-
3031 3037
             unChargePatient = this.unique_four(unChargePatient)
3032 3038
 
3033 3039
             one_count = one_count + unChargePatient.length
3034 3040
 
3035
-
3036 3041
             let ChargePatient = []
3037 3042
             for (let i = 0; i < this.all_table_data.length; i++) {
3038 3043
               if (this.all_table_data[i].order_status == 2) {
@@ -3056,9 +3061,9 @@
3056 3061
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3057 3062
                     if (this.all_table_data[i].order_status != 2) {
3058 3063
                       isHasUnCharge = true
3059
-                    }else {
3060
-                      if(this.all_table_data[i].his_patient_id > 0){
3061
-                        if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
3064
+                    } else {
3065
+                      if (this.all_table_data[i].his_patient_id > 0) {
3066
+                        if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
3062 3067
                           isHasUnCharge = true
3063 3068
                         }
3064 3069
                       }
@@ -3066,7 +3071,7 @@
3066 3071
                     }
3067 3072
 
3068 3073
                   }
3069
-                  if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
3074
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
3070 3075
                     isHasUnCharge = true
3071 3076
 
3072 3077
                   }
@@ -3092,7 +3097,6 @@
3092 3097
                 break
3093 3098
             }
3094 3099
 
3095
-
3096 3100
             this.cal_one = one_count
3097 3101
             this.cal_two = two_count
3098 3102
             this.cal_three = three_count
@@ -3179,19 +3183,19 @@
3179 3183
 
3180 3184
                 if (response.data.data.list[i].his_patient.length > 1) {
3181 3185
                   for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
3182
-                    if(response.data.data.list[i].his_patient[b].orders.length  == 0){
3186
+                    if (response.data.data.list[i].his_patient[b].orders.length == 0) {
3183 3187
                       let obj = {
3184 3188
                         id: response.data.data.list[i].id,
3185 3189
                         name: response.data.data.list[i].name,
3186 3190
                         number: response.data.data.list[i].his_patient[b].number,
3187 3191
                         order_status: 1,
3188 3192
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
3189
-                        order_number: "",
3193
+                        order_number: '',
3190 3194
                         order_id: 0,
3191 3195
                         prescription: response.data.data.list[i].prescription
3192 3196
                       }
3193 3197
                       this.all_table_data.push(obj)
3194
-                    }else{
3198
+                    } else {
3195 3199
 
3196 3200
                       for (let c = 0; c < response.data.data.list[i].his_patient[b].orders.length; c++) {
3197 3201
                         let obj = {
@@ -3208,7 +3212,6 @@
3208 3212
                         this.all_table_data.push(obj)
3209 3213
                       }
3210 3214
 
3211
-
3212 3215
                     }
3213 3216
 
3214 3217
                   }
@@ -3226,35 +3229,30 @@
3226 3229
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3227 3230
                 if (this.all_table_data[i].order_status != 2) {
3228 3231
                   isHasUnCharge = true
3229
-                }else {
3230
-                  if(this.all_table_data[i].his_patient_id > 0){
3231
-                    if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
3232
+                } else {
3233
+                  if (this.all_table_data[i].his_patient_id > 0) {
3234
+                    if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
3232 3235
                       isHasUnCharge = true
3233 3236
                     }
3234 3237
                   }
3235 3238
 
3236 3239
                 }
3237 3240
               }
3238
-              if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
3241
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
3239 3242
                 isHasUnCharge = true
3240 3243
 
3241 3244
               }
3242 3245
 
3243
-
3244
-
3245 3246
               if (isHasUnCharge) {
3246 3247
                 unChargePatient.push(this.all_table_data[i])
3247 3248
               }
3248 3249
 
3249 3250
             }
3250 3251
 
3251
-
3252
-
3253 3252
             unChargePatient = this.unique_four(unChargePatient)
3254 3253
 
3255 3254
             one_count = one_count + unChargePatient.length
3256 3255
 
3257
-
3258 3256
             let ChargePatient = []
3259 3257
             for (let i = 0; i < this.all_table_data.length; i++) {
3260 3258
               if (this.all_table_data[i].order_status == 2) {
@@ -3278,9 +3276,9 @@
3278 3276
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3279 3277
                     if (this.all_table_data[i].order_status != 2) {
3280 3278
                       isHasUnCharge = true
3281
-                    }else {
3282
-                      if(this.all_table_data[i].his_patient_id > 0){
3283
-                        if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
3279
+                    } else {
3280
+                      if (this.all_table_data[i].his_patient_id > 0) {
3281
+                        if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
3284 3282
                           isHasUnCharge = true
3285 3283
                         }
3286 3284
                       }
@@ -3288,7 +3286,7 @@
3288 3286
                     }
3289 3287
 
3290 3288
                   }
3291
-                  if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
3289
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
3292 3290
                     isHasUnCharge = true
3293 3291
 
3294 3292
                   }
@@ -3314,8 +3312,6 @@
3314 3312
                 break
3315 3313
             }
3316 3314
 
3317
-
3318
-
3319 3315
             this.cal_one = one_count
3320 3316
             this.cal_two = two_count
3321 3317
             this.cal_three = one_count + two_count
@@ -3407,19 +3403,19 @@
3407 3403
 
3408 3404
                 if (response.data.data.list[i].his_patient.length > 1) {
3409 3405
                   for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
3410
-                    if(response.data.data.list[i].his_patient[b].orders.length  == 0){
3406
+                    if (response.data.data.list[i].his_patient[b].orders.length == 0) {
3411 3407
                       let obj = {
3412 3408
                         id: response.data.data.list[i].id,
3413 3409
                         name: response.data.data.list[i].name,
3414 3410
                         number: response.data.data.list[i].his_patient[b].number,
3415 3411
                         order_status: 1,
3416 3412
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
3417
-                        order_number: "",
3413
+                        order_number: '',
3418 3414
                         order_id: 0,
3419 3415
                         prescription: response.data.data.list[i].prescription
3420 3416
                       }
3421 3417
                       this.all_table_data.push(obj)
3422
-                    }else{
3418
+                    } else {
3423 3419
 
3424 3420
                       for (let c = 0; c < response.data.data.list[i].his_patient[b].orders.length; c++) {
3425 3421
                         let obj = {
@@ -3436,7 +3432,6 @@
3436 3432
                         this.all_table_data.push(obj)
3437 3433
                       }
3438 3434
 
3439
-
3440 3435
                     }
3441 3436
 
3442 3437
                   }
@@ -3454,35 +3449,30 @@
3454 3449
               for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3455 3450
                 if (this.all_table_data[i].order_status != 2) {
3456 3451
                   isHasUnCharge = true
3457
-                }else {
3458
-                  if(this.all_table_data[i].his_patient_id > 0){
3459
-                    if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
3452
+                } else {
3453
+                  if (this.all_table_data[i].his_patient_id > 0) {
3454
+                    if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
3460 3455
                       isHasUnCharge = true
3461 3456
                     }
3462 3457
                   }
3463 3458
 
3464 3459
                 }
3465 3460
               }
3466
-              if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
3461
+              if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
3467 3462
                 isHasUnCharge = true
3468 3463
 
3469 3464
               }
3470 3465
 
3471
-
3472
-
3473 3466
               if (isHasUnCharge) {
3474 3467
                 unChargePatient.push(this.all_table_data[i])
3475 3468
               }
3476 3469
 
3477 3470
             }
3478 3471
 
3479
-
3480
-
3481 3472
             unChargePatient = this.unique_four(unChargePatient)
3482 3473
 
3483 3474
             one_count = one_count + unChargePatient.length
3484 3475
 
3485
-
3486 3476
             let ChargePatient = []
3487 3477
             for (let i = 0; i < this.all_table_data.length; i++) {
3488 3478
               if (this.all_table_data[i].order_status == 2) {
@@ -3506,9 +3496,9 @@
3506 3496
                   for (let b = 0; b < this.all_table_data[i].prescription.length; b++) {
3507 3497
                     if (this.all_table_data[i].order_status != 2) {
3508 3498
                       isHasUnCharge = true
3509
-                    }else {
3510
-                      if(this.all_table_data[i].his_patient_id > 0){
3511
-                        if(this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id){
3499
+                    } else {
3500
+                      if (this.all_table_data[i].his_patient_id > 0) {
3501
+                        if (this.all_table_data[i].his_patient_id == this.all_table_data[i].prescription[0].his_patient_id) {
3512 3502
                           isHasUnCharge = true
3513 3503
                         }
3514 3504
                       }
@@ -3516,7 +3506,7 @@
3516 3506
                     }
3517 3507
 
3518 3508
                   }
3519
-                  if(this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2){
3509
+                  if (this.all_table_data[i].his_patient_id > 0 && this.all_table_data[i].order_status != 2) {
3520 3510
                     isHasUnCharge = true
3521 3511
 
3522 3512
                   }
@@ -3639,8 +3629,6 @@
3639 3629
 
3640 3630
         }
3641 3631
 
3642
-
3643
-
3644 3632
         //
3645 3633
         //
3646 3634
         for (let y = 0; y < big_prescriptions.length; y++) {
@@ -3767,8 +3755,6 @@
3767 3755
           this.big_month_prescriptions[i]['month_total'] = this.getMonthTotalTwo(this.big_month_prescriptions[i].month_prescriptions[0])
3768 3756
         }
3769 3757
 
3770
-
3771
-
3772 3758
       }, getPName(med_type, index) {
3773 3759
         var med_type = parseInt(med_type)
3774 3760
         switch (med_type) {
@@ -3913,7 +3899,6 @@
3913 3899
 
3914 3900
             if (this.info.id > 0) {
3915 3901
 
3916
-
3917 3902
               this.form.p_type = response.data.data.info.register_type
3918 3903
               this.form.sick_type = response.data.data.info.sick_type
3919 3904
               this.form.diagnosis = response.data.data.info.diagnosis
@@ -4061,9 +4046,6 @@
4061 4046
 
4062 4047
             console.log(this.big_prescriptions)
4063 4048
 
4064
-
4065
-
4066
-
4067 4049
             //
4068 4050
             // if (this.prescriptions.length > 0) {
4069 4051
             //   this.curPrescriptions = this.prescriptions[0]
@@ -4076,9 +4058,6 @@
4076 4058
             //   this.curMonthPrescriptions = {}
4077 4059
             // }
4078 4060
 
4079
-
4080
-
4081
-
4082 4061
             // this.month_total = this.getMonthTotalOne()
4083 4062
 
4084 4063
           }

+ 10 - 10
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Ver arquivo

@@ -23,16 +23,16 @@
23 23
                     <el-form-item label="证件号: " prop="name" label-position="right">
24 24
                         <el-input v-model="patientInfo.id_card_no" placeholder="" readonly></el-input>
25 25
                     </el-form-item>
26
-                    <el-form-item label="处方类型: " prop="name" label-position="right">
27
-                        <el-select style="width:100%;" v-model="register_type" placeholder="">
28
-                            <el-option
29
-                                    v-for="(item,index) in register"
30
-                                    :key="index"
31
-                                    :label="item.label"
32
-                                    :value="item.value">
33
-                            </el-option>
34
-                        </el-select>
35
-                    </el-form-item>
26
+                    <!--<el-form-item label="处方类型: " prop="name" label-position="right">-->
27
+                        <!--<el-select style="width:100%;" v-model="register_type" placeholder="">-->
28
+                            <!--<el-option-->
29
+                                    <!--v-for="(item,index) in register"-->
30
+                                    <!--:key="index"-->
31
+                                    <!--:label="item.label"-->
32
+                                    <!--:value="item.value">-->
33
+                            <!--</el-option>-->
34
+                        <!--</el-select>-->
35
+                    <!--</el-form-item>-->
36 36
                     <el-form-item label="疾病类型:" prop="name" label-position="right">
37 37
 
38 38
                         <el-select  filterable style="width:100%;" v-model="state1" placeholder="">