| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | <!-- <link rel="stylesheet" href="../../static/css/common.css" media="all">--> |
| | | <!--[if lt IE 9]> |
| | | <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> |
| | | <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
| | | <![endif]--> |
| | | <style> |
| | | .wrk-trace { |
| | | color: green; |
| | | cursor: pointer; |
| | | margin-left: 6px; |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .layui-timeline:first-child .layui-timeline-item { |
| | | margin-top: 30px; |
| | | } |
| | | .btn-add { |
| | | display: none; |
| | | } |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <select name="settle"> |
| | | <option value="">选择状态</option> |
| | | <option value="1">待处理</option> |
| | | <option value="2">作业中</option> |
| | | <option value="4">已完成</option> |
| | | <option value="6">上报完成</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <button class="layui-btn icon-btn" lay-filter="tbSearch" lay-submit> |
| | | <i class="layui-icon"></i>搜索 |
| | | </button> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div id="box" style="display: block"></div> |
| | | <!-- 表格操作列 --> |
| | | <script type="text/html" id="operate"> |
| | | {{# if (d.settle == 1 || d.settle == 2) { }} |
| | | {{# if (d.settle == 0 || d.settle == 1) { }} |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | {{# if (d.settle == 2) { }} |
| | | <a class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs btn-complete" lay-event="complete">完结</a> |
| | | {{# } }} |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-delete" lay-event="del">删除</a> |
| | | {{# } }} |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-delete" lay-event="del">删除</a> |
| | | {{# if (d.settle == 2) { }} |
| | | <a class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs btn-complete" lay-event="complete">完结</a> |
| | | {{# } }} |
| | | </script> |
| | | <!-- 表格操作列 --> |
| | | <script type="text/html" id="tbLook"> |
| | |
| | | </a> |
| | | </span> |
| | | </script> |
| | | <script type="text/html" id="printOperate"> |
| | | <button class="layui-btn layui-btn-xs btn-print" lay-event="btnPrint">打印</button> |
| | | </script> |
| | | <script type="text/html" id="orderNoTpl"> |
| | | {{d.orderNo}} |
| | | {{# if(d.settle > 1 && d.settle !== 3){ }} |
| | | |
| | | {{# } }} |
| | | <i class="layui-icon layui-icon-about wrk-trace" lay-tips="查看任务追溯" lay-direction="2" lay-offset="-10px,0px" lay-event="wrkTrace"></i> |
| | | </script> |
| | | |
| | | <!--<script type="text/html" id="settleTpl">--> |
| | | <!-- <span name="settle" class="layui-badge layui-badge-gray">{{d.settle$}}</span>--> |
| | | <!--</script>--> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">单据编号:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="orderNo" name="orderNo" placeholder="输入单据编号" type="text" class="layui-input" maxlength="20" lay-verType="tips" lay-verify="required"/> |
| | | <input id="orderNo" name="orderNo" placeholder="输入单据编号" type="text" class="layui-input" maxlength="20" lay-verType="tips" /> |
| | | <!-- lay-verify="required"--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="position: relative;"> |
| | |
| | | <!-- <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>--> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a> |
| | | </script> |
| | | <script type="text/template" id="templatePreview1" class="template-qrcode"> |
| | | {{#each data}} |
| | | <div style="width: 150px;"> |
| | | <div> |
| | | <img class="template-qrcode" src="{{this.barcodeUrl}}"> |
| | | <div style="text-align: center;">{{matnr}}</div> |
| | | </div> |
| | | <div style="font-size: 12px;"> |
| | | 名称:{{maktx}} |
| | | </div> |
| | | <div style="font-size: 12px;"> |
| | | 批次:{{batch}} |
| | | </div> |
| | | <div style="font-size: 12px;"> |
| | | 规格:{{specs}} |
| | | </div> |
| | | <div style="font-size: 12px;"> |
| | | 单位:{{unit}} |
| | | </div> |
| | | <div style="font-size: 12px;"> |
| | | 数量:{{anfme}} |
| | | </div> |
| | | <div style="font-size: 12px;"> |
| | | 销售单号:{{suppCode}} |
| | | </div> |
| | | <div style="font-size: 12px;"> |
| | | 客户名称:{{sku}} |
| | | </div> |
| | | </div> |
| | | {{/each}} |
| | | </script> |
| | | <!-- 表单弹窗 --> |
| | | <script type="text/html" id="matEditDialog"> |
| | | <form id="matEditForm" lay-filter="matEditForm" class="layui-form model-form"> |
| | |
| | | </div> |
| | | </form> |
| | | </script> |
| | | <!-- 订单任务追溯 --> |
| | | <script id="wrkTraceDialog" type="text/html" style="position: relative"> |
| | | <div style="position: absolute; top: 0; left: 0;"> |
| | | <div class="layui-card" style="overflow: hidden;"> |
| | | <div class="layui-card-header" style="text-align: center;width: 80%;font-weight: inherit;font-size: 18px">{{ d.orderNo }}</div> |
| | | <div class="layui-card-body"> |
| | | <div id="wrkTraceCharts" style="height: 300px;width: 400px;transform: translateX(-10%);"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" > |
| | | <div class="layui-col-md5"> |
| | | <h1 style="opacity: 0;">Hello World</h1> |
| | | </div> |
| | | <div class="layui-col-md7" style=""> |
| | | {{# if(d.list.length > 0){ }} |
| | | <ul class="layui-timeline" style="height: 400px; overflow: scroll;"> |
| | | {{# layui.each(d.list, function(index, item){ }} |
| | | <li class="layui-timeline-item"> |
| | | <i class="layui-icon layui-timeline-axis"></i> |
| | | <div class="layui-timeline-content layui-text"> |
| | | <div class="layui-timeline-title"> |
| | | <h3 class="inline-block"> |
| | | {{ item.wrkNo }} |
| | | |
| | | {{# if(item.wrkMast.ioType < 100){ }} |
| | | <span class="layui-badge layui-bg-blue" style="line-height: 20px;"> |
| | | {{ item.wrkMast.ioType$ }} |
| | | </span> |
| | | {{# } }} |
| | | |
| | | {{# if(item.wrkMast.ioType > 100){ }} |
| | | <span class="layui-badge layui-bg-orange" style="line-height: 20px;"> |
| | | {{ item.wrkMast.ioType$ }} |
| | | </span> |
| | | {{# } }} |
| | | |
| | | |
| | | {{# if(item.wrkMast.wrkSts < 14){ }} |
| | | <span class="layui-badge layui-bg-red" style="line-height: 20px;"> |
| | | {{ item.wrkMast.wrkSts$ }} |
| | | </span> |
| | | {{# } }} |
| | | |
| | | {{# if(item.wrkMast.wrkSts >= 14){ }} |
| | | <span class="layui-badge layui-bg-green" style="line-height: 20px;"> |
| | | {{ item.wrkMast.wrkSts$ }} |
| | | </span> |
| | | {{# } }} |
| | | |
| | | </h3>  |
| | | {{ item.wrkMast.ioTime$ }} |
| | | </div> |
| | | |
| | | <table class="layui-table" lay-skin="nob" style="width: 80%"> |
| | | <tbody> |
| | | {{# layui.each(item.wrkDetls, function(idx, wrkDetl){ }} |
| | | <tr style="background: none"> |
| | | <td>No.</td> |
| | | <td><span class="layui-badge layui-bg-cyan">{{ idx+1 }}</span></td> |
| | | </tr> |
| | | <tr style="background: none"> |
| | | <td>品号:</td> |
| | | <td>{{ wrkDetl.matnr }}</td> |
| | | </tr> |
| | | <tr style="background: none"> |
| | | <td>品名:</td> |
| | | <td>{{ wrkDetl.maktx }}</td> |
| | | </tr> |
| | | <tr style="background: none"> |
| | | <td>规格:</td> |
| | | <td>{{ wrkDetl.specs }}</td> |
| | | </tr> |
| | | <tr style="background: none"> |
| | | <td>数量:</td> |
| | | <td style="font-weight: bold">{{ wrkDetl.anfme }}</td> |
| | | </tr> |
| | | <tr style="background: none"> |
| | | <td>条码:</td> |
| | | <td style="font-weight: bold">{{ wrkDetl.zpallet }}</td> |
| | | </tr> |
| | | {{# }); }} |
| | | </tbody> |
| | | </table> |
| | | |
| | | <hr class="layui-border-cyan" style="width: 90%; opacity: .6;"> |
| | | </div> |
| | | </li> |
| | | {{# }); }} |
| | | </ul> |
| | | {{# } else { }} |
| | | <div style="height: 350px;display: flex;justify-content: center;align-items: center;"> |
| | | <h2 style="font-weight: bold;letter-spacing: 2px">暂无任务</h2> |
| | | </div> |
| | | {{# } }} |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </script> |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/js/jquery/jQuery.print.js"></script> |
| | | <script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/echarts/echarts.min.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/order/order.js" charset="utf-8"></script> |