import { createAPI } from "@/utils/httpRequest.js"; // ===================================================== // 工程实验申请单 API接口定义 // ===================================================== /** * 查询申请单列表 */ export const searchExpApplyList = data => createAPI(`/erf/expApply/searchExpApplyList`, 'post', data) /** * 根据申请单号查询详情 */ export const getExpApplyDetail = data => createAPI(`/erf/expApply/getExpApplyDetail`, 'post', data) /** * 保存申请单(新增或修改) */ export const saveExpApply = data => createAPI(`/erf/expApply/saveExpApply`, 'post', data) /** * 下达申请单 */ export const submitExpApply = data => createAPI(`/erf/expApply/submitExpApply`, 'post', data) /** * 获取下达时的审批人信息 */ export const getSubmitApprovers = data => createAPI(`/erf/expApply/getSubmitApprovers`, 'post', data) /** * 审批申请单 */ export const approveExpApply = data => createAPI(`/erf/expApply/approveExpApply`, 'post', data) /** * 获取当前流程节点编码 */ export const getCurrentNodeCode = data => createAPI(`/erf/expApply/getCurrentNodeCode`, 'post', data) /** * 撤回申请单 */ export const withdrawExpApply = data => createAPI(`/erf/expApply/withdrawExpApply`, 'post', data) /** * 删除申请单 */ export const deleteExpApply = data => createAPI(`/erf/expApply/deleteExpApply`, 'post', data) /** * 查询用户的待办申请单 */ export const getPendingApplyList = data => createAPI(`/erf/expApply/getPendingApplyList`, 'post', data) // ===================================================== // High Risk三方确认 API接口定义 // ===================================================== /** * 查询三方确认列表(按申请单号) */ export const getTriConfirmList = data => createAPI(`/erf/triConfirm/getTriConfirmList`, 'post', data) /** * 查询登录人待确认的工序列表 */ export const getPendingTriConfirmList = data => createAPI(`/erf/triConfirm/getPendingTriConfirmList`, 'post', data) /** * 三方确认操作 */ export const confirmTriApproval = data => createAPI(`/erf/triConfirm/confirmTriApproval`, 'post', data) // ===================================================== // 审批历史 API接口定义 // ===================================================== /** * 查询审批历史 */ export const getApprovalHistory = data => createAPI(`/erf/expApply/getApprovalHistory`, 'post', data) /** * 获取流程状态详情(包含流程进度和审批历史) */ export const getFlowStatus = data => createAPI(`/erf/expApply/getFlowStatus`, 'post', data) /** * 计划员排产 */ export const plannerSchedule = data => createAPI(`/erf/expApply/plannerSchedule`, 'post', data) /** * 获取字段权限 */ export const getFieldAuth = data => createAPI(`/erf/expApply/getFieldAuth`, 'post', data) // ===================================================== // 三方确认 API接口定义 // ===================================================== /** * 保存三方确认工序 */ export const saveTriConfirmProcess = data => createAPI(`/erf/triConfirm/saveTriConfirmProcess`, 'post', data) /** * 删除三方确认工序 */ export const deleteTriConfirmProcess = data => createAPI(`/erf/triConfirm/deleteTriConfirmProcess`, 'post', data) /** * 批量更新工序顺序(用于拖拽排序) */ 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)