lvhao 1 hari lalu
induk
melakukan
7d79606f3d
1 mengubah file dengan 16 tambahan dan 7 penghapusan
  1. 16 7
      template/erp/beihuogl_ccwlbhindex.html

+ 16 - 7
template/erp/beihuogl_ccwlbhindex.html

@@ -23,12 +23,9 @@
     <input type="hidden" name="shop_ids" value="{$usersp}">
     <input type="hidden" name="shop_ids" value="{$usersp}">
     <li><span>确 定</span></li>
     <li><span>确 定</span></li>
 </ul>
 </ul>
-<!-- <div class="control">
-
-
-<input type="text" name="bh_no" placeholder="请输入备货单号" style="width: 200px;height: 30px;"></li>
-<button style="border:0px solid #fff;padding:6px 10px;margin-left: 10px;border-radius: 5px;background-color: coral;color:#fff" onclick="makeBh()">生成备货单</button>
-</div> -->
+<div class="control">
+<a href="javascript:void(0)" onclick="xzbhdxz()">选择备货单下载 </a>
+</div>
 
 
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
 <table class="datatitle data" border="0" style="border-collapse:collapse;">
 <tr>
 <tr>
@@ -91,7 +88,19 @@ function update_status(that){
         }
         }
     },'json')  
     },'json')  
 }
 }
-    
+function xzbhdxz(){
+    let arr_id =  [];
+    $("input[name='check']:checked").each(function(){
+        arr_id.push($(this).val());
+    })
+    if(arr_id.length === 0){
+        layx.msg('请选择要下载备货单',{dialogIcon:'error', position:'cc'});
+        return;
+    }
+    let str_ids = arr_id.join(',');
+    location.href="/beihuogl/ccwlbhdownload?excel=erp&ids="+str_ids;
+
+}    
 </script>
 </script>
 <script type="text/javascript" src="{$theme}js/laydate.js"></script>
 <script type="text/javascript" src="{$theme}js/laydate.js"></script>
 <script type="text/javascript" src="{$theme}js/excel/xlxs.js" ></script>
 <script type="text/javascript" src="{$theme}js/excel/xlxs.js" ></script>