| | |
| | | MaterialShortage.initColumn = function () { |
| | | return [[ |
| | | {type: 'checkbox', fixed: 'left'}, |
| | | |
| | | {field: 'id', hide: true, title: 'ID'}, |
| | | {field: 'workOrderNo', sort: true, title: '工单号', width: 150}, |
| | | /* {field: 'workOrderNo', sort: true, title: '工单号', width: 150},*/ |
| | | // {field: 'loadingCode', sort: true, title: '上料工位', width: 105}, |
| | | {field: 'locationCode', sort: true, title: '工位编号', width: 100}, |
| | | //{field: 'loadingCode', sort: true, title: '扫码工位编号', width: 105}, |
| | | {field: 'materialCode', sort: true, title: '物料编码', width: 170}, |
| | | {field: 'spareField1', sort: true, title: '上料数量'}, |
| | | {field: 'spareField2', sort: true, title: '单位'}, |
| | | {field: 'loadingCode', sort: true, title: '物料批次',width: 120}, |
| | | {field: 'state', sort: true, title: '是否上料', width: 105,templet: '#stateTpl'}, |
| | | {field: 'batch', sort: true, title: '物料批次',width: 120}, |
| | | {field: 'quantity', sort: true, title: '上料数量',width: 120}, |
| | | {field: 'residueQuantity', sort: true, title: '剩余数量',width: 120}, |
| | | {field: 'unit', sort: true, title: '单位'}, |
| | | {field: 'status', sort: true, title: '是否上料', width: 105,templet: '#stateTpl'}, |
| | | // {field: 'orderStatus', sort: true, title: '状态',align:'center',width:80,templet: '#orderStatusTpl'}, |
| | | |
| | | ]]; |
| | |
| | | // Feng.error("条码信息异常") |
| | | // return |
| | | // } |
| | | var updateOrderBatchInfo = new $ax(Feng.ctxPath + "/productionOrderBatchInfo/updateOrderBatchInfo?materialCode=" + barCode.substring(0, 14) + "&workOrderNo="+ $('#workOrderNo').val()+ "&spareField1="+ number + "&loadingCode="+ batch); |
| | | var updateOrderBatchInfo = new $ax(Feng.ctxPath + "/productionOrderBatchInfo/updateOrderBatchInfo?materialCode=" + barCode.substring(0, 14) + "&workOrderNo="+ $('#workOrderNo').val()+ "&quantity="+ number + "&batch="+ batch+ "&residueQuantity="+ number); |
| | | var updateOrderBatchInfoResult = updateOrderBatchInfo.start(); |
| | | if(updateOrderBatchInfoResult.data === "0"){ |
| | | Feng.error("批次不同无法录入"); |