28169 1 anno fa
parent
commit
c8b7ca30ee

+ 21 - 6
src/xt_pages/Pharmacy/PatientDispensing.vue Vedi File

@@ -187,36 +187,41 @@
187 187
                 <span>{{ scope.row.Name ? scope.row.Name : "" }}</span>
188 188
               </template>
189 189
             </el-table-column>
190
-            <el-table-column label="单次用量" width="150" align="center">
190
+            <el-table-column label="规格" width="100" align="center">
191
+              <template slot-scope="scope">
192
+                <span>{{getSpecaiName(scope.row.DrugId)}}</span>
193
+              </template>
194
+            </el-table-column>
195
+            <el-table-column label="单次用量" width="100" align="center">
191 196
               <template slot-scope="scope">
192 197
                 <span>{{
193 198
                   scope.row.SingleDosage ? scope.row.SingleDosage : ""
194 199
                 }}</span>
195 200
               </template>
196 201
             </el-table-column>
197
-            <el-table-column label="用法" width="160" align="center">
202
+            <el-table-column label="用法" width="100" align="center">
198 203
               <template slot-scope="scope">
199 204
                 <span>{{ scope.row.Usage ? scope.row.Usage : "" }}</span>
200 205
               </template>
201 206
             </el-table-column>
202
-            <el-table-column label="频率" width="160" align="center">
207
+            <el-table-column label="频率" width="100" align="center">
203 208
               <template slot-scope="scope">
204 209
                 <span>{{
205 210
                   scope.row.Frequency ? scope.row.Frequency : ""
206 211
                 }}</span>
207 212
               </template>
208 213
             </el-table-column>
209
-            <el-table-column label="天数" width="140" align="center">
214
+            <el-table-column label="天数" width="100" align="center">
210 215
               <template slot-scope="scope">
211 216
                 <span>{{ scope.row.Days ? scope.row.Days : "" }}</span>
212 217
               </template>
213 218
             </el-table-column>
214
-            <el-table-column label="总量" width="140" align="center">
219
+            <el-table-column label="总量" width="100" align="center">
215 220
               <template slot-scope="scope">
216 221
                 <span>{{ scope.row.Total ? scope.row.Total : "" }}</span>
217 222
               </template>
218 223
             </el-table-column>
219
-            <el-table-column label="生产厂商" width="140" align="center">
224
+            <el-table-column label="生产厂商" width="100" align="center">
220 225
               <template slot-scope="scope">
221 226
                 <span>{{ getManutuer(scope.row.DrugId) }}</span>
222 227
               </template>
@@ -559,6 +564,7 @@ export default {
559 564
             this.tableData = []
560 565
             this.tableData = list
561 566
           }
567
+          console.log("tableDatawoowow",this.tableData)
562 568
         } else {
563 569
           this.$message.error(res.data.msg);
564 570
         }
@@ -733,6 +739,15 @@ export default {
733 739
          }
734 740
        }
735 741
        return manufacturer_name
742
+    },
743
+    getSpecaiName(drug_id){
744
+       var spc =""
745
+       for(let i=0;i<this.baseList.length;i++){
746
+         if(drug_id == this.baseList[i].id){
747
+           spc = this.baseList[i].dose + this.baseList[i].dose_unit +"*"+this.baseList[i].min_number+this.baseList[i].min_unit+"/"+this.baseList[i].max_unit
748
+         }
749
+       }
750
+       return spc
736 751
     }
737 752
   },
738 753
 };

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventy.vue Vedi File

@@ -782,7 +782,7 @@
782 782
                           class="under_line"
783 783
                           style="width: 130px; text-align: center"
784 784
                         >
785
-                          {{
785
+                         <span v-if="record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis!=''">{{
786 786
                             record.assessment_before_dislysis &&
787 787
                             record.assessment_before_dislysis
788 788
                               .symptom_before_dialysis
@@ -790,6 +790,19 @@
790 790
                                   .symptom_before_dialysis
791 791
                               : "/"
792 792
                           }}
793
+                          </span>
794
+                          <span v-if="record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis_other!=''">{{
795
+                            record.assessment_before_dislysis &&
796
+                            record.assessment_before_dislysis
797
+                              .symptom_before_dialysis_other
798
+                              ? record.assessment_before_dislysis
799
+                                  .symptom_before_dialysis_other
800
+                              : "/"
801
+                          }}
802
+                          </span>
803
+                          <span v-if="record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis=='' && record.assessment_before_dislysis&&record.assessment_before_dislysis.symptom_before_dialysis_other==''" >
804
+                             /
805
+                          </span>
793 806
                         </div>
794 807
                       </div>
795 808
 

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Vedi File

@@ -970,7 +970,7 @@
970 970
                       <div class="inline_block" style="flex: 1">
971 971
                         透前体重:
972 972
                         <div
973
-                          v-if="org_id == 10580"
973
+                          v-if="org_id != 10580"
974 974
                           class="under_line"
975 975
                           style="width: 70px; text-align: center"
976 976
                         >
@@ -1834,7 +1834,7 @@
1834 1834
                             执行人签名
1835 1835
                           </td>
1836 1836
                           <td style="font-size: 16px" width="10%">时间</td>
1837
-                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id == 0 || org_id ==10206">核对护士</td>
1837
+                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id == 0 || org_id ==10206 || org_id == 10571 || org_id ==10600">核对护士</td>
1838 1838
                         </tr>
1839 1839
                         <!-- <template v-for="group in doctor_advices" > -->
1840 1840
 
@@ -1942,7 +1942,7 @@
1942 1942
                                 getTime(advice[0].execution_time, " {h}:{i}")
1943 1943
                               }}</span>
1944 1944
                             </td>
1945
-                            <td height="35px" v-if="org_id == 10375 || org_id ==0||org_id ==10206">
1945
+                            <td height="35px" v-if="org_id == 10375 || org_id ==0||org_id ==10206|| org_id == 10571 || org_id ==10600">
1946 1946
                               <span
1947 1947
                                 v-if="
1948 1948
                                   setAdminUserES(

+ 20 - 4
src/xt_pages/dialysis/details/consumable/dialysisGather.vue Vedi File

@@ -166,10 +166,26 @@
166 166
 
167 167
           <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)"  v-if="gatherSetting.anticoagulant==1">
168 168
              <template slot-scope="scope">
