| | |
| | | if (isNaN(num)) { |
| | | return; |
| | | } |
| | | // 如果超过待生产数量 |
| | | if (num > reportForm.planQuantity) { |
| | | proxy.$modal.msgWarning("本次生产数量不能大于待生产数量"); |
| | | reportForm.quantity = reportForm.planQuantity; |
| | | return; |
| | | } |
| | | // 如果小于1,清除 |
| | | if (num < 1) { |
| | | reportForm.quantity = null; |
| | |
| | | }; |
| | | |
| | | const showReportDialog = row => { |
| | | |
| | | currentReportRowData.value = row; |
| | | reportForm.planQuantity = row.planQuantity - row.completeQuantity; |
| | | reportForm.quantity = row.quantity !== undefined && row.quantity !== null ? row.quantity : null; |
| | | reportForm.quantity = row.planQuantity !== undefined && row.planQuantity !== null ? row.planQuantity : null; |
| | | reportForm.productProcessRouteItemId = row.productProcessRouteItemId; |
| | | reportForm.workOrderId = row.id; |
| | | reportForm.reportWork = row.reportWork; |
| | | reportForm.productMainId = row.productMainId; |
| | | reportForm.planQuantity = row.planQuantity; |
| | | reportForm.startTime = ""; |
| | | reportForm.endTime = ""; |
| | | reportForm.replenishQty = 0; |