| | |
| | | page: true, |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | {type: 'numbers'}, |
| | | {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, |
| | | // {type: 'numbers'}, |
| | | {field: 'itemName', align: 'center', title: '组货单号'}, |
| | | {field: 'cstmrName', align: 'center', title: '客户名称'}, |
| | | {field: 'orderNo', title: '流水号', templet: '#orderNoTpl'}, |
| | | {field: 'docType$', align: 'center', title: '类型', minWidth: 160, width: 160}, |
| | | {field: 'tkType', align: 'center', title: 'TK', minWidth: 160, width: 160,hide: true}, |
| | | {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, |
| | |
| | | doDel(data.id); |
| | | } else if (layEvent === 'complete') {//转实际组货单 |
| | | doModify(data.id, data.orderNo, 11); |
| | | } else if (layEvent === 'look') { |
| | | var $a = $(obj.tr).find('a[lay-event="look"]'); |
| | | var offset = $a.offset(); |
| | | var top = offset.top; |
| | | var left = offset.left; |
| | | layer.open({ |
| | | type: 1, |
| | | title: false, |
| | | area: '1020px', |
| | | offset: [top + 'px', (left - 530 + $a.outerWidth()) + 'px'], |
| | | shade: .01, |
| | | shadeClose: true, |
| | | fixed: false, |
| | | content: '<table id="lookSSXMTable" lay-filter="lookSSXMTable"></table>', |
| | | success: function (layero) { |
| | | table.render({ |
| | | elem: '#lookSSXMTable', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/order/pakout/orderDetl/list/auth', |
| | | where: { |
| | | order_id: data.id |
| | | }, |
| | | page: true, |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | {type: 'numbers'}, |
| | | {field: 'matnr', title: '规格', width: 160}, |
| | | // {field: 'maktx', title: '商品名称', width: 160}, |
| | | {field: 'batch', align: 'center', title: '箱号', width: 160}, |
| | | {field: 'model', align: 'center',title: '卷号', width: 160}, |
| | | // {field: 'anfme', align: 'center', title: '数量'}, |
| | | // {field: 'workQty', title: '作业数量'}, |
| | | |
| | | // {field: 'unit', title: '单位'}, |
| | | // { |
| | | // field: 'createTime$', title: '创建时间', sort: true, templet: function (d) { |
| | | // return util.toDateString(d.createTime); |
| | | // }, width: 180 |
| | | // }, |
| | | // {field: 'inQty', title: '已入库量'}, |
| | | // {field: 'color', title: '颜色'}, |
| | | // {field: 'specs', align: 'center', title: '接头'}, |
| | | {field: 'danger$', align: 'center', title: '待判', width: 80}, |
| | | {field: 'manu', title: '货位', align: 'center', width: 100}, |
| | | {field: 'memo', align: 'center', title: '备注'}, |
| | | {field: 'status$', align: 'center', title: '状态', style: 'font-weight: bold'}, |
| | | // {field: 'source$', align: 'center', title: '是否确认', style: 'font-weight: bold'} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |
| | | 'count': res.data.total, |
| | | 'data': res.data.records |
| | | } |
| | | }, |
| | | response: { |
| | | statusCode: 200 |
| | | }, |
| | | done: function () { |
| | | $(layero).find('.layui-table-view').css('margin', '0'); |
| | | }, |
| | | size: '' |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |