task#14196,师傅加司机名称筛选
This commit is contained in:
@ -147,6 +147,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-loading="loadingData" class="contentWrap monthTotal" v-if="[2,3,4].includes(active)">
|
<div v-loading="loadingData" class="contentWrap monthTotal" v-if="[2,3,4].includes(active)">
|
||||||
|
<div class="searchDriverName">
|
||||||
|
<el-input placeholder="请输入师傅名称" v-model.trim="driverName" @change="getData" />
|
||||||
|
</div>
|
||||||
<div :class="{'tabWrap':true,'webTabWrap':!isMobile,'mobileTab':isMobile}">
|
<div :class="{'tabWrap':true,'webTabWrap':!isMobile,'mobileTab':isMobile}">
|
||||||
<div v-for="(item,index) in (active===3 ? driverList : list)" :class="activeIndex===index ? 'active' : ''"
|
<div v-for="(item,index) in (active===3 ? driverList : list)" :class="activeIndex===index ? 'active' : ''"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -156,7 +159,7 @@
|
|||||||
<div :class="{'comTab':true}">
|
<div :class="{'comTab':true}">
|
||||||
<noFit-table :is-mobile='isMobile' :table-data="detailList" :label-list="labelList"></noFit-table>
|
<noFit-table :is-mobile='isMobile' :table-data="detailList" :label-list="labelList"></noFit-table>
|
||||||
</div>
|
</div>
|
||||||
<!-- <el-pagination
|
<el-pagination
|
||||||
v-if="active !== 2"
|
v-if="active !== 2"
|
||||||
small
|
small
|
||||||
:current-page.sync="pageNum"
|
:current-page.sync="pageNum"
|
||||||
@ -165,7 +168,7 @@
|
|||||||
@size-change="getKpiData"
|
@size-change="getKpiData"
|
||||||
layout="prev, pager, next"
|
layout="prev, pager, next"
|
||||||
:total="total">
|
:total="total">
|
||||||
</el-pagination>-->
|
</el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<div v-loading="loadingData" class="contentWrap monthTotal" v-if="[5,6,7,8,9].includes(active)">
|
<div v-loading="loadingData" class="contentWrap monthTotal" v-if="[5,6,7,8,9].includes(active)">
|
||||||
<div :class="{'comTab':true,'detailTable':isMobile}">
|
<div :class="{'comTab':true,'detailTable':isMobile}">
|
||||||
@ -207,7 +210,7 @@ export default {
|
|||||||
mixins: [myMixins],
|
mixins: [myMixins],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
active: 0,
|
active:4,
|
||||||
activeIndex: 0,
|
activeIndex: 0,
|
||||||
tabArr: [
|
tabArr: [
|
||||||
{name: '总览'}, {name: '月/总'}, {name: '日/总'}, {name: '月/师傅'}, {name: '日/师傅'}, {name: '拒单明细'},
|
{name: '总览'}, {name: '月/总'}, {name: '日/总'}, {name: '月/师傅'}, {name: '日/师傅'}, {name: '拒单明细'},
|
||||||
@ -247,6 +250,7 @@ export default {
|
|||||||
selectLoading: false,
|
selectLoading: false,
|
||||||
selectOption: [],
|
selectOption: [],
|
||||||
driverId:'',//68517
|
driverId:'',//68517
|
||||||
|
driverName:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
@ -305,6 +309,8 @@ export default {
|
|||||||
try {
|
try {
|
||||||
this.loadingData = true
|
this.loadingData = true
|
||||||
this.indexData = {}
|
this.indexData = {}
|
||||||
|
this.total=0
|
||||||
|
this.pageNum=1
|
||||||
this.v1 = []
|
this.v1 = []
|
||||||
this.v2 = []
|
this.v2 = []
|
||||||
this.v3 = []
|
this.v3 = []
|
||||||
@ -789,10 +795,12 @@ export default {
|
|||||||
endTime: this.endTime,
|
endTime: this.endTime,
|
||||||
statisticsType: this.active === 3 ? 1 : 2,
|
statisticsType: this.active === 3 ? 1 : 2,
|
||||||
driverId: this.driverId,
|
driverId: this.driverId,
|
||||||
/* pageNum: this.pageNum,
|
driverName:this.driverName,
|
||||||
pageSize: this.pageSize*/
|
pageNum: this.pageNum,
|
||||||
|
pageSize: this.pageSize
|
||||||
})
|
})
|
||||||
// this.detailList = res.data
|
// this.detailList = res.data
|
||||||
|
this.total = res.total
|
||||||
this.detailList = res.data?.map(item => {
|
this.detailList = res.data?.map(item => {
|
||||||
item.refuseOrderRate=item.refuseOrderRate*100?.toFixed(2)+'%'
|
item.refuseOrderRate=item.refuseOrderRate*100?.toFixed(2)+'%'
|
||||||
item.timeoutOrderRate=item.timeoutOrderRate*100?.toFixed(2)+'%'
|
item.timeoutOrderRate=item.timeoutOrderRate*100?.toFixed(2)+'%'
|
||||||
@ -1421,7 +1429,6 @@ export default {
|
|||||||
.monthTotal {
|
.monthTotal {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
//height: auto !important;
|
|
||||||
.leftMonth {
|
.leftMonth {
|
||||||
.leftItem {
|
.leftItem {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -1443,7 +1450,20 @@ export default {
|
|||||||
overflow-x: auto; /* 当内容超出宽度时启用水平滚动 */
|
overflow-x: auto; /* 当内容超出宽度时启用水平滚动 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.searchDriverName{
|
||||||
|
width: 97%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
span{
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
::v-deep .el-input{
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
::v-deep .el-input__inner{
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.comTab {
|
.comTab {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 95%;
|
height: 95%;
|
||||||
|
Reference in New Issue
Block a user