XMLWAN 4 years ago
parent
commit
ba015752ad

+ 33 - 4
src/xt_pages/data/components/addDrugs.vue View File

@@ -146,14 +146,24 @@
146 146
               <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder="" maxlength="30"></el-input>
147 147
             </el-form-item>
148 148
             <el-form-item label="生产厂商 : " prop="manufacturer" >
149
-              <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
149
+              <!-- <el-select v-model="form.manufacturer" style="width:160px;" placeholder="请选择">
150 150
                 <el-option
151 151
                   v-for="item,index in manufacturers"
152 152
                   :key="index"
153 153
                   :label="item.manufacturer_name"
154 154
                   :value="item.id">
155 155
                 </el-option>
156
-              </el-select>
156
+              </el-select> -->
157
+
158
+            <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
159
+                  <el-option
160
+                    v-for="item in manufacturerList"
161
+                    :key="item.id"
162
+                    :label="item.manufacturer_name"
163
+                    :value="item.id">
164
+                  </el-option>
165
+            </el-select>
166
+
157 167
             </el-form-item>
158 168
             <el-form-item label="药理分类 : " prop="pharmacology_category">
159 169
               <el-select v-model="form.pharmacology_category" style="width:160px;" placeholder="请选择">
@@ -333,6 +343,7 @@
333 343
   import {
334 344
     getAdviceConfig,
335 345
   } from '@/api/advice'
346
+ import { getManufacturerList } from "@/api/stock";
336 347
   export default {
337 348
     data() {
338 349
       return {
@@ -422,7 +433,10 @@
422 433
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
423 434
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
424 435
           manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }]
425
-        }
436
+        },
437
+        page:1,
438
+        limit:500,
439
+        manufacturerList:[]
426 440
       }
427 441
     },
428 442
     props: {
@@ -440,7 +454,7 @@
440 454
         type: Number,
441 455
         default: 1
442 456
       }
443
-
457
+      
444 458
     },
445 459
     methods: {
446 460
       cancle: function(formName) {
@@ -574,11 +588,26 @@
574 588
 
575 589
         return form
576 590
       },
591
+      getlist(){
592
+         var params = {
593
+             page:this.page,
594
+             limit:this.limit
595
+          }
596
+          console.log("params2222222",params)
597
+        getManufacturerList(params).then(response=>{
598
+           var manufacturerList =   response.data.data.manufacturer
599
+           console.log("列表2222222",manufacturerList)
600
+           this.manufacturerList = manufacturerList
601
+        })
602
+      }
577 603
     }, watch: {
578 604
       visible(val) {
579 605
         // this.form = this.formValue
580 606
 
581 607
       }
608
+    },
609
+    created(){
610
+      this.getlist()
582 611
     }
583 612
   }
584 613
 </script>

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirty.vue View File

@@ -52,7 +52,10 @@
52 52
                             <td width="10"></td>
53 53
                             <td width="50">性 别:</td>
54 54
                             <td width="60">
55
-                                <div class="under-line">{{ record.patient.gender ? "男" : "女" }}</div>
55
+                                <div class="under-line">
56
+                                  <span v-if=" record.patient.gender == 1">男</span>
57
+                                  <span v-if=" record.patient.gender == 2">女</span>
58
+                                </div>
56 59
                             </td>
57 60
                             <td width="10"></td>
58 61
                             <td width="50">年 龄:</td>

+ 1 - 1
src/xt_pages/dialysis/components/allSummary.vue View File

@@ -239,7 +239,7 @@ export default {
239 239
           this.getlist()
240 240
           this.getAllMaterial()
241 241
         },
242
-           search(){
242
+          search(){
243 243
           //  if(this.selected_date==""){
244 244
           //     this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
245 245
           //   }

+ 5 - 1
src/xt_pages/dialysis/components/allSummaryDialog.vue View File

@@ -66,6 +66,7 @@
66 66
 const moment = require('moment')
67 67
 import { parseTime } from "@/utils";
68 68
 import {getGatherList} from "@/api/consumable"
69
+
69 70
 export default {
70 71
     data(){
71 72
         return{
@@ -83,7 +84,8 @@ export default {
83 84
             partitionType: 0,
84 85
             tableData: [],
85 86
             start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
86
-            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD")
87
+            end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
88
+            stockTotal:[]
87 89
         }
88 90
     },
89 91
     created(){
@@ -141,6 +143,8 @@ export default {
141 143
             }
142 144
           })
143 145
         }
146
+
147
+      
144 148
     }
145 149
 }
146 150
 </script>

+ 44 - 11
src/xt_pages/dialysis/components/consumablesDialog.vue View File

