소스 검색

新分支

28169 10 달 전
부모
커밋
56e9abcde5

+ 1 - 1
src/xt_pages/data/components/addDrugs.vue 파일 보기

@@ -404,7 +404,7 @@
404 404
                                 <el-checkbox label="注射类">注射类</el-checkbox>
405 405
                             </el-checkbox-group>
406 406
                         </el-form-item>
407
-                        <el-form-item label="限制说明 : " prop="limit_remark" style="width:100%;">
407
+                        <el-form-item label="药品追溯码 : " prop="limit_remark" style="width:100%;">
408 408
                             <el-input type="form.restrictions" :rows="2" placeholder="请输入内容"
409 409
                                       v-model="form.limit_remark"></el-input>
410 410
                         </el-form-item>

+ 1 - 1
src/xt_pages/data/components/drugs.vue 파일 보기

@@ -319,7 +319,7 @@
319 319
           is_record: '',//是否备案
320 320
           agent: '',// 代理商
321 321
           drug_status: '',// 状态
322
-          limit_remark: '',//限制说明
322
+          limit_remark: '',//药品追溯码
323 323
           delivery_way: '',//默认给药途径
324 324
           execution_frequency: '',//默认执行频率
325 325
           single_dose: '',//默认单次用量

+ 6 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 파일 보기

@@ -1476,7 +1476,12 @@
1476 1476
                         </div>
1477 1477
                       </div>
1478 1478
 
1479
-                      
1479
+                      <div  class="row" style="padding: 2px 0; line-height: 23px; display: flex" v-if="org_id == 0|| org_id ==10598">
1480
+                        在线Kt/V监测:
1481
+                        <div class="under_line" style="width: 30px; text-align: center">
1482
+                           <check-box :checked="true"></check-box>
1483
+                         </div>
1484
+                      </div>
1480 1485
                       <div
1481 1486
                         class="row"
1482 1487
                         style="padding: 2px 0; line-height: 23px; display: flex"

+ 8 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 파일 보기

@@ -2779,6 +2779,14 @@ mu
2779 2779
             } else if (schedual.schedule_type == 3) {
2780 2780
               this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2781 2781
             }
2782
+           }else if(this.$store.getters.xt_user.org.id == 10693){
2783
+              if (schedual.schedule_type == 1) {
2784
+              this.start_time = year + '-' + month + '-' + day + ' ' + '6:40'
2785
+            } else if (schedual.schedule_type == 2) {
2786
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2787
+            } else if (schedual.schedule_type == 3) {
2788
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
2789
+            }
2782 2790
            }else if (this.$store.getters.xt_user.org.id == 10551){
2783 2791
             var date = new Date()
2784 2792
             var year = date.getFullYear()

+ 1 - 1
src/xt_pages/dialysis/details/index.vue 파일 보기

@@ -277,7 +277,7 @@
277 277
               <div class="signPrint" style="width: 360px;font-size:16px;">
278 278
                 <div  style="margin-left:50px;">姓名:
279 279
                   <span>{{main_collection.patient.name}} </span>
280
-                  ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)  }}岁)
280
+                  ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)  }}岁<span v-if="main_collection.patient.height>0">,{{ main_collection.patient.height }}cm</span>
281 281
                 </div>
282 282
                 <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
283 283
                   <div style="">透析模式:

+ 8 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 파일 보기

@@ -1525,6 +1525,8 @@
1525 1525
                       </div>
1526 1526
                     </div>
1527 1527
 
1528
+                  
1529
+
1528 1530
                     <div class="inline_block" style="margin-left: 20px" v-if="org_id ==10683">
1529 1531
                       上机时间:
1530 1532
                       <div
@@ -1535,6 +1537,12 @@
1535 1537
                       </div>
1536 1538
                     </div>
1537 1539
                   </div>
1540
+                  <div class="row" style="padding: 2px 0; line-height: 23px" v-if=" org_id == 0  || org_id == 10598">
1541
+                    在线Kt/V监测:
1542
+                    <div class="under_line" style="width: 30px; text-align: center">
1543
+                      <check-box :checked="true"></check-box>
1544
+                    </div>
1545
+                  </div>
1538 1546
 
1539 1547
                   <div class="row" style="padding: 2px 0; line-height: 23px" v-if=" org_id == 3877  || org_id == 9671">
1540 1548
                     <div

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 파일 보기

@@ -374,7 +374,7 @@
374 374
 
375 375
                 <div style="margin-left:50px;">姓名:
376 376
                   <span>{{ main_collection.patient.name }} </span>
