diff --git a/.gitignore b/.gitignore index ecf296e..1a9e07b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ pnpm-debug.log* *.njsproj *.sln *.sw? + +/src/server/request.js \ No newline at end of file diff --git a/src/server/productionPlanning/customerForecastDemandReview.js b/src/server/productionPlanning/customerForecastDemandReview.js index be20ee4..6d51ca8 100644 --- a/src/server/productionPlanning/customerForecastDemandReview.js +++ b/src/server/productionPlanning/customerForecastDemandReview.js @@ -74,3 +74,9 @@ export const exportData = (data) => post("/admin/ap/balance/mpsplanexport",data) export const publishIdentify = ()=> get("admin/ap/planorderversion/publishidentify") export const publishedVersion = ()=> get("/admin/ap/articledemand/publishedversion") + + +export const planOrderQuery = (param)=> get("/admin/ap/planorder/query",param) + +export const republish = (data) => post("/admin/ap/planorderversion/relpublish",data) + diff --git a/src/store/productionPlanning/customerForecastDemandReview.js b/src/store/productionPlanning/customerForecastDemandReview.js index 900e434..3c8df8f 100644 --- a/src/store/productionPlanning/customerForecastDemandReview.js +++ b/src/store/productionPlanning/customerForecastDemandReview.js @@ -62,10 +62,7 @@ const customerForecastDemandReview = { editButtonClass: "disable_button", // 发布按钮 publicButtonClass: "disable_button", - - evaluationLoadPercent: 0, - - evaluationLoadInterval: {}, + }, mutations: { // 初始化所有数据 @@ -224,26 +221,6 @@ const customerForecastDemandReview = { SET_publicButtonClass(state, payload) { state.publicButtonClass = payload }, - SET_evaluationLoadPercent(state, payload) { - if (payload) { - let load = 1 - let temp = 100 - state.evaluationLoadInterval = setInterval(() => { - if (load > 10) { - temp++ - } - load++ - state.evaluationLoadPercent = parseInt(load / temp * 100) - }, 1000) - } else { - state.evaluationLoadPercent = 100 - clearInterval(state.evaluationLoadInterval) - setTimeout(() => { - state.evaluationLoadPercent = 0 - - }, 1000) - } - }, TOGGLE_showChar(state) { state.showChar = !state.showChar }, diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue index 227b0a5..5653dd4 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue @@ -302,7 +302,7 @@ "SET_evaluationSecondResourceListData", "SET_evaluationMainResourceLoading", "SET_evaluationSecondResourceLoading", - "SET_articleDemandLoading" + "SET_articleDemandLoading", ]), getPublishedVersion() { diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue index a5ef154..b548baf 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue @@ -27,12 +27,27 @@ + + + + \ No newline at end of file diff --git a/src/views/productionPlanning/customerForecastDemandReview/resourceContent/evaluation/index.vue b/src/views/productionPlanning/customerForecastDemandReview/resourceContent/evaluation/index.vue index 9c2cadb..9e7226e 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/resourceContent/evaluation/index.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/resourceContent/evaluation/index.vue @@ -12,10 +12,10 @@