/*********************** 【质量中心-查看质检结果】API ********************/ import axiosApi from '../AxiosApi.js' const apiList = { getList: { method: 'POST', url: `/authority/productLinePerformance/query` }, page: { method: 'POST', url: `/authority/productLinePerformance/page` }, queryOperatorDetailPerformance: { method: 'POST', url: `/authority/productLinePerformance/queryOperatorDetailPerformance` }, queryOperatorDetailsPerformance: { method: 'POST', url: `/authority/productLinePerformance/queryOperatorDetailsPerformance` }, deviceResourceSum: { method: 'POST', url: `/authority/productLinePerformance/deviceResourceSum` }, queryProductionLineOee: { method: 'POST', url: `/authority/productLinePerformance/queryProductionLineOee` }, expectProduct:{ method:'GET', url:`/authority/productLinePerformance/expectProduct` }, expectProductInfo:{ method:'GET', url:`/authority/productLinePerformance/expectProductInfo` }, expectProcedure:{ method:'GET', url:`/authority/productLinePerformance/expectProcedure` }, expectprocedureSum:{ method: 'GET', url: `/authority/productLinePerformance/expectprocedureSum` }, } export default { getList (data) { return axiosApi({ ...apiList.page, data }) }, page (data) { return axiosApi({ ...apiList.page, data }) }, queryOperatorDetailPerformance (data) { return axiosApi({ ...apiList.queryOperatorDetailPerformance, data }) }, queryOperatorDetailsPerformance (data) { return axiosApi({ ...apiList.queryOperatorDetailsPerformance, data }) }, queryProductionLineOee (data) { return axiosApi({ ...apiList.queryProductionLineOee, data }) }, getProductStatistics(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/getProductStatistics/${page}/${limit}`, method: 'post', data:searchObj }) }, getProductInfoStatistics(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/getProductInfoStatistics/${page}/${limit}`, method: 'post', data:searchObj }) }, resourceRate(searchObj){ return axiosApi({ url: `/authority/productLinePerformance/resourceRate`, method: 'post', data:searchObj }) }, expectProduct(data){ return axiosApi({ ...apiList.expectProduct, responseType: 'blob', data }) }, expectProductInfo(data){ return axiosApi({ ...apiList.expectProductInfo, responseType: 'blob', data }) }, queryProcedure(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/queryProcedure/${page}/${limit}`, method: 'post', data:searchObj }) }, expectProcedure(data){ return axiosApi({ ...apiList.expectProcedure, responseType: 'blob', data }) }, procedureSum(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/procedureSum/${page}/${limit}`, method: 'post', data:searchObj }) }, deviceResourceSum(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/deviceResourceSum/${page}/${limit}`, method: 'post', data:searchObj }) }, frockSearch(page,limit,searchObj){ return axiosApi({ url: `/authority/stockInfo/frockSearch/${page}/${limit}`, method: 'post', data:searchObj }) }, deviceResourceDetail(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/deviceResourceDetail/${page}/${limit}`, method: 'post', data:searchObj }) }, procedureInfo(searchObj) { return axiosApi({ url: `/authority/productLinePerformance/procedureInfo`, method: 'post', data:searchObj }) }, expectprocedureSum(data){ return axiosApi({ ...apiList.expectprocedureSum, responseType: 'blob', data }) }, workHourReport(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/workHourReport/${page}/${limit}`, method: 'post', data:searchObj }) }, otherHourReport(page,limit,searchObj){ return axiosApi({ url: `/authority/productLinePerformance/otherHourReport/${page}/${limit}`, method: 'post', data:searchObj }) }, productionLineRate(){ return axiosApi({ url: `/authority/productLinePerformance/productionLineRate`, method: 'post' }) }, }