فهرست منبع

添加惠城导出

lvhao 3 ماه پیش
والد
کامیت
4a72df57a8
1فایلهای تغییر یافته به همراه31 افزوده شده و 0 حذف شده
  1. 31 0
      template/erp/systembound.html

+ 31 - 0
template/erp/systembound.html

@@ -38,6 +38,11 @@
 <li>
 <font class="cona dowot">下载Excel</font>
 </li>
+
+<li>
+<font class="cona dchc">导出惠程计数</font>
+</li>
+
 <li>
 <font class="cona obadd">添加信息</font>
 </li>
@@ -101,6 +106,32 @@ var dataurl = "/systembound/";var fdataurl = "/systembound/";
 $(document).ready(function() {
 $("#outbound").focus();
 });
+
+
+$(".dchc").click(function() {
+    var f = "";
+    $(".select").each(function() {
+        f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
+    });
+    $("input:text").each(function() {
+        f = f + $(this).attr("name") + "=" + $(this).val() + "&";
+    });
+    $("input:hidden").each(function() {
+        f = f + $(this).attr("name") + "=" + $(this).val() + "&";
+    });
+	if($("input[name=systembox]").length > 0)
+	{
+		if($("select[name='warehouse']").children("option:selected").val() == '')
+		{
+			 $(".ts p").text("请选择仓库!");
+        $(".ts").show();
+        setTimeout('$(".ts").fadeOut()', 800);
+		return false;
+		}
+	}
+    window.location.href = dataurl+"excelhc?fexcel=1&" + f;
+    $("select[name=fexcel] option:eq(0)").prop('selected', 'selected');
+});
 </script>
 <script type="text/javascript" src="{$theme}js/laydate.js"></script>
 <script type="text/javascript" src="{$theme}js/print.js?v=2020160001"></script>