169
-               <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
170
-               <span v-if="scope.row.dialysis_prescription.anticoagulant_shouji > 0">({{scope.row.dialysis_prescription.anticoagulant_shouji}})</span>
171
-               <span v-if="scope.row.dialysis_prescription.anticoagulant_weichi > 0">({{scope.row.dialysis_prescription.anticoagulant_weichi}})</span>
172
-               <span v-if="scope.row.dialysis_prescription.anticoagulant_zongliang > 0">({{scope.row.dialysis_prescription.anticoagulant_zongliang}})</span>
169
+              
170
+               <span v-if="scope.row.schedule_date == timenow">
171
+                <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
172
+                <span v-if="scope.row.dialysis_prescription.anticoagulant_shouji > 0">({{scope.row.dialysis_prescription.anticoagulant_shouji}})</span>
173
+                <span v-if="scope.row.dialysis_prescription.anticoagulant_weichi > 0">({{scope.row.dialysis_prescription.anticoagulant_weichi}})</span>
174
+                <span v-if="scope.row.dialysis_prescription.anticoagulant_zongliang > 0">({{scope.row.dialysis_prescription.anticoagulant_zongliang}})</span>
175
+              </span>
176
+               <span v-if="scope.row.schedule_date<timenow">
177
+                <span>{{getAnticoagualnt(scope.row.dialysis_prescription.anticoagulant)}}</span>
178
+                <span v-if="scope.row.dialysis_prescription.anticoagulant_shouji > 0">({{scope.row.dialysis_prescription.anticoagulant_shouji}})</span>
179
+                <span v-if="scope.row.dialysis_prescription.anticoagulant_weichi > 0">({{scope.row.dialysis_prescription.anticoagulant_weichi}})</span>
180
+                <span v-if="scope.row.dialysis_prescription.anticoagulant_zongliang > 0">({{scope.row.dialysis_prescription.anticoagulant_zongliang}})</span>
181
+               </span>
182
+               <span v-if="scope.row.schedule_date>timenow">
183
+                <span>{{getAnticoagualnt(scope.row.dialysis_solution.anticoagulant)}}</span>
184
+                <span v-if="scope.row.dialysis_solution.anticoagulant_shouji > 0">({{scope.row.dialysis_solution.anticoagulant_shouji}})</span>
185
+                <span v-if="scope.row.dialysis_solution.anticoagulant_weichi > 0">({{scope.row.dialysis_solution.anticoagulant_weichi}})</span>
186
+                <span v-if="scope.row.dialysis_solution.anticoagulant_zongliang > 0">({{scope.row.dialysis_solution.anticoagulant_zongliang}})</span>
187
+
188
+               </span>
173 189
              </template>
174 190
           </el-table-column>
175 191
 

+ 22 - 4
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue Vedi File

@@ -118,10 +118,28 @@
118 118
                     <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('内瘘')!=-1">1</span>
119 119
                   </td>
120 120
                   <td width="100" v-if="gatherSetting.anticoagulant==1">
121
-                    <span>{{getAnticoagualnt(item.dialysis_prescription.anticoagulant)}}</span>
122
-                    <span v-if="item.dialysis_prescription.anticoagulant_shouji > 0">({{item.dialysis_prescription.anticoagulant_shouji}})</span>
123
-                    <span v-if="item.dialysis_prescription.anticoagulant_weichi > 0">({{item.dialysis_prescription.anticoagulant_weichi}})</span>
124
-                    <span v-if="item.dialysis_prescription.anticoagulant_zongliang > 0">({{item.dialysis_prescription.anticoagulant_zongliang}})</span>
121
+                  
122
+
123
+                    <span v-if="item.schedule_date == timenow">
124
+                      <span>{{getAnticoagualnt(item.dialysis_prescription.anticoagulant)}}</span>
125
+                      <span v-if="item.dialysis_prescription.anticoagulant_shouji > 0">({{item.dialysis_prescription.anticoagulant_shouji}})</span>
126
+                      <span v-if="item.dialysis_prescription.anticoagulant_weichi > 0">({{item.dialysis_prescription.anticoagulant_weichi}})</span>
127
+                      <span v-if="item.dialysis_prescription.anticoagulant_zongliang > 0">({{item.dialysis_prescription.anticoagulant_zongliang}})</span>
128
+                    </span>
129
+
130
+                    <span v-if="item.schedule_date < timenow">
131
+                      <span>{{getAnticoagualnt(item.dialysis_prescription.anticoagulant)}}</span>
132
+                      <span v-if="item.dialysis_prescription.anticoagulant_shouji > 0">({{item.dialysis_prescription.anticoagulant_shouji}})</span>
133
+                      <span v-if="item.dialysis_prescription.anticoagulant_weichi > 0">({{item.dialysis_prescription.anticoagulant_weichi}})</span>
134
+                      <span v-if="item.dialysis_prescription.anticoagulant_zongliang > 0">({{item.dialysis_prescription.anticoagulant_zongliang}})</span>
135
+                    </span>
136
+
137
+                    <span v-if="item.schedule_date > timenow">
138
+                      <span>{{getAnticoagualnt(item.dialysis_solution.anticoagulant)}}</span>
139
+                      <span v-if="item.dialysis_solution.anticoagulant_shouji > 0">({{item.dialysis_solution.anticoagulant_shouji}})</span>
140
+                      <span v-if="item.dialysis_solution.anticoagulant_weichi > 0">({{item.dialysis_solution.anticoagulant_weichi}})</span>
141
+                      <span v-if="item.dialysis_solution.anticoagulant_zongliang > 0">({{item.dialysis_solution.anticoagulant_zongliang}})</span>
142
+                    </span>
125 143
                  </td>
126 144
                   <td width="200" v-if="gatherSetting.tube==1">
127 145
                     <span v-if="getBloodAccessOption(item.dialysis_prescription.blood_access).indexOf('导管')!==-1">1</span>

+ 5 - 0
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Vedi File

@@ -1000,6 +1000,11 @@ export default {
1000 1000
       if (this.form.weight_after == '') {
1001 1001
         this.form.weight_loss = ''
1002 1002
       }
1003
+
1004
+      if(this.predialysis_evaluation!=null){
1005
+         
1006
+        this.form.additional_weight = this.predialysis_evaluation.additional_weight
1007
+      }
1003 1008
       
1004 1009
     }
1005 1010
   },

+ 9 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

@@ -2818,8 +2818,8 @@ mu
2818 2818
         } else {
2819 2819
           last_weight_after = this.last_record.weight_after
2820 2820
         }
