task#11329,路桥费样式优化

This commit is contained in:
2024-02-26 11:03:52 +08:00
parent dc469ebbd1
commit 3e2b39f7e4
3 changed files with 34 additions and 11 deletions

View File

@ -58,8 +58,10 @@ export default {
id:'',//批次id
isLoading:"",
isShowBackBtn:true,
backBtn:false,
type:'',//用于判断是已审核还是待审核,已审核只有两个tab切
noClick:true
noClick:true,
getUrlId:'',
}
},
computed:{
@ -78,11 +80,19 @@ export default {
}else{
this.isShowBackBtn=true
}
// console.log("===",urlParams.get('status'))
this.backBtn=this.$route.params.isShowBtn
if(this.backBtn){
this.isShowBackBtn=false
}
// console.log(" this.backBtn", this.backBtn)
this.getUrlId=urlParams.get('id')
this.id = urlParams.get('id') || this.$route.params.id || this.$route.params.batchCode;
this.activeIndex=this.$route.params?.activeIndex || 0
this.type=this.$route.params?.type
console.log(urlParams.get('status') && urlParams.get('status') == 1)
// console.log("urlParams.get('status')",urlParams.get('status'))
if (urlParams.get('status')){
this.type=urlParams.get('status')
}
if (this.type==1 || (urlParams.get('status') && urlParams.get('status') == 1)) {
this.tabArr.unshift({name: '待审核', status: 1,num:0},);
}
@ -136,6 +146,8 @@ export default {
id:id,
index:this.activeIndex,
batchCode:this.id,
getUrlId:this.getUrlId,
type:this.type
}
});

View File

@ -177,6 +177,8 @@ export default {
bcPath:[],
activeIndex:'',
batchCode:'',
isShowBtn:false,
type:'',
option: [
{ text: '缺失凭证照片', value: '缺失凭证照片' },
{ text: '申请金额与凭证不一致', value: '申请金额与凭证不一致' },
@ -191,7 +193,10 @@ export default {
// this.id=29
this.activeIndex=this.$route.params.index;
this.batchCode=this.$route.params.batchCode
console.log(" this.batchCode", this.batchCode,this.activeIndex)
this.isShowBtn=this.$route.params.getUrlId
this.type=this.$route.params?.type
console.log("created",this.type)
console.log(" this.isShowBackBtn",this.isShowBackBtn)
},
async mounted(){
await this.getOrderDetail()
@ -209,6 +214,8 @@ export default {
params: {
activeIndex:this.activeIndex,
batchCode:this.batchCode,
isShowBtn:this.isShowBtn,
type:this.type
}
});
},

View File

@ -11,6 +11,7 @@
@click-left="goBack"
/>
</div>
<div style="height: 42px">
<div class="tab_wrap">
<div v-for="(item, index) in tabArr" :key="index"
@click="changeTab(index)">
@ -18,6 +19,8 @@
<span class="numTip" style="opacity: 1 !important;">{{item.num}}</span>
</div>
</div>
</div>
<van-pull-refresh class="refresh" v-model="isLoading" @refresh="onRefresh" v-show="!show">
<van-list
v-model="loading"
@ -96,6 +99,7 @@ export default {
this.total=0
this.loading=false
this.finished=false
await this.getCount()
await this.getList()
// await this.onLoad()
},
@ -230,8 +234,8 @@ export default {
}
.listWrap{
width: 100%;
//height: calc(100% - 86px);
height: 100%;
height: calc(100% - 86px);
//height: 100%;
overflow-y: auto;
background-color: #F4F5F7;
.listItem{