/*********************** 【机加工人端-待完成任务/已完成任务】API ********************/ import axiosApi from '../AxiosApi.js' const apiList = { getList: { method: 'POST', url: `/authority/stationUser/query` }, update: { method: 'PUT', url: `/authority/stationUser` }, saveAll: { method: 'POST', url: `/authority/stationUser/saveAll` }, updateAll: { method: 'POST', url: `/authority/stationUser/updateAll` }, updateSchedule: { method: 'POST', url: `/authority/scheduleUserDate/updateSchedule` }, allStation: { method: 'GET', url: `/authority/stationUser/allStation` }, allUser: { method: 'GET', url: `/authority/stationUser/allUser` }, stationUser: { method: 'GET', url: `/authority/stationUser/stationUser` }, getStation:{ method: 'GET', url: `/authority/stationUser/getStation` }, getCurrentSchedule:{ method: 'POST', url: `/authority/scheduleUserDate/getCurrentSchedule` }, schedulePageList:{ method: 'POST', url: `/authority/scheduleUserDate/getPageList` }, getCutToolStation:{ method: 'GET', url: `/authority/stationUser/getCutToolStation` }, getCutToolStockInfo:{ method: 'GET', url: `/authority/stationUser/getCutToolStockInfo` }, addCutToolStockInfo:{ method: 'POST', url: `/authority/stationUser/addCutToolStockInfo` }, addCutToolTask:{ method: 'POST', url: `/authority/stationUser/addCutToolTask` }, addCutToolTaskMore:{ method: 'POST', url: `/authority/stationUser/addCutToolTaskMore` }, setWriteTakeCutter:{ method: 'POST', url: `/authority/stationUser/setWriteTakeCutter` }, setWriteTakeCutterMore:{ method: 'POST', url: `/authority/stationUser/setWriteTakeCutterMore` }, remove: { method: 'DELETE', url: `/authority/stationUser` }, } export default { getList (data) { return axiosApi({ ...apiList.getList, data }) }, // 获取【所有人员】信息 allUser (data) { return axiosApi({ ...apiList.allUser, data }) }, page (data) { return axiosApi({ ...apiList.page, data }) }, saveAll (data) { return axiosApi({ ...apiList.saveAll, data }) }, updateAll (data) { return axiosApi({ ...apiList.updateAll, data }) }, allStation (data) { return axiosApi({ ...apiList.allStation, data }) }, stationUser (data) { return axiosApi({ ...apiList.stationUser, data }) }, getStation (data) { return axiosApi({ ...apiList.getStation, data }) }, getCurrentSchedule (data) { return axiosApi({ ...apiList.getCurrentSchedule, data }) }, update (data) { return axiosApi({ ...apiList.update, data }) }, updateSchedule (data) { return axiosApi({ ...apiList.updateSchedule, data }) }, getCutToolStation (data) { return axiosApi({ ...apiList.getCutToolStation, data }) }, schedulePageList (data) { return axiosApi({ ...apiList.schedulePageList, data }) }, getCutToolStockInfo (data) { return axiosApi({ ...apiList.getCutToolStockInfo, data }) }, addCutToolStockInfo (data) { return axiosApi({ ...apiList.addCutToolStockInfo, data }) }, addCutToolTask (data) { return axiosApi({ ...apiList.addCutToolTask, data }) }, addCutToolTaskMore (data) { return axiosApi({ ...apiList.addCutToolTaskMore, data }) }, setWriteTakeCutter (data) { return axiosApi({ ...apiList.setWriteTakeCutter, data }) }, setWriteTakeCutterMore (data) { return axiosApi({ ...apiList.setWriteTakeCutterMore, data }) }, remove (data) { return axiosApi({ ...apiList.remove, data }) } }