From fed1db7abe2ff98765f61605ecceb4c77becb0d5 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 5 Jan 2024 16:07:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +- src/config/mork2.js | 22 ++-- src/main.js | 3 + src/pages/Setup.vue | 5 +- src/pages/modules/home/left/left.vue | 174 +++++++++++++++++-------- src/pages/modules/home/right/left.vue | 4 +- src/pages/modules/home/right/right.vue | 87 ++++++------- src/style/reset.css | 2 +- yarn.lock | 15 +++ 9 files changed, 204 insertions(+), 113 deletions(-) diff --git a/package.json b/package.json index 8c87777..1e77821 100644 --- a/package.json +++ b/package.json @@ -11,10 +11,12 @@ "build": "node build/build.js" }, "dependencies": { + "add": "^2.0.6", "axios": "^0.18.0", "babel-plugin-component": "^1.1.1", "babel-polyfill": "^6.26.0", "babel-preset-es2015": "^6.24.1", + "default-passive-events": "^2.0.0", "echarts": "^5.1.1", "element-ui": "^2.15.14", "stylus": "^0.54.5", @@ -23,7 +25,8 @@ "vue-particles": "^1.0.9", "vue-router": "^3.0.1", "vue-seamless-scroll": "^1.1.16", - "vuex": "^3.0.1" + "vuex": "^3.0.1", + "yarn": "^1.22.21" }, "devDependencies": { "autoprefixer": "^7.1.2", diff --git a/src/config/mork2.js b/src/config/mork2.js index e476794..fb9cc12 100644 --- a/src/config/mork2.js +++ b/src/config/mork2.js @@ -172,8 +172,14 @@ export const homepageDataLeft = () => { // 计划生产 'plan': 0.0 }, + todayTotalPlan: '80', + materialCountSize: '2', + sortCompleted: '11', + sortCompletedQty: '900', + sortMaterialCountSize: '1', + fulfillmentRate: '25' // 信息 - 'message': '今日共需生产8400块,物料种类2种,已完成包装11托,共900块,1个物料,完成率25%。' + // 'message': '今日共需生产8400块,物料种类2种,已完成包装11托,共900块,1个物料,完成率25%。' }, // 历史分析 固定7个元素 'history': [ @@ -220,49 +226,49 @@ export const homepageDataLeft = () => { 'inventory': [ { // 物料编码 - 'materialCode': 'GBMCZ3027L323217GM003ZX22-30', + 'materialCode': 'GBMCZ3027L323217GM003ZX22-31', 'materialName': '物料一', // 数量 'qty': 1 }, { // 物料编码 - 'materialCode': 'GBMCZ3027L323217GM003ZX22-30', + 'materialCode': 'GBMCZ3027L323217GM003ZX22-32', 'materialName': '物料二', // 数量 'qty': 2 }, { // 物料编码 - 'materialCode': 'GBMCZ3027L323217GM003ZX22-30', + 'materialCode': 'GBMCZ3027L323217GM003ZX22-3', 'materialName': '物料三', // 数量 'qty': 3 }, { // 物料编码 - 'materialCode': 'GBMCZ3027L323217GM003ZX22-30', + 'materialCode': 'GBMCZ3027L323217GM003ZX22-4', 'materialName': '物料四', // 数量 'qty': 4 }, { // 物料编码 - 'materialCode': 'GBMCZ3027L323217GM003ZX22-30', + 'materialCode': 'GBMCZ3027L323217GM003ZX22-5', 'materialName': '物料五', // 数量 'qty': 5 }, { // 物料编码 - 'materialCode': 'GBMCZ3027L323217GM003ZX22-30', + 'materialCode': 'GBMCZ3027L323217GM003ZX22-6', 'materialName': '物料6', // 数量 'qty': 6 }, { // 物料编码 - 'materialCode': 'GBMCZ3027L323217GM003ZX22-30', + 'materialCode': 'GBMCZ3027L323217GM003ZX22-7', 'materialName': '物料7', // 数量 'qty': 7 diff --git a/src/main.js b/src/main.js index 537c2fd..2636a52 100644 --- a/src/main.js +++ b/src/main.js @@ -6,12 +6,15 @@ import store from './vuex/store' import './style/reset.css' import './style/layout.styl' import * as echarts from 'echarts' +import 'default-passive-events' import VueParticles from 'vue-particles' import scroll from 'vue-seamless-scroll' +import {Message} from 'element-ui' Vue.prototype.$echarts = echarts Vue.use(VueParticles) Vue.use(scroll) +Vue.prototype.$message = Message Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ diff --git a/src/pages/Setup.vue b/src/pages/Setup.vue index ac5d7e4..9a46af1 100644 --- a/src/pages/Setup.vue +++ b/src/pages/Setup.vue @@ -81,7 +81,10 @@ export default { }, _config () { if (this.setTime > 10800) { - this.toast('刷新时间设置过长') + this.$message({ + message: '刷新时间设置过长', + type: 'warning' + }) return } let obj = { diff --git a/src/pages/modules/home/left/left.vue b/src/pages/modules/home/left/left.vue index f2e811d..bfd44cd 100644 --- a/src/pages/modules/home/left/left.vue +++ b/src/pages/modules/home/left/left.vue @@ -42,7 +42,7 @@
-
+
今日共需生产{{todayTotalPlan}}块,物料种类{{ materialCountSize }}种,已完成包装{{ sortCompleted }}托,共{{ sortCompletedQty }}块,{{ sortMaterialCountSize }}个物料,完成率{{fulfillmentRate}}%
@@ -73,13 +73,13 @@

库存量监控

-
+
-
+
@@ -105,8 +105,8 @@