| | |
| | | function getCol() { |
| | | var cols = [ |
| | | // {field: 'count', align: 'center',title: '出库数量', edit:'text', width: 130, style:'color: blue;font-weight: bold'} |
| | | {field: 'qty', align: 'center',title: '数量'} |
| | | {field: 'anfme', align: 'center',title: '出库数量',edit:'text',style:'color: blue;font-weight: bold'} |
| | | ,{field: 'locNo$', align: 'center',title: '库位号'} |
| | | ,{field: 'matNo', align: 'center',title: '产品编码'} |
| | | ,{field: 'matName', align: 'center',title: '产品名称'} |
| | | ,{field: 'specs', align: 'center',title: '规格'} |
| | | ,{field: 'qty', align: 'center',title: '库存数量'} |
| | | ,{field: 'source', title: '来源', align: 'center'} |
| | | ,{field: 'vendor', title: '供应商', align: 'center'} |
| | | ,{field: 'qtyBox', align: 'center', title: '每箱数量(PCS)'} |
| | | ,{field: 'allQty', title: '总数量(PCS)', align: 'center'} |
| | | ,{field: 'weight', align: 'center', title: '每箱重量(KG)'} |
| | | ,{field: 'allWeight', title: '总重量(KG)', align: 'center'} |
| | | ,{field: 'unit', align: 'center',title: '单位', width:80, hide: true} |
| | | ,{field: 'supplier', align: 'center',title: '批号'} |
| | | ,{field: 'color', align: 'center',title: '颜色'} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码'} |
| | | // ,{field: 'bname', align: 'center',title: '库位名称'} |
| | | ,{field: 'memo', align: 'center',title: '生产日期'} |
| | | ]; |
| | | arrRemove(detlCols, 'field', 'qty'); |
| | | cols.push.apply(cols, detlCols); |
| | | //arrRemove(detlCols, 'field', 'qty'); |
| | | // cols.push.apply(cols, detlCols); |
| | | // cols.push({fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80}) |
| | | return cols; |
| | | } |
| | |
| | | } |
| | | }); |
| | | |
| | | function updateLocDetlData(locNo, matNo, count) { |
| | | function updateLocDetlData(locNo, matnr, count) { |
| | | debugger; |
| | | if (isNaN(count)) { |
| | | layer.msg("请输入数字"); |
| | | } else { |
| | | if (count > 0) { |
| | | for (var i=0;i<locDetlData.length;i++){ |
| | | if (locDetlData[i]["locNo"] === locNo && locDetlData[i]["matNo"] === matNo){ |
| | | if (locDetlData[i]["locNo"] === locNo && locDetlData[i]["matNo"] === matnr){ |
| | | |
| | | if (count > locDetlData[i]["qty"]) { |
| | | layer.msg("不能超过原数量"); |
| | | } else { |
| | | locDetlData[i]["count"] = count; |
| | | locDetlData[i]["anfme"] = count; |
| | | } |
| | | break; |
| | | } |