@@ -20,24 +20,24 @@
20 20
         placeholder="选择日期"
21 21
         @change="selectEndtime">
22 22
       </el-date-picker>
23
-      <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
23
+      <!-- <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button> -->
24 24
 
25 25
     </div>
26 26
     <div style="margin-top:10px;">
27 27
       <el-table :data="tableData" border style="width: 100%" height="300px">
28
-        <el-table-column align="center" prop="date" label="商品类型" width="180">
28
+        <el-table-column align="center" prop="date" label="耗材类型" width="180">
29 29
           <template slot-scope="scope">
30
-            {{scope.row.good_type_name}}
30
+            {{scope.row.good_name}}
31 31
           </template>
32 32
         </el-table-column>
33 33
         <el-table-column align="center" prop="name" label="规格名称" width="180">
34 34
           <template slot-scope="scope">
35
-            {{scope.row.good_name}}
35
+            {{scope.row.specification_name}}
36 36
           </template>
37 37
         </el-table-column>
38 38
         <el-table-column align="center" prop="address" label="数量">
39 39
           <template slot-scope="scope">
40
-            {{scope.row.count}}
40
+            {{getStockCount(scope.row.id)}}
41 41
           </template>
42 42
         </el-table-column>
43 43
       </el-table>
@@ -50,7 +50,7 @@
50 50
   const moment = require('moment')
51 51
   import { GetDialysisGoodStatistics } from '@/api/dialysis'
52 52
   import { parseTime } from '@/utils'
53
-
53
+  import { getPrintStockGood } from '@/api/stock'
54 54
   export default {
55 55
     props: {
56 56
       list: Array
@@ -62,7 +62,8 @@
62 62
           end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
63 63
         },
64 64
         visible: false,
65
-        startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
65
+        // startTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
66
+        startTime:moment().startOf('month').format("YYYY-MM-DD"),
66 67
         endTime: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
67 68
         schedulArr: [
68 69
           { value: 0, label: '全部班' },
@@ -76,7 +77,8 @@
76 77
         partitionType: 0,
77 78
         tableData: [],
78 79
         start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
79
-        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD')
80
+        end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
81
+        stockTotal:[]
80 82
       }
81 83
     },
82 84
     created() {
@@ -119,8 +121,8 @@
119 121
         done()
120 122
       },
121 123
       show() {
122
-        this.GetDialysisGoodStatistics()
123
-
124
+        // this.GetDialysisGoodStatistics()
125
+        this.getlist()
124 126
         this.visible = true
125 127
       },
126 128
 
@@ -136,9 +138,40 @@
136 138
         this.GetDialysisGoodStatistics()
137 139
 
138 140
       },
141
+       getlist(){
142
+          var params = {
143
+            start_time:this.startTime,
144
+            end_time:this.endTime,
145
+            type:3
146
+          }
147
+          console.log("param2222222",params)
148
+          getPrintStockGood(params).then(response=>{
149
+            var stockTotal = response.data.data.stockTotal
150
+            console.log("stocktOTl",stockTotal)
151
+            this.stockTotal = stockTotal
152
+            for (let i = 0; i < response.data.data.list.length; i++) {
153
+               if (response.data.data.list[i].query_warehouseout_info.length > 0) {
154
+                  this.tableData.push(response.data.data.list[i])
155
+               }
156
+             }
157
+             console.log("表哥22222222222",this.tableData) 
158
+          })
159
+       },
160
+
139 161
       toPrint() {
140 162
         this.$router.push('/dialysis/consumables_print?startime=' + this.start_time + '&endtime=' + this.end_time)
141
-      }
163
+      },
164
+      getStockCount(id){
165
+       
166
+       var count = ""
167
+       for(let i=0;i<this.stockTotal.length;i++){
168
+          if(id == this.stockTotal[i].good_id){
169
+             count = this.stockTotal[i].count
170
+          }
171
+       }
172
+       return count
173
+     }
174
+    
142 175
 
143 176
     }
144 177
   }

+ 15 - 18
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue View File

@@ -596,7 +596,7 @@
596 596
          } 
597 597
 
598 598
          if(str.indexOf('透析时长')!=-1 && this.prescription!=null){
599
-            arr.push("透析时长:"+this.prescription.dialysis_duration)
599
+            arr.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysis_duration:""))
600 600
          }
601 601
 
602 602
         if(str.indexOf('透析时长')!=-1 && this.prescription==null){
@@ -604,7 +604,7 @@
604 604
          }
605 605
         
