mes_mobile/pages/index/materialYield.vue

121 lines
2.9 KiB
Vue
Raw Normal View History

2024-02-19 16:53:38 +08:00
<template>
2024-04-11 18:54:43 +08:00
<!-- 工单出材率 -->
<view class="page_padding font13">
2024-04-23 11:48:55 +08:00
<view v-for="(item,index) in list" :key="index" class="detail_list contentboxsty" @click="toDetail(498)">
2024-02-19 16:53:38 +08:00
<view class="list_top">
<view class="top_left">
2024-04-23 11:48:55 +08:00
工单号{{item.name}}
2024-02-19 16:53:38 +08:00
</view>
<view class="top_right">
2024-04-23 11:48:55 +08:00
工单详情 <text class="arrow iconfont icon-gengduo"></text>
2024-02-19 16:53:38 +08:00
</view>
</view>
2024-03-13 16:07:11 +08:00
<view class="list_content font13">
2024-02-19 16:53:38 +08:00
<view class="list_centre">
2024-03-13 16:07:11 +08:00
<view class="list_row">
<view class="centre_left">
2024-04-23 11:48:55 +08:00
<text class="name">加工规格</text>
<text class="text">{{item.specs}}</text>
2024-03-13 16:07:11 +08:00
</view>
2024-02-19 16:53:38 +08:00
</view>
2024-03-13 16:07:11 +08:00
<view class="list_row">
<view class="centre_left">
2024-04-23 11:48:55 +08:00
<text class="name">算法出材率</text>
<text class="text">{{item.algorithm}}%</text>
2024-03-13 16:07:11 +08:00
</view>
2024-02-19 16:53:38 +08:00
</view>
</view>
<view class="list_below">
2024-04-23 11:48:55 +08:00
<view class="below_left">
<view class="circle-progress">
<view class="progressBg">
<view class="progressBox">
<view class="percentage font22">
{{item.algorithm}}%
</view>
<view class="title font12">
出材率
</view>
</view>
</view>
<view class="circle-progress__bar" :style="'--progress:'+item.algorithm+'%'"></view>
</view>
2024-02-19 16:53:38 +08:00
</view>
2024-04-23 11:48:55 +08:00
</view>
<view class="card_right">
<view class="status">生产中</view>
2024-02-19 16:53:38 +08:00
</view>
</view>
2024-04-11 18:54:43 +08:00
</view>
</view>
</template>
<script>
export default {
data() {
return {
2024-02-19 16:53:38 +08:00
list:[{
name:'SO202401111004',
2024-04-23 11:48:55 +08:00
algorithm:'51.5',
2024-02-19 16:53:38 +08:00
reality:'81.4',
state:'生产中',
specs:'4*9*3.66',
time:'jan-11 10:05',
timeConsuming:'3.5H',
number:'12.66m³'
},{
name:'SO202401111004',
algorithm:'81.5',
reality:'81.4',
state:'生产中',
specs:'4*9*3.66',
time:'jan-11 10:05',
timeConsuming:'3.5H',
number:'12.66m³'
},{
name:'SO202401111004',
2024-04-23 11:48:55 +08:00
algorithm:'61.5',
2024-02-19 16:53:38 +08:00
reality:'81.4',
state:'生产中',
specs:'4*9*3.66',
time:'jan-11 10:05',
timeConsuming:'3.5H',
number:'12.66m³'
},{
name:'SO202401111004',
algorithm:'81.5',
reality:'81.4',
state:'生产中',
specs:'4*9*3.66',
time:'jan-11 10:05',
timeConsuming:'3.5H',
number:'12.66m³'
2024-04-11 18:54:43 +08:00
}]
}
},
methods: {
2024-04-23 11:48:55 +08:00
toDetail(id){
uni.navigateTo({
url:'/pages/production/productionDetail?id='+id
})
},
2024-04-11 18:54:43 +08:00
}
}
</script>
2024-04-23 11:48:55 +08:00
<style scoped lang="scss">
2024-02-19 16:53:38 +08:00
.detail_list{
2024-03-13 16:07:11 +08:00
.list_centre{
.list_row{display: flex;padding-bottom: 12px;
2024-04-23 11:48:55 +08:00
.centre_left{
flex: 1;
.name{width:80px;display: inline-block;font-weight: bold;}
2024-03-13 16:07:11 +08:00
}
}
2024-02-19 16:53:38 +08:00
}
2024-04-30 16:08:07 +08:00
.list_below{display: flex;text-align: center;padding: 10px 0;
2024-04-23 11:48:55 +08:00
.below_left{flex: 1;display: flex;align-items: center;justify-content: center;}
.percentage{color: $uni-text-color-inverse;}
2024-02-19 16:53:38 +08:00
}
2024-04-23 11:48:55 +08:00
}
</style>