Showing
1 changed file
with
7 additions
and
6 deletions
@@ -860,9 +860,9 @@ var priceToThirdCheck = { | @@ -860,9 +860,9 @@ var priceToThirdCheck = { | ||
860 | 860 | ||
861 | // 驳回 | 861 | // 驳回 |
862 | var priceReject = { | 862 | var priceReject = { |
863 | - toast: function(content, fn) { | ||
864 | - var url = "/goods/price/reject" | ||
865 | - if(fn().currentState == '102' ){ | 863 | + toast: function(content, fn,state) { |
864 | + var url = "/goods/price/reject"; | ||
865 | + if(state == '102' ){ | ||
866 | url = "/goods/price/reject1" | 866 | url = "/goods/price/reject1" |
867 | } | 867 | } |
868 | var $this = $(this); | 868 | var $this = $(this); |
@@ -918,7 +918,7 @@ $(document).on("click", ".audit-reject-btn", function() { | @@ -918,7 +918,7 @@ $(document).on("click", ".audit-reject-btn", function() { | ||
918 | dealComment: reason | 918 | dealComment: reason |
919 | }; | 919 | }; |
920 | } | 920 | } |
921 | - priceReject.toast.call(this, $("#template3").html(), data); | 921 | + priceReject.toast.call(this, $("#template3").html(), data,item.checkState); |
922 | }); | 922 | }); |
923 | 923 | ||
924 | //批量通过 | 924 | //批量通过 |
@@ -964,7 +964,7 @@ $(document).on("click", "#batch_pass_btn", function() { | @@ -964,7 +964,7 @@ $(document).on("click", "#batch_pass_btn", function() { | ||
964 | 964 | ||
965 | //批量驳回 | 965 | //批量驳回 |
966 | $(document).on("click", "#batch_reject_btn", function() { | 966 | $(document).on("click", "#batch_reject_btn", function() { |
967 | - | 967 | + var checkState=""; |
968 | var count = 0, | 968 | var count = 0, |
969 | selectedArr = g.selected, | 969 | selectedArr = g.selected, |
970 | len = selectedArr.length, | 970 | len = selectedArr.length, |
@@ -985,6 +985,7 @@ $(document).on("click", "#batch_reject_btn", function() { | @@ -985,6 +985,7 @@ $(document).on("click", "#batch_reject_btn", function() { | ||
985 | if (len > 0) { | 985 | if (len > 0) { |
986 | $.each(selectedArr, function(i, value) { | 986 | $.each(selectedArr, function(i, value) { |
987 | planIdList.push(value['planId']); | 987 | planIdList.push(value['planId']); |
988 | + checkState = value['checkState']; | ||
988 | }); | 989 | }); |
989 | } | 990 | } |
990 | var result=function(){ | 991 | var result=function(){ |
@@ -998,7 +999,7 @@ $(document).on("click", "#batch_reject_btn", function() { | @@ -998,7 +999,7 @@ $(document).on("click", "#batch_reject_btn", function() { | ||
998 | planIdList:JSON.stringify(planIdList) | 999 | planIdList:JSON.stringify(planIdList) |
999 | }; | 1000 | }; |
1000 | } | 1001 | } |
1001 | - priceReject.toast.call(this, $("#template3").html(), result); | 1002 | + priceReject.toast.call(this, $("#template3").html(), result,checkState); |
1002 | }else{ | 1003 | }else{ |
1003 | common.util.__tip('请选择待驳回的记录', 'warning'); | 1004 | common.util.__tip('请选择待驳回的记录', 'warning'); |
1004 | return; | 1005 | return; |
-
Please register or login to post a comment