lvhao 1 день тому
батько
коміт
be3f79970c
1 змінених файлів з 17 додано та 0 видалено
  1. 17 0
      template/erp/whlabel_bh_operate.html

+ 17 - 0
template/erp/whlabel_bh_operate.html

@@ -43,6 +43,9 @@
 <li>
 <font class="cona xz">下载Excel</font>
 </li>
+<li>
+<font class="cona wcxz">完成汇总下载excel</font>
+</li>
 <li style="padding-left:25px">
 <select name="printer" class="select">
 <option value="">选择打印机</option>
@@ -172,6 +175,20 @@ $(document).keyup(function(event) {
         }
 	}
 })
+$(".wcxz").click(function() {
+    var f = "transfer=3&";
+    // $(".select").each(function() {
+    //     f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
+    // });
+    f = f + "color="+$("select[name='color']").val()+"&";
+    $("input:text").each(function() {
+        f = f + $(this).attr("name") + "=" + $(this).val() + "&";
+    });
+	$("input:hidden").each(function() {
+        f = f + $(this).attr("name") + "=" + $(this).val() + "&";
+    });
+  window.location.href = "/whlabel_bh/excelwchz/?fexcel=1&"+f;
+});
 
 $(".obdel").click(function() {
 	var a = "";