606 606
         if(str.indexOf("目标超滤量")!=-1 && this.prescription!=null){
607
-           arr.push("目标超滤量:"+this.prescription.target_ultrafiltration)
607
+           arr.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
608 608
         }
609 609
         if(str.indexOf("目标超滤量")!=-1 && this.prescription==null){
610 610
            arr.push("目标超滤量:")
@@ -924,10 +924,7 @@
924 924
     },
925 925
     watch: {
926 926
       isVisibility(val) {
927
-         console.log("333333333",this.patient)
928
-        console.log("透前评估23455",this.predialysis_evaluation)
929
-        console.log("透析处方23567",this.prescription)
930
-        console.log("双人核对",this.double_check)
927
+      
931 928
         if(this.prescription!=null && this.prescription.id!=0){
932 929
           this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus
933 930
           this.dialysate_formulation = this.dialysate_formulation + this.GetDialysateFormulationById(this.prescription.dialysate_formulation)
@@ -957,49 +954,49 @@
957 954
              console.log("222222",this.checkList)
958 955
            }
959 956
            if(this.double_check.dialysis_item_desc.indexOf("穿刺针")!=-1){
960
-              this.checkList.push("穿刺针:"+this.predialysis_evaluation.puncture_needle)
957
+              this.checkList.push("穿刺针:"+(this.predialysis_evaluation.puncture_needle?this.predialysis_evaluation.puncture_needle:""))
961 958
            }
962 959
            if(this.double_check.dialysis_item_desc.indexOf("透析液配方:")!=-1){
963 960
               this.checkList.push("透析液配方:"+this.GetDialysateFormulationById(this.prescription.dialysate_formulation))
964 961
            }
965 962
            if(this.double_check.dialysis_item_desc.indexOf("钾:")!=-1){
966
-              this.checkList.push("钾:"+this.prescription.kalium)
963
+              this.checkList.push("钾:"+(this.prescription.kalium?this.prescription.kalium:""))
967 964
            }
968 965
            if(this.double_check.dialysis_item_desc.indexOf("钙:")!=-1){
969
-               this.checkList.push("钙:"+this.prescription.calcium)
966
+               this.checkList.push("钙:"+(this.prescription.calcium?this.prescription.calcium:""))
970 967
            }
971 968
            if(this.double_check.dialysis_parameter_desc.indexOf("透析模式:")!=-1){
972 969
               this.checkListOne.push("透析模式:"+this.getMode(this.prescription.mode_id))
973 970
            }
974 971
            if(this.double_check.dialysis_parameter_desc.indexOf("透析时长")!=-1){
975
-              this.checkListOne.push("透析时长:"+this.prescription.dialysis_duration)
972
+              this.checkListOne.push("透析时长:"+(this.prescription.dialysis_duration?this.prescription.dialysate_formulation:""))
976 973
            }
977 974
            if(this.double_check.dialysis_parameter_desc.indexOf("目标超滤量")!=-1){
978
-              this.checkListOne.push("目标超滤量:"+this.prescription.target_ultrafiltration)
975
+              this.checkListOne.push("目标超滤量:"+(this.prescription.target_ultrafiltration?this.prescription.target_ultrafiltration:""))
979 976
            }
980 977
            if(this.double_check.dialysis_parameter_desc.indexOf("抗凝剂")!=-1){
981 978
               this.checkListOne.push("抗凝剂:"+this.getAnticoagulant(this.prescription.anticoagulant))
982 979
            }
983 980
            if(this.double_check.dialysis_parameter_desc.indexOf("首剂")!=-1){
984
-              this.checkListOne.push("首剂:"+this.prescription.anticoagulant_shouji)
981
+              this.checkListOne.push("首剂:"+(this.prescription.anticoagulant_shouji?this.prescription.anticoagulant_shouji:""))
985 982
            }
986 983
            if(this.double_check.dialysis_parameter_desc.indexOf("维持")!=-1){
987
-              this.checkListOne.push("维持:"+this.prescription.anticoagulant_weichi)
984
+              this.checkListOne.push("维持:"+(this.prescription.anticoagulant_weichi?this.prescription.anticoagulant_weichi:""))
988 985
            }
989 986
           if(this.double_check.dialysis_parameter_desc.indexOf("总量")!=-1){
990
-              this.checkListOne.push("总量:"+this.prescription.anticoagulant_zongliang)
987
+              this.checkListOne.push("总量:"+(this.prescription.anticoagulant_zongliang?this.prescription.anticoagulant_zongliang:""))
991 988
            }
992 989
           if(this.double_check.dialysis_parameter_desc.indexOf("置换液")!=-1){
993
-              this.checkListOne.push("置换液:"+this.prescription.displace_liqui_part)
990
+              this.checkListOne.push("置换液:"+(this.prescription.displace_liqui_part?this.prescription.displace_liqui_part:""))
994 991
            }
995 992
            if(this.double_check.dialysis_parameter_desc.indexOf("置换总量")!=-1){
996
-             this.checkListOne.push("置换总量:"+this.prescription.replacement_total)
993
+             this.checkListOne.push("置换总量:"+(this.prescription.replacement_total?this.prescription.replacement_total:""))
997 994
            }
998 995
            if(this.double_check.dialysis_parameter_desc.indexOf("处方血流量")!=-1){
999
-             this.checkListOne.push("处方血流量:"+this.prescription.blood_flow_volume)
996
+             this.checkListOne.push("处方血流量:"+(this.prescription.blood_flow_volume?this.prescription.blood_flow_volume:""))
1000 997
            }
1001 998
            if(this.double_check.dialysis_parameter_desc.indexOf("透析液流量")!=-1){
1002
-             this.checkListOne.push("透析液流量:"+this.prescription.dialysate_flow)
999
+             this.checkListOne.push("透析液流量:"+(this.prescription.dialysate_flow?this.prescription.dialysate_flow:""))
1003 1000
            }
1004 1001
            if(this.double_check.vascular_access_desc.indexOf("通路类型")!=-1){
1005 1002
              this.checkListTwo.push("通路类型:"+this.getBloodAccess(this.predialysis_evaluation.blood_access_part_opera_id))

+ 8 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue View File

@@ -661,12 +661,18 @@
661 661
                     <td width="60">
662 662
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}</div>
663 663
                     </td>
664
-                    <td width="10">ml,</td>
664
+                    <td width="15">
665
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml,</span>
666
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu,</span>
667
+                     </td>
665 668
                     <td width="60">追加量</td>
666 669
                     <td width="60">
667 670
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}</div>
668 671
                     </td>
669
-                    <td width="10">ml</td>
672
+                    <td width="10">
673
+                      <span v-if="prescription.anticoagulant =='阿加曲班'">ml</span>
674
+                      <span v-if="prescription.anticoagulant =='普通肝素'">iu/h</span>
675
+                    </td>
670 676
                     <td width="10">)</td>
