瀏覽代碼

公共询价列表点击我要报价时去掉查询数据的判断,在页面上已经做了判断处理

hejq 8 年之前
父節點
當前提交
156d30d457
共有 1 個文件被更改,包括 13 次插入19 次删除
  1. 13 19
      src/main/webapp/resources/js/index/app.js

+ 13 - 19
src/main/webapp/resources/js/index/app.js

@@ -5601,27 +5601,21 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
         // 转客户询价
         $scope.transtoInquiry = function (inquiryItem) {
-            publicInquiry.quotationInfo({id: inquiryItem.id}, function(data) {
-                if (data.inquiryItem) { //存在已报价的就不进行报价操作
-                    toaster.pop('error', '该询价单已已经报价');
-                } else {
-                    var modalInstance = $modal.open({
-                        templateUrl: 'static/tpl/index/baseInfo/modal/quotation_modal.html',
-                        controller: 'QuoteCtrl',
-                        size: 'lg',
-                        resolve: {
-                            inquiryItem: function () {
-                                return inquiryItem
-                            }
-                        }
-                    });
+            var modalInstance = $modal.open({
+                templateUrl: 'static/tpl/index/baseInfo/modal/quotation_modal.html',
+                controller: 'QuoteCtrl',
+                size: 'lg',
+                resolve: {
+                    inquiryItem: function () {
+                        return inquiryItem
+                    }
+                }
+            });
 
-                    modalInstance.result.then(function (data) {
-                        $scope.tableParams.reload();
-                    }, function () {
+            modalInstance.result.then(function (data) {
+                $scope.tableParams.reload();
+            }, function () {
 
-                    });
-                }
             });
         }