| | |
| | | cols.push.apply(cols, matCols); |
| | | cols.push( |
| | | {field: 'stock', align: 'center',title: '库存余量', style: 'font-weight: bold'}, |
| | | {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:65} |
| | | {fixed: 'right', title:'Операция', align: 'center', toolbar: '#operate', width:65} |
| | | ) |
| | | return cols; |
| | | } |
| | |
| | | if (matData[i].count <= 0) { |
| | | notice.error({ |
| | | title: '消息通知', |
| | | message: matData[i].matnr + '物料数量必须大于零!' |
| | | message: matData[i].matnr + 'Количество должно быть больше нуля' |
| | | }); |
| | | success = false; |
| | | return false; |
| | |
| | | if (isNaN(count)) { |
| | | notice.error({ |
| | | title: '消息通知', |
| | | message: '请输入数字' |
| | | message: 'Введите число' |
| | | }); |
| | | } else { |
| | | if (count > 0) { |
| | |
| | | } else { |
| | | notice.error({ |
| | | title: '消息通知', |
| | | message: '数量必须大于零' |
| | | message: 'Количество должно быть больше нуля' |
| | | }); |
| | | } |
| | | } |