671 677
                     <td width="100">
672 678
                         <label-box :isChecked="prescription.anticoagulant == '无肝素' ? true : false" showValue="无肝素"></label-box>

+ 25 - 3
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

@@ -54,13 +54,20 @@
54 54
               <el-input v-model="form.specification_name" placeholder="" maxlength="30"></el-input>
55 55
             </el-form-item>
56 56
             <el-form-item label="生产厂商 : " prop="manufacturer" style="width:100%">
57
-              <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择">
57
+              <!-- <el-select v-model="form.manufacturer" style="width:100%" placeholder="请选择">
58 58
                 <el-option
59 59
                   v-for="item,index in form.manufacturers"
60 60
                   :key="index"
61 61
                   :label="item.manufacturer_name"
62 62
                   :value="item.id">
63
-                </el-option>
63
+                </el-option> -->
64
+                <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
65
+                  <el-option
66
+                    v-for="item in manufacturerList"
67
+                    :key="item.id"
68
+                    :label="item.manufacturer_name"
69
+                    :value="item.id">
70
+                  </el-option>
64 71
               </el-select>
65 72
             </el-form-item>
66 73
             <el-form-item label="单位 : " prop="good_unit">
@@ -241,7 +248,7 @@
241 248
 
242 249
 <script>
243 250
   import { getDictionaryDataConfig,getDataConfig } from '@/utils/data'
244
-
251
+  import { getManufacturerList } from "@/api/stock";
245 252
   export default {
246 253
     name: 'goodInfoDailog',
247 254
     data() {
@@ -458,6 +465,18 @@
458 465
         return form
459 466
       }, changeSelected: function(val) {
460 467
         console.log(val)
468
+      },
469
+      getlist(){
470
+         var params = {
471
+             page:this.page,
472
+             limit:this.limit
473
+          }
474
+          console.log("params2222222",params)
475
+        getManufacturerList(params).then(response=>{
476
+           var manufacturerList =   response.data.data.manufacturer
477
+           console.log("列表2222222",manufacturerList)
478
+           this.manufacturerList = manufacturerList
479
+        })
461 480
       }
462 481
     },
463 482
     watch: {
@@ -469,6 +488,9 @@
469 488
           this.good_unit = ''
470 489
         }
471 490
       }
491
+    },
492
+    created(){
493
+      this.getlist()
472 494
     }
473 495
   }
474 496