task#11411,司机apptab切bug
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
</div>
|
||||
<div class="monthSearch" v-show="activeIndex == 0">
|
||||
<span v-for="(item,index) in monthList" :class="monthIndex === index ? 'active' : ''" :key="index" @click="noMultipleClicks(clickHandle,index)">{{item}}</span>
|
||||
<span v-for="(item,index) in monthList" :class="monthIndex === index ? 'active' : ''" :key="index" @click="clickHandle(index)">{{item}}</span>
|
||||
</div>
|
||||
<van-pull-refresh v-model="isLoading" @refresh="onRefresh" v-show="!show" :class="activeIndex==0 ? 'firstpullRefresh' : 'secondpullRefresh'">
|
||||
<van-list
|
||||
@ -46,7 +46,7 @@
|
||||
<div v-show="(activeIndex != 0 && item.state != 1) || (activeIndex == 0 && item.state == 3)"><span>审核人员:</span><span>{{item.auditUser}}</span></div>
|
||||
<div v-show="(activeIndex != 0 && item.state != 1) || (activeIndex == 0 && item.state == 3)"><span>审核时间:</span><span>{{item.auditTime}}</span></div>
|
||||
</div>
|
||||
<img v-show="activeIndex == 0" class="checkImg" @click="noMultipleClicks(toggleSelection,item)" :src="item.isSelected ? require('@/assets/baoxiao_check.png') : require('@/assets/baoxiao_uncheck.png')">
|
||||
<img v-show="activeIndex == 0" class="checkImg" @click="toggleSelection(item)" :src="item.isSelected ? require('@/assets/baoxiao_check.png') : require('@/assets/baoxiao_uncheck.png')">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -65,7 +65,8 @@
|
||||
|
||||
<script>
|
||||
import {myMixins} from "@/utils/myMixins";
|
||||
import { waitReimburseList ,submitReimburseBatch,reimbursedList,waitReimburseMonth} from '@/api/reimbursementBatch'
|
||||
import { waitReimburseList ,reimbursedList,waitReimburseMonth,submitReimburseBatch} from '@/api/reimbursementBatch'
|
||||
//
|
||||
export default {
|
||||
name: "driverCaseList",
|
||||
mixins: [myMixins],
|
||||
@ -114,10 +115,13 @@ export default {
|
||||
|
||||
},
|
||||
async clickHandle(index){
|
||||
// console.log("index",index)
|
||||
this.monthIndex=index
|
||||
this.pageNum=1
|
||||
this.total=0
|
||||
this.pageList=[]
|
||||
this.monthIndex=index
|
||||
// console.log("this.monthIndex",this.monthIndex)
|
||||
await this.getList()
|
||||
this.submitData=[]
|
||||
},
|
||||
@ -137,7 +141,13 @@ export default {
|
||||
this.submitData.push({...item})
|
||||
}
|
||||
})
|
||||
console.log("this.submitData",this.submitData)
|
||||
if(this.submitData && this.submitData.length>0){
|
||||
/* const uniqueAuditRemark = this.submitData.filter(
|
||||
(item, index, self) =>
|
||||
index === self.findIndex((t) => t.userOrderCode != item.userOrderCode)
|
||||
);
|
||||
console.log("uniqueAuditRemark",uniqueAuditRemark)*/
|
||||
let res = await submitReimburseBatch({
|
||||
driverId: this.driverId,
|
||||
orderList: [...this.submitData]
|
||||
|
Reference in New Issue
Block a user