377
-                  ({{ main_collection.patient.dialysis_no }},{{ getNewAge(main_collection.patient.id_card_no) }}岁)
377
+                  ({{ main_collection.patient.dialysis_no }},{{ getNewAge(main_collection.patient.id_card_no) }}岁<span v-if="main_collection.patient.height>0">,{{ main_collection.patient.height }}cm</span>
378 378
                 </div>
379 379
                 <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
380 380
                   <div style="">透析模式:

+ 145 - 25
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue 파일 보기

@@ -1812,32 +1812,62 @@
1812 1812
                 //药品
1813 1813
                 for (let b = 0; b < prescription.advices.length; b++) {
1814 1814
                   console.log("prescription.advices[b].drug.drug_status.startsWith('停用')",prescription.advices[b].drug.drug_status.startsWith('停用'))
1815
-                  if(prescription.advices[b].drug!=null && prescription.advices[b].drug.drug_status.startsWith('停用')  == false){
1816
-                    let obj = {
1817
-                    advice_id: prescription.advices[b].id,
1818
-                    drug_name: prescription.advices[b].advice_name,
1819
-                    single_dose: prescription.advices[b].single_dose,
1820
-                    delivery_way: prescription.advices[b].delivery_way,
1821
-                    execution_frequency: prescription.advices[b].execution_frequency,
1822
-                    retail_price: prescription.advices[b].price.toString(),
1823
-                    remark: prescription.advices[b].remark,
1824
-                    day: prescription.advices[b].day,
1825
-                    prescribing_number: prescription.advices[b].prescribing_number.toString(),
1826
-                    single_dose_unit: prescription.advices[b].single_dose_unit,
1827
-                    prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1828
-                    medical_insurance_number: prescription.advices[b].med_list_codg,
1829
-                    id: prescription.advices[b].drug_id,
1830
-                    drug: prescription.advices[b].drug,
1831
-                    groupno: prescription.advices[b].groupno,
1832
-                    frequency_type: prescription.advices[b].frequency_type,
1833
-                    day_count: prescription.advices[b].day_count,
1834
-                    week_day: prescription.advices[b].week_day,
1835
-                    number:  prescription.advices[b].drug.number
1815
+                  //孝感原生堂做特殊处理
1816
+                  if(this.org_id != 0 && this.org_id!=10598){
1817
+                      if(prescription.advices[b].drug!=null && prescription.advices[b].drug.drug_status.startsWith('停用')  == false){
1818
+                      let obj = {
1819
+                      advice_id: prescription.advices[b].id,
1820
+                      drug_name: prescription.advices[b].advice_name,
1821
+                      single_dose: prescription.advices[b].single_dose,
1822
+                      delivery_way: prescription.advices[b].delivery_way,
1823
+                      execution_frequency: prescription.advices[b].execution_frequency,
1824
+                      retail_price: prescription.advices[b].price.toString(),
1825
+                      remark: prescription.advices[b].remark,
1826
+                      day: prescription.advices[b].day,
1827
+                      prescribing_number: prescription.advices[b].prescribing_number.toString(),
1828
+                      single_dose_unit: prescription.advices[b].single_dose_unit,
1829
+                      prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1830
+                      medical_insurance_number: prescription.advices[b].med_list_codg,
1831
+                      id: prescription.advices[b].drug_id,
1832
+                      drug: prescription.advices[b].drug,
1833
+                      groupno: prescription.advices[b].groupno,
1834
+                      frequency_type: prescription.advices[b].frequency_type,
1835
+                      day_count: prescription.advices[b].day_count,
1836
+                      week_day: prescription.advices[b].week_day,
1837
+                      number:  prescription.advices[b].drug.number
1836 1838
 
1837
-                  }
1838
-                  tempAdvice.push(obj)
1839
+                    }
1840
+                    tempAdvice.push(obj)
1839 1841
                   }
1840 1842
 
1843
+                  }else{
1844
+                    if(prescription.advices[b].drug!=null){
1845
+                      let obj = {
1846
+                      advice_id: prescription.advices[b].id,
1847
+                      drug_name: prescription.advices[b].advice_name,
1848
+                      single_dose: prescription.advices[b].single_dose,
1849
+                      delivery_way: prescription.advices[b].delivery_way,
1850
+                      execution_frequency: prescription.advices[b].execution_frequency,
1851
+                      retail_price: prescription.advices[b].price.toString(),
1852
+                      remark: prescription.advices[b].remark,
1853
+                      day: prescription.advices[b].day,
1854
+                      prescribing_number: prescription.advices[b].prescribing_number.toString(),
1855
+                      single_dose_unit: prescription.advices[b].single_dose_unit,
1856
+                      prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1857
+                      medical_insurance_number: prescription.advices[b].med_list_codg,
1858
+                      id: prescription.advices[b].drug_id,
1859
+                      drug: prescription.advices[b].drug,
1860
+                      groupno: prescription.advices[b].groupno,
1861
+                      frequency_type: prescription.advices[b].frequency_type,
1862
+                      day_count: prescription.advices[b].day_count,
1863
+                      week_day: prescription.advices[b].week_day,
1864
+                      number:  prescription.advices[b].drug.number
1865
+
1866
+                    }
1867
+                    tempAdvice.push(obj)
1868
+                  }
1869
+                  }
1870
+                
1841 1871
                 }
1842 1872
                 //项目
1843 1873
                 for (let b = 0; b < prescription.project.length; b++) {
@@ -1920,8 +1950,94 @@
1920 1950
                         }
1921 1951
                         tempProject.push(obj)
1922 1952
                     }
1923
-                  }else if(prescription.project[b].type == 3 && prescription.project[b].good_info.good_status.startsWith('停用') == false){
1924
-                    if (this.org_id == 10206 ) {
1953
+                    //针对孝感原生堂
1954
+                  }else if(prescription.project[b].type == 3){
1955
+
1956
+                    if(this.org_id!=0&&this.org_id!=10510 && prescription.project[b].good_info.good_status.startsWith('停用') == false){
1957
+
1958
+                      if (this.org_id == 10206 ) {
1959
+                      let obj = {
1960
+                        id: prescription.project[b].id,
1961
+                        project_id: prescription.project[b].project_id,
1962
+                        project_name: prescription.project[b].project.project_name,
1963
+                        statistical_classification: prescription.project[b].project.statistical_classification,
1964
+                        single_dose: prescription.project[b].single_dose,
1965
+                        delivery_way: prescription.project[b].delivery_way,
1966
+                        execution_frequency: prescription.project[b].execution_frequency,
1967
+                        number_days: prescription.project[b].day,
1968
+                        total: prescription.project[b].count.toString(),
1969
+                        price: prescription.project[b].price,
1970
+                        remark: prescription.project[b].remark,
1971
+                        medical_code: prescription.project[b].project.medical_code,
1972
+                        type: prescription.project[b].type,
1973
+                        frequency_type: prescription.project[b].frequency_type,
1974
+                        day_count: prescription.project[b].day_count,
1975
+                        week_day: prescription.project[b].week_day,
1976
+                        number_days:prescription.project[b].day
1977
+
1978
+
1979
+                      }
1980
+
1981
+                      if (prescription.project[b].type == 2) {
1982
+                        obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1983
+                        obj['medical_code'] = prescription.project[b].project.medical_code
1984
+                        obj['project_name'] = prescription.project[b].project.project_name
1985
+                        obj['project'] = prescription.project[b].project
1986
+                        obj['unit'] = prescription.project[b].unit
1987
+                        obj['number'] = ""
1988
+
1989
+
1990
+                      } else if (prescription.project[b].type == 3) {
1991
+                        obj['statistical_classification'] = ''
1992
+                        obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1993
+                        obj['project_name'] = prescription.project[b].good_info.good_name
1994
+                        obj['good_info'] = prescription.project[b].good_info
1995
+                        obj['unit'] = prescription.project[b].good_info.packing_unit
1996
+                        obj['number'] = prescription.project[b].good_info.good_number
1997
+
1998
+                      }
1999
+                      tempProject.push(obj)
2000
+                    }else{
2001
+                        let obj = {
2002
+                          id: prescription.project[b].id,
2003
+                          project_id: prescription.project[b].project_id,
2004
+                          project_name: prescription.project[b].project.project_name,
2005
+                          statistical_classification: prescription.project[b].project.statistical_classification,
2006
+                          single_dose: prescription.project[b].single_dose,
2007
+                          delivery_way: prescription.project[b].delivery_way,
2008
+                          execution_frequency: prescription.project[b].execution_frequency,
2009
+                          number_days: prescription.project[b].day,
2010
+                          total: prescription.project[b].count.toString(),
2011
+                          price: prescription.project[b].price,
2012
+                          remark: prescription.project[b].remark,
2013
+                          medical_code: prescription.project[b].project.medical_code,
2014
+                          type: prescription.project[b].type,
2015
+                          frequency_type: prescription.project[b].frequency_type,
2016
+                          day_count: prescription.project[b].day_count,
2017
+                          week_day: prescription.project[b].week_day,
2018
+                          number_days:prescription.project[b].day
2019
+
2020
+                        }
2021
+
2022
+                        if (prescription.project[b].type == 2) {
2023
+                          obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2024
+                          obj['medical_code'] = prescription.project[b].project.medical_code
2025
+                          obj['project_name'] = prescription.project[b].project.project_name
2026
+                          obj['project'] = prescription.project[b].project
2027
+                          obj['unit'] = prescription.project[b].unit
2028
+                        } else if (prescription.project[b].type == 3) {
2029
+                          obj['statistical_classification'] = ''
2030
+                          obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2031
+                          obj['project_name'] = prescription.project[b].good_info.good_name
2032
+                          obj['good_info'] = prescription.project[b].good_info
2033
+                          obj['unit'] = prescription.project[b].good_info.packing_unit
2034
+                        }
2035
+                        tempProject.push(obj)
2036
+                      }
2037
+
2038
+                    }else{
2039
+
2040
+                      if (this.org_id == 10206 ) {
1925 2041
                       let obj = {
1926 2042
                         id: prescription.project[b].id,
1927 2043
                         project_id: prescription.project[b].project_id,
@@ -2000,6 +2116,10 @@
2000 2116
                         }
2001 2117
                         tempProject.push(obj)
2002 2118
                       }
2119
+                    }
2120
+
2121
+
2122
+               
2003 2123
                   }
2004 2124
                 }
