This commit is contained in:
2024-03-07 15:50:43 +08:00
parent c80fd4c6fe
commit 786415bce6
4 changed files with 278 additions and 10 deletions

264
src/config/mork01.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -4,8 +4,8 @@ export const cockpitpress = () => {
'PressOrderList': [ 'PressOrderList': [
{ {
'planQty': '6000', 'planQty': '6000',
'realQty': '7846', 'realQty': '6000',
'rate': '1.31', 'rate': '1',
'orderNumber': 'SY202401-04' 'orderNumber': 'SY202401-04'
}, },
{ {

View File

@@ -40,7 +40,7 @@
</div> </div>
</div> </div>
<div class="con3"> <div class="con3">
<div class="title"><span class="dotIncon"></span><span class="tltxt">订单</span></div> <div class="title"><span class="dotIncon"></span><span class="tltxt">订单</span></div>
<div class="item_content_1"> <div class="item_content_1">
<div id="echart_d2" style="width: 100%; height: 100%"></div> <div id="echart_d2" style="width: 100%; height: 100%"></div>
</div> </div>
@@ -101,8 +101,8 @@
<script> <script>
import THeader from '@components/header3.vue' import THeader from '@components/header3.vue'
// import * as echarts from 'echarts' // import * as echarts from 'echarts'
// import { cockpitpress } from '@js/getData1' import { cockpitpress } from '@js/getData1'
import {cockpitpress} from '@js/mork1.js' // import {cockpitpress} from '@js/mork1.js'
export default { export default {
name: 'ProdCount', name: 'ProdCount',
components: { components: {
@@ -410,8 +410,11 @@ export default {
// } // }
// }) // })
this.PressOrderList.map(el => { this.PressOrderList.map(el => {
if ((Number(el.planQty) + Number(el.realQty)) >= Number(max)) { // if ((Number(el.planQty) + Number(el.realQty)) >= Number(max)) {
max = Number(el.planQty) + Number(el.realQty) // max = Number(el.planQty) + Number(el.realQty)
// }
if (Number(el.planQty) >= Number(max)) {
max = Number(el.planQty)
} }
}) })
let option = { let option = {
@@ -543,7 +546,8 @@ export default {
}, },
// data: [10, 20, 10, 10, 20, 20, 20], // data: [10, 20, 10, 10, 20, 20, 20],
// data: this.MonthlyWorkOrder.map((it) => it.residue_num) // data: this.MonthlyWorkOrder.map((it) => it.residue_num)
data: this.PressOrderList.map((it) => it.realQty) // data: this.PressOrderList.map((it) => it.realQty)
data: this.PressOrderList.map((it) => Number(it.planQty) - Number(it.realQty))
} }
// { // {
// type: 'bar', // type: 'bar',

View File

@@ -161,8 +161,8 @@
<script> <script>
import THeader from '@components/header3.vue' import THeader from '@components/header3.vue'
// import {cockpitsorting} from '@js/getData1.js' import {cockpitsorting} from '@js/getData1.js'
import {cockpitsorting} from '@js/mork1.js' // import {cockpitsorting} from '@js/mork1.js'
export default { export default {
name: 'SortWorkMonitor', name: 'SortWorkMonitor',
components: { components: {