| | |
| | | insTb.reload({where: data.field, page: {curr: 1}}); |
| | | }); |
| | | |
| | | // 导出所有 |
| | | form.on('submit(exportAll)', function (data) { |
| | | layer.closeAll(); |
| | | layer.load(1, {shade: [0.1,'#fff']}); |
| | | $.ajax({ |
| | | url: baseUrl+"/order/exportAll/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {}, |
| | | dataType:'json', |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | table.exportFile(['单据编号','数量','作业数量','完成数量','商品编码','商品名称','规格','重量','货主id','货物形态id'],res.data,'xls'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }); |
| | | layer.closeAll('loading'); |
| | | }); |
| | | |
| | | // 添加 |
| | | $("#orderAddBtn").click(function () { |
| | | showEditModel(); |
| | |
| | | {field: 'maktx', title: '商品名称', width: 200}, |
| | | {field: 'specs', title: '规格'}, |
| | | {field: 'batch', title: '批次', edit: true}, |
| | | {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | | {field: 'anfme', title: '数量(修改)kg', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | | |
| | | // {field: 'payment', title: '货物状态',align: 'center', templet: '#payment'}, |
| | | {field: 'qty', title: '作业数量', minWidth: 100, width: 100}, |
| | | {field: 'qty', title: '作业数量kg', minWidth: 100, width: 100}, |
| | | // {field: 'unit', title: '单位', width: 80}, |
| | | {field: 'memo', title: '备注' , edit: true}, |
| | | {align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'} |