2005 2125
                 // var preTime = nowTime

+ 41 - 6
src/xt_pages/stock/drugs/drugStockOutOrder.vue 파일 보기

@@ -369,8 +369,8 @@
369 369
             <template slot-scope="scope">
370 370
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
371 371
                   <td style="border-right: none; border-inline-end: none;text-align: center">
372
-                    <span v-if="org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217  && org_id!=0 && org_id!=10088 && org_id!=10510">
373
-                      <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
372
+                    <span v-if="org_id!=10480 && org_id!=10210&&org_id!=10188 && org_id!=10217  && org_id!=10088 && org_id!=10510 && org_id!=10402">
373
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}} </span>
374 374
                     <span v-if="is_sys == 0">
375 375
                       <!-- <span v-if="scope.row.child.length == 1">{{item.count * item.retail_price}} </span> 
376 376
                       <span v-if="scope.row.child.length > 1">{{item.count * item.price}} </span>  -->
@@ -378,7 +378,7 @@
378 378
                     </span>
379 379
                     </span>
380 380
 
381
-                    <span v-if="org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217 || org_id==0 || org_id ==10088 || org_id ==10510">
381
+                    <span v-if="org_id ==10480 || org_id==10210 || org_id ==10188 || org_id ==10217 || org_id ==10088 || org_id ==10510 || org_id ==10402">
382 382
                       <!-- {{(item.count * item.price).toFixed(2)}} -->
