|
|
@ -66,23 +66,58 @@ |
|
|
|
</style> |
|
|
|
<template> |
|
|
|
<view class="container"> |
|
|
|
<view class="card" @click="$u.route({url:'pages/stock/goods_detail'})"> |
|
|
|
<view class="card" v-for="(v,k) in list" :key="k" @click="$u.route({url:'pages/stock/goods_detail'})"> |
|
|
|
<view class="head"> |
|
|
|
<text class="plant-rili"/> <text>批次号:A23366683</text> <text>领用出库</text> |
|
|
|
<text class="plant-rili"/> <text>批次号:{{v.batchNo}}</text> <text>{{v.inOutType}}</text> |
|
|
|
</view> |
|
|
|
<view class="plant-youbian"> <text data-unit="100kg/袋">中量元素水溶肥</text> </view> |
|
|
|
<view class="plant-youbian"> <text :data-unit="v.specDescribe">{{v.substanceName}}</text> </view> |
|
|
|
<view class="company"> |
|
|
|
<text>云南云天化股份有限公司</text> <text>2袋(共200kg)</text> |
|
|
|
<text>{{v.supplierName}}</text> <text>{{v.number}}袋(共{{v.equivalentAmount}}{{v.unit}})</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import request from '@/common/request.js' |
|
|
|
export default { |
|
|
|
data(){ |
|
|
|
return{ |
|
|
|
|
|
|
|
searchVal:{ |
|
|
|
baseId: "1611250480973049857"||this.$store.state.plantBaseInfoId, |
|
|
|
pageNo:1, |
|
|
|
pageSize:6, |
|
|
|
}, |
|
|
|
list:[], |
|
|
|
total:0, |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(options){ |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
async search(){ |
|
|
|
if(this.total==0 || this.list.length<this.total){ |
|
|
|
var res=await request("/api/OutInManageApi/queryOutInRecord",{ |
|
|
|
method:"post", |
|
|
|
body: this.searchVal |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.list=this.list.concat(res.data.list) |
|
|
|
this.total=res.data.total |
|
|
|
this.searchVal.pageNo++ |
|
|
|
if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"}) |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title:"提示", |
|
|
|
content:res.msg||"获取出入库记录失败!", |
|
|
|
showCancel:false, |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
onReachBottom(){ |
|
|
|
this.search() |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |