Showing
1 changed file
with
15 additions
and
2 deletions
@@ -1397,7 +1397,20 @@ $(document).on('click', '.return-btn', function () { | @@ -1397,7 +1397,20 @@ $(document).on('click', '.return-btn', function () { | ||
1397 | 1397 | ||
1398 | /***********************批量导出***********************/ | 1398 | /***********************批量导出***********************/ |
1399 | $("#batchExportChangePrice").click(function(){ | 1399 | $("#batchExportChangePrice").click(function(){ |
1400 | - var count = 0, | 1400 | + if(batchAuditPlanId.length == 0 ){ |
1401 | + common.util.__tip('未勾选任何变价计划', 'warning'); | ||
1402 | + return; | ||
1403 | + } | ||
1404 | + | ||
1405 | + var getResult=function(){ | ||
1406 | + return { | ||
1407 | + planIdList: batchAuditPlanId, | ||
1408 | + checkState: AuditEnum.status[t.getData().name] | ||
1409 | + } | ||
1410 | + } | ||
1411 | + window.open("/ajax/down?queryConf=" + JSON.stringify(getResult()) + "&type=changePriceExport"); | ||
1412 | + | ||
1413 | + /*var count = 0, | ||
1401 | selectedArr = g.selected, | 1414 | selectedArr = g.selected, |
1402 | len = selectedArr.length, | 1415 | len = selectedArr.length, |
1403 | data = g.options.parms(); | 1416 | data = g.options.parms(); |
@@ -1421,7 +1434,7 @@ $("#batchExportChangePrice").click(function(){ | @@ -1421,7 +1434,7 @@ $("#batchExportChangePrice").click(function(){ | ||
1421 | cooperationType : common.util.__input("cooperationType") | 1434 | cooperationType : common.util.__input("cooperationType") |
1422 | } | 1435 | } |
1423 | } | 1436 | } |
1424 | - window.open("/ajax/down?queryConf=" + JSON.stringify(getResult()) + "&type=changePriceExport"); | 1437 | + window.open("/ajax/down?queryConf=" + JSON.stringify(getResult()) + "&type=changePriceExport");*/ |
1425 | 1438 | ||
1426 | }); | 1439 | }); |
1427 | 1440 |
-
Please register or login to post a comment