import request from '@/utils/request' // 查询报工报表列表 export function listReportWork(query) { return request({ url: '/mes/reportWork/list', method: 'get', params: query }); } // 查询报工报表详细 export function getReportWork(id) { return request({ url: '/mes/reportWork/' + id, method: 'get' }); } // 新增报工报表 export function addReportWork(data) { return request({ url: '/mes/reportWork', method: 'post', data: data }); } // 修改报工报表 export function updateReportWork(data) { return request({ url: '/mes/reportWork', method: 'put', data: data }); } // 删除报工报表 export function delReportWork(id) { return request({ url: '/mes/reportWork/' + id, method: 'delete' }); } // 查询工单的工序完成列表 export function getProcessFinishList(query) { return request({ url: '/mes/reportWork/getProcessFinishList', method: 'get', params: query }); } //成品产量报表 export function getProductionList(query) { return request({ url: '/mes/reportWork/getProductionList', method: 'get', params: query }); } //成品产量报表 export function getDailyReport(query) { return request({ url: '/mes/reportWork/getDailyReport', method: 'get', params: query }); } export function getWorkcenterList() { return request({ url: '/mes/reportWork/getWorkcenterList', method: 'get' }); } export function getLineChartData() { return request({ url: '/mes/reportWork/getLineChartData', method: 'get' }); } // 首页-各线体当日计划产量(横向柱状图) export function getLineProData(data) { return request({ url: '/mes/reportWork/getLineProData', method: 'post', params: data }); } // 首页-当月各日实际产量(单折线图, export function getMonthProData() { return request({ url: '/mes/reportWork/getMonthProData', method: 'get', }); } // 首页-当日产品产量(饼图) export function getProductProData(data) { return request({ url: '/mes/reportWork/getProductProData', method: 'post', params: data, }); } // 获取组线每月设备故障数 export function getGroupLineEquInfo() { return request({ url: '/device/deviceInterface/getGroupLineEquInfo', method: 'get' }); } //查询设备小时表头 export function getHourProductionTitle(query) { return request({ url: '/mes/reportWork/getHourProductionTitle', method: 'get', params: query }); } // 查询设备小时产量 export function getHourProductionList(query) { return request({ url: '/mes/reportWork/getHourProductionList', method: 'get', params: query }); } // 查询成型机表头 export function getMachineProductionTitle(query) { return request({ url: '/mes/reportWork/getMachineProductionTitle', method: 'get', params: query }); } // 查询成型机产品产量 export function getMachineProductionList(query) { return request({ url: '/mes/reportWork/getMachineProductionList', method: 'get', params: query }); } // 获取班次信息 export function getProShifts() { return request({ url: '/mes/reportWork/getProShifts/', method: 'get' }) } // 查询人员列表 export function getMesListUser(query) { return request({ url: '/mes/reportWork/getMesListUser', method: 'get', params: query }); } //查询工单列表 export function getMesListWorkOrder(query) { return request({ url: '/mes/reportWork/getMesListWorkOrder', method: 'get', params: query }); } //查询线体列表 export function getMesListEquip(query) { return request({ url: '/mes/reportWork/getMesListEquip', method: 'get', params: query }); } //报工按钮 export function reportSap(workorderCode,machineCode) { const data = { workorderCode, machineCode } return request({ url: '/mes/reportWork/reportSap', method: 'put', data: data }); } //报工撤销按钮 export function reportSapCancel(workorderCode,machineCode) { const data = { workorderCode, machineCode } return request({ url: '/mes/reportWork/reportSapCancel', method: 'put', data: data }); } // 查询物料管理列表 export function getMesListBom(query) { return request({ url: '/mes/reportWorkConsume/getMesListBom', method: 'get', params: query }); } // 查询物料管理列表 // export function getTeamList() { // return request({ // url: '/mes/reportWorkConsume/getTeamList', // method: 'get' // }); // } //获取批次 export function getBatchList(workorderCode) { const data = { workorderCode } return request({ url: '/mes/reportWork/getBatchList', method: 'put', data: data }); } // 查询报工详细列表废弃改为--->2.0查询各级报工详细列表 export function getReportList(query) { return request({ url: '/mes/reportWork/getReportList', method: 'get', params: query }); } // 2.0查询各级报工详细列表 export function getAllLevelReportList(query) { return request({ url: '/mes/reportWork/getAllLevelReportList', method: 'get', params: query }); } // 查询报工详细列表 export function getCKList(data) { return request({ url: '/wms/order/listCKT', method: 'post', params: data }); } //查询报工详细列表+SAP收货状态 export function getReportSAPList(query) { return request({ url: '/wms/put/getReportListSap', method: 'get', params: query }); } // 提交报工详细列表 export function submitReportPS(data) { return request({ url: '/mes/reportWork/submitReportPS', method: 'post', data: data }); } // SAP收货 export function submitReportPSSAP(data) { return request({ url: '/wms/put/addReportListSap', method: 'post', data: data }); } // 查询物料管理列表 export function getPrepareList(query) { return request({ url: '/mes/reportWork/getPrepareList', method: 'get', params: query }); } // 获取线体每月生产过程不良率 export function getLineQcData() { return request({ url: '/quality/qcInterface/getLineQcData', method: 'get' }); } //获取批次 export function getPutInOrderList(workorderCode) { const data = { workorderCode } return request({ url: '/mes/reportWork/getPutInOrderList', method: 'put', data: data }); } // 获取最新物料列表 export function getNewPrepareData(workorderCode) { const data = { workorderCode } return request({ url: '/mes/reportWork/getNewPrepareData', method: 'post', data: data }); } // 删除报工报表 export function deleteBomRowNow(id) { return request({ url: '/mes/reportWork/deleteBomRowNow/' + id, method: 'delete' }); } // export function getWarehouseList(query) { return request({ url: '/mes/reportWork/getWarehouseList', method: 'get', params: query }); } // 删除报工报表 export function deleteReportNow(reportCode) { return request({ url: '/mes/reportWork/deleteReportNow/' + reportCode, method: 'delete' }); } //预报工 export function preReportRow(reportCode) { const data = { reportCode } return request({ url: '/mes/reportWork/preReportRow', method: 'post', data: data }); }