| | |
| | | cellMinWidth: 50, |
| | | toolbar: '#toolbar', |
| | | cols: [[ |
| | | {fixed: 'left', title:'操作', align: 'center', toolbar: '#operate', width:80}, |
| | | {fixed: 'left', field: 'count', title: '数量(必填)', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'}, |
| | | {field: 'matNo', align: 'center', title: '物料编码'}, |
| | | {field: 'barcode', align: 'center', title: '条码'}, |
| | | {field: 'matName', align: 'center', title: '物料名称'}, |
| | | {field: 'str1', align: 'center', title: '物料单位'}, |
| | | {field: 'str2', align: 'center', title: '物料规格'}, |
| | | {fixed: 'right', field: 'count', title: '数量', align: 'center', edit:'text', width: 100} |
| | | {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | | $('td[data-field=count] div').html(initCountVal); |
| | |
| | | } |
| | | // 判断物料数量是否存在异常 |
| | | for (var i=0;i<matCodeData.length;i++){ |
| | | if (isNaN(matCodeData[i].count)) { |
| | | layer.msg("请输入数字"); |
| | | return; |
| | | } |
| | | if (matCodeData[i].count === 0){ |
| | | layer.msg("数量不能为零"); |
| | | return; |
| | |
| | | } |
| | | } |
| | | |
| | | // 表单 |
| | | // 表单 --- 启动入库 |
| | | form.on('submit(combDo)', function (data) { |
| | | $.ajax({ |
| | | url: baseUrl+"/put/site/start", |
| | | url: baseUrl+"/full/store/start", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: null, |
| | | data: JSON.stringify({ |
| | | devpNo: $('#putSiteSelect').val(), |
| | | list: matCodeData |
| | | }), |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | async: false, |
| | | success: function (res) { |