383 383
                      <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{(getOutCountNightTen(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)*scope.row.min_price).toFixed(2)}}</span>  
384 384
                      <span v-if="is_sys==0">
@@ -1888,6 +1888,40 @@ export default {
1888 1888
         return "spanClass";
1889 1889
       }
1890 1890
     },
1891
+    getOutCountFive(warehouse_info_id,max_unit,min_unit,min_number,drug_id){
1892
+      var arr = []
1893
+      var total = 0
1894
+      var max_str = ""
1895
+      var min_str = ""
1896
+
1897
+      for(let j=0;j<this.outList.length;j++){
1898
+        if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
1899
+           arr.push(this.outList[j])
1900
+        }
1901
+      }
1902
+      if(arr.length > 0){
1903
+        for(let i=0;i<arr.length;i++){
1904
+           total +=arr[i].count
1905
+        }
1906
+      }
1907
+     
1908
+      if (total < min_number) {
1909
+         min_str = total;
1910
+      }
1911
+      if (total == 0) {
1912
+        min_str = "";
1913
+        max_str = "";
1914
+      }
1915
+      if (total >= min_number) {
1916
+        if (parseInt(total / min_number) != 0) {
1917
+          max_str = parseInt(total / min_number)
1918
+        }
1919
+        if (total % min_number != 0) {
1920
+          min_str = (total % min_number)
1921
+        }
1922
+      }
1923
+      return max_str + min_str;
1924
+    },
1891 1925
     getOutCountSix(warehouse_info_id,max_unit,min_unit,min_number,drug_id){
1892 1926
       var arr = []
1893 1927
       var total = 0
@@ -2083,7 +2117,7 @@ export default {
2083 2117
       }
2084 2118
       return price
2085 2119
     },
2086
-    getTotalPrice(warehouse_info_id,max_unit,min_unit,min_number){
2120
+    getTotalPrice(warehouse_info_id,max_unit,min_unit,min_number,drug_id){
2087 2121
       
2088 2122
       var arr = []
2089 2123
       var total = 0
@@ -2096,10 +2130,11 @@ export default {
2096 2130
            arr.push(this.tabList[j])
2097 2131
         }
2098 2132
       }
2099
-     
2133
+       total = this.getOutCountFive(warehouse_info_id,max_unit,min_unit,min_number,drug_id)
2134
+    
2135
+      console.log("taolaa------",total,drug_id)
2100 2136
       if(arr.length > 0){
2101 2137
         for(let i=0;i<arr.length;i++){
2102
-           total +=arr[i].count
2103 2138
            price = arr[0].price
2104 2139
         }
2105 2140
       }