Browse Source

联调交易记录搜索接口

master
邓宏 2 years ago
parent
commit
e765f7f750
  1. 20
      pages/massif/mana/transactions.vue

20
pages/massif/mana/transactions.vue

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

Loading…
Cancel
Save