diff --git a/src/api/erf/erf.js b/src/api/erf/erf.js index 6675dea..e421b62 100644 --- a/src/api/erf/erf.js +++ b/src/api/erf/erf.js @@ -111,3 +111,23 @@ export const deleteTriConfirmProcess = data => createAPI(`/erf/triConfirm/delete * 批量更新工序顺序(用于拖拽排序) */ export const updateProcessSequence = data => createAPI(`/erf/triConfirm/updateProcessSequence`, 'post', data) + +/** + * 查询工序模版列表 + */ +export const getProcessTemplateList = data => createAPI(`/erf/triConfirm/getProcessTemplateList`, 'post', data) + +/** + * 保存工序模版 + */ +export const saveProcessTemplate = data => createAPI(`/erf/triConfirm/saveProcessTemplate`, 'post', data) + +/** + * 删除工序模版 + */ +export const deleteProcessTemplate = data => createAPI(`/erf/triConfirm/deleteProcessTemplate`, 'post', data) + +/** + * 根据角色查询负责人列表 + */ +export const getUserListByRole = data => createAPI(`/erf/triConfirm/getUserListByRole`, 'post', data) diff --git a/src/components/ApprovalNotificationManager.vue b/src/components/ApprovalNotificationManager.vue index dc3107c..02a9183 100644 --- a/src/components/ApprovalNotificationManager.vue +++ b/src/components/ApprovalNotificationManager.vue @@ -72,13 +72,13 @@ export default { */ isLoggedIn(newVal, oldVal) { console.log(`[审批通知] 登录状态变化: ${oldVal} -> ${newVal}, 已初始化: ${this.isInitialized}`) - + // 只有真正的登录状态变化才处理 if (oldVal === newVal) { console.log('[审批通知] 登录状态未变化,跳过') return } - + if (newVal && !this.isInitialized) { console.log('[审批通知] 用户已登录(watch触发),初始化通知系统') // 延迟执行,避免与 mounted 冲突 @@ -124,14 +124,14 @@ export default { } console.log('[审批通知] 开始初始化通知系统...') - + // 立即设置标志,防止并发调用 this.isInitialized = true - + // 先清理可能存在的旧资源 this.stopPolling() this.closeAllNotifications() - + // 清理可能存在的首次检查定时器 if (this.firstCheckTimeout) { clearTimeout(this.firstCheckTimeout) @@ -148,7 +148,7 @@ export default { // 启动定时轮询 this.startPolling() - + console.log('[审批通知] 通知系统初始化完成') }, @@ -157,13 +157,13 @@ export default { */ stopNotificationSystem() { console.log('[审批通知] 停止通知系统...') - + // 关闭所有已显示的通知窗口 this.closeAllNotifications() - + // 停止轮询 this.stopPolling() - + // 清理首次检查定时器 if (this.firstCheckTimeout) { clearTimeout(this.firstCheckTimeout) @@ -178,13 +178,13 @@ export default { console.log('[审批通知] 通知系统已停止') }, - + /** * 关闭所有活动的通知窗口 */ closeAllNotifications() { console.log(`[审批通知] 关闭所有通知窗口,当前数量: ${this.activeNotifications.length}`) - + // 关闭所有通知 this.activeNotifications.forEach(notification => { try { @@ -195,11 +195,11 @@ export default { console.error('[审批通知] 关闭通知失败:', error) } }) - + // 清空通知列表 this.activeNotifications = [] }, - + /** * 从活动列表中移除指定的通知实例 * @param {Object} notification - 要移除的通知实例 @@ -264,6 +264,8 @@ export default { site: this.currentSite, currentUserId: this.currentUserId, userName: this.currentUserName, + pageType : 'MANAGER', // 经理审批页面,只查询经理审批节点 + pendingStatus: '已下达', // 审批节点只查询已下达状态 page :1, limit :20 } @@ -336,7 +338,7 @@ export default { this.removeNotification(notificationInstance) } }) - + // 保存通知实例 this.activeNotifications.push(notificationInstance) console.log(`[审批通知] 已创建汇总通知,当前活动通知数: ${this.activeNotifications.length}`) @@ -431,7 +433,7 @@ export default { this.removeNotification(notificationInstance) } }) - + // 保存通知实例 this.activeNotifications.push(notificationInstance) console.log(`[审批通知] 已创建单个通知 (${applyNo}),当前活动通知数: ${this.activeNotifications.length}`) diff --git a/src/views/modules/erf/components/expTriConfirm.vue b/src/views/modules/erf/components/expTriConfirm.vue index f0d7612..cd2790b 100644 --- a/src/views/modules/erf/components/expTriConfirm.vue +++ b/src/views/modules/erf/components/expTriConfirm.vue @@ -156,32 +156,61 @@ ref="processForm" label-width="100px"> - + + + placeholder="请输入工序名称或点击标题选择模版"> + + 另存为 + - + + + readonly + placeholder="请选择车间负责人"> - + + + readonly + placeholder="请选择质量负责人"> - + + + readonly + placeholder="请选择技术负责人"> @@ -206,6 +235,111 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ 关闭 +
+
+ + + + + + + + + + + + + +
+ 关闭 +
+
+