feat: 工作台统计调整
This commit is contained in:
parent
51c192017b
commit
f976613ae8
|
|
@ -47,7 +47,7 @@
|
|||
<view class="title flex-l">客户备注</view>
|
||||
<view class="value flex-l">{{data.remark ? data.remark : '无备注信息'}}</view>
|
||||
</view>
|
||||
<view class="report-order-exception flex-c" v-if="data.status !== enums.ORDER_DISPATCH_STATUS.STATUS_TOGET">
|
||||
<view class="report-order-exception flex-c" v-if="canReportOrderException">
|
||||
<view @click="reportOrderException(data.order_info.id)" class="report-ctr flex-c" hover-class="auto-mask-layer-radius4" hover-start-time="0" hover-stay-time="50">
|
||||
<me-icon type="icon-arrow-up-line" color="var(--importantColor)" size="36rpx"></me-icon>
|
||||
<text class="text">上报异常</text>
|
||||
|
|
@ -180,6 +180,11 @@ const openLocation = () => {
|
|||
});
|
||||
}
|
||||
|
||||
//是否可上报异常,未接单和已拒接的无法上报
|
||||
const canReportOrderException = computed(() => {
|
||||
return data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_TOGET && data.value.status !== enums.ORDER_DISPATCH_STATUS.STATUS_REFUSED
|
||||
})
|
||||
|
||||
//更新师傅备注
|
||||
const updateWorkerRemark = () => {
|
||||
helpers.jumpToPage('worker-remark', `id=${id.value}&worker_remark=${data.value.worker_remark}`)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<me-top title="工作台"></me-top>
|
||||
<view class="filter flex-sb line-after">
|
||||
<view v-for="(item, type) in filterType" :key="type" class="filter-item flex-c" @click="filter(type)">
|
||||
<view :class="['title', 'flex-c', data.type == type ? 'title-active' : '']">{{item.name}}({{countOrder[type]}})</view>
|
||||
<view :class="['title', 'flex-c', data.type == type ? 'title-active' : '']">{{item.name}}({{ countOrderByType(type) }})</view>
|
||||
<view class="select-style" v-if="data.type == type"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -154,6 +154,15 @@ const countWorkbenchOrder = () => {
|
|||
}).catch(() => {})
|
||||
}
|
||||
|
||||
const countOrderByType = (type) => {
|
||||
let res = countOrder.value[type] > 99 ? '99+' : countOrder.value[type]
|
||||
if (type === 'all') {
|
||||
return countOrder.value[type] > 999 ? '999+' : countOrder.value[type]
|
||||
}
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
const data = reactive({
|
||||
type: 'ongoing',
|
||||
page: 1,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user