Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
ca9c7d716c

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

@@ -893,11 +893,11 @@
893 893
                     <div class="inline_block" style="margin-left:10px;flex:1.5;">
894 894
                       BP:
895 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 897
                       </div>
898 898
                       /
899 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 901
                       </div>
902 902
                       mmHg
903 903
                     </div>

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

@@ -51,8 +51,8 @@
51 51
               <td style="line-height: 50px">
52 52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53 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 56
                   <span v-else>{{getStockCount(item.good_id) }}</span>
57 57
                 </span>
58 58
                
@@ -415,10 +415,12 @@
415 415
        }
416 416
        return total
417 417
      },
418
-     getMySelfCount(){
418
+     getMySelfCount(good_id){
419 419
        var total = 0
420 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 425
        return total
424 426
      },

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

@@ -871,10 +871,12 @@ export default {
871 871
         }
872 872
         return count
873 873
     }, 
874
-     getMySelfCount(){
874
+    getMySelfCount(good_id){
875 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 881
        return total
880 882
      },