工单对账tabIndex记录

This commit is contained in:
2023-08-23 17:03:00 +08:00
parent bb72a584b7
commit c63ea913be
6 changed files with 59 additions and 15 deletions

View File

@ -58,7 +58,7 @@
<button class="btn" v-if="queryType == 1" @click="handleAccounting(item)">记账</button>
<button class="btn" v-if="queryType == 3" @click="handleAccounting(item)">{{item.accountStatus.code == 3 ? '重新记账' : '记账'}}</button>
<button class="btn" v-if="queryType == 5" @click="handleAccounting(item)">重新记账</button>
<button class="btn" v-if="queryType == 7" @click="goPage('aduitCompleteDetail',{id:item.id,postfix: item.postfix})">查看详情</button>
<button class="btn" v-if="queryType == 7" @click="goPageDetail(item)">查看详情</button>
</div>
</div>
</div>
@ -86,16 +86,19 @@ export default {
queryTime:'',
showDatetime: false,
currentDate: new Date(),
ymTime: ''
ymTime: '',
recordIndex:'',
}
},
mounted() {
this.activeIndex=this.$route.params?.activeIndex || 0
this.queryType=this.$route.params?.queryType || this.queryType
this.initIndex()
this.initSelectTime();
this.getList();
},
methods: {
async changeTab(index) {
this.activeIndex = index
initIndex(){
if(this.activeIndex === 0){
this.queryType = 1
}else if(this.activeIndex === 1){
@ -105,6 +108,10 @@ export default {
}else if(this.activeIndex === 3){
this.queryType = 7
}
},
async changeTab(index) {
this.activeIndex = index
this.initIndex()
this.total = 0;
this.pageNum = 1
this.orderList = [];
@ -127,6 +134,17 @@ export default {
params: {
id: item.id, // 参数对象的属性
postfix:item.postfix,
index:this.activeIndex
}
});
},
goPageDetail(item){
this.$router.push({
name: 'aduitCompleteDetail', // 目标路由的名称
params: {
id: item.id, // 参数对象的属性
postfix:item.postfix,
index:this.activeIndex
}
});
},