From e7cbf825d4b01914635d61b36c88ded9bc9d2412 Mon Sep 17 00:00:00 2001 From: wangxy Date: Fri, 7 May 2021 09:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=AE=A1=E7=90=86=E7=9A=84?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=A2=9E=E5=8A=A0=E9=A2=9C=E8=89=B2=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=8C=BA=E5=88=86=EF=BC=8C=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E9=97=A8=E6=88=B7=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E9=A1=B5=E9=9D=A2=EF=BC=8C=E9=9C=80=E6=B1=82=E6=89=B9?= =?UTF-8?q?=E6=AC=A1=EF=BC=8C=E9=9C=80=E6=B1=82=E6=98=8E=E7=BB=86=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.staging | 1 + src/api/productplan/base.js | 8 + src/styles/index.scss | 38 +++++ src/styles/variables.scss | 21 ++- src/views/productplan/workbench/order.vue | 40 +++-- src/views/supplier/batch/exportTem.vue | 4 +- src/views/supplier/batch/handler.vue | 4 +- src/views/supplier/detail/exportTem.vue | 4 +- src/views/supplier/detail/handler.vue | 4 +- src/views/supplier/orderParse.vue | 174 ++++++++++++++++++++++ 10 files changed, 275 insertions(+), 23 deletions(-) create mode 100644 src/views/supplier/orderParse.vue diff --git a/.env.staging b/.env.staging index 7f625f6..1af8b08 100644 --- a/.env.staging +++ b/.env.staging @@ -5,3 +5,4 @@ NODE_ENV = 'production' # base api VUE_APP_BASE_API = 'http://101.201.121.115:8093' +# VUE_APP_BASE_API = 'http://101.201.121.115:8097' diff --git a/src/api/productplan/base.js b/src/api/productplan/base.js index d9292c9..002908b 100644 --- a/src/api/productplan/base.js +++ b/src/api/productplan/base.js @@ -41,6 +41,14 @@ export function getWorkorder (query) { }) } +// 根据物料ID查询所需数据 +export function getArticleData (query) { + return request({ + url: '/admin/base/article/get/' + query, + method: 'get' + }) +} + // 新增 export function addWorkorder (data) { return request({ diff --git a/src/styles/index.scss b/src/styles/index.scss index 0f8bef7..d5b1c21 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -246,4 +246,42 @@ aside { .el-table th.gutter{ display: table-cell!important; +} + +// 最新 +.not-plan-bg{ // 未计划 + background:$not-plan !important; + color: #fff; +} +.in-production-bg{ //生产中(执行中) + background:$in-production !important; + color: #fff; +} +.has-issued-bg{//已下达 + background:$has-issued !important; + color: #fff; +} +.has-plan-bg{//已计划 + background:$has-plan !important; + color: #fff; +} +.has-complete-bg{//已完成 + background:$has-complete !important; + color: #fff; +} +.has-lock-bg{//已锁定 + background:$has-lock !important; + color: #fff; +} +.has-cancel-bg{//已取消 + background:$has-cancel !important; + color: #fff; +} +.has-shipment-bg{//已发运 + background:$has-shipment !important; + color: #fff; +} +.interrupt-bg{//中断 + background:$interrupt !important; + color: #fff; } \ No newline at end of file diff --git a/src/styles/variables.scss b/src/styles/variables.scss index 535ae88..a401186 100644 --- a/src/styles/variables.scss +++ b/src/styles/variables.scss @@ -1,3 +1,14 @@ +// 最新定义颜色 +$not-plan: #E1B14E; // 未计划 +$in-production: #BFD732; // 生产中(执行中) +$has-issued: #26B8A1; // 已下达 +$has-plan: #518AD4; // 已计划 +$has-complete: #B4B4B4; // 已完成 +$has-lock: #3FA5C4; // 已锁定 +$has-cancel: #9172CE; // 已取消 +$has-shipment: #C98865; // 已发运 +$interrupt: #DC605C; // 中断 + // base color $blue:#324157; $light-blue:#3A71A8; @@ -8,11 +19,11 @@ $tiffany: #4AB7BD; $yellow:#FEC171; $panGreen: #30B08F; -$error:#FF6347; -$unKnow:#C0C0C0; -$wait:#3C81FF; -$process:#FFC825; -$complete:#2AC6AE; +$error:#C03639; +$unKnow:#B4B4B4; +$wait:#324157; +$process:#FEC171; +$complete:#30B08F; // sidebar // $menuText:#bfcbd9; diff --git a/src/views/productplan/workbench/order.vue b/src/views/productplan/workbench/order.vue index e554699..fab92bb 100644 --- a/src/views/productplan/workbench/order.vue +++ b/src/views/productplan/workbench/order.vue @@ -78,7 +78,7 @@ - + @@ -129,11 +139,11 @@ - + @@ -148,7 +158,7 @@ - + - + - +