2821
-        console.log("last2323232323232332wode",this.predialysis)
2822
-        console.log("lastwoowowow",last)
2821
+        // console.log("last2323232323232332wode",this.predialysis)
2822
+        // console.log("lastwoowowow",last)
2823 2823
         if(this.predialysis!=null && this.predialysis.id == 0){
2824 2824
             if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10600){
2825 2825
               this.dialysisPrescription.sodium = 138
@@ -2831,6 +2831,13 @@ mu
2831 2831
             if(this.$store.getters.xt_user.org.id == 10447 || this.$store.getters.xt_user.org.id == 10600){
2832 2832
               this.dialysisPrescription.dialysate_flow = 500
2833 2833
             }
2834
+
2835
+            if(this.$store.getters.xt_user.org.id == 10598){
2836
+               if(this.dialysisPrescription.dialysis_duration_minute == ""){
2837
+                 this.dialysisPrescription.dialysis_duration_minute =0
2838
+
2839
+               }
2840
+            }
2834 2841
         }
2835 2842
         if (this.predialysis == null || this.predialysis.id == 0) {
2836 2843
 

+ 1 - 1
src/xt_pages/dialysis/details/index.vue Vedi File

@@ -2238,7 +2238,7 @@ export default {
2238 2238
           newArr.sort(this.compare('created_time'))
2239 2239
         }
2240 2240
 
2241
-        if(this.org_id ==10579 || this.org_id == 0 || this.org_id ==10587){
2241
+        if(this.org_id ==10579 || this.org_id == 0 || this.org_id ==10587 || this.org_id ==10571){
2242 2242
           if(newArr!=null && newArr.length>0){
2243 2243
             for(let i=0;i<newArr.length;i++){
2244 2244
               newArr[i].sort =0

+ 41 - 0
src/xt_pages/dialysis/signPrint.vue Vedi File

@@ -135,6 +135,7 @@ export default {
135 135
             execution_frequency:this.execution_frequency,
136 136
             patient_id:this.$route.query.patient_id,
137 137
             keyword:this.$route.query.keyword,
138
+            excution_way:this.excution_way
138 139
             }).then(rs => {
139 140
                 var resp = rs.data
140 141
                 if (resp.state == 1) {
@@ -497,9 +498,49 @@ export default {
497 498
                   }
498 499
                   console.log("哈哈哈",schedules)
499 500
                    this.list = schedules.sort(this.compare('sort'))
501
+                   
502
+                   //未执行
503
+                   if(this.$route.query.excution_way == 2){
504
+                      if(this.list!=null){
505
+                        for(let i=0;i<this.list.length;i++){
506
+                            this.list[i].doctor_advice_map = []
507
+                          for(let j=0;j<this.list[i].parent_advice.length;j++){
508
+                              if(this.list[i].parent_advice[j].execution_state!=1){
509
+                                 this.list[i].doctor_advice_map.push(this.list[i].parent_advice[j])
510
+                              }
511
+                              
512
+                          }
513
+                          this.list[i].parent_advice= []
514
+                          if(this.list[i].doctor_advice_map!=null){
515
+                            this.list[i].parent_advice.push(...this.list[i].doctor_advice_map)
516
+                          }
517
+                          
518
+                        }
519
+                      }
520
+                   }
521
+
522
+                   if(this.$route.query.excution_way == 1){
523
+                     for(let i=0;i<this.list.length;i++){
524
+                            this.list[i].doctor_advice_map = []
525
+                          for(let j=0;j<this.list[i].parent_advice.length;j++){
526
+                              if(this.list[i].parent_advice[j].execution_state==1){
527
+                                 this.list[i].doctor_advice_map.push(this.list[i].parent_advice[j])
528
+                              }
529
+                              
530
+                          }
531
+                          this.list[i].parent_advice= []
532
+                          if(this.list[i].doctor_advice_map!=null){
533
+                            this.list[i].parent_advice.push(...this.list[i].doctor_advice_map)
534
+                          }
535
+                         
536
+                        }
537
+                   }
538
+                
500 539
                  
501 540
                    this.scheduleMap = scheduleMap  
502 541
                  }
542
+
543
+
503 544
                 console.log("this.list",this.list)
504 545
                 
505 546
                 }

+ 6 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue Vedi File

@@ -758,11 +758,17 @@
758 758
                         class="under_line"
759 759
                         style="width: 100px; text-align: center"
760 760
                       >
761
+                       <span v-if="predialysis&&predialysis.symptom_before_dialysis!=''">
761 762
                         {{
762 763
                           predialysis.symptom_before_dialysis
763 764
                             ? predialysis.symptom_before_dialysis
764 765
                             : "/"
765 766
                         }}
767
+                       </span> 
768
+                       <span v-if="predialysis&&predialysis.symptom_before_dialysis_other!=''">
769
+                         {{ predialysis.symptom_before_dialysis_other?predialysis.symptom_before_dialysis_other:"/" }}
770
+                       </span>
771
+                       <span v-if="predialysis&&predialysis.symptom_before_dialysis==''&&predialysis.symptom_before_dialysis_other==''">/</span>
766 772
                       </div>
767 773
                     </div>
768 774
 

+ 145 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Vedi File

@@ -316,34 +316,69 @@
316 316
                     <div
317 317
                       class="inline_block"
318 318
                       style="margin-left: 10px; flex: 1"
319
-                      v-if="org_id!=10580 && org_id !=0"
319
+                      v-if="(org_id == 10598 || org_id == 0) &&  predialysis.internal_fistula!=''"
320 320
                     >
321 321
                       穿刺方式:
322 322
                       <div
323 323
                         class="under_line"
324 324
                         style="width: 100px; text-align: center"
325
-                        v-if="predialysis.puncture_way == ''"
325
+                        v-if="predialysis&&predialysis.puncture_way == ''"
326 326
                       >
327 327
                          /
328 328
                       </div>
329 329
                       <div
330 330
                         class="under_line"
331 331
                         style="width: 100px; text-align: center"
332
-                        v-if="predialysis.puncture_way.indexOf('绳梯') > -1"
332
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('绳梯') > -1"
333 333
                       >
334 334
                         绳梯
335 335
                       </div>
336 336
                       <div
337 337
                         class="under_line"
338 338
                         style="width: 100px; text-align: center"
339
-                        v-if="predialysis.puncture_way.indexOf('扣眼') > -1"
339
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('扣眼') > -1"
340 340
                       >
341 341
                         扣眼
342 342
                       </div>
343 343
                       <div
344 344
                         class="under_line"
345 345
                         style="width: 100px; text-align: center"
346
-                        v-if="predialysis.puncture_way.indexOf('区域') > -1"
346
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('区域') > -1"
347
+                      >
348
+                        区域
349
+                      </div>
350
+                    </div>
351
+                    <div
352
+                      class="inline_block"
353
+                      style="margin-left: 10px; flex: 1"
354
+                      v-if="org_id!=10580 && org_id !=0 && org_id!=10598"
355
+                    >
356
+                      穿刺方式:
357
+                      <div
358
+                        class="under_line"
359
+                        style="width: 100px; text-align: center"
360
+                        v-if="predialysis&&predialysis.puncture_way == ''"
361
+                      >
362
+                         /
363
+                      </div>
364
+                      <div
365
+                        class="under_line"
366
+                        style="width: 100px; text-align: center"
367
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('绳梯') > -1"
368
+                      >
369
+                        绳梯
370
+                      </div>
371
+                      <div
372
+                        class="under_line"
373
+                        style="width: 100px; text-align: center"
374
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('扣眼') > -1"
375
+                      >
376
+                        扣眼
377
+                      </div>
378
+                      <div
379
+                        class="under_line"
380
+                        style="width: 100px; text-align: center"
381
+                        v-if="predialysis&&predialysis.puncture_way.indexOf('区域') > -1"
347 382
                       >
348 383
                         区域
349 384
                       </div>
@@ -358,13 +393,37 @@
358 393
                         class="under_line"
359 394
                         style="width: 100px; text-align: center"
360 395
                       >
361
-                         {{ dialysisOrder.puncture_way }}
396
+                         {{ dialysisOrder&&dialysisOrder.puncture_way }}
362 397
                       </div>
363 398
                       
364 399
                     </div>
365 400
                     <div
366 401
                       class="inline_block"
367 402
                       style="margin-left: 10px; flex: 1"
403
+                      v-if="(org_id == 10598 || org_id == 0) &&  predialysis.internal_fistula!=''"
404
+                    >
405
+                      穿刺针:
406
+                      <div
407
+                        class="under_line"
408
+                        style="width: 100px; text-align: center"
409
+                      >
410
+                      <span v-if="org_id==10580 || org_id==0">
411
+                        {{ dialysisOrder.puncture_needle}}
412
+                      </span>
413
+                      <span v-if="org_id != 10580 && org_id!=0">
414
+                        {{
415
+                          predialysis.puncture_needle
416
+                            ? predialysis.puncture_needle
417
+                            : "/"
418
+                        }}
419
+                      </span>
420
+                       
421
+                      </div>
422
+                    </div>
423
+                    <div
424
+                      class="inline_block"
425
+                      style="margin-left: 10px; flex: 1"
426
+                      v-if="org_id != 10598"
368 427
                     >
369 428
                       穿刺针:
370 429
                       <div
@@ -750,6 +809,7 @@
750 809
                     <div
751 810
                       class="inline_block"
752 811
                       style="margin-left: 10px; flex: 1"
812
+                      v-if="org_id==10598 && prescription.mode_id == 2"
753 813
                     >
754 814
                       置换方式:
755 815
                       <div
@@ -761,8 +821,25 @@
761 821
                         }}
762 822
                       </div>
763 823
                     </div>
824
+
764 825
                     <div
765
-                     
826
+                      class="inline_block"
827
+                      style="margin-left: 10px; flex: 1"
828
+                      v-if="org_id!=10598"
829
+                    >
830
+                      置换方式:
831
+                      <div
832
+                        class="under_line"
833
+                        style="width: 100px; text-align: center"
834
+                      >
835
+                        {{
836
+                          getDisplaceLiquiPart(prescription.displace_liqui_part)
837
+                        }}
838
+                      </div>
839
+                    </div>
840
+
841
+                    <div
842
+                      v-if="org_id==10598 && prescription.mode_id == 2"
766 843
                       class="inline_block"
767 844
                       style="margin-left: 10px; flex: 1"
768 845
                     >
@@ -786,6 +863,32 @@
786 863
                       </div>
787 864
                       L
788 865
                     </div>
866
+
867
+                    <div
868
+                      v-if="org_id!=10598"
869
+                      class="inline_block"
870
+                      style="margin-left: 10px; flex: 1"
871
+                    >
872
+                      置换量:
873
+                      <div
874
+                        class="under_line"
875
+                        style="width: 70px; text-align: center"
876
+                      >
877
+                      <span v-if="org_id ==10206"> {{
878
+                          prescription.replacement_total
879
+                            ? prescription.replacement_total
880
+                            : "/"
881
+                        }}
882
+                        </span> 
883
+                        <span v-if="org_id!=10206"> {{
884
+                          prescription.displace_liqui_value
885
+                            ? prescription.displace_liqui_value
886
+                            : "/"
887
+                        }}
888
+                        </span> 
889
+                      </div>
890
+                      L
891
+                      </div>
789 892
                     <div
790 893
                       class="inline_block"
791 894
                       style="margin-left: 10px; flex: 1"
@@ -1089,7 +1192,7 @@
1089 1192
                       </div>
1090 1193
                       mmol/L
1091 1194
                     </div>
1092
-                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1195
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478 && org_id!=10598">
1093 1196
                       碳酸氢根:
1094 1197
                       <div
1095 1198
                         class="under_line"
@@ -1103,7 +1206,7 @@
1103 1206
                       </div>
1104 1207
                       mmol/L
1105 1208
                     </div>
1106
-                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478">
1209
+                    <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10478&&org_id!=10598">
1107 1210
                       流量:
1108 1211
                       <div
1109 1212
                         class="under_line"
@@ -1508,6 +1611,7 @@
1508 1611
                         <td width="50" v-if="org_id == 9671">在线尿素监测</td>  
1509 1612
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id== 9671">血容量<br />(L)</td>
1510 1613
                         <td width="50" v-if="org_id == 10490 || org_id == 0">碳酸氢钠<br />(ml)</td>
1614
+                        <td width="50" v-if="org_id == 10598 || org_id == 0">护士签名</td>
1511 1615
                         <td width="200">病情变化及处理</td>
1512 1616
                       </tr>
1513 1617
 
@@ -1640,6 +1744,35 @@
1640 1744
                         <td width="50" v-if="org_id ==10490 || org_id == 0">
1641 1745
                           {{ monitor.dicarbonate?monitor.dicarbonate:"" }}
1642 1746
                         </td>
1747
+                        <td width="50" v-if="org_id == 10598 || org_id == 0">
1748
+                          <span v-if="monitor.creator == 0">
1749
+                            <span
1750
+                            v-if="setAdminUserES(monitor.modify) == ''"
1751
+                            >{{ getAdminUser(monitor.modify) }}</span
1752
+                          >
1753
+                          <img
1754
+                            style="height: 30px"
1755
+                            :src="setAdminUserES(monitor.modify)"
1756
+                            alt=""
1757
+                            srcset=""
1758
+                            v-else
1759
+                          />
1760
+                          </span>
1761
+
1762
+                          <span v-if="monitor.creator > 0">
1763
+                            <span
1764
+                            v-if="setAdminUserES(monitor.creator) == ''"
1765
+                            >{{ getAdminUser(monitor.creator) }}</span
1766
+                          >
1767
+                          <img
1768
+                            style="height: 30px"
1769
+                            :src="setAdminUserES(monitor.creator)"
1770
+                            alt=""
1771
+                            srcset=""
1772
+                            v-else
1773
+                          />
1774
+                          </span>
1775
+                        </td>
1643 1776
                         <td style="line-height: 16px; padding: 0px">
1644 1777
                           <div
1645 1778
                             style="
@@ -1704,6 +1837,7 @@
1704 1837
                         ></td>
1705 1838
                         <td v-if="org_id == 9919||org_id == 9538 || org_id == 9671"></td>
1706 1839
                         <td v-if="org_id == 9538"></td>
1840
+                        <td v-if="org_id == 10598 || org_id == 0"></td>
1707 1841
                         <td v-if="org_id == 10490 || org_id == 0"></td>
1708 1842
                         <td style="line-height: 16px; padding: 0px">
1709 1843
                           <div
@@ -1768,7 +1902,7 @@
1768 1902
                         <td
1769 1903
                           style="font-size: 16px"
1770 1904
                           width="10%"
1771
-                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1905
+                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375 || org_id ==10571 || org_id ==10600"
1772 1906
                         >
1773 1907
                           核对护士
1774 1908
                         </td>
@@ -1864,7 +1998,7 @@
1864 1998
                             getTime(advice.execution_time, "{h}:{i}")
1865 1999
                           }}</span>
1866 2000
                         </td>
1867
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
2001
+                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375 || org_id ==10571 || org_id ==10600">
1868 2002
                           <span v-if="advice!=null && advice.checker>0">
1869 2003
                             <span v-if="setAdminUserES(advice.checker) == ''">{{ getAdminUser(advice.checker)}}</span>
1870 2004
                             <img

+ 2 - 2
src/xt_pages/role/admin.vue Vedi File

@@ -224,13 +224,13 @@
224 224
           style="float:left"
225 225
           @click="toAutoDrug">自动生成</el-button> -->
226 226
 
227
-<!-- 
227
+
228 228
          <el-button
229 229
           type="primary"
230 230
           size="small"
231 231
           icon="el-icon-circle-plus-outline"
232 232
           style="float:left"
233
-          @click="toAutoDiagnose">自动脚本</el-button>  -->
233
+          @click="toAutoDiagnose">自动脚本</el-button> 
234 234
      </div>
235 235
 
236 236
 

+ 128 - 6
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue Vedi File

@@ -389,25 +389,33 @@ export default {
389 389
              }
390 390
             }
