XMLWAN 3 years ago
parent
commit
602cb15b76

+ 15 - 0
src/store/modules/globalConfig.js View File

554
         sodium: 1,
554
         sodium: 1,
555
         calcium: 1,
555
         calcium: 1,
556
         bicarbonate: 1
556
         bicarbonate: 1
557
+      },
558
+      24: {
559
+        id: 24,
560
+        name: 'I-HDF',
561
+        dialysis_duration: 1,
562
+        replacement_way: 1,
563
+        hemodialysis_machine: 2,
564
+        blood_filter: 1,
565
+        perfusion_apparatus: 2,
566
+        blood_flow_volume: 1,
567
+        dialysate_flow: 1,
568
+        kalium: 1,
569
+        sodium: 1,
570
+        calcium: 1,
571
+        bicarbonate: 1
557
       }
572
       }
558
     },
573
     },
559
     anticoagulants_confit: { // 抗凝剂
574
     anticoagulants_confit: { // 抗凝剂

+ 16 - 1
src/xt_pages/data/prescription.vue View File

773
           sodium: 1,
773
           sodium: 1,
774
           calcium: 1,
774
           calcium: 1,
775
           bicarbonate: 1
775
           bicarbonate: 1
776
-        }
776
+        },
777
+        {
778
+          id: 24,
779
+          name: 'I-HDF',
780
+          dialysis_duration: 1,
781
+          replacement_way: 1,
782
+          hemodialysis_machine: 2,
783
+          blood_filter: 1,
784
+          perfusion_apparatus: 2,
785
+          blood_flow_volume: 1,
786
+          dialysate_flow: 1,
787
+          kalium: 1,
788
+          sodium: 1,
789
+          calcium: 1,
790
+          bicarbonate: 1
791
+       }
777
       ],
792
       ],
