123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- /*********************** 【计划管理】API ********************/
- import axiosApi from '../AxiosApi.js'
- const apiList = {
- getList: {
- method: 'POST',
- url: `/authority/plan/all`
- },
- getFinishPlanList: {
- method: 'POST',
- url: `/authority/plan/getFinishPlanList`
- },
- page: {
- method: 'POST',
- url: `/authority/plan/page`
- },
- pageList: {
- method: 'POST',
- url: `/authority/plan/pageList`
- },
- update: {
- method: 'POST',
- url: `/authority/plan/update`
- },
- save: {
- method: 'POST',
- url: `/authority/plan/save`
- },
- // 一键排产
- oneTouchSchedule: {
- method: 'POST',
- url: `/authority/plan/oneTouchSchedule`
- },
- // 高级排产
- advSchedule: {
- method: 'POST',
- url: `/authority/plan/advSchedule`
- },
- // 一键生产
- confirmSchedule: {
- method: 'POST',
- url: `/authority/plan/confirmSchedule`
- },
- // 审核状态
- updateStatus: {
- method: 'POST',
- url: `/authority/plan/updateStatus`
- },
- remove: {
- method: 'DELETE',
- url: `/authority/plan`
- },
- delete: {
- method: 'POST',
- url: `/authority/plan/delete`
- },
-
- // 计划【任务-按照生产资源 】
- scheduleTaskByResource: {
- method: 'POST',
- url: `/authority/task/scheduleTaskByResource`
- },
-
- // 计划【更多-启用】
- planEnable: {
- method: 'POST',
- url: `/authority/plan/planEnable`
- },
-
- // 计划【更多-暂停】
- planSuspend: {
- method: 'POST',
- url: `/authority/plan/planSuspend`
- },
-
- // 计划【更多-优先级】
- updateData: {
- method: 'POST',
- url: `/authority/plan/updateData`
- },
-
- // 计划【更多-生产单元】
- setProductionUnit: {
- method: 'POST',
- url: `/authority/planZone/setProductionUnit`
- },
-
- // 计划【修改数量】
- updateNumber: {
- method: 'POST',
- url: `/authority/plan/updateNumber`
- },
-
- // 计划【更多-删除】
- deletePlan: {
- method: 'POST',
- url: `/authority/plan/deletePlan`
- },
-
- // 计划【状态数量统计】
- getPlanStatusCount: {
- method: 'POST',
- url: `/authority/plan/getPlanStatusCount`
- },
-
- get: {
- method: 'POST',
- url: `/authority/plan/get`
- },
-
- list: {
- method: 'POST',
- url: `/authority/plan/query`
- },
-
- preview: {
- method: 'POST',
- url: `/authority/plan/preview`
- },
-
- export: {
- method: 'POST',
- url: `/authority/plan/export`
- },
-
- import: {
- method: 'POST',
- url: `/authority/plan/import`
- },
-
- downloadCraftCards: {
- method: 'POST',
- url: `/authority/plan/downloadCraftCards`
- },
-
- checkPlanCuttingTools: {
- method: 'POST',
- url: `/authority/plan/checkPlanCuttingTools`
- },
-
- checkPlanDetailCuttingTools: {
- method: 'POST',
- url: `/authority/plan/checkPlanDetailCuttingTools`
- },
- partsTracedBackPage: {
- method: 'POST',
- url: `/authority/workpiece/page`
- },
- prodTracedBackPage: {
- method: 'POST',
- url: `/authority/taskTracedBack/page`
- }
- }
- export default {
- getList (data) {
- return axiosApi({
- ...apiList.getList,
- data
- })
- },
- page (data) {
- return axiosApi({
- ...apiList.page,
- data
- })
- },
- pageList (data) {
- return axiosApi({
- ...apiList.pageList,
- data
- })
- },
- save (data) {
- return axiosApi({
- ...apiList.save,
- data
- })
- },
- // 一键排产
- oneTouchSchedule (data) {
- return axiosApi({
- ...apiList.oneTouchSchedule,
- data
- })
- },
- // 高级排产
- advSchedule (data) {
- return axiosApi({
- ...apiList.advSchedule,
- data
- })
- },
- // 一键生产
- confirmSchedule (data) {
- return axiosApi({
- ...apiList.confirmSchedule,
- data
- })
- },
- update (data) {
- return axiosApi({
- ...apiList.update,
- data
- })
- },
- updateStatus (data) {
- return axiosApi({
- ...apiList.updateStatus,
- data
- })
- },
- remove (data) {
- return axiosApi({
- ...apiList.remove,
- data
- })
- },
- delete (data) {
- return axiosApi({
- ...apiList.delete,
- data
- })
- },
-
- // 计划【任务-按照生产资源 】
- scheduleTaskByResource (data) {
- return axiosApi({
- ...apiList.scheduleTaskByResource,
- data
- })
- },
-
- // 计划【更多-启用】
- planEnable (data) {
- return axiosApi({
- ...apiList.planEnable,
- data
- })
- },
-
- // 计划【更多-暂停】
- planSuspend (data) {
- return axiosApi({
- ...apiList.planSuspend,
- data
- })
- },
- // 计划【优先级 】
- updateData (data) {
- return axiosApi({
- ...apiList.updateData,
- data
- })
- },
- // 计划【生产单元】
- setProductionUnit (data) {
- return axiosApi({
- ...apiList.setProductionUnit,
- data
- })
- },
- // 计划【修改数量】
- updateNumber (data) {
- return axiosApi({
- ...apiList.updateNumber,
- data
- })
- },
- // 计划【更多-删除】
- deletePlan (data) {
- return axiosApi({
- ...apiList.deletePlan,
- data
- })
- },
- // 【计划状态数量统计】
- getPlanStatusCount (data) {
- return axiosApi({
- ...apiList.getPlanStatusCount,
- data
- })
- },
- get (data) {
- return axiosApi({
- ...apiList.get,
- data
- })
- },
- list (data) {
- return axiosApi({
- ...apiList.list,
- data
- })
- },
- check (code) {
- return axiosApi({
- method: 'GET',
- url: `/authority/plan/check/${code}`
- })
- },
- checkField (data) {
- return axiosApi({
- method: 'POST',
- url: `/authority/plan/check`,
- data
- })
- },
- preview (data) {
- return axiosApi({
- ...apiList.preview,
- data
- })
- },
- export (data) {
- return axiosApi({
- ...apiList.export,
- responseType: "blob",
- data
- })
- },
- import (data) {
- return axiosApi({
- ...apiList.import,
- data
- })
- },
- getFinishPlanList (data) {
- return axiosApi({
- ...apiList.getFinishPlanList,
- data
- })
- },
- downloadCraftCards(data) {
- return axiosApi({
- ...apiList.downloadCraftCards,
- responseType: "blob",
- data
- })
- },
- checkPlanCuttingTools(data) {
- return axiosApi({
- ...apiList.checkPlanCuttingTools,
- data
- })
- },
- checkPlanDetailCuttingTools(data) {
- return axiosApi({
- ...apiList.checkPlanDetailCuttingTools,
- data
- })
- },
- partsTracedBackPage(data) {
- return axiosApi({
- ...apiList.partsTracedBackPage,
- data
- })
- },
- prodTracedBackPage(data) {
- return axiosApi({
- ...apiList.prodTracedBackPage,
- data
- })
- },
- }
|