| | |
| | | <script type="text/html" id="table-content-list"> |
| | | {{# function GetBtn1(d){ |
| | | var html = ''; |
| | | if(d.IsWave == '0'){ |
| | | if(d.Status == '0' || d.Status == '1' ){ |
| | | if(d.Type != "8" && d.Type != "2") { |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs zifenClass" lay-event="auto"> |
| | | <i class="layui-icon layui-icon-ok"></i>自动分配 |
| | | </a>`; |
| | | } |
| | | } |
| | | if(d.IsWave == '0'){ |
| | | if(d.Status == '0' && d.Origin == 'WMS'){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs uptClass" lay-event="edit"> |
| | | <i class="layui-icon layui-icon-edit"></i>编辑 |
| | | </a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="delete"> |
| | | html += `<a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="delete"> |
| | | <i class="layui-icon layui-icon-delete"></i>删除 |
| | | </a>`; |
| | | } |
| | | if(d.Status == '1' || d.Status == '2'){ |
| | | html += `<a class="layui-btn layui-btn-danger layui-btn-xs qufenClass" lay-event="cancel"> |
| | | <i class="layui-icon layui-icon-delete"></i>取消分配 |
| | | </a>`; |
| | | } |
| | | if(d.Type == "1" && (d.Status == '2' || d.Status == '3')){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs outClass" lay-event="beiLiaoOutKu"> |
| | | <i class="layui-icon layui-icon-ok"></i>备料 |
| | | </a>`; |
| | | } |
| | | if( d.Status == '2' || d.Status == '3'){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs outClass" lay-event="outKu"> |
| | | <i class="layui-icon layui-icon-ok"></i>出库 |
| | | </a>`; |
| | | } |
| | | } |
| | | if( d.Status == '4'){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs guanClass" lay-event="finish"> |
| | | <i class="layui-icon layui-icon-ok"></i>关单 |
| | | </a>`; |
| | | } |
| | | if( d.Status == '5'){ |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs checkClass" lay-event="check"> |
| | | <i class="layui-icon layui-icon-ok"></i>复核 |
| | | </a>`; |
| | | } |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs shangClass" lay-event="xml"> |
| | | <i class="layui-icon layui-icon-ok"></i>XML |
| | | </a>`; |
| | | |
| | | html += `<a class="layui-btn layui-btn-normal layui-btn-xs editDemoClass" lay-event="editDemo"> |
| | | <i class="layui-icon layui-icon-edit"></i>备注</a>`; |
| | | return html; |
| | |
| | | var TotalColsArr = [[ |
| | | { field: '', title: '序号', type: 'numbers', width: 50, align: 'center', fixed: 'left', "disabled": true }, |
| | | { field: 'SONo', title: '出库单号', align: 'center', fixed: 'left', width: 165, "disabled": true }, |
| | | { field: 'Type', title: '单据类型', align: 'center', templet: '#templetType' }, |
| | | //{ field: 'Type', title: '单据类型', align: 'center', templet: '#templetType' }, |
| | | { field: 'Status', title: '执行状态', align: 'center', templet: '#templetStatus' }, |
| | | // { field: 'LogisticsName', title: '承运商', align: 'center' }, |
| | | // { field: 'CustomerName', title: '客户名称', align: 'center' }, |
| | | { field: 'LotNo', title: '批次号', align: 'center' }, |
| | | { field: 'LotNoText', title: '批次描述', align: 'center' }, |
| | | //{ field: 'LotNo', title: '批次号', align: 'center' }, |
| | | //{ field: 'LotNoText', title: '批次描述', align: 'center' }, |
| | | //{ field: 'IsDespatch', title: '是否发运', align: 'center', templet: '#templetIsDespatch' }, |
| | | //{ field: 'SupplierLot', title: '供货批次', align: 'center' }, |
| | | { field: 'Origin', title: '来源', align: 'center' }, |
| | |
| | | { field: 'SONo', title: '出库单号', align: 'center', fixed: 'left', width: 165 }, |
| | | { field: 'SkuNo', title: '物料编码', align: 'center'}, |
| | | { field: 'SkuName', title: '物料名称', align: 'center'}, |
| | | { field: 'Standard', title: '物料规格', align: 'center'}, |
| | | //{ field: 'Standard', title: '物料规格', align: 'center'}, |
| | | { field: 'LotNo', title: '批次号', align: 'center'}, |
| | | { field: 'Qty', title: '计划数量', align: 'center'}, |
| | | //{ field: 'AllotQty', title: '分配数量', align: 'center', width: 100 }, |
| | |
| | | //{ field: 'SupplierLot', title: '供货批次', align: 'center', width: 120 }, |
| | | //{ field: 'Price', title: '单价', align: 'center', width: 80 }, |
| | | //{ field: 'Money', title: '总金额', align: 'center', width: 90 }, |
| | | { field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'left', toolbar: '#table-content-list2', "disabled": true } |
| | | //{ field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'left', toolbar: '#table-content-list2', "disabled": true } |
| | | ]]; |
| | | var DetailColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//将表头数据进行url编码 |
| | | //#endregion |