391 391
 
392
-            console.log("list23323223322332232323322323wode",list)
392
+          
393 393
             for(let i=0;i<list.length;i++){
394 394
               list[i].last_price_in = 0
395
+              list[i].drugInOne = 0
396
+              list[i].drugAddOne =0
397
+              list[i].drugOutOne =0
395 398
               list[i].drugIn = this.getDrugWarehouseInfoOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
399
+              list[i].drugInOne = this.getDrugWarehouseInfoTwentyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
396 400
               list[i].drugInMoney = this.getDrugInMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
397 401
               list[i].drugSaleMoney = this.getSaleMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
398 402
 
399 403
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
404
+              list[i].drugAddOne = this.drugAddInfoTwetyOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
400 405
               list[i].drugAddPrice = this.getdrugAddPrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
401 406
               list[i].drugAddSalePrice = this.drugAddSalePrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
402 407
 
403 408
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
409
+              list[i].drugOutOne=  this.getDrugOutTwetyOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
404 410
               list[i].drugOutPrice = this.getDrugOutPrice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
405 411
               list[i].drugOutSalePrice = this.getDrugOutSaleprice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
406 412
 
407
-              list[i].overDrug = this.getDrugWarehouseInfo(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
413
+              // list[i].overDrug = this.getDrugWarehouseInfo(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
414
+              list[i].overDrug = this.getOverDrug(list[i].drugInOne,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
408 415
               list[i].overDrugPrice =  this.getDrugInMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
409 416
               list[i].oveDrugSaleMoney =  this.getSaleMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
410 417
             }
418
+            console.log("我的世界搜哦对哦奥法",list)
411 419
             this.tableList = list;
412 420
             this.total = response.data.data.total
413 421
             this.manufacturerList = response.data.data.manufacturerList
@@ -525,10 +533,7 @@ export default {
525 533
       totalfive += arr5[i].count
526 534
      }
527 535
   }
528
-  // console.log("totalONE223323232323232",totalOne)
529
-  // console.log("totalTwo2oo2o32o3o32o23",totalTwo)
530
-  // console.log("totalfive",totalfive)
531
-  // console.log("00-------------------------")
536
+  
532 537
   total = totalOne - totalTwo + totalthree - totalfour + totalfive
533 538
   if (total < min_number) {
534 539
      min_str = total + min_unit;
@@ -554,6 +559,48 @@ export default {
554 559
   }
555 560
 
556 561
 
562
+  },
563
+
564
+  getDrugWarehouseInfoTwentyOne(arr,min_number,min_unit,max_unit,arr2,arr3,arr4,arr5){
565
+   var total = 0
566
+   var totalOne =0
567
+   var totalTwo = 0
568
+   var totalthree= 0
569
+   var totalfour = 0
570
+   var totalfive = 0
571
+   var max_str = "";
572
+   var min_str = "";
573
+   if(arr!=null && arr.length > 0){
574
+    for(let i=0;i<arr.length;i++){
575
+      totalOne += arr[i].count
576
+     }
577
+   }
578
+   if(arr2!=null && arr2.length > 0){
579
+    for(let i=0;i<arr2.length;i++){
580
+      totalTwo += arr2[i].count
581
+     }
582
+   }
583
+   if(arr3!=null && arr3.length > 0){
584
+    for(let i=0;i<arr3.length;i++){
585
+      totalthree += arr3[i].count
586
+     }
587
+   }
588
+  if(arr4!=null && arr4.length > 0){
589
+    for(let i=0;i<arr4.length;i++){
590
+      totalfour += arr4[i].count
591
+     }
592
+  }
593
+
594
+  if(arr5!=null && arr5.length > 0){
595
+    for(let i=0;i<arr5.length;i++){
596
+      totalfive += arr5[i].count
597
+     }
598
+  }
599
+  
600
+  total = totalOne - totalTwo + totalthree - totalfour + totalfive
601
+ 
602
+  
603
+   return total
557 604
   },
558 605
   getDrugWarehouseInfo(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
559 606
    var total = 0
@@ -1061,6 +1108,30 @@ export default {
1061 1108
     }
1062 1109
 
1063 1110
    },
1111
+
1112
+  drugAddInfoTwetyOne(arr,min_number,min_unit,max_unit,arr2){
1113
+    var total = 0
1114
+    var totalone = 0
1115
+    var totaltwo = 0
1116
+    var max_str = "";
1117
+    var min_str = "";
1118
+    if(arr!=null && arr.length > 0){
1119
+      for(let i=0;i<arr.length;i++){
1120
+        totalone += arr[i].count
1121
+      }
1122
+    }
1123
+    if(arr2!=null && arr2.length >0){
1124
+      for(let i=0;i<arr2.length;i++){
1125
+        totaltwo += arr2[i].count
1126
+      }
1127
+    }
1128
+    total = totalone + totaltwo
1129
+
1130
+    
1131
+    
1132
+    return total
1133
+
1134
+   },
1064 1135
    getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
1065 1136
     var total = 0
1066 1137
     var totalone =0
@@ -1148,6 +1219,33 @@ export default {
1148 1219
     return max_str + min_str;
1149 1220
    }
1150 1221
 
1222
+   },
1223
+   getDrugOutTwetyOne(arr,min_number,min_unit,max_unit,arr2,arr3){
1224
+    var total = 0
1225
+    var totalone = 0
1226
+    var totaltwo = 0
1227
+    var totalthree = 0
1228
+    var min_str = ""
1229
+    var max_str = ""
1230
+    if(arr!=null&&arr.length > 0){
1231
+      for(let i=0;i<arr.length;i++){
1232
+         totalone +=arr[i].count
1233
+      }
1234
+    }
1235
+    if(arr2!=null && arr2.length>0){
1236
+      for(let i=0;i<arr2.length;i++){
1237
+        totaltwo +=arr2[i].count
1238
+      }
1239
+    }
1240
+    if(arr3!=null && arr3.length>0){
1241
+      for(let i=0;i<arr3.length;i++){
1242
+        totalthree +=arr3[i].count
1243
+      }
1244
+    }
1245
+    total = totalone + totaltwo - totalthree
1246
+     
1247
+    return total
1248
+
1151 1249
    },
