Browse Source

修改库存管理bug

shenjj 7 years ago
parent
commit
0047abf67d

+ 4 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_materialCtrl.js

@@ -3677,6 +3677,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
     }
     }
 
 
     $scope.editRegulPicture = function(Regulpic, commodity) {
     $scope.editRegulPicture = function(Regulpic, commodity) {
+      if (commodity.erpReserve === '' ||  commodity.erpReserve === 0 || !commodity.erpReserve) {
+        toaster.pop('warning','提示','当前物料库存为0,请先入库')
+        return;
+      }
       if (commodity.editRegulShow ) return
       if (commodity.editRegulShow ) return
       $scope.clearCheckBox()
       $scope.clearCheckBox()
       commodity.editRegulShow = true
       commodity.editRegulShow = true