longyi преди 6 месеца
родител
ревизия
e5a611287c
променени са 1 файла, в които са добавени 140 реда и са изтрити 140 реда
  1. 140 140
      template/erp/whlabeltransport.html

+ 140 - 140
template/erp/whlabeltransport.html

@@ -1,141 +1,141 @@
-{Template header}
-<body>
-<div class="warp">
-<div class="fixed">
-<ul class="search">
-<li>SKU:<input value="" name="sku" type="text" style="width:250px;"></li>
-<li>备注:<input value="" name="text" type="text" ></li>
-<li>状态:<select name="cz" class="select">
-<option value="">请选择</option>
-<option value="0">未到达</option>
-<option value="1">已到达</option>
-</select></li>
-<li>仓库:<select name="warehouse" class="select">
-<option value="">请选择</option>{loop warehouse(10) as $val}
-<option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
-<li><select name="xztime" class="select">
-<option value="enter">添加时间</option>
-<option value="stime">预达时间</option>
-<option value="time">完成时间</option>
-</select> :<input id="timetk"  value="{date('Y-m-d',time()-29*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
-至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time()+24*3600)} 0:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>
-<li><span>确 定</span></li>
-</ul>
-<div class="control">
-<a href="javascript:void(0);" class="datalistwc">批量完成</a>
-<a href="javascript:void(0);" class="whlabeltransportmb">导出模板</a>
-<a href="javascript:void(0);" class="whlabeldr">导入在途数据</a>
-<a href="javascript:void(0);" class="whlabeltransportexcel">导出在途数据</a>
-<a href="javascript:void(0);" class="whlabeltransportexcelzh">导出在途中及库存数据</a>
-<a href="javascript:void(0);" class="check">删 除</a>
-</div>
-<table class="datatitle data" border="0" style="border-collapse:collapse;">
-<tr>
-<td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
-<td>仓库</td>
-<td>SKU</td>
-<td>产品名称</td>
-<td>数量</td>
-<td>添加时间</td>
-<td>预达时间</td>
-<td>完成时间</td>
-<td>备注</td>
-<td>操作</td>
-</tr>
-</table>
-</div>
-<table class="datatext data" border="0" style="border-collapse:collapse;">
-</table>
-<div class="bomf"></div>
-</div>
-<script>
-var dataurl = "/whlabeltransport/";var fdataurl = "/whlabeltransport/";var excel = "/whlabeltransport/add/";
-$(function () { $("#ktime").calendar();$("#jtime").calendar();});
-var customon = 1;
-var editurl = "/whlabeltransport/edit/";
-var editdj = 2;
-var editt = "编辑数量 - 操作";
-let ppkc = false;
-let kcpd = false;
-let customs = false;
-function custom(){
-$(".data tr").each(function() {
-$(this).find('td:eq(1)').css("width","6%");
-$(this).find('td:eq(3)').css("width","25%");
-$(this).find('td:eq(4)').css("width","4%");
-});}
-$(".whlabeltransportmb").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() + "&";
-    });
-window.location.href = "http://1.wepolicy.cn/whlabeltransport/presetou?excel=1&"+f;
-});
-$(".whlabeltransportexcel").click(function() {
-var f = "";
-	$(".select").each(function() {
-        f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
-    });
-    $("input:text").each(function() {
-		 str2 = $(this).val().replace(/\</g,"&lt;");
-		str2 = str2.replace(/\>/g,"&gt;");
-		str2 = str2.replace(/\+/g,"%2B");
-		str2 = str2.replace(/&/g,"%26");
-		str2 = str2.replace(/#/g,escape('#'));
-        f = f + $(this).attr("name") + "=" + str2 + "&";
-    });
-	
-window.location.href = "http://1.wepolicy.cn/whlabeltransport/excel?excel=1&"+f;
-});
-
-$(".whlabeltransportexcelzh").click(function() {
-var f = "";
-	$(".select").each(function() {
-        f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
-    });
-    $("input:text").each(function() {
-        str2 = $(this).val().replace(/\</g,"&lt;");
-		str2 = str2.replace(/\>/g,"&gt;");
-		str2 = str2.replace(/\+/g,"%2B");
-		str2 = str2.replace(/&/g,"%26");
-		str2 = str2.replace(/#/g,escape('#'));
-        f = f + $(this).attr("name") + "=" + str2 + "&";
-    });
-	
-window.location.href = "http://1.wepolicy.cn/whlabeltransport/excelzh?excel=1&"+f;
-});
-$(".datatext").on('click',"td .ztwc",function() {
-	var id = $(this).data("id");
-	layx.load('loadId','操作中,请稍后',{shadable:0.6});
- $.ajax({
-        url: fdataurl+"/zj/",
-        data: "id="+id,
-        type: "POST",
-        dataType: "json",
-        success: function(a) {
-			layx.destroy('loadId');
-            if (a && a.success) {
-				$(".datatext #"+a.id).find("td .ztwc").hide();
-				$(".datatext #"+a.id).find("td .cz").html("已完成");
-				$(".datatext #"+a.id).find("td .wc").html(a.time);
-				$(".ts p").html(a.msg);
-                $(".ts").fadeIn();
-                setTimeout('$(".ts").fadeOut()', 800);
-				}
-             else {
-				 $(".ts p").html(a.msg);
-                $(".ts").fadeIn();
-                setTimeout('$(".ts").fadeOut()', 800);
-        }
-		}
-    });
-});
-</script>
-<script type="text/javascript" src="{$theme}js/laydate.js"></script>
-<div style="display:none;">
-<input id="upload-file" name="files" accept="image/xls,image/xlsx" type="file">
-</div>
+{Template header}
+<body>
+<div class="warp">
+<div class="fixed">
+<ul class="search">
+<li>SKU:<input value="" name="sku" type="text" style="width:250px;"></li>
+<li>备注:<input value="" name="text" type="text" ></li>
+<li>状态:<select name="cz" class="select">
+<option value="">请选择</option>
+<option value="0">未到达</option>
+<option value="1">已到达</option>
+</select></li>
+<li>仓库:<select name="warehouse" class="select">
+<option value="">请选择</option>{loop warehouse(10) as $val}
+<option value="{$val['id']}">{$val['title']}</option>{/loop}</select></li>
+<li><select name="xztime" class="select">
+<option value="enter">添加时间</option>
+<option value="stime">预达时间</option>
+<option value="time">完成时间</option>
+</select> :<input id="timetk"  value="{date('Y-m-d',time()-29*24*3600)} 0:00" name="timetk" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})">
+至&nbsp;&nbsp;&nbsp;&nbsp; <input id="timetj" value="{date('Y-m-d',time()+24*3600)} 0:00" name="timetj" type="text" onClick="laydate({istime: true,format:'YYYY-MM-DD hh:mm'})"></li>
+<li><span>确 定</span></li>
+</ul>
+<div class="control">
+<a href="javascript:void(0);" class="datalistwc">批量完成</a>
+<a href="javascript:void(0);" class="whlabeltransportmb">导出模板</a>
+<a href="javascript:void(0);" class="whlabeldr">导入在途数据</a>
+<a href="javascript:void(0);" class="whlabeltransportexcel">导出在途数据</a>
+<a href="javascript:void(0);" class="whlabeltransportexcelzh">导出在途中及库存数据</a>
+<a href="javascript:void(0);" class="check">删 除</a>
+</div>
+<table class="datatitle data" border="0" style="border-collapse:collapse;">
+<tr>
+<td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
+<td>仓库</td>
+<td>SKU</td>
+<td>产品名称</td>
+<td>数量</td>
+<td>添加时间</td>
+<td>预达时间</td>
+<td>完成时间</td>
+<td>备注</td>
+<td>操作</td>
+</tr>
+</table>
+</div>
+<table class="datatext data" border="0" style="border-collapse:collapse;">
+</table>
+<div class="bomf"></div>
+</div>
+<script>
+var dataurl = "/whlabeltransport/";var fdataurl = "/whlabeltransport/";var excel = "/whlabeltransport/add/";
+$(function () { $("#ktime").calendar();$("#jtime").calendar();});
+var customon = 1;
+var editurl = "/whlabeltransport/edit/";
+var editdj = 2;
+var editt = "编辑数量 - 操作";
+let ppkc = false;
+let kcpd = false;
+let customs = false;
+function custom(){
+$(".data tr").each(function() {
+$(this).find('td:eq(1)').css("width","6%");
+$(this).find('td:eq(3)').css("width","25%");
+$(this).find('td:eq(4)').css("width","4%");
+});}
+$(".whlabeltransportmb").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() + "&";
+    });
+window.location.href = "http://1.wepolicy.cn/whlabeltransport/presetou?excel=1&"+f;
+});
+$(".whlabeltransportexcel").click(function() {
+var f = "";
+	$(".select").each(function() {
+        f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
+    });
+    $("input:text").each(function() {
+		 str2 = $(this).val().replace(/\</g,"&lt;");
+		str2 = str2.replace(/\>/g,"&gt;");
+		str2 = str2.replace(/\+/g,"%2B");
+		str2 = str2.replace(/&/g,"%26");
+		str2 = str2.replace(/#/g,escape('#'));
+        f = f + $(this).attr("name") + "=" + str2 + "&";
+    });
+	
+window.location.href = "/whlabeltransport/excel?excel=1&"+f;
+});
+
+$(".whlabeltransportexcelzh").click(function() {
+var f = "";
+	$(".select").each(function() {
+        f = f + $(this).attr("name") + "=" + $(this).children("option:selected").val() + "&";
+    });
+    $("input:text").each(function() {
+        str2 = $(this).val().replace(/\</g,"&lt;");
+		str2 = str2.replace(/\>/g,"&gt;");
+		str2 = str2.replace(/\+/g,"%2B");
+		str2 = str2.replace(/&/g,"%26");
+		str2 = str2.replace(/#/g,escape('#'));
+        f = f + $(this).attr("name") + "=" + str2 + "&";
+    });
+	
+window.location.href = "/whlabeltransport/excelzh?excel=1&"+f;
+});
+$(".datatext").on('click',"td .ztwc",function() {
+	var id = $(this).data("id");
+	layx.load('loadId','操作中,请稍后',{shadable:0.6});
+ $.ajax({
+        url: fdataurl+"/zj/",
+        data: "id="+id,
+        type: "POST",
+        dataType: "json",
+        success: function(a) {
+			layx.destroy('loadId');
+            if (a && a.success) {
+				$(".datatext #"+a.id).find("td .ztwc").hide();
+				$(".datatext #"+a.id).find("td .cz").html("已完成");
+				$(".datatext #"+a.id).find("td .wc").html(a.time);
+				$(".ts p").html(a.msg);
+                $(".ts").fadeIn();
+                setTimeout('$(".ts").fadeOut()', 800);
+				}
+             else {
+				 $(".ts p").html(a.msg);
+                $(".ts").fadeIn();
+                setTimeout('$(".ts").fadeOut()', 800);
+        }
+		}
+    });
+});
+</script>
+<script type="text/javascript" src="{$theme}js/laydate.js"></script>
+<div style="display:none;">
+<input id="upload-file" name="files" accept="image/xls,image/xlsx" type="file">
+</div>
 {Template footer}