778
       addPlan: {
793
       addPlan: {
779
         id: 0,
794
         id: 0,

+ 2 - 0
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

121
             <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
121
             <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
122
             <span v-if="scope.row.mode_id == 13">(CRRT)</span>
122
             <span v-if="scope.row.mode_id == 13">(CRRT)</span>
123
             <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
123
             <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
124
+            <span v-if="scope.row.mode_id == 24">I-HDF</span>
124
           </template>
125
           </template>
125
         </el-table-column>
126
         </el-table-column>
126
         <el-table-column  label="分区床位" width="100">
127
         <el-table-column  label="分区床位" width="100">
249
             <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
250
             <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
250
             <span v-if="scope.row.mode_id == 13">(CRRT)</span>
251
             <span v-if="scope.row.mode_id == 13">(CRRT)</span>
251
             <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
252
             <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
253
+            <span v-if="scope.row.mode_id == 24">I-HDF</span>
252
           </template>
254
           </template>
253
         </el-table-column>
255
         </el-table-column>
254
         <el-table-column prop="date" label="透析器" align="center" min-width="26px">
256
         <el-table-column prop="date" label="透析器" align="center" min-width="26px">

+ 2 - 2
src/xt_pages/dialysis/doctorAdvicePrint.vue View File

66
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
66
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
67
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
67
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
68
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
68
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
69
-                                
69
+                            <span v-if="schedule.mode_id == 24">I-HDF</span>   
70
                             </td>
70
                             </td>
71
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
71
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
72
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
72
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
177
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
177
                             <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
178
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
178
                             <span v-if="schedule.mode_id == 13">(CRRT)</span>
179
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
179
                             <span v-if="schedule.mode_id == 14">(腹水回输)</span>
180
-                                
180
+                            <span v-if="schedule.mode_id == 24">I-HDF</span>   
181
                             </td>
181
                             </td>
182
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
182
                             <td v-if="advice_index == 0" :rowspan="group.advices.length">
183
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}
183
                             {{advice.parent_id == 0 && schedule.prescription!=null ?  schedule.prescription.dialyzer_perfusion_apparatus : ""}}

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue View File

47
             <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
47
             <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
48
             <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
48
             <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
49
             <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>&nbsp;
49
             <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>&nbsp;
50
-            
50
+            <label-box :isChecked="prescription.mode_id == 24 ? true : false" showValue="I-HDF"></label-box>&nbsp;
51
           </td>
51
           </td>
52
         </tr>
52
         </tr>
53
         <tr>
53
         <tr>

+ 32 - 6
src/xt_pages/stock/drugs/drugPrint.vue View File

42
               </td>
42
               </td>
43
             
43
             
44
               <td style="line-height: 50px">
44
               <td style="line-height: 50px">
45
-                  {{item.warehousing_count}}
45
+                  {{getCount(item.drug_id)}}
46
               </td>
46
               </td>
47
               <td style="line-height:50px">
47
               <td style="line-height:50px">
48
                   {{item.price}}
48
                   {{item.price}}
49
               </td>
49
               </td>
50
               <td style="line-height:50px">
50
               <td style="line-height:50px">
51
-                 {{(item.warehousing_count*item.price).toFixed(2)}}
51
+                 {{(getCount(item.drug_id)*item.price).toFixed(2)}}
52
               </td>
52
               </td>
53
               <td style="line-height: 50px">
53
               <td style="line-height: 50px">
54
                  {{item.remark}}
54
                  {{item.remark}}
89
   import { jsGetAge, uParseTime } from '@/utils/tools'
89
   import { jsGetAge, uParseTime } from '@/utils/tools'
90
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
90
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
91
   import print from 'print-js'
91
   import print from 'print-js'
92
-  import { getDrugIndetail,getDrugWarehouseInfoPrint} from "@/api/drug/drug_stock"
92
+  import { getDrugIndetail,getDrugWarehouseInfoPrint,getDrugCountList} from "@/api/drug/drug_stock"
93
   export default {
93
   export default {
94
     name: 'dialysisPrintOrder',
94
     name: 'dialysisPrintOrder',
95
     components: {
95
     components: {
115
         limit:this.$route.query.limit,
115
         limit:this.$route.query.limit,
116
         page:this.$route.query.page,
116
         page:this.$route.query.page,
117
         cancelStockDate:[],
117
         cancelStockDate:[],
118
+        minCount:[],
118
       }
119
       }
119
     },
120
     },
120
     methods: {
121
     methods: {
218
       getTotal(){
219
       getTotal(){
219
         var total = 0
220
         var total = 0
220
         for(let i=0;i<this.cancelStockDate.length;i++){
221
         for(let i=0;i<this.cancelStockDate.length;i++){
221
-           total += this.cancelStockDate[i].price*this.cancelStockDate[i].warehousing_count
222
+           total += this.cancelStockDate[i].price*getCount(this.cancelStockDate[i].drug_id)
222
         }
223
         }
223
         return total
224
         return total
224
       },
225
       },
238
         })
239
         })
239
 
240
 
240
         
241
         
241
-      }
242
+      },
243
+      getCount(drug_id){
244
+        var total = 0
245
+        for(let i=0;i<this.minCount.length;i++){
246
+          if(drug_id == this.minCount[i].drug_id){
247
+            total += this.minCount[i].warehousing_count
248
+          }
249
+        }
250
+        return total
251
+      },
252
+      getDrugCountList(){
253
+         var params = {
254
+          keyword: this.keywords,
255
+          start_time:this.start_time,
256
+          end_time:this.end_time,
257
+         }
258
+         console.log("paramsw2ww",params)
259
+        getDrugCountList(params).then(response=>{
260
+          if(response.data.state == 1){
261
+            var minCount = response.data.data.minCount
262
+            console.log("minCount",minCount)
263
+            this.minCount = minCount
264
+
265
+          }
266
+        })
267
+      },
242
     },
268
     },
243
     created() {
269
     created() {
244
       var xtuser = this.$store.getters.xt_user
270
       var xtuser = this.$store.getters.xt_user
247
      
273
      
248
 
274
 
249
       this.getDrugWarehouseInfoPrint()
275
       this.getDrugWarehouseInfoPrint()
250
-      
276
+       this.getDrugCountList()
251
 
277
 
252
     }
278
     }
253
 
279