| | |
| | | <el-form :model="reportForm" |
| | | label-width="120px"> |
| | | <el-form-item label="待生产数量"> |
| | | <el-input v-model="reportForm.remainingQuantity" |
| | | <el-input v-model="reportForm.planQuantity" |
| | | readonly |
| | | style="width: 300px" /> |
| | | </el-form-item> |
| | |
| | | prop: "processName", |
| | | }, |
| | | { |
| | | label: "待生产数量", |
| | | prop: "planQuantity", |
| | | width: "140", |
| | | }, |
| | | { |
| | | label: "计划生产数量", |
| | | prop: "quantity", |
| | | width: "140", |
| | |
| | | const transferCardRowData = ref(null); |
| | | const reportDialogVisible = ref(false); |
| | | const reportForm = reactive({ |
| | | remainingQuantity: 0, |
| | | planQuantity: 0, |
| | | quantity: 0, |
| | | userName: "", |
| | | workOrderId: "", |
| | |
| | | |
| | | const showReportDialog = row => { |
| | | currentReportRowData.value = row; |
| | | reportForm.remainingQuantity = 1; |
| | | reportForm.planQuantity = row.planQuantity; |
| | | reportForm.quantity = row.quantity; |
| | | reportForm.productProcessRouteItemId = row.productProcessRouteItemId; |
| | | reportForm.workOrderId = row.id; |
| | |
| | | }); |
| | | return; |
| | | } |
| | | if (reportForm.quantity > reportForm.remainingQuantity) { |
| | | if (reportForm.quantity > reportForm.planQuantity) { |
| | | ElMessageBox.alert("本次生产数量不能超过待生产数量", "提示", { |
| | | confirmButtonText: "确定", |
| | | }); |