提交代码

This commit is contained in:
2024-04-11 18:54:43 +08:00
parent e37d0e4112
commit 01ea333978
21 changed files with 538 additions and 287 deletions

View File

@ -1,5 +1,5 @@
<template>
<view class="pagepaddings">
<template>
<view class="page_padding">
<view class="detail_list contentboxsty ">
<view class="list_top">
<view class="top_left">
@ -52,16 +52,16 @@
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
form:{}
}
</view>
</view>
</template>
<script>
export default {
data() {
return {
form:{}
}
},
onLoad(option){
console.log(option)
@ -69,18 +69,18 @@
},
onShow(){
// this.detailData()
},
methods: {
},
methods: {
detailData(id){
this.$api.postFuncLoading('/order.info',{id:id}).then(res=>{
console.log(res.data)
this.form = res.data
})
},
}
}
</script>
},
}
}
</script>
<style lang="scss">
.list_top{
.top_right{background: #243168;border-radius: 4px 4px 4px 4px;width: 46px;height: 20px;text-align: center;}
@ -88,6 +88,6 @@
.list_content{
.content_row{display: flex;padding:6px 0;
.name{width: 90px;}
}
}
</style>
}
}
</style>

View File

@ -1,6 +1,6 @@
<template>
<!-- 生产工单 -->
<view class="pagepaddings">
<template>
<!-- 生产工单 -->
<view class="page_padding">
<view v-for="(item,index) in list" :key="index" class="detail_list contentboxsty font13">
<view @click="toDetail(item.id)">
<view class="list_top">
@ -59,41 +59,38 @@
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list:[]
}
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list:[]
}
},
onShow(){
this.listData();
},
},
methods: {
listData(){
this.$api.postFuncLoading('/order.list',{page: 1,pageSize: 15}).then(res=>{
this.list = res.data.rows
})
},
},
//跳转工单详情
toDetail(id){
console.log(id)
uni.navigateTo({
url:'/pages/production/productionDetail?id='+id
})
},
}
}
</script>
<style lang="scss">
},
}
}
</script>
<style lang="scss">
.detail_list{
.list_centre{display: flex;text-align: center;padding-bottom: 10px;
view{flex: 1;}
@ -101,9 +98,10 @@
}
.list_below{padding-bottom: 12px;
.row{display: flex;padding-top: 10px;
.row_left{ white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
view{flex: 1;}
}
}
}
</style>
}
</style>