Browse Source

修改B2B文件下载上传问题

shenjj 7 years ago
parent
commit
432e814053

+ 25 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_materialCtrl.js

@@ -4177,6 +4177,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
                   $modalInstance.close(data);
                 }
               }, function (response) {
+                if (response.data.indexOf('系统') > -1 ){
+                  toaster.pop('error', '错误',response.data);
+                  return
+                }
                 toaster.pop('info', '提示', '信息删除中,请耐心等待!');
               });
             } else {
@@ -4189,6 +4193,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
                   $modalInstance.close(data);
                 }
               }, function (response) {
+                if (response.data.indexOf('系统') > -1 ){
+                  toaster.pop('error', '错误',response.data);
+                  return
+                }
                 toaster.pop('info', '提示', '信息删除中,请耐心等待!');
               });
             }
@@ -4203,7 +4211,11 @@ define(['app/app', 'jquery-uploadify'], function(app) {
                   $modalInstance.close(data);
                 }
               }, function (response) {
-                toaster.pop('info', '提示', '信息删除中,请耐心等待!');
+                if (response.data.indexOf('系统') > -1 ){
+                  toaster.pop('error', '错误',response.data);
+                  return
+                }
+                  toaster.pop('info', '提示', '信息删除中,请耐心等待!');
               });
             } else {
               Material.deleteUnstandardAll({isPerson: 1}, function (data) {
@@ -4215,6 +4227,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
                   $modalInstance.close(data);
                 }
               }, function (response) {
+                if (response.data.indexOf('系统') > -1 ){
+                  toaster.pop('error', '错误',response.data);
+                  return
+                }
                 toaster.pop('info', '提示', '信息删除中,请耐心等待!');
               });
             }
@@ -4233,6 +4249,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
             }, function (response) {
               $scope.deleteModal = false;
               $modalInstance.dismiss();
+              if (response.data.indexOf('系统') > -1 ){
+                toaster.pop('error', '错误',response.data);
+                return
+              }
               toaster.pop('info', '提示', '信息删除中,请耐心等待!');
             });
           } else {
@@ -4243,6 +4263,10 @@ define(['app/app', 'jquery-uploadify'], function(app) {
             }, function (response) {
               $scope.deleteModal = false;
               $modalInstance.dismiss();
+              if (response.data.indexOf('系统') > -1 ){
+                toaster.pop('error', '错误',response.data);
+                return
+              }
               toaster.pop('info', '提示', '信息删除中,请耐心等待!');
             });
           }