2023-06-06 16:09:32 +08:00
< template >
< div class = "n_container" >
< div class = "n_header" >
< div class = "n_header_h1" >
< h1 > 据控制中心 < / h1 >
< / div >
< / div >
< div class = "n_body_container" >
< div class = "n_body_container_wraper" >
< div class = "box1" >
< div class = "status_wrap" >
< div class = "status_item" >
< div class = "status_tip green" > < / div >
< div class = "status_name" > 困料 < / div >
< / div >
< div class = "status_item" >
< div class = "status_tip yellow" > < / div >
< div class = "status_name" > 困料完成 < / div >
< / div >
< div class = "status_item" >
< div class = "status_tip red" > < / div >
< div class = "status_name" > 困料超时 < / div >
< / div >
< / div >
< div class = "box_l1" >
< div v-for = "(e,i) in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]" :key="i" class="picbox" :class="{'mgt5': i === 2 || i === 6 || i === 10 || i === 14 || i === 18}" >
< img src = "../../../images/workshop/lz.png" alt = "" >
< / div >
< / div >
< div class = "box_l2" >
< div v-for = "(e,i) in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]" :key="i" class="picbox" :class="{'mgt5': i === 2 || i === 6 || i === 10 || i === 14 || i === 18}" >
< img src = "../../../images/workshop/lz.png" alt = "" >
< / div >
< / div >
< div class = "box_r1" >
< div v-for = "(e,i) in [1,2,3]" :key="i" class="picbox" >
< img src = "../../../images/workshop/lz.png" alt = "" >
< / div >
< / div >
< div class = "box_r2" >
< div v-for = "(e,i) in [1,2,3]" :key="i" class="picbox" >
< img src = "../../../images/workshop/lz.png" alt = "" >
< / div >
< / div >
< / div >
< div class = "box2" >
< div class = "item_wrap" >
< div class = "item_tip item_tip_bg_s" >
< div class = "item_tip_left" > 困料库存 < / div >
< / div >
< div class = "item_content" >
< div class = "scroll_wrap" >
< ul class = "scroll_tab_1" >
< li > 货位 < / li >
< li > BOM号 < / li >
< li > 物料名称 < / li >
< li > 重量 < / li >
< li > 载具号 < / li >
< li > 碾次 < / li >
< li > 静置 ( h ) < / li >
< li > 状态 < / li >
< / ul >
< div class = "scroll_container_1" >
< vue-seamless-scroll :data = "array1" :class-option = "defaultOption1" >
< ul class = "scroll-ul_1" >
< li v-for = "(e, i) in array1" :key="i" >
2023-06-09 18:10:25 +08:00
< div class = "scroll-ul_1_div" : class = "['c_gray', 'c_yellow', 'c_green', 'c_red'][Number(e.stand_status_color)]" > { { e . point _name } } < / div >
2023-06-06 16:09:32 +08:00
< div class = "scroll-ul_1_div" > { { e . bom } } < / div >
< div class = "scroll-ul_1_div" > { { e . material _code } } < / div >
2023-06-09 18:10:25 +08:00
< div class = "scroll-ul_1_div" > { { e . weight } } < / div >
< div class = "scroll-ul_1_div" > { { e . vehicle _code } } < / div >
< div class = "scroll-ul_1_div" > { { e . mix _num } } < / div >
< div class = "scroll-ul_1_div" > { { e . standing _time } } < / div >
< div class = "scroll-ul_1_div" > { { e . stand _status _name } } < / div >
2023-06-06 16:09:32 +08:00
< / li >
< / ul >
< / vue-seamless-scroll >
< / div >
< / div >
< / div >
< / div >
< div class = "item_wrap" >
< div class = "item_tip item_tip_bg_s" >
< div class = "item_tip_left" > 困料出入库 < / div >
< / div >
< div class = "item_content" >
< div class = "scroll_wrap" >
< ul class = "scroll_tab_1" >
2023-06-09 18:10:25 +08:00
< li style = "width: 6.5%;" > 类别 < / li >
2023-06-06 16:09:32 +08:00
< li > BOM号 < / li >
< li > 物料名称 < / li >
< li > 重量 < / li >
< li > 载具号 < / li >
< li > 碾次 < / li >
< li > 货位 < / li >
2023-06-09 18:10:25 +08:00
< li style = "width: 18%;" > 出入时间 < / li >
2023-06-06 16:09:32 +08:00
< / ul >
< div class = "scroll_container_1" >
2023-06-09 18:10:25 +08:00
< vue-seamless-scroll :data = "array2" :class-option = "defaultOption2" >
2023-06-06 16:09:32 +08:00
< ul class = "scroll-ul_1" >
2023-06-09 18:10:25 +08:00
< li v-for = "(e, i) in array2" :key="i" >
< div class = "scroll-ul_1_div" style = "width: 6.5%;" > { { e . io _type } } < / div >
2023-06-06 16:09:32 +08:00
< div class = "scroll-ul_1_div" > { { e . bom } } < / div >
< div class = "scroll-ul_1_div" > { { e . material _code } } < / div >
2023-06-09 18:10:25 +08:00
< div class = "scroll-ul_1_div" > { { e . weight } } < / div >
< div class = "scroll-ul_1_div" > { { e . vehicle _code } } < / div >
< div class = "scroll-ul_1_div" > { { e . mix _num } } < / div >
< div class = "scroll-ul_1_div" > { { e . point _code } } < / div >
< div class = "scroll-ul_1_div" style = "width: 18%;" > { { e . create _time } } < / div >
2023-06-06 16:09:32 +08:00
< / li >
< / ul >
< / vue-seamless-scroll >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / template >
< script >
2023-06-09 18:10:25 +08:00
import { trappedMaterialCondition } from '@js/getData0'
2023-06-06 16:09:32 +08:00
export default {
name : 'one' ,
data ( ) {
return {
2023-06-09 18:10:25 +08:00
resData : { } ,
array1 : [ ] ,
array2 : [ ]
// array1: [{workorder_code: 'hl00001', device_name: '混碾机1', bom: 'WL001', material_code: '1号混料', plan_qty: '5000', real_qty: '200', total_mix_frequency: '230505001001', order_status: '生产完成', realproducestart_date: '10-11 19:11:00', realproduceend_date: '10-11 19:11:00'}]
// array2: [{workorder_code: 'hl00001', device_name: '混碾机1', bom: 'WL001', material_code: '1号混料', plan_qty: '5000', real_qty: '200', total_mix_frequency: '230505001001', order_status: '生产完成', realproducestart_date: '10-11 19:11:00', realproduceend_date: '10-11 19:11:00'}]
2023-06-06 16:09:32 +08:00
}
} ,
computed : {
defaultOption1 ( ) {
return {
step : 0.4 , // 数值越大速度滚动越快
limitMoveNum : 11 , // 开始无缝滚动的数据量 this.dataList.length
hoverStop : true , // 是否开启鼠标悬停stop
direction : 1 , // 0向下 1向上 2向左 3向右
openWatch : true , // 开启数据实时监控刷新dom
singleHeight : 0 , // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
singleWidth : 0 , // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
waitTime : 1000 // 单步运动停止的时间(默认值1000ms)
}
2023-06-09 18:10:25 +08:00
} ,
defaultOption2 ( ) {
return {
step : 0.4 , // 数值越大速度滚动越快
limitMoveNum : 11 , // 开始无缝滚动的数据量 this.dataList.length
hoverStop : true , // 是否开启鼠标悬停stop
direction : 1 , // 0向下 1向上 2向左 3向右
openWatch : true , // 开启数据实时监控刷新dom
singleHeight : 0 , // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
singleWidth : 0 , // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
waitTime : 1000 // 单步运动停止的时间(默认值1000ms)
}
2023-06-06 16:09:32 +08:00
}
} ,
mounted ( ) {
2023-06-09 18:10:25 +08:00
this . initData ( )
2023-06-06 16:09:32 +08:00
} ,
methods : {
2023-06-09 18:10:25 +08:00
async initData ( ) {
let res = await trappedMaterialCondition ( )
this . resData = res . result
this . array1 = res . result . TrappedStockList
this . array2 = res . result . TrappedIOStockList
}
2023-06-06 16:09:32 +08:00
}
}
< / script >
< style lang = "stylus" scoped >
@ import '~@css/mixin'
2023-06-09 18:10:25 +08:00
. c _gray
color $gray1 ! important
. c _yellow
color $yellow ! important
. c _green
color $green ! important
. c _red
color $orange ! important
2023-06-06 16:09:32 +08:00
. n _container
_wh ( 100 % , 100 % )
. n _header
_wh ( 100 % , 8 % )
_bis ( '../../../images/bg_header.jpg' )
. n _header _h1
_wh ( 100 % , 100 % )
_fj ( row , flex - start )
_bis ( '../../../images/top_right.png' , auto , , left )
h1
_font ( 32 px , 1 , # fff , , right )
padding - bottom 2 %
letter - spacing 6 px
font - family "阿里妈妈数黑体" ! important
padding - left 3 px
. n _body _container
_wh ( 100 % , 92 % )
padding 40 px 20 px 20 px 0
_bis ( '../../../images/bg_content_r.jpg' )
. n _body _container _wraper
_wh ( 100 % , 100 % )
_fj ( )
. status _wrap
position absolute
2023-06-09 18:10:25 +08:00
top 18 px
2023-06-06 16:09:32 +08:00
right 40 px
z - index 1
_fj ( row )
. status _item
_fj ( row )
+ . status _item
margin - left 20 px
. status _tip
_wh ( 15 px , 15 px )
border - radius 50 %
margin - right 10 px
box - shadow 0 px 0 px 4 px 0 px rgba ( 33 , 121 , 195 , 0.88 )
. status _name
_font ( 16 px , 1 , # fff )
. green
background - color $green2
. yellow
background - color $yellow
. red
background - color $orange
. box1
position relative
_wh ( 100 % , 58 % )
2023-06-09 18:10:25 +08:00
// border 1px solid rgba(8,205,248,0.3)
// border-left none
2023-06-06 16:09:32 +08:00
. box _l1
_wh ( 3 % , 10 % )
position absolute
top 25 %
right 20 %
z - index 2
transform rotate ( 90 deg )
. picbox
width 100 %
margin - bottom 15 %
img
_wh ( 100 % , auto )
. box _l2
_wh ( 3 % , 10 % )
position absolute
top 65 %
right 20 %
z - index 2
transform rotate ( 90 deg )
. picbox
width 100 %
margin - bottom 15 %
img
_wh ( 100 % , auto )
. box _r1
_wh ( 3 % , 10 % )
position absolute
top 25 %
right 2 %
z - index 2
transform rotate ( 90 deg )
. picbox
width 100 %
margin - bottom 20 %
img
_wh ( 100 % , auto )
. box _r2
_wh ( 3 % , 10 % )
position absolute
top 65 %
right 2 %
z - index 2
transform rotate ( 90 deg )
. picbox
width 100 %
margin - bottom 20 %
img
_wh ( 100 % , auto )
. mgt5
margin - top 65 %
. box2
_wh ( 100 % , 40 % )
_fj ( row )
. item _wrap
_wh ( 100 % , 100 % )
+ . item _wrap
margin - top .5 %
. item _tip
_wh ( 100 % , 32 px )
line - height 32 px
padding 0 10 px
. item _tip _bg _s
_bis ( '../../../images/bg_title_s.png' )
. item _tip _left
_wh ( 60 % , 100 % )
font - family "SourceHanSansCN"
_font ( 18 px , inherit , # fff , 700 , left )
letter - spacing 2 px
text - shadow 0 0 9 px # 159 AFF
padding - left 34 px
_bis ( '../../../images/bg_title_tip.png' , 22 px , 22 px , left )
. item _content
_wh ( 100 % , calc ( 100 % - 32 px ) )
padding 10 px 5 px
. scroll _wrap
_wh ( 100 % , 100 % )
border 1 px solid rgba ( 8 , 205 , 248 , 0.3 )
2023-06-09 18:10:25 +08:00
// background-color #070b1c
2023-06-06 16:09:32 +08:00
. scroll _tab _1
_wh ( 100 % , 40 px )
border - bottom 1 solid rgba ( 8 , 205 , 248 , 0.3 )
li
float left
width 12.5 %
_font ( 14 px , 40 px , # 78 B1DE , , center )
word - wrap break - word
word - break break - all
white - space nowrap
padding 0 5 px
overflow hidden
box - sizing border - box
. scroll _container _1
width 100 %
height calc ( 100 % - 40 px )
overflow hidden
. scroll - ul _1
li
_wh ( 100 % , 44 px )
border - bottom 1 solid rgba ( 8 , 205 , 248 , 0.3 )
& : nth - child ( even )
background rgba ( 1 , 24 , 52 , 0.60 )
box - shadow inset 0 px 1 px 0 px 0 px rgba ( 13 , 89 , 115 , 0.3 )
. scroll - ul _1 _div
float left
_wh ( 12.5 % , 44 px )
_fj ( row , center )
_font ( 14 px , 16 px , # fff , , center )
word - wrap break - word
word - break break - all
// white-space nowrap
padding 0 5 px
overflow hidden
< / style >