Parcourir la source

11月14日 库存扣减更新

XMLWAN il y a 3 ans
Parent
révision
7a0993eb89

+ 10 - 7
src/xt_pages/stock/drugs/drugStockOutOrder.vue Voir le fichier

@@ -935,15 +935,18 @@ export default {
935 935
          this.dealerList = response.data.data.dealerList
936 936
          var drugFlowList = response.data.data.drugFlowList
937 937
          if (is_sys == 1){
938
+           if(drugFlowList.length >0){
938 939
             for(let i=0;i<drugFlowList.length;i++){
939
-              if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
940
-                  drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
941
-              }
942
-              if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
943
-                  drugFlowList[i].count = drugFlowList[i].count
944
-              }
940
+                if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
941
+                    drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
942
+                }
943
+                if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
944
+                    drugFlowList[i].count = drugFlowList[i].count
945
+                }
945 946
 
947
+            }
946 948
            }
949
+        
947 950
             this.drugFlowList = drugFlowList
948 951
          }
949 952
          if(is_sys == 0){
@@ -951,7 +954,7 @@ export default {
951 954
             this.drugFlowList = []
952 955
             for(let i=0;i<flowlist.length;i++){
953 956
               if(flowlist[i].count_unit == flowlist[i].max_unit){
954
-                  flowlist[i].count = flowlist[i].count * list[i].min_number
957
+                  flowlist[i].count = flowlist[i].count * flowlist[i].min_number
955 958
               }
956 959
               if(flowlist[i].count_unit == flowlist[i].min_unit){
957 960
                   flowlist[i].count = flowlist[i].count

+ 1 - 0
src/xt_pages/supply/components/editGoodReturn.vue Voir le fichier

@@ -1241,6 +1241,7 @@ export default {
1241 1241
             var specification_name = response.data.data.specification_name
1242 1242
             var str = good_name +"*" + specification_name +"库存不足,审核失败!"
1243 1243
             this.$message.error(str)
1244
+            this.loading = false;
1244 1245
 
1245 1246
           }
1246 1247
           if(msg == 3){