Procházet zdrojové kódy

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

csx před 3 roky
rodič
revize
148f7cfcba

+ 15 - 0
src/store/modules/globalConfig.js Zobrazit soubor

@@ -554,6 +554,21 @@ const global_config = {
554 554
         sodium: 1,
555 555
         calcium: 1,
556 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 574
     anticoagulants_confit: { // 抗凝剂

+ 16 - 1
src/xt_pages/data/prescription.vue Zobrazit soubor

@@ -773,7 +773,22 @@ export default {
773 773
           sodium: 1,
774 774
           calcium: 1,
775 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 793
       addPlan: {
779 794
         id: 0,

+ 2 - 0
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Zobrazit soubor

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

+ 2 - 2
src/xt_pages/dialysis/doctorAdvicePrint.vue Zobrazit soubor

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

+ 10 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue Zobrazit soubor

@@ -47,7 +47,7 @@
47 47
             <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
48 48
             <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
49 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 51
           </td>
52 52
         </tr>
53 53
         <tr>
@@ -116,7 +116,7 @@
116 116
               {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : '/'}}kg
117 117
             </span>
118 118
           </td>
119
-          <td style="text-align:left;" colspan="1" rowspan="2">
119
+          <td style="text-align:left;" colspan="1">
120 120
             <span style="display:inline-block;margin-left:15px;">
121 121
               透后体重:
122 122
               {{ afterdialysis.weight_after ? afterdialysis.weight_after : '/' }} kg
@@ -130,6 +130,13 @@
130 130
               {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/" }}kg
131 131
             </span>
132 132
           </td>
133
+          <td style="text-align:left;" colspan="1">
134
+            <span style="display:inline-block;margin-left:15px;">
135
+              透析时长:
136
+              {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0" }}h
137
+              {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }}min
138
+            </span>
139
+          </td>
133 140
         </tr>
134 141
         <tr>
135 142
           <td style="text-align:left;" colspan="1">
@@ -151,7 +158,7 @@
151 158
           </td>
152 159
           <td style="text-align:left;" colspan="1">
153 160
             <span style="display:inline-block;margin-left:15px;">
154
-                机温: {{ prescription.dialysate_temperature ? prescription.dialysate_temperature : "/" }} ℃
161
+                透析液温度: {{ prescription.dialysate_temperature ? prescription.dialysate_temperature : "/" }} ℃
155 162
             </span>
156 163
           </td>
157 164
           <td style="text-align:left;" colspan="1">

+ 6 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Zobrazit soubor

@@ -330,12 +330,16 @@
330 330
                     </div>
331 331
                     ml/min
332 332
                   </div>
333
-                  <div class="inline_block" style="margin-left:10px;flex:1;">
333
+                  <div class="inline_block" style="margin-left:1px;flex:1;">
334 334
                     透析时间:
335
-                    <div class="under_line" style="width: 50px;text-align: center">
335
+                    <div class="under_line" style="width: 30px;text-align: center">
336 336
                       {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "/" }}
337 337
                     </div>
338 338
                     h
339
+                    <div class="under_line" style="width: 30px;text-align: center">
340
+                      {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "/" }}
341
+                    </div>
342
+                    min
339 343
                   </div>
340 344
                 </div>
341 345
                 <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">

+ 5 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Zobrazit soubor

@@ -179,7 +179,10 @@
179 179
                   </div>
180 180
                   <div class="inline_block" style="margin-left:10px;flex:1;">
181 181
                     穿刺方式:
182
-                     <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
182
+                    <div class="under_line" style="width: 100px;text-align: center">
183
+                      {{ predialysis.puncture_way ? predialysis.puncture_way : '/' }}
184
+                    </div>
185
+                     <!-- <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == ''">
183 186
                       /
184 187
                     </div>
185 188
                     <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('绳梯')>-1">
@@ -190,7 +193,7 @@
190 193
                     </div>
191 194
                     <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way.indexOf('区域')>-1">
192 195
                       区域
193
-                    </div>
196
+                    </div> -->
194 197
                     <!-- <div class="under_line" style="width: 100px;text-align: center" v-if="predialysis.puncture_way == 0">
195 198
                       /
196 199
                     </div>

+ 2 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Zobrazit soubor

@@ -557,7 +557,8 @@ export default {
557 557
         this.getInfo(this.paramsObj.order_id,this.paramsObj)
558 558
 
559 559
       },
560
-      deep:true
560
+      deep:true,
561
+      immediate:true
561 562
     }
562 563
   }
563 564
 

+ 33 - 7
src/xt_pages/stock/drugs/drugPrint.vue Zobrazit soubor

@@ -42,13 +42,13 @@
42 42
               </td>
43 43
             
44 44
               <td style="line-height: 50px">
45
-                  {{item.warehousing_count}}
45
+                  {{getCount(item.drug_id)}}
46 46
               </td>
47 47
               <td style="line-height:50px">
48 48
                   {{item.price}}
49 49
               </td>
50 50
               <td style="line-height:50px">
51
-                 {{(item.warehousing_count*item.price).toFixed(2)}}
51
+                 {{(getCount(item.drug_id)*item.price).toFixed(2)}}
52 52
               </td>
53 53
               <td style="line-height: 50px">
54 54
                  {{item.remark}}
@@ -89,7 +89,7 @@
89 89
   import { jsGetAge, uParseTime } from '@/utils/tools'
90 90
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
91 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 93
   export default {
94 94
     name: 'dialysisPrintOrder',
95 95
     components: {
@@ -115,6 +115,7 @@
115 115
         limit:this.$route.query.limit,
116 116
         page:this.$route.query.page,
117 117
         cancelStockDate:[],
118
+        minCount:[],
118 119
       }
119 120
     },
120 121
     methods: {
@@ -207,7 +208,7 @@
207 208
               }
208 209
             }
209 210
           }
210
-          console.log("list666666666",list)
211
+          // console.log("list666666666",list)
211 212
           this.cancelStockDate = list
212 213
           var total = response.data.data.total
213 214
           this.total = total
@@ -218,7 +219,7 @@
218 219
       getTotal(){
219 220
         var total = 0
220 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*this.getCount(this.cancelStockDate[i].drug_id)
222 223
         }
223 224
         return total
224 225
       },
@@ -238,7 +239,32 @@
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 269
     created() {
244 270
       var xtuser = this.$store.getters.xt_user
@@ -247,7 +273,7 @@
247 273
      
248 274
 
249 275
       this.getDrugWarehouseInfoPrint()
250
-      
276
+       this.getDrugCountList()
251 277
 
252 278
     }
253 279