|
|
@ -94,10 +94,10 @@ |
|
|
|
</view> |
|
|
|
<view class="foot"> |
|
|
|
<view class="examine"> |
|
|
|
<text v-if="true">审核人:xxx</text> |
|
|
|
<text v-if="true" class="over">原因:此处是原因此处是原因此处是处是原因此处是原因此处是</text> |
|
|
|
<text>审核部门:{{v.auditDepart}}</text> |
|
|
|
<text class="over">意见:{{v.reason}}</text> |
|
|
|
</view> |
|
|
|
<text class="type" :style="{'--bg':({2:'#FFCB69',3:'#10C176',4:'#EE263A',5:'#2196f3'})[v.applicantStatus]}">{{({2:"审核中",3:"通过",4:"未通过",5:"农资入库"})[v.applicantStatus]}}</text> |
|
|
|
<text class="type" :style="{'--bg':({1:'#EE263A',2:'#FFCB69',3:'#FFCB69',4:'#FFCB69',5:'#00ff00'})[v.applicantStatus]}">{{({1:"审核未通过",2:"待审核",3:"待审核",4:"审核",5:"审核通过"})[v.applicantStatus]}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-empty :show="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> |
|
|
@ -111,10 +111,11 @@ export default { |
|
|
|
return{ |
|
|
|
searchVal:{ |
|
|
|
goodsName:"", |
|
|
|
roleCode:this.$store.getters['userInfo'].roleCode, |
|
|
|
// roleCode:this.$store.getters['userInfo'].roleCode, |
|
|
|
pageNo:1, |
|
|
|
pageSize:6, |
|
|
|
companyId:this.$store.getters['userInfo'].companyId |
|
|
|
baseId:this.$store.state.baseInfo.id, |
|
|
|
// companyId:this.$store.getters['userInfo'].companyId |
|
|
|
}, |
|
|
|
total:0, |
|
|
|
list:[], |
|
|
@ -131,12 +132,13 @@ export default { |
|
|
|
}, |
|
|
|
async search(){ |
|
|
|
if(this.total==0||this.list.length<this.total){ |
|
|
|
var res = await request("/api/purchase/purchaseList",{ |
|
|
|
params:this.searchVal |
|
|
|
var res = await request("/api/purchase/purchasePageList",{ |
|
|
|
method:"post", |
|
|
|
body:this.searchVal |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.list=this.list.concat(res.data.records) |
|
|
|
this.total=res.data.total |
|
|
|
this.list=this.list.concat(res.data.realRecords) |
|
|
|
this.total=res.data.page.total |
|
|
|
this.searchVal.pageNo++ |
|
|
|
if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"}) |
|
|
|
}else{ |
|
|
|