From f3e4955cb91f4708ee3c147d3e6fbb07fb7d2484 Mon Sep 17 00:00:00 2001 From: xuxiaoming Date: Thu, 30 Dec 2021 09:09:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + .../customerForecastDemandReview.js | 6 ++ src/server/request.js | 6 +- .../customerForecastDemandReview.js | 25 +------ .../demandPlanning/articleDemand/index.vue | 2 +- .../demandPlanning/articleDemand/public.vue | 68 ++++++++++++++++-- .../articleDemand/publicDetail.vue | 71 +++++++++++++++++++ .../resourceContent/evaluation/index.vue | 42 +++++++++-- .../resourceContent/index.vue | 28 +++----- 9 files changed, 196 insertions(+), 54 deletions(-) create mode 100644 src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/publicDetail.vue 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/server/request.js b/src/server/request.js index 0d4d008..5cd6cf4 100644 --- a/src/server/request.js +++ b/src/server/request.js @@ -2,8 +2,12 @@ import axios from "axios"; import { ElMessage } from "element-plus"; let switchValue = true; const service = axios.create({ + // 阿里云 //baseURL: process.env.VUE_APP_BASE_URL || "http://101.201.121.115:9003/", - baseURL: process.env.VUE_APP_BASE_URL || "http://192.168.0.36:9003/", + // 徐腾飞 + // baseURL: process.env.VUE_APP_BASE_URL || "http://192.168.0.36:9003/", + // 张鑫 + baseURL: process.env.VUE_APP_BASE_URL || "http://192.168.0.98:9003/", timeout: 1000 * 60 * 2, // request timeout }); service.interceptors.request.use( 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 @@