混凝土运输管理微信小程序、替班
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

98 lines
1.9 KiB

<template>
<view class="content">
<view class="re-empty" v-if="runns.length<1">
<view>暂无数据</view>
</view>
<view v-for="e in runns" class="b-relative item-card mb20 mt20">
<view class="m10 flex-sb">
<view class="ellipsis">{{e.address}}</view>
<view class="item-time">{{ $timeUtils.formatTime(e.create_time) }}</view>
</view>
<view>到场时间:{{$timeUtils.formatTime2Day(e.in_time)}}</view>
<view>计划数量:{{e.mi}}m³/趟</view>
<view class="item-button" @click="clickDetail(e.id)">查看</view>
<view class="item-button btn2" @click="clickStep(e.id)">进度</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
status: 0,
seacht: 0,
waits: [],
runns: [],
endes: [],
input: ''
}
},
mounted() {
this.seacht = 0
this.loadPage()
},
methods: {
clickDetail(id){ uni.navigateTo({ url: `/pages/user/orderd?id=${id}` }) },
clickStep(id){ uni.navigateTo({ url: `/pages/user/steps?id=${id}` }) },
loadPage(){
uni.showLoading({})
this.$httpGet("/api/order/history", {}, (res) => {
uni.hideLoading({})
if(res.data){
this.runns = this.$utils.toArray(res.data)
}
})
},
}
}
</script>
<style>
page {
background-color: #f5f5f5;
}
.item-card{
width: calc(100vw - 60rpx);
height: calc(236rpx - 60rpx);
background: #ffffff;
padding: 30rpx;
font-size: 24rpx;
line-height: 42rpx;
color: #333333;
}
.item-button{
position: absolute;
left: 463rpx;
top: 134.42rpx;
width: 122rpx;
height: 52rpx;
line-height: 52rpx;
border-radius: 8rpx;
opacity: 1;
box-sizing: border-box;
border: 2rpx solid #F70303;
font-size: 28rpx;
font-weight: normal;
text-align: center;
letter-spacing: 0px;
color: #F70303;
}
.btn2{
left: 603rpx;
top: 134.42rpx;
}
.item-time{
color: #aaa;
width: 160rpx;
text-align: right;
}
</style>