看板修改
master
xs 3 months ago
parent 7fd4908f10
commit 28af5e1d08

@ -866,14 +866,14 @@ export default {
// }); // });
// }, 60 * 1000) // }, 60 * 1000)
getLoginStationInfo().then(e => { getLoginStationInfo().then(e => {
// if(!e.data){ if(!e.data){
// this.$modal.msgError(""); this.$modal.msgError("登录工位有误");
// return; return;
// } }
// this.loginStationInfo = e.data; this.loginStationInfo = e.data;
//TODO //TODO
this.loginStationInfo = {stationId: "1", stationCode: "ZP_02"} // this.loginStationInfo = {stationId: "1", stationCode: "ZP_02"}
this.getProductPlans(); this.getProductPlans();
this.getChartData(); this.getChartData();
}); });
@ -1963,9 +1963,14 @@ export default {
}, },
setSerialData() { setSerialData() {
if (this.rawBackVisible) { if (this.rawBackVisible) {
this.rawBackForm.materialBarcode = this.serialData; this.rawBackForm.materialBarcode = this.serialData;
} else { } else if(this.printModel){
this.$set(this.PrintData, "productBarcode", this.serialData);
console.log("printdata:"+this.PrintData.productBarcode)
}
else {
this.input1 = this.serialData; this.input1 = this.serialData;
} }
// console.log(this.serialData) // console.log(this.serialData)

@ -9,16 +9,19 @@
</div> </div>
<div class="table1"> <div class="table1">
<div style="background-color: #1077bc19;height: 50px;line-height: 50px;"> <div style="background-color: #1077bc19;height: 50px;line-height: 50px;">
<div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 12%"> <div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 10%">
编号 编号
</div> </div>
<div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 36%"> <div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 20%">
生产工单 生产任务
</div>
<div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 22%">
成品名称
</div> </div>
<div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 14%"> <div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 12%">
计划数量 计划数量
</div> </div>
<div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 14%"> <div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 12%">
实际数量 实际数量
</div> </div>
<div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 12%"> <div class="scrollTableItem" style="padding:0;color:#65c2f3;font-weight: bold;width: 12%">
@ -40,22 +43,27 @@
> >
<div :style='"background-color:" + ((index % 2 === 0)? "#1077bc19":"#1077bc05") '> <div :style='"background-color:" + ((index % 2 === 0)? "#1077bc19":"#1077bc05") '>
<div <div
class="scrollTableItem" style="width: 12%" class="scrollTableItem" style="width: 10%"
> >
{{ item.no }} {{ item.no }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 36%" class="scrollTableItem" style="width: 20%"
> >
{{ item.orderCode }} {{ item.orderCode }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 14%" class="scrollTableItem" style="width: 22%"
>
{{ item.materialName }}
</div>
<div
class="scrollTableItem" style="width: 12%"
> >
{{ item.planAmount }} {{ item.planAmount }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 14%" class="scrollTableItem" style="width: 12%"
> >
{{ item.completeAmount }} {{ item.completeAmount }}
</div> </div>
@ -196,7 +204,7 @@ export default {
rate: [0, 0, 0] rate: [0, 0, 0]
}, },
title: [ title: [
'工单生产进度', '生产任务信息',
'工位生产效率TOP', '工位生产效率TOP',
' ', ' ',
'计划数量:', '计划数量:',
@ -265,6 +273,7 @@ export default {
orderCode: v.orderCode, orderCode: v.orderCode,
planAmount: v.planAmount, planAmount: v.planAmount,
completeAmount: v.completeAmount, completeAmount: v.completeAmount,
materialName:v.materialName,
quantityAmount: parseFloat(v.planAmount) - parseFloat(v.completeAmount), quantityAmount: parseFloat(v.planAmount) - parseFloat(v.completeAmount),
finishingRate: parseFloat(v.completeAmount) === 0 ? 0 : (parseFloat(v.completeAmount) / parseFloat(v.completeAmount)) * 100 finishingRate: parseFloat(v.completeAmount) === 0 ? 0 : (parseFloat(v.completeAmount) / parseFloat(v.completeAmount)) * 100
} }

@ -174,8 +174,8 @@ export default {
}, },
time: parseTime(new Date(), '{y}-{m}-{d} 星期{a} {h}:{i}:{s}'), time: parseTime(new Date(), '{y}-{m}-{d} 星期{a} {h}:{i}:{s}'),
title: [ title: [
'工序生产进度', '生产任务信息',
'提升机状态', '提升机信息',
' ', ' ',
' ', ' ',
' ', ' ',

@ -82,9 +82,9 @@ export default {
time: parseTime(new Date(), '{y}-{m}-{d} 星期{a} {h}:{i}:{s}'), time: parseTime(new Date(), '{y}-{m}-{d} 星期{a} {h}:{i}:{s}'),
title: [ title: [
'工序生产进度', '工序生产进度',
'工序名称对比', '工序对比信息',
'七日产量对比', '',
' ', '能源占比信息',
' ', ' ',
' ', ' ',
' ', ' ',
@ -105,8 +105,8 @@ export default {
left: 5.5 left: 5.5
}, },
{ {
top: 63, top: 11.8,
left: 30.5 left: 37.5
}, },
{ {
top: 63, top: 63,

@ -9,13 +9,13 @@
</div> </div>
<div class="table1"> <div class="table1">
<div style="background-color: #094170;font-size: 0.7vw"> <div style="background-color: #094170;font-size: 0.7vw">
<div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 10%"> <!-- <div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 10%">-->
编号 <!-- 编号-->
</div> <!-- </div>-->
<div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 23%"> <div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 23%">
生产工单 生产任务
</div> </div>
<div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 23%"> <div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 28%">
成品名称 成品名称
</div> </div>
<div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 12%"> <div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 12%">
@ -27,7 +27,7 @@
<div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 10%"> <div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 10%">
差异值 差异值
</div> </div>
<div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 10%"> <div class="scrollTableItem" style="color:#fff;font-weight: bold;width: 15%">
完成率 完成率
</div> </div>
</div> </div>
@ -42,18 +42,18 @@
:key="index" :key="index"
> >
<div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '> <div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '>
<div <!-- <div-->
class="scrollTableItem" style="width: 10%" <!-- class="scrollTableItem" style="width: 10%"-->
> <!-- >-->
{{ item.no }} <!-- {{ item.no }}-->
</div> <!-- </div>-->
<div <div
class="scrollTableItem" style="width:23%;font-size: 0.5vw" class="scrollTableItem" style="width:23%;font-size: 0.5vw"
> >
{{ item.orderCode }} {{ item.orderCode }}
</div> </div>
<div <div
class="scrollTableItem" style="width:23%;font-size: 0.6vw" class="scrollTableItem" style="width:28%;font-size: 0.6vw"
> >
{{ item.materialName }} {{ item.materialName }}
</div> </div>
@ -73,7 +73,7 @@
{{ item.quantityAmount }} {{ item.quantityAmount }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 10%" class="scrollTableItem" style="width: 15%"
> >
{{ item.finishingRate }}% {{ item.finishingRate }}%
</div> </div>
@ -138,7 +138,7 @@ export default {
diff: [0, 0, 0, 0] diff: [0, 0, 0, 0]
}, },
title: [ title: [
'工单计划', '生产任务',
'小时产量', '小时产量',
'七日产量对比', '七日产量对比',
'粉尘数据走势', '粉尘数据走势',

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="headTitle">京源智能仓储监控平台</div> <div class="headTitle">京源智能能源监控平台</div>
<div v-for="(i,k) in title" <div v-for="(i,k) in title"
:style="'top:'+(titlePosition[k]&&titlePosition[k].top||0)+'%;left:'+(titlePosition[k]&&titlePosition[k].left||0)+'%'" :style="'top:'+(titlePosition[k]&&titlePosition[k].top||0)+'%;left:'+(titlePosition[k]&&titlePosition[k].left||0)+'%'"
class="title" class="title"
@ -142,8 +142,8 @@ export default {
num3: [0, 0, 0, 0] num3: [0, 0, 0, 0]
}, },
title: [ title: [
' ', '能源数据信息',
' ', '能源对比信息',
' ', ' ',
' ', ' ',
' ', ' ',
@ -155,8 +155,8 @@ export default {
left: 7.5 left: 7.5
}, },
{ {
top: 11.5, top: 55.8,
left: 40.3 left: 7.5
}, },
{ {
top: 11.5, top: 11.5,

@ -91,7 +91,7 @@
style="height: calc(100% - 30px);overflow: hidden;" style="height: calc(100% - 30px);overflow: hidden;"
> >
<div <div
v-for="(item, index) in scrollTableData" v-for="(item, index) in scrollTableData1"
:key="index" :key="index"
> >
<div :style='"background-color:" + ((index % 2 === 0)? "#1077bc19":"#1077bc05") '> <div :style='"background-color:" + ((index % 2 === 0)? "#1077bc19":"#1077bc05") '>
@ -169,12 +169,14 @@ export default {
num3: [0, 0, 0, 0] num3: [0, 0, 0, 0]
}, },
title: [ title: [
'原料库入库数量:', '板材入库数量:',
'原料库出库数量:', '板材出库数量:',
'半成品入库数量:', '成品入库数量:',
' ', '',
' ', '库存信息 ',
'库存占比' '出入库信息',
'板材库存',
'辅料库存',
], ],
titlePosition: [ titlePosition: [
{ {
@ -194,12 +196,20 @@ export default {
left: 60.3 left: 60.3
}, },
{ {
top: 11.5, top: 19.4,
left: 79.1 left: 53.1
}, },
{ {
top: 19.4, top: 19.4,
left: 5.5 left: 5.5
},
{
top: 59.9,
left: 5.5
},
{
top: 59.9,
left: 53.1
} }
], ],
scrollTableOption: { scrollTableOption: {

Loading…
Cancel
Save