From 1f663f2961222871005218ae0b4dfec3126e145d Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期二, 25 二月 2025 09:09:56 +0800
Subject: [PATCH] 1.看板修改
---
src/views/kanbanManager/dccj.vue | 10 ++--
src/views/kanbanManager/bzcj.vue | 10 ++--
src/views/kanbanManager/zhkb.vue | 48 ++++++++++++-----------
src/views/kanbanManager/zpcj.vue | 10 ++--
4 files changed, 40 insertions(+), 38 deletions(-)
diff --git a/src/views/kanbanManager/bzcj.vue b/src/views/kanbanManager/bzcj.vue
index 3d5dab3..d3caa2b 100644
--- a/src/views/kanbanManager/bzcj.vue
+++ b/src/views/kanbanManager/bzcj.vue
@@ -165,7 +165,7 @@
},
methods: {
getWorkShopProduceTopData() {
- WorkShopProduceTopData({ wkshopcode: 'CJ003' }).then(res => {
+ WorkShopProduceTopData({ wkshopcode: '0503' }).then(res => {
const flag = this.compareArrays(this.configTableTop.data, res.data)
if (!flag) {
this.configTableTop.data = res.data.map(i =>
@@ -190,15 +190,15 @@
})
},
async getWorkShopProduceBottomLeftData() {
- const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: 'CJ003' })
- this.cjzl03_xData = res4.data['CJ003'].map(i => i.click_date)
- this.cjzl03_yData = res4.data['CJ003'].map(i => i.count)
+ const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: '0503' })
+ this.cjzl03_xData = res4.data['0503'].map(i => i.click_date)
+ this.cjzl03_yData = res4.data['0503'].map(i => i.count)
loadEcharts('cjzl03', cjzl03_2(this.cjzl03_xData, this.cjzl03_yData))
},
async getWorkShopProduceBottomRightData() {
- const res5 = await WorkShopProduceBottomRightData({ wkshopcode: 'CJ003' })
+ const res5 = await WorkShopProduceBottomRightData({ wkshopcode: '0503' })
this.RightBottom = res5.data
if (this.RightBottom.length > 0) {
loadEcharts('cjzl04', cjzl04(this.RightBottom.map(i => i.name), this.RightBottom.map(i => i.cont)))
diff --git a/src/views/kanbanManager/dccj.vue b/src/views/kanbanManager/dccj.vue
index 56bbb00..6dafd26 100644
--- a/src/views/kanbanManager/dccj.vue
+++ b/src/views/kanbanManager/dccj.vue
@@ -165,7 +165,7 @@
},
methods: {
getWorkShopProduceTopData() {
- WorkShopProduceTopData({ wkshopcode: 'CJ002' }).then(res => {
+ WorkShopProduceTopData({ wkshopcode: '0502' }).then(res => {
const flag = this.compareArrays(this.configTableTop.data, res.data)
if (!flag) {
this.configTableTop.data = res.data.map(i =>
@@ -190,15 +190,15 @@
})
},
async getWorkShopProduceBottomLeftData() {
- const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: 'CJ002' })
- this.cjzl03_xData = res4.data['CJ002'].map(i => i.click_date)
- this.cjzl03_yData = res4.data['CJ002'].map(i => i.count)
+ const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: '0502' })
+ this.cjzl03_xData = res4.data['0502'].map(i => i.click_date)
+ this.cjzl03_yData = res4.data['0502'].map(i => i.count)
loadEcharts('cjzl03', cjzl03_2(this.cjzl03_xData, this.cjzl03_yData))
},
async getWorkShopProduceBottomRightData() {
- const res5 = await WorkShopProduceBottomRightData({ wkshopcode: 'CJ002' })
+ const res5 = await WorkShopProduceBottomRightData({ wkshopcode: '0502' })
this.RightBottom = res5.data
if (this.RightBottom.length > 0) {
loadEcharts('cjzl04', cjzl04(this.RightBottom.map(i => i.name), this.RightBottom.map(i => i.cont)))
diff --git a/src/views/kanbanManager/zhkb.vue b/src/views/kanbanManager/zhkb.vue
index 1526df9..22ea9b4 100644
--- a/src/views/kanbanManager/zhkb.vue
+++ b/src/views/kanbanManager/zhkb.vue
@@ -45,25 +45,25 @@
</div>
</div>
- <div style="height: 180px;padding: 10px;display: flex; justify-content: space-around;margin-top: 20px;">
- <div v-for="i in LeftTopData02" :key="i.wkshp_code" class="flex_c_s">
- <div class="all_block03 flex_c_s">
- <div class="flex_c_c all_block04">{{ i.wkshp_name }}</div>
- <div class="" style="display: flex;justify-content:space-between">
- <div class="all_block04 flex_c_c" style="width: 49% ">浠诲姟鏁�</div>
- <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.plan_qty }}</div>
- </div>
- <div class="" style="display: flex;justify-content:space-between">
- <div class="all_block04 flex_c_c" style="width: 49% ">瀹屽伐鏁�</div>
- <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.quantity }}</div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- <div style="height: 260px;">-->
- <!-- <div id="all01" class="flex_c_c" style="width: 100%;height:100%;" />-->
+ <!-- <div style="height: 180px;padding: 10px;display: flex; justify-content: space-around;margin-top: 20px;">-->
+ <!-- <div v-for="i in LeftTopData02" :key="i.wkshp_code" class="flex_c_s">-->
+ <!-- <div class="all_block03 flex_c_s">-->
+ <!-- <div class="flex_c_c all_block04">{{ i.wkshp_name }}</div>-->
+ <!-- <div class="" style="display: flex;justify-content:space-between">-->
+ <!-- <div class="all_block04 flex_c_c" style="width: 49% ">浠诲姟鏁�</div>-->
+ <!-- <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.plan_qty }}</div>-->
+ <!-- </div>-->
+ <!-- <div class="" style="display: flex;justify-content:space-between">-->
+ <!-- <div class="all_block04 flex_c_c" style="width: 49% ">瀹屽伐鏁�</div>-->
+ <!-- <div class="all_block04 flex_c_c" style="width: 49% ">{{ i.quantity }}</div>-->
+ <!-- </div>-->
+ <!-- </div>-->
+ <!-- </div>-->
<!-- </div>-->
+
+ <div style="height: 220px;">
+ <div id="all01" class="flex_c_c" style="width: 100%;height:100%;" />
+ </div>
</dv-border-box-12>
</div>
@@ -163,7 +163,7 @@
<script>
import './kbCommon.css'
-import { loadEcharts, all02 } from '@/utils/myEcharts'
+import { loadEcharts, all02, all01 } from '@/utils/myEcharts'
import {
WorkShopCompreLeftTop,
WorkShopCompreRightBottom,
@@ -222,12 +222,12 @@
methods: {
getWorkShopCompreLeftTop() {
const res = [
- { org_code: 'CJ001', org_name: '瑁呴厤杞﹂棿' },
- { org_code: 'CJ002', org_name: '鐢垫睜杞﹂棿' },
- { org_code: 'CJ003', org_name: '鍖呰杞﹂棿' }
+ { org_code: '0501', org_name: '瑁呴厤杞﹂棿' },
+ { org_code: '0502', org_name: '鐢垫睜杞﹂棿' },
+ { org_code: '0503', org_name: '鍖呰杞﹂棿' }
]
- const temp = ['CJ001', 'CJ002', 'CJ003']
+ const temp = ['0501', '0502', '0503']
WorkShopCompreLeftTop({ wkshopcode: temp.join(',') }).then(res2 => {
this.LeftTopData01 = []
@@ -261,6 +261,7 @@
this.LeftTopData02.push(data)
}
}
+ loadEcharts('all01', all01(res.map(i => i.org_name), this.LeftTopData02))
})
setInterval(() => {
@@ -297,6 +298,7 @@
}
}
})
+ loadEcharts('all01', all01(res.map(i => i.org_name), this.LeftTopData02))
}, 1000 * 30)
},
diff --git a/src/views/kanbanManager/zpcj.vue b/src/views/kanbanManager/zpcj.vue
index d1076bb..70031f2 100644
--- a/src/views/kanbanManager/zpcj.vue
+++ b/src/views/kanbanManager/zpcj.vue
@@ -165,7 +165,7 @@
},
methods: {
getWorkShopProduceTopData() {
- WorkShopProduceTopData({ wkshopcode: 'CJ001' }).then(res => {
+ WorkShopProduceTopData({ wkshopcode: '0501' }).then(res => {
const flag = this.compareArrays(this.configTableTop.data, res.data)
if (!flag) {
this.configTableTop.data = res.data.map(i =>
@@ -190,15 +190,15 @@
})
},
async getWorkShopProduceBottomLeftData() {
- const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: 'CJ001' })
- this.cjzl03_xData = res4.data['CJ001'].map(i => i.click_date)
- this.cjzl03_yData = res4.data['CJ001'].map(i => i.count)
+ const res4 = await WorkShopProduceBottomLeftData({ wkshopcode: '0501' })
+ this.cjzl03_xData = res4.data['0501'].map(i => i.click_date)
+ this.cjzl03_yData = res4.data['0501'].map(i => i.count)
loadEcharts('cjzl03', cjzl03_2(this.cjzl03_xData, this.cjzl03_yData))
},
async getWorkShopProduceBottomRightData() {
- const res5 = await WorkShopProduceBottomRightData({ wkshopcode: 'CJ001' })
+ const res5 = await WorkShopProduceBottomRightData({ wkshopcode: '0501' })
this.RightBottom = res5.data
if (this.RightBottom.length > 0) {
loadEcharts('cjzl04', cjzl04(this.RightBottom.map(i => i.name), this.RightBottom.map(i => i.cont)))
--
Gitblit v1.9.3