Просмотр исходного кода

评论:验收反馈调整,批量回复2

wangdy 8 лет назад
Родитель
Сommit
c8aa4fe103

+ 8 - 19
src/main/webapp/resources/js/vendor/controllers/forstore/show_rate_ctrl.js

@@ -84,39 +84,28 @@ define(['app/app'], function(app) {
         $scope.modalData = [];
 
         $scope.getModal = function (detail, type) {
-            var param = {
-                goodsId: $scope.goodsId,
-                returnMeg: $scope.modalTempData.rateContent
-            };
             // $scope.rateContent.storeid = purchase.storeid;
             // $scope.rateContent.purchaseid = purchase.purchaseid;
             // $scope.rateContent.orderid = purchase.orderid;
             if(type == 'allRate'){
+                debugger;
                 var count= 0 ;
                 if ($scope.order.rateStatus == 523){
                     angular.forEach($scope.buyerRateGoods,function (item,index) {
                         if (item.buyerRate != '此用户没有填写评价!' && item.buyerRate != '此用户未及时做出评价,系统默认好评!'){
                             if (!item.returnMeg || item.returnMeg =='' ){
-                                item.returnMeg = param.returnMeg;
                             }else{count++;}
                         }else{count++;}
-                    })
-                    if (count == $scope.buyerRateGoods.length){
-                        $scope.setShowRateBoxFlag(false);
-                        toaster.pop('warning', '您当前没有可回复的评价');
-                        return;
-                    }
+                    });
                 }else if ($scope.order.rateStatus == 522){
                     angular.forEach($scope.buyerRateGoods,function (item,index) {
-                        if (item.buyerAfterRate && !item.afterReturnMeg){
-                            item.afterReturnMeg = param.returnMeg;
-                        }else {count++;}
+                        if (item.buyerAfterRate && !item.afterReturnMeg){}else {count++;}
                     })
-                    if (count == $scope.buyerRateGoods.length){
-                        $scope.setShowRateBoxFlag(false);
-                        toaster.pop('warning', '您当前没有可回复的评价');
-                        return;
-                    }
+                }
+                if (count == $scope.buyerRateGoods.length){
+                    $scope.setShowRateBoxFlag(false);
+                    toaster.pop('warning', '您当前没有可回复的评价');
+                    return;
                 }
             }
             $scope.rateType = type;