Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
ca9c7d716c

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

893
                     <div class="inline_block" style="margin-left:10px;flex:1.5;">
893
                     <div class="inline_block" style="margin-left:10px;flex:1.5;">
894
                       BP:
894
                       BP:
895
                       <div class="under_line" style="width: 50px;text-align: center;">
895
                       <div class="under_line" style="width: 50px;text-align: center;">
896
-                        {{ afterBP.systolic_blood_pressure ? afterBP.systolic_blood_pressure : "/" }}
896
+                       <span v-if="afterBP!=undefined"> {{ afterBP.systolic_blood_pressure ? afterBP.systolic_blood_pressure : "/" }}</span>
897
                       </div>
897
                       </div>
898
                       /
898
                       /
899
                       <div class="under_line" style="width: 50px;text-align: center;">
899
                       <div class="under_line" style="width: 50px;text-align: center;">
900
-                        {{ afterBP.diastolic_blood_pressure ? afterBP.diastolic_blood_pressure : "/" }}
900
+                      <span v-if="afterBP!=undefined"> {{ afterBP.diastolic_blood_pressure ? afterBP.diastolic_blood_pressure : "/" }}</span> 
901
                       </div>
901
                       </div>
902
                       mmHg
902
                       mmHg
903
                     </div>
903
                     </div>

+ 6 - 4
src/xt_pages/stock/detail/print.vue View File

51
               <td style="line-height: 50px">
51
               <td style="line-height: 50px">
52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53
                 <span v-if="type == 2"> 
53
                 <span v-if="type == 2"> 
54
-                  <span  v-if= "org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span> 
55
-                   <span  v-if= "org_id == 10265">{{getMySelfCount(item.good_id) }}</span>   
54
+                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span> 
55
+                   <span  v-if="org_id == 10265">{{getMySelfCount(item.good_id) }}</span>   
56
                   <span v-else>{{getStockCount(item.good_id) }}</span>
56
                   <span v-else>{{getStockCount(item.good_id) }}</span>
57
                 </span>
57
                 </span>
58
                
58
                
415
        }
415
        }
416
        return total
416
        return total
417
      },
417
      },
418
-     getMySelfCount(){
418
+     getMySelfCount(good_id){
419
        var total = 0
419
        var total = 0
420
        for(let i=0;i<this.stockDatas.length;i++){
420
        for(let i=0;i<this.stockDatas.length;i++){
421
-         total+= this.stockDatas[i].count
421
+         if(good_id == this.stockDatas[i].good_id){
422
+            total+= this.stockDatas[i].count
423
+         }
422
        }
424
        }
423
        return total
425
        return total
424
      },
426
      },

+ 5 - 3
src/xt_pages/stock/detail/stockOutDetail.vue View File

871
         }
871
         }
872
         return count
872
         return count
873
     }, 
873
     }, 
874
-     getMySelfCount(){
874
+    getMySelfCount(good_id){
875
        var total = 0
875
        var total = 0
876
-       for(let i=0;i<this.tableOut.length;i++){
877
-         total+= this.tableOut[i].count
876
+       for(let i=0;i<this.stockDatas.length;i++){
877
+         if(good_id == this.stockDatas[i].good_id){
878
+            total+= this.stockDatas[i].count
879
+         }
878
        }
880
        }
879
        return total
881
        return total
880
      },
882
      },