| | |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="checkQuality">检验</a> |
| | | </script> |
| | | <script> |
| | | |
| | | var pageCurr; |
| | | var billNo=parent.getbillData().billNo; |
| | | function getCol() { |
| | | var cols = [ |
| | | // {type: 'checkbox', fixed: 'left'}, |
| | | {field: 'billNo', title: '检验单号', align: 'center', width: 175} |
| | | ,{field: 'seqNo', title: '行号', align: 'center'} |
| | | ,{field: 'orderNo', title: '入库单号', align: 'center'} |
| | | ,{field: 'seqNo', title: '行号', align: 'center', width: 60} |
| | | ,{field: 'orderNo', title: '入库单号', align: 'center', width: 175} |
| | | ,{field: 'anfme', title: '数量', align: 'center'} |
| | | ,{field: 'matnr', title: '商品编码', align: 'center'} |
| | | ,{field: 'matnr', title: '商品编码', align: 'center', width: 175} |
| | | ,{field: 'maktx', title: '商品名称', align: 'center'} |
| | | ,{field: 'batch', title: '批号', align: 'center'} |
| | | ,{field: 'prodDate$', title: '生产日期', align: 'center'} |
| | | ,{field: 'rejectQty', title: '不合格数量', align: 'center'} |
| | | ,{field: 'rejectReason', title: '不合格原因', align: 'center'} |
| | | ,{field: 'quaStatus$', title: '质检状态', align: 'center'} |
| | | ,{field: 'quaUser$', title: '质检人员', align: 'center'} |
| | | ,{field: 'quaDate$', title: '质检时间', align: 'center'} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operateCheck', width:140} |
| | | // ,{field: 'orderNo', title: '订单号', width:115, align: 'center'} |
| | | // ,{field: 'specs', align: 'center',title: '属性'} |
| | |
| | | elem: '#stockOut', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/qualityDetl/list/auth', |
| | | where:{ |
| | | bill_no:billNo |
| | | }, |
| | | page: true, |
| | | limit: 10, |
| | | even: true, |
| | |
| | | statusCode: 200 |
| | | }, |
| | | done: function(res, curr, count) { |
| | | console.log(res.data) |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | |
| | | form.on('submit(editSubmit)', function (data) { |
| | | if(data.field.rejectQty<0){ |
| | | layer.msg("不合格数量不可小于0") |
| | | return; |
| | | return false; |
| | | } |
| | | if(data.field.rejectQty>data.field.anfme){ |
| | | if(Number(data.field.rejectQty)>Number(data.field.anfme)){ |
| | | layer.msg("不合格数量不可大于入库数量"); |
| | | return; |
| | | return false; |
| | | } |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |