task#11329,路桥费样式优化
This commit is contained in:
@ -58,8 +58,10 @@ export default {
|
|||||||
id:'',//批次id
|
id:'',//批次id
|
||||||
isLoading:"",
|
isLoading:"",
|
||||||
isShowBackBtn:true,
|
isShowBackBtn:true,
|
||||||
|
backBtn:false,
|
||||||
type:'',//用于判断是已审核还是待审核,已审核只有两个tab切
|
type:'',//用于判断是已审核还是待审核,已审核只有两个tab切
|
||||||
noClick:true
|
noClick:true,
|
||||||
|
getUrlId:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
@ -78,11 +80,19 @@ export default {
|
|||||||
}else{
|
}else{
|
||||||
this.isShowBackBtn=true
|
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.id = urlParams.get('id') || this.$route.params.id || this.$route.params.batchCode;
|
||||||
this.activeIndex=this.$route.params?.activeIndex || 0
|
this.activeIndex=this.$route.params?.activeIndex || 0
|
||||||
this.type=this.$route.params?.type
|
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)) {
|
if (this.type==1 || (urlParams.get('status') && urlParams.get('status') == 1)) {
|
||||||
this.tabArr.unshift({name: '待审核', status: 1,num:0},);
|
this.tabArr.unshift({name: '待审核', status: 1,num:0},);
|
||||||
}
|
}
|
||||||
@ -136,6 +146,8 @@ export default {
|
|||||||
id:id,
|
id:id,
|
||||||
index:this.activeIndex,
|
index:this.activeIndex,
|
||||||
batchCode:this.id,
|
batchCode:this.id,
|
||||||
|
getUrlId:this.getUrlId,
|
||||||
|
type:this.type
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -177,6 +177,8 @@ export default {
|
|||||||
bcPath:[],
|
bcPath:[],
|
||||||
activeIndex:'',
|
activeIndex:'',
|
||||||
batchCode:'',
|
batchCode:'',
|
||||||
|
isShowBtn:false,
|
||||||
|
type:'',
|
||||||
option: [
|
option: [
|
||||||
{ text: '缺失凭证照片', value: '缺失凭证照片' },
|
{ text: '缺失凭证照片', value: '缺失凭证照片' },
|
||||||
{ text: '申请金额与凭证不一致', value: '申请金额与凭证不一致' },
|
{ text: '申请金额与凭证不一致', value: '申请金额与凭证不一致' },
|
||||||
@ -191,7 +193,10 @@ export default {
|
|||||||
// this.id=29
|
// this.id=29
|
||||||
this.activeIndex=this.$route.params.index;
|
this.activeIndex=this.$route.params.index;
|
||||||
this.batchCode=this.$route.params.batchCode
|
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(){
|
async mounted(){
|
||||||
await this.getOrderDetail()
|
await this.getOrderDetail()
|
||||||
@ -209,6 +214,8 @@ export default {
|
|||||||
params: {
|
params: {
|
||||||
activeIndex:this.activeIndex,
|
activeIndex:this.activeIndex,
|
||||||
batchCode:this.batchCode,
|
batchCode:this.batchCode,
|
||||||
|
isShowBtn:this.isShowBtn,
|
||||||
|
type:this.type
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -11,13 +11,16 @@
|
|||||||
@click-left="goBack"
|
@click-left="goBack"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab_wrap">
|
<div style="height: 42px">
|
||||||
<div v-for="(item, index) in tabArr" :key="index"
|
<div class="tab_wrap">
|
||||||
@click="changeTab(index)">
|
<div v-for="(item, index) in tabArr" :key="index"
|
||||||
<span :class="{'active' : activeIndex == index , 'alpha' :true}"> {{ item.name }}</span>
|
@click="changeTab(index)">
|
||||||
<span class="numTip" style="opacity: 1 !important;">{{item.num}}</span>
|
<span :class="{'active' : activeIndex == index , 'alpha' :true}"> {{ item.name }}</span>
|
||||||
|
<span class="numTip" style="opacity: 1 !important;">{{item.num}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<van-pull-refresh class="refresh" v-model="isLoading" @refresh="onRefresh" v-show="!show">
|
<van-pull-refresh class="refresh" v-model="isLoading" @refresh="onRefresh" v-show="!show">
|
||||||
<van-list
|
<van-list
|
||||||
v-model="loading"
|
v-model="loading"
|
||||||
@ -96,6 +99,7 @@ export default {
|
|||||||
this.total=0
|
this.total=0
|
||||||
this.loading=false
|
this.loading=false
|
||||||
this.finished=false
|
this.finished=false
|
||||||
|
await this.getCount()
|
||||||
await this.getList()
|
await this.getList()
|
||||||
// await this.onLoad()
|
// await this.onLoad()
|
||||||
},
|
},
|
||||||
@ -230,8 +234,8 @@ export default {
|
|||||||
}
|
}
|
||||||
.listWrap{
|
.listWrap{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
//height: calc(100% - 86px);
|
height: calc(100% - 86px);
|
||||||
height: 100%;
|
//height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
background-color: #F4F5F7;
|
background-color: #F4F5F7;
|
||||||
.listItem{
|
.listItem{
|
||||||
|
Reference in New Issue
Block a user