|
@@ -0,0 +1,110 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <title></title>
|
|
|
+ <style>
|
|
|
+ *{padding: 0;margin: 0;}
|
|
|
+ .my-input{border: 1px solid rgba(0,0,0,.1);padding: 1px 5px;height: 32px;margin-right: 10px;}
|
|
|
+ .my-input::-webkit-input-placeholder,.my-select{color: #dcdcdc;}
|
|
|
+ .my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(images/select-1.png) right center no-repeat;background-size:auto 100%;}
|
|
|
+ .my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;}
|
|
|
+ .barcodeImg{margin:10px 0px}
|
|
|
+ .isprint{width: 200px;height:50px;}
|
|
|
+ .background{background-color: #0a6999}
|
|
|
+ </style>
|
|
|
+ <#include "/base/list_base.ftl">
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div class="text-c" style="margin-top: 20px;">
|
|
|
+ <form action="${path}/admin/machine/_machine_print_list" method="post">
|
|
|
+
|
|
|
+ <#--<div id="havePrint" class="isprint background" onclick="selectIsPrint(1);"><span>未打印</span></div>
|
|
|
+ <div id="notPrint" class="isprint" onclick="selectIsPrint(2);"><span>已打印</span></div>-->
|
|
|
+ <div id="HuiTab-demo1" class="HuiTab">
|
|
|
+ <div class="tabBar cl">
|
|
|
+ <span id="notPrint" onclick="selectIsPrint(1);" class="allOrder">未打印</span>
|
|
|
+ <span id="havePrint" onclick="selectIsPrint(2);" class="returnOrderEtc">已打印</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <input class="my-input" type="text" id="printNumber" name="printNumber" value="3" placeholder="打印数量" style="margin-top: 10px;"/>
|
|
|
+ <input class="my-input" type="hidden" id="settingNumber" name="settingNumber" value="3"/>
|
|
|
+ <button type="button" class="my-btn-search" onclick="setting();" style="margin-right: 50px;margin-top: 10px;">打印</button>
|
|
|
+
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <div class="mt-2" style="margin: 20px;">
|
|
|
+ <table class="table table-border table-bordered table-bg table-hover table-sort">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c">
|
|
|
+ <th width="10">机器条码(点击打印)</th>
|
|
|
+ <th width="20">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="listid">
|
|
|
+ <#list machineList as list>
|
|
|
+ <tr>
|
|
|
+ <td class="text-c" width="10">${list.machineBarcode }</td>
|
|
|
+ <!-- 遍历操作 -->
|
|
|
+ <td class="td-manage text-c">
|
|
|
+ <#--<a onclick="print(${100000 + st.index},${list.numberId},${list.numberIsPrint})" title="打印" href="javascript:;" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>
|
|
|
+ <a onclick="downLoad();" title="下载" href="javascript:;" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>-->
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </#list>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <input type="hidden" value="${machineId!''}" name="machineId" id="machineId">
|
|
|
+ <input type="hidden" value="" name="codeId" id="codeId">
|
|
|
+ <div style="position: absolute;top: 80px;height: 23px;display:none;" id="bcTarget" class="barcodeImg"></div>
|
|
|
+ <div style="display:none;" >
|
|
|
+ <div id="printlist">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <script type="text/javascript" src="${path}/common/lib/jquery/1.9.1/jquery.PrintArea.js"></script>
|
|
|
+ <script type="text/javascript" src="${path}/common/lib/jquery/1.9.1/jquery-barcode.js"></script>
|
|
|
+ <script type="text/javascript" src="${path}/common/static/h-ui.admin/js/H-ui.js"></script>
|
|
|
+
|
|
|
+ <script type="text/javascript">
|
|
|
+ if(${machineIsPrint} == 1){
|
|
|
+ $("#notPrint").attr("class", "current");
|
|
|
+ }
|
|
|
+ if(${machineIsPrint} == 2){
|
|
|
+ $("#havePrint").attr("class", "current");
|
|
|
+ }
|
|
|
+ function selectIsPrint(printState) {
|
|
|
+ if(printState == 1){
|
|
|
+ $("#notPrint").attr("class", "current");
|
|
|
+ $("#havePrint").removeClass("current");
|
|
|
+ }else if(printState == 2){
|
|
|
+ $("#havePrint").attr("class", "current");
|
|
|
+ $("#notPrint").removeClass("current");
|
|
|
+ }
|
|
|
+ window.location.href=root_path + '/admin/machine/_machine_print_list?machineIsPrint='+printState;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ function formatDate(now) {
|
|
|
+ var time = new Date(now);
|
|
|
+ var year=time.getFullYear();
|
|
|
+ var month=time.getMonth()+1;
|
|
|
+ var date=time.getDate();
|
|
|
+ var hour=time.getHours();
|
|
|
+ var minute=time.getMinutes();
|
|
|
+ var second=time.getSeconds();
|
|
|
+ if(month < 10){
|
|
|
+ month = "0"+month;
|
|
|
+ }
|
|
|
+ if(date < 10){
|
|
|
+ date = "0"+date;
|
|
|
+ }
|
|
|
+ if(minute < 10){
|
|
|
+ minute = "0"+minute;
|
|
|
+ }
|
|
|
+ return year+"-"+month+"-"+date;
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ </body>
|
|
|
+</html>
|