|
@@ -289,7 +289,18 @@ function finish(that){
|
|
|
function excelexport(){
|
|
|
layx.load('loadId','请求中',{shadable:0.6});
|
|
|
// return console.log($("form").serialize())
|
|
|
- $.post("/returngoodsexcel/excel",$("form").serialize(),function(a){
|
|
|
+
|
|
|
+ let select_list = [];
|
|
|
+ $("input[name=check]").each(function(){
|
|
|
+ if($(this).prop('checked')){
|
|
|
+ select_list.push($(this).val())
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let form_data = $("form").serialize();
|
|
|
+ if(select_list.length > 0){
|
|
|
+ form_data = {sid:select_list}
|
|
|
+ }
|
|
|
+ $.post("/returngoodsexcel/excel",form_data,function(a){
|
|
|
layx.destroy('loadId');
|
|
|
if (a && a.success) {
|
|
|
if (a.data.length > 0){
|