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.
 
 
 
 
 

122 lines
2.1 KiB

<style lang="scss" scoped>
.recovery{
&>.dateRange{
display: flex;
align-items: center;
margin:30rpx;
text{
&.plant-youbian{
display: flex;
align-items: center;
flex-direction: row-reverse;
justify-content: space-between;
background:#fff;
height:48rpx;
font-size:24rpx;
color:#999;
border-radius: 8rpx;
padding:0 10rpx;
min-width:226rpx;
box-sizing: border-box;
&:before{
transform: rotate(90deg);
}
}
&:nth-child(2){
color:#999;
padding:0 28rpx;
}
}
}
.card{
display:flex;
image{
flex-shrink: 0;
width:90rpx;
height:90rpx;
margin-right:20rpx;
}
.detail{
flex-grow: 1;
.name{
display: flex;
justify-content: space-between;
margin-bottom:15rpx;
text{
&:first-child{
font-weight: bold;
}
&:nth-child(2){
font-weight: bold;
font-size:32rpx;
&:after{
content:attr(data-unit);
font-weight: normal;
}
}
}
}
.info{
font-size: 24rpx;
color:#999;
}
}
}
}
</style>
<template>
<view class="recovery">
<view class="dateRange">
<text class="plant-youbian">请选择开始时间</text>
<text>~</text>
<text class="plant-youbian">请选择结束时间</text>
</view>
<view class="card">
<image mode="aspectFill" src="/static/logo.png"/>
<view class="detail">
<view class="name">
<text>精品小黄瓜</text>
<text data-unit="kg">200</text></view>
<view class="info">
<text>负责人张召忠</text>
<text>采收时间2022-12-12</text>
</view>
</view>
</view>
</view>
</template>
<script>
import request from '@/common/request'
export default {
name:"recovery",
props:{
plotId:{
type:String,
defaylt:""
}
},
data(){
return{
searchVal:{
plotId:"",
plantScheduleId:"",// 种植计划id
pageNo:"",
pageSize:"",
startTime:"",
endTime:"",
}
}
},
created(){
this.search()
},
methods:{
async search(){
var res=await request("/api/plantHarvest/list",{
params:this.searchVal
})
},
}
}
</script>