| | |
| | | } |
| | | |
| | | proxy.$modal.msgSuccess("排产已保存"); |
| | | scheduleDialogVisible.value = false; |
| | | resetCreateScheduleRows(); |
| | | getList(); |
| | | await getList(); |
| | | } catch (error) { |
| | | console.error("保存排产失败", error); |
| | | ElMessage.error("保存排产失败,请重试"); |
| | |
| | | }, |
| | | // 用户当前id |
| | | disabled: row => row.completeQuantity >= row.planQuantity || |
| | | !isCurrentUserInUserIds(row) |
| | | !isCurrentUserInUserIds(row) || row.hasUnreportedMachine |
| | | }, |
| | | { |
| | | name: "生产排产", |
| | |
| | | await Promise.all(updates); |
| | | ElMessage.success("审核成功"); |
| | | auditDialogVisible.value = false; |
| | | getList(); |
| | | await getList(); |
| | | } finally { |
| | | auditLoading.value = false; |
| | | } |
| | |
| | | /** 搜索按钮操作 */ |
| | | const handleQuery = () => { |
| | | page.current = 1; |
| | | getList(); |
| | | getList(); |
| | | }; |
| | | const pagination = obj => { |
| | | page.current = obj.page; |
| | |
| | | |
| | | currentReportRowData.value = row; |
| | | reportForm.planQuantity = row.planQuantity - row.completeQuantity; |
| | | reportForm.quantity = row.planQuantity !== undefined && row.planQuantity !== null ? row.planQuantity : null; |
| | | reportForm.quantity = row.planQuantity - row.completeQuantity; |
| | | 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; |