|
@ -83,12 +83,12 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<scroll-view> |
|
|
<scroll-view> |
|
|
<view class="card"> |
|
|
<view class="card" v-for="(v,k) in list" :key="k"> |
|
|
<u-image radius="20rpx" width="130rpx" height="118rpx" mode="aspectFill" :src="`${host}/${1}`"> |
|
|
<u-image radius="20rpx" width="130rpx" height="118rpx" mode="aspectFill" :src="`${host}/${1}`"> |
|
|
<text slot="error" style="font-size:45rpx;" class="plant-xiaopangchetupianjiazaishibai"/> |
|
|
<text slot="error" style="font-size:45rpx;" class="plant-xiaopangchetupianjiazaishibai"/> |
|
|
</u-image> |
|
|
</u-image> |
|
|
<view class="info"> |
|
|
<view class="info"> |
|
|
<view class="title">精品小黄瓜</view> |
|
|
<view class="title">{{v.productName}}</view> |
|
|
<view class="spec"> |
|
|
<view class="spec"> |
|
|
<text>规格:20kg/箱</text> |
|
|
<text>规格:20kg/箱</text> |
|
|
<text>云南云天化股份有限公司</text> |
|
|
<text>云南云天化股份有限公司</text> |
|
@ -99,6 +99,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<u-empty v-if="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
|
|
|
|
|
|
<u-datetime-picker |
|
|
<u-datetime-picker |
|
@ -116,6 +117,12 @@ |
|
|
<script> |
|
|
<script> |
|
|
import request,{host} from '@/common/request' |
|
|
import request,{host} from '@/common/request' |
|
|
export default { |
|
|
export default { |
|
|
|
|
|
props:{ |
|
|
|
|
|
recoveryId:{ |
|
|
|
|
|
type:String, |
|
|
|
|
|
default:"" |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
data(){ |
|
|
data(){ |
|
|
return{ |
|
|
return{ |
|
|
show:false, |
|
|
show:false, |
|
@ -141,11 +148,18 @@ export default { |
|
|
this.total=0 |
|
|
this.total=0 |
|
|
this.searchVal.pageNo=1 |
|
|
this.searchVal.pageNo=1 |
|
|
}, |
|
|
}, |
|
|
|
|
|
reSearch(){ |
|
|
|
|
|
this.clean() |
|
|
|
|
|
this.search() |
|
|
|
|
|
}, |
|
|
async search(){ |
|
|
async search(){ |
|
|
if(this.total==0||this.list.length<this.total){ |
|
|
if(this.total==0||this.list.length<this.total){ |
|
|
var res=await request("/api/plantTrade/list",{ |
|
|
var res=await request("/api/plantTrade/list",{ |
|
|
method:"post", |
|
|
method:"post", |
|
|
body: this.searchVal |
|
|
body: { |
|
|
|
|
|
...this.searchVal, |
|
|
|
|
|
harvestId:this.recoveryId, |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
this.list=this.list.concat(res.data.records) |
|
|
this.list=this.list.concat(res.data.records) |
|
|