1152 1250
    getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1153 1251
 
@@ -1263,6 +1361,30 @@ export default {
1263 1361
       }
1264 1362
       return dear_name
1265 1363
     },
1364
+    getOverDrug(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
1365
+      var total = 0
1366
+      total = totalone + totaltwo - totalthree
1367
+      if (total < min_number) {
1368
+        min_str = total + min_unit;
1369
+      }
1370
+      if (total == 0) {
1371
+        min_str = "";
1372
+        max_str = "";
1373
+      }
1374
+      if (total >= min_number) {
1375
+        if (parseInt(total / min_number) != 0) {
1376
+          max_str = parseInt(total / min_number) + max_unit;
1377
+        }
1378
+        if (total % min_number != 0) {
1379
+          min_str = (total % min_number) + min_unit;
1380
+        }
1381
+    }
1382
+    if(max_str == "" && min_str == ""){
1383
+      return "0"
1384
+    }else{
1385
+      return max_str + min_str;
1386
+    }
1387
+   }
1266 1388
   }
1267 1389
 }
1268 1390
 </script>

+ 84 - 7
src/xt_pages/stock/drugs/components/purchaseNewDrugQuery.vue Vedi File

@@ -392,6 +392,8 @@ export default {
392 392
             console.log("list23323223322332232323322323wode",list)
393 393
             for(let i=0;i<list.length;i++){
394 394
               list[i].last_price_in = 0
395
+              list[i].drugAddOne= 0
396
+              list[i].drugOutOne =0
395 397
               list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
396 398
             //   list[i].drugIn = this.getDrugWarehouseInfoOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
397 399
             //   list[i].drugInMoney = this.getDrugInMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
@@ -400,12 +402,14 @@ export default {
400 402
               list[i].drugSaleMoney = "/"
401 403
 
402 404
               list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
405
+              list[i].drugAddOne = this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
403 406
             //   list[i].drugAddPrice = this.getdrugAddPrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
404 407
             //   list[i].drugAddSalePrice = this.drugAddSalePrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
405 408
               list[i].drugAddPrice = "/"
406 409
               list[i].drugAddSalePrice = "/"
407 410
 
408 411
               list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
412
+              list[i].drugOutOne =this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
409 413
             //   list[i].drugOutPrice = this.getDrugOutPrice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
410 414
             //   list[i].drugOutSalePrice = this.getDrugOutSaleprice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
411 415
               list[i].drugOutPrice = "/"
@@ -414,7 +418,8 @@ export default {
414 418
             //   list[i].overDrug = this.getDrugWarehouseInfo(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
415 419
             //   list[i].overDrugPrice =  this.getDrugInMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
416 420
             //   list[i].oveDrugSaleMoney =  this.getSaleMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
417
-             list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
421
+            //  list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
422
+             list[i].overDrug = this.GetDrugOver(list[i].DrugStatFlow.over_count,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
418 423
              list[i].overDrugPrice = "/"
419 424
              list[i].oveDrugSaleMoney = "/"
420 425
             }
@@ -815,12 +820,7 @@ export default {
815 820
    }
816 821
 
817 822
    total_price =(totalOne - totalTwo + total_three - total_four + totalFive).toFixed(2)
818
-   console.log("totalONE232332323323223322323wi",totalOne)
819
-   console.log("totalTwo99999999999999988888888",totalTwo)
820
-   console.log("total_three99999999999999988888888",total_three)
821
-   console.log("total_four99999999999999988888888",total_four)
822
-   console.log("totalFive99999999999999988888888",totalFive)
823
-   console.log("-------------------------------------------")
823
+ 
824 824
    if(total_price >0){
825 825
     return total_price
826 826
    }else{
@@ -1071,6 +1071,28 @@ export default {
1071 1071
       return max_str + min_str
1072 1072
     }
1073 1073
 
1074
+   },
1075
+   drugAddInfoOne(arr,min_number,min_unit,max_unit,arr2){
1076
+    var total = 0
1077
+    var totalone = 0
1078
+    var totaltwo = 0
1079
+    var max_str = "";
1080
+    var min_str = "";
1081
+    if(arr!=null && arr.length > 0){
1082
+      for(let i=0;i<arr.length;i++){
1083
+        totalone += arr[i].count
1084
+      }
1085
+    }
1086
+    if(arr2!=null && arr2.length >0){
1087
+      for(let i=0;i<arr2.length;i++){
1088
+        totaltwo += arr2[i].count
1089
+      }
1090
+    }
1091
+    total = totalone + totaltwo
1092
+
1093
+    
1094
+    return total
1095
+
1074 1096
    },
1075 1097
    getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
1076 1098
     var total = 0
@@ -1162,6 +1184,33 @@ export default {
1162 1184
     return max_str + min_str;
1163 1185
    }
1164 1186
 
1187
+   },
1188
+   getDrugOutOne(arr,min_number,min_unit,max_unit,arr2,arr3){
1189
+    var total = 0
1190
+    var totalone = 0
1191
+    var totaltwo = 0
1192
+    var totalthree = 0
1193
+    var min_str = ""
1194
+    var max_str = ""
1195
+    if(arr!=null&&arr.length > 0){
1196
+      for(let i=0;i<arr.length;i++){
1197
+         totalone +=arr[i].count
1198
+      }
1199
+    }
1200
+    if(arr2!=null && arr2.length>0){
1201
+      for(let i=0;i<arr2.length;i++){
1202
+        totaltwo +=arr2[i].count
1203
+      }
1204
+    }
1205
+    if(arr3!=null && arr3.length>0){
1206
+      for(let i=0;i<arr3.length;i++){
1207
+        totalthree +=arr3[i].count
1208
+      }
1209
+    }
1210
+    total = totalone + totaltwo - totalthree
1211
+    
1212
+    return total
1213
+
1165 1214
    },
1166 1215
    getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1167 1216
 
@@ -1292,6 +1341,8 @@ export default {
1292 1341
             return max_str + min_str;
1293 1342
         }
1294 1343
     },
1344
+
1345
+  
1295 1346
     GetDrugEndFlow(total,min_number,min_unit,max_unit){
1296 1347
 
1297 1348
      var min_str = ""
@@ -1334,6 +1385,32 @@ export default {
1334 1385
       }
1335 1386
       return dear_name
1336 1387
     },
1388
+    GetDrugOver(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
1389
+      var total = 0
1390
+      var min_str = ""
1391
+      var max_str = ""  
1392
+       total = totalone + totaltwo - totalthree
1393
+        if (total < min_number) {
1394
+          min_str = total + min_unit;
1395
+        }
1396
+        if (total == 0) {
1397
+          min_str = "";
1398
+          max_str = "";
1399
+        }
1400
+        if (total >= min_number) {
1401
+          if (parseInt(total / min_number) != 0) {
1402
+            max_str = parseInt(total / min_number) + max_unit;
1403
+          }
1404
+          if (total % min_number != 0) {
1405
+            min_str = (total % min_number) + min_unit;
1406
+          }
1407
+      }
1408
+      if(max_str == "" && min_str == ""){
1409
+        return "0"
1410
+      }else{
1411
+        return max_str + min_str;
1412
+      }
1413
+    }
1337 1414
   }
1338 1415
 }
