mes_mobile/pages/production/productionOrder.vue

110 lines
2.5 KiB
Vue
Raw Normal View History

2024-02-19 16:53:38 +08:00
<template>
<!-- 生产工单 -->
<view class="pagepaddings">
2024-03-13 16:07:11 +08:00
<view v-for="(item,index) in list" :key="index" class="detail_list contentboxsty font13">
<view @click="toDetail(item.id)">
2024-02-19 16:53:38 +08:00
<view class="list_top">
<view class="top_left">
2024-03-13 16:07:11 +08:00
工单号:{{item.order_sn}}
2024-02-19 16:53:38 +08:00
</view>
<view class="top_right">
2024-03-13 16:07:11 +08:00
工单详情 <text class="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">
<view class="list_centre">
<view class="centre_left">
<view class="">
算法出材率
</view>
<view class="percentage font24">
{{item.algorithm}}%
</view>
2024-02-19 16:53:38 +08:00
</view>
2024-03-13 16:07:11 +08:00
<view class="centre_left">
<view class="">
实际出材率
</view>
<view class="percentage font24">
{{item.reality}}%
</view>
2024-02-19 16:53:38 +08:00
</view>
</view>
2024-03-13 16:07:11 +08:00
<view class="list_below">
<view class="row">
<view class="row_left">
<text>状态</text>
<text>{{item.review_status_label}}</text>
</view>
<view class="row_right">
<text>加工规格</text>
<text>{{item.order_spec}}</text>
</view>
2024-02-19 16:53:38 +08:00
</view>
2024-03-13 16:07:11 +08:00
<view class="row">
<view class="row_left">
<text>生产开始</text>
<text>{{item.plan_date}}</text>
</view>
<view class="row_right">
<text>工单耗时</text>
<text>{{item.timeConsuming}}</text>
</view>
2024-02-19 16:53:38 +08:00
</view>
2024-03-13 16:07:11 +08:00
<view class="row">
<view class="row_left">
<text>工单数量</text>
<text>{{item.order_number}}</text>
</view>
2024-02-19 16:53:38 +08:00
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
2024-03-13 16:07:11 +08:00
list:[]
2024-02-19 16:53:38 +08:00
}
2024-03-13 16:07:11 +08:00
},
onShow(){
this.listData();
2024-02-19 16:53:38 +08:00
},
2024-03-13 16:07:11 +08:00
methods: {
listData(){
this.$api.postFuncLoading('/order.list',{page: 1,pageSize: 15}).then(res=>{
this.list = res.data.rows
})
},
2024-02-19 16:53:38 +08:00
//跳转工单详情
2024-03-13 16:07:11 +08:00
toDetail(id){
console.log(id)
2024-02-19 16:53:38 +08:00
uni.navigateTo({
2024-03-13 16:07:11 +08:00
url:'/pages/production/productionDetail?id='+id
2024-02-19 16:53:38 +08:00
})
},
}
}
</script>
<style lang="scss">
2024-03-13 16:07:11 +08:00
.detail_list{
2024-02-19 16:53:38 +08:00
.list_centre{display: flex;text-align: center;padding-bottom: 10px;
view{flex: 1;}
.percentage{color: #00B68D;}
}
.list_below{padding-bottom: 12px;
.row{display: flex;padding-top: 10px;
view{flex: 1;}
}
}
2024-03-13 16:07:11 +08:00
2024-02-19 16:53:38 +08:00
}
</style>