/* * @Author: 王文杰 * @Date: 2024-01-04 12:54:56 * @LastEditors: 王文杰 * @LastEditTime: 2024-03-29 15:44:53 * @FilePath: /app-nx-personal/src/services/home.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { http } from '@/utils/http' // 获取工序分页 export const getListAPI = (data: Object) => { return http({ method: 'GET', url: '/heli/pg-master/task-dispatch-detail/page', data, }) } /** * 操作生产任务(开始/结束/提交/完成) */ export const updateBaoGong = (zid,progress,imageLink) => { const data = { zid: zid, progress: progress, imageLink: imageLink }; return http({ method: 'POST', url: '/heli/process-design/updateBaoGong', data, }) } // 报工记录分页查询 export const getTaskRepotPageAPI = (data: Object) => { return http({ method: 'GET', url: '/heli/bg-master-line/page', data, }) } // 派工任务详情 export const getTaskDetailAPI = (data: Object) => { return http({ method: 'GET', url: '/heli/pg-master/task-dispatch-detail/get', data, }) } /** * 操作生产任务(开始) */ export const postOperateAPI = (data: Object) => { return http({ method: 'POST', url: '/heli/bg-master-line/create', data, }) } /** * 操作生产任务(结束) */ export const postOperateAPIEnd = (data: Object) => { return http({ method: 'POST', url: '/heli/bg-master-line/endBg', data, }) } /** * 操作生产任务-作废 */ export const postOperateAPIZF = (data: Object) => { return http({ method: 'POST', url: '/heli/pg-master/zfPgMaster', data, }) }