1339 1416
 </script>

+ 83 - 2
src/xt_pages/stock/drugs/components/purchaseNewDrugQueryPrint.vue Vedi File

@@ -301,6 +301,9 @@ export default {
301 301
 
302 302
             for(let i=0;i<list.length;i++){
303 303
                 list[i].last_price_in = 0
304
+                list[i].drugAddOne= 0
305
+                list[i].drugOutOne =0
306
+               
304 307
                 list[i].drugIn = this.GetDrugStartFlow(list[i].DrugStatFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit) 
305 308
                 //   list[i].drugIn = this.getDrugWarehouseInfoOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
306 309
                 //   list[i].drugInMoney = this.getDrugInMoneyOne(list[i].DrugWarehouseInfoStart,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].DrugWarehouseOutInfoStart,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].WareStartStockCancelInfo)
@@ -309,12 +312,14 @@ export default {
309 312
                 list[i].drugSaleMoney = "/"
310 313
 
311 314
                 list[i].drugAdd = this.drugAddInfo(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
315
+                list[i].drugAddOne= this.drugAddInfoOne(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
312 316
                 //   list[i].drugAddPrice = this.getdrugAddPrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
313 317
                 //   list[i].drugAddSalePrice = this.drugAddSalePrice(list[i].DrugWarehouseInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryProfit)
314 318
                 list[i].drugAddPrice = "/"
315 319
                 list[i].drugAddSalePrice = "/"
316 320
 
317 321
                 list[i].drugOut=  this.getDrugOut(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
322
+                list[i].drugOutOne = this.getDrugOutOne(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
318 323
                 //   list[i].drugOutPrice = this.getDrugOutPrice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
319 324
                 //   list[i].drugOutSalePrice = this.getDrugOutSaleprice(list[i].DrugWarehouseOutInfoStartEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareStartEndStockInventoryLosses,list[i].WareStartEndStockCancelInfo)
320 325
                 list[i].drugOutPrice = "/"
@@ -323,7 +328,8 @@ export default {
323 328
                 //   list[i].overDrug = this.getDrugWarehouseInfo(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
324 329
                 //   list[i].overDrugPrice =  this.getDrugInMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
325 330
                 //   list[i].oveDrugSaleMoney =  this.getSaleMoney(list[i].DrugWarehouseInfoEnd,list[i].DrugWarehouseOutInfoEnd,list[i].min_number,list[i].min_unit,list[i].max_unit,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].WareEndStockCancelInfo)
326
-                list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
331
+                // list[i].overDrug = this.GetDrugEndFlow(list[i].DrugEndFlow.over_count,list[i].min_number,list[i].min_unit,list[i].max_unit)
332
+                list[i].overDrug = this.GetDrugOver(list[i].DrugStatFlow.over_count,list[i].drugAddOne,list[i].drugOutOne,list[i].min_number,list[i].min_unit,list[i].max_unit)
327 333
                 list[i].overDrugPrice = "/"
328 334
                 list[i].oveDrugSaleMoney = "/"
329 335
             }
@@ -957,6 +963,27 @@ export default {
957 963
       return max_str + min_str;
958 964
     }
959 965
 
966
+   },
967
+   drugAddInfoOne(arr,min_number,min_unit,max_unit,arr2){
968
+    var total = 0
969
+    var totalone = 0
970
+    var totaltwo = 0
971
+    var max_str = "";
972
+    var min_str = "";
973
+    if(arr!=null && arr.length > 0){
974
+      for(let i=0;i<arr.length;i++){
975
+        totalone += arr[i].count
976
+      }
977
+    }
978
+    if(arr2!=null && arr2.length >0){
979
+      for(let i=0;i<arr2.length;i++){
980
+        totaltwo += arr2[i].count
981
+      }
982
+    }
983
+    total = totalone + totaltwo
984
+
985
+    return total
986
+
960 987
    },
961 988
     getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
962 989
     var total = 0
@@ -1046,7 +1073,34 @@ export default {
1046 1073
    }
1047 1074
 
1048 1075
    },
1049
-     getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1076
+   getDrugOutOne(arr,min_number,min_unit,max_unit,arr2,arr3){
1077
+    var total = 0
1078
+    var totalone = 0
1079
+    var totaltwo = 0
1080
+    var totalthree = 0
1081
+    var min_str = ""
1082
+    var max_str = ""
1083
+    if(arr!=null&&arr.length > 0){
1084
+      for(let i=0;i<arr.length;i++){
1085
+         totalone +=arr[i].count
1086
+      }
1087
+    }
1088
+    if(arr2!=null && arr2.length>0){
1089
+      for(let i=0;i<arr2.length;i++){
1090
+        totaltwo +=arr2[i].count
1091
+      }
1092
+    }
1093
+    if(arr3!=null && arr3.length>0){
1094
+      for(let i=0;i<arr3.length;i++){
1095
+        totalthree +=arr3[i].count
1096
+      }
1097
+    }
1098
+    total = totalone + totaltwo - totalthree
1099
+    
1100
+    return total
1101
+
1102
+   },
1103
+   getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1050 1104
 
1051 1105
     var total_price = 0
1052 1106
     var total_one_price =0
@@ -1139,6 +1193,7 @@ export default {
1139 1193
             return max_str + min_str;
1140 1194
         }
1141 1195
     },
1196
+
1142 1197
     GetDrugEndFlow(total,min_number,min_unit,max_unit){
1143 1198
 
1144 1199
      var min_str = ""
@@ -1173,6 +1228,32 @@ export default {
1173 1228
       }
1174 1229
       return dear_name
1175 1230
     },
1231
+    GetDrugOver(totalone,totaltwo,totalthree,min_number,min_unit,max_unit){
1232
+      var total = 0
1233
+      var min_str = ""
1234
+      var max_str = ""  
1235
+       total = totalone + totaltwo - totalthree
1236
+        if (total < min_number) {
1237
+          min_str = total + min_unit;
1238
+        }
1239
+        if (total == 0) {
1240
+          min_str = "";
1241
+          max_str = "";
1242
+        }
1243
+        if (total >= min_number) {
1244
+          if (parseInt(total / min_number) != 0) {
1245
+            max_str = parseInt(total / min_number) + max_unit;
1246
+          }
1247
+          if (total % min_number != 0) {
1248
+            min_str = (total % min_number) + min_unit;
1249
+          }
1250
+      }
1251
+      if(max_str == "" && min_str == ""){
1252
+        return "0"
1253
+      }else{
1254
+        return max_str + min_str;
1255
+      }
1256
+    }
1176 1257
    },
1177 1258
     created(){
1178 1259
       this.org_id =  this.$store.getters.xt_user.org_id

+ 2 - 1
src/xt_pages/stock/query/purchaseNewStockQuery.vue Vedi File

@@ -286,7 +286,8 @@ export default {
286 286
               // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
287 287
               // list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
288 288
               // list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
289
-              list[i].overStock = list[i].GoodEndFlowInfo.over_count
289
+              // list[i].overStock = list[i].GoodEndFlowInfo.over_count
290
+              list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
290 291
               list[i].overPrice = "/"
291 292
               list[i].overMoney = "/"
292 293
              

+ 2 - 1
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue Vedi File

@@ -188,7 +188,8 @@ export default {
188 188
                     // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
189 189
                     // list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
190 190
                     // list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
191
-                    list[i].overStock = list[i].GoodEndFlowInfo.over_count
191
+                    // list[i].overStock = list[i].GoodEndFlowInfo.over_count
192
+                    list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
192 193
                     list[i].overPrice = "/"
193 194
                     list[i].overMoney = "/"
194 195
                 

+ 3 - 1
src/xt_pages/stock/query/purchaseStockQuery.vue Vedi File

@@ -262,7 +262,9 @@ export default {
262 262
               list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
263 263
               list[i].saleOutMoney = this.getSaleStockMony(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
264 264
               
265
-              list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
265
+              // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
266
+
267
+              list[i].overStock = list[i].stockIn + list[i].stockAdd - list[i].outStock
266 268
               list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
267 269
               list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
268 270
              

+ 2 - 1
src/xt_pages/stock/query/purchaseStockQueryPrint.vue Vedi File

@@ -172,7 +172,8 @@ export default {
172 172
                   list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
173 173
                   list[i].saleOutMoney = this.saleOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
174 174
                   
175
-                  list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
175
+                  list[i].overStock = list[i].stockIn + list[i].stockAdd -list[i].outStock
176
+                  // list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
176 177
                   list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
177 178
                   list[i].overMoney = this.getEndSalePrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
178 179
                 

+ 7 - 5
src/xt_pages/user/doctorAdvice.vue Vedi File

@@ -199,7 +199,9 @@
199 199
           <template slot-scope="scope">
200 200
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
201 201
               <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
202
-                <span v-if="scope.row.frequency_type >0" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
202
+                <span v-if="scope.row.frequency_type ==1" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
203
+                <span v-if="scope.row.frequency_type ==2 && scope.row.day_count>0" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
204
+                <span v-if="scope.row.frequency_type ==3 && scope.row.week_day!=''" style="color:#1AAD19"> {{ scope.row.advice_name}}</span>
203 205
                 <span v-if="scope.row.frequency_type ==0"> {{ scope.row.advice_name}}</span>
204 206
                 <i class="el-icon-arrow-down el-icon--right"></i>
205 207
               </span>
@@ -4432,13 +4434,13 @@ export default {
4432 4434
       // this.sameRowArr = sameRowArr;
4433 4435
     },
4434 4436
     mergeSpan({ row, column, rowIndex, columnIndex }) {
4435
-      console.log("row29292929",columnIndex)
4436
-      console.log("conlumnindex",this.tempArr)
4437
+      // console.log("row29292929",columnIndex)
4438
+      // console.log("conlumnindex",this.tempArr)
4437 4439
       if (columnIndex === 0 || columnIndex === 1 || columnIndex === 2) {
4438 4440
         const _row = this.tempArr[rowIndex];
4439 4441
         const _col = _row > 0 ? 1 : 0;
4440
-        console.log("_row--------------",_row)
4441
-        console.log("_col",_col)
4442
+        // console.log("_row--------------",_row)
4443
+        // console.log("_col",_col)
4442 4444
         return {
4443 4445
           rowspan: _row,
4444 4446
           colspan: _col