Browse Source

主动报价单保存和提交后跳转到列表页面

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@10653 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
wangmh 8 years ago
parent
commit
baa0c9f997
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/main/webapp/resources/js/index/app.js

+ 4 - 3
src/main/webapp/resources/js/index/app.js

@@ -5724,8 +5724,8 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 if ($stateParams.id)
                     window.location.reload();
                 else
-                    window.location.hash = '#/sale/quotation/' + data.id;
-//					window.location.hash = '#/sale/quotation/list';
+                    // window.location.hash = '#/sale/quotation/' + data.id;
+					window.location.hash = '#/sale/quotation/list';
             }, function (response) {
                 $scope.loading = false;
                 toaster.pop('error', '保存失败', response.data);
@@ -5760,7 +5760,8 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             Quotation.save({}, $scope.item, function (data) {
                 $scope.loading = false;
                 toaster.pop('success', '成功', '提交成功');
-                window.location.hash = '#/sale/quotation/' + data.id;
+                // window.location.hash = '#/sale/quotation/' + data.id;
+                window.location.hash = '#/sale/quotation/list';
             }, function (response) {
                 $scope.loading = false;
                 toaster.pop('error', '保存失败', response.data);