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 @@ - + - + - +