Browse Source

联调出入库记录接口

master
邓宏 2 years ago
parent
commit
e0fe6cb392
  1. 13
      pages/baseMana/formReacord.vue
  2. 47
      pages/stock/record.vue

13
pages/baseMana/formReacord.vue

@ -31,6 +31,7 @@
margin-right:12rpx;
}
&:nth-child(3){
margin-left:auto;
flex-shrink: 0;
color:#10C176;
font-size:24rpx;
@ -38,6 +39,18 @@
}
}
}
.people{
display:flex;
align-items: center;
justify-content: space-between;
margin-top:20rpx;
padding-top:20rpx;
border-top:2rpx solid rgba(216, 216, 216, 0.3);
text{
font-size:24rpx;
color:#999;
}
}
}
}
}

47
pages/stock/record.vue

@ -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>
Loading…
Cancel
Save