| | |
| | | } |
| | | |
| | | 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; |