|
@@ -6,7 +6,12 @@ import {ElMessage, ElMessageBox} from 'element-plus'
|
|
import TableBase from '@/components/TableBase/index.vue'
|
|
import TableBase from '@/components/TableBase/index.vue'
|
|
import {Check, Delete, Edit, View} from '@element-plus/icons-vue'
|
|
import {Check, Delete, Edit, View} from '@element-plus/icons-vue'
|
|
import type {ColumnProps} from '@/components/TableBase/interface/index'
|
|
import type {ColumnProps} from '@/components/TableBase/interface/index'
|
|
-import {percentage_Del, percentage_Submit_Audit, percentage_UserList,percentage_User_Excel} from '@/api/mypercentage/index'
|
|
|
|
|
|
+import {
|
|
|
|
+ percentage_Del,
|
|
|
|
+ percentage_Submit_Audit,
|
|
|
|
+ percentage_User_Excel,
|
|
|
|
+ percentage_UserList
|
|
|
|
+} from '@/api/mypercentage/index'
|
|
import {options2, useTablePublic} from '@/hooks/useTablePublic'
|
|
import {options2, useTablePublic} from '@/hooks/useTablePublic'
|
|
|
|
|
|
const {updateOnTableList} = useTablePublic()
|
|
const {updateOnTableList} = useTablePublic()
|
|
@@ -18,10 +23,10 @@ const columns: ColumnProps[] = [
|
|
{type: 'index', label: '序号', width: 80},
|
|
{type: 'index', label: '序号', width: 80},
|
|
{prop: 'T_verifyCompany_name', label: '公司名称', name: 'T_verifyCompany_name'},
|
|
{prop: 'T_verifyCompany_name', label: '公司名称', name: 'T_verifyCompany_name'},
|
|
{prop: 'T_verifyCompany_State', label: '回款状态', name: 'T_verifyCompany_State'},
|
|
{prop: 'T_verifyCompany_State', label: '回款状态', name: 'T_verifyCompany_State'},
|
|
- {prop: 'T_recoveries_time', label: '回款时间', name: 'T_recoveries_time'},
|
|
|
|
|
|
+ {prop: 'T_recoveries_time', label: '回款时间', name: 'T_recoveries_time',width: 115},
|
|
{prop: 'T_task_id', label: '任务编号'},
|
|
{prop: 'T_task_id', label: '任务编号'},
|
|
{prop: 'T_task_name', label: '任务名称'},
|
|
{prop: 'T_task_name', label: '任务名称'},
|
|
- {prop: 'T_reporting_pass_time', label: '统计日期'},
|
|
|
|
|
|
+ {prop: 'T_reporting_pass_time', label: '统计日期',width: 115},
|
|
{prop: 'T_type', label: '提成类型', name: 'T_type'},
|
|
{prop: 'T_type', label: '提成类型', name: 'T_type'},
|
|
{prop: 'T_device_type', label: '设备类型'},
|
|
{prop: 'T_device_type', label: '设备类型'},
|
|
{prop: 'T_verify_type', label: '验证类型'},
|
|
{prop: 'T_verify_type', label: '验证类型'},
|
|
@@ -48,17 +53,22 @@ const SubmitReview = async (row: any) => {
|
|
|
|
|
|
// 搜索
|
|
// 搜索
|
|
const T_date = ref<string[]>([])
|
|
const T_date = ref<string[]>([])
|
|
|
|
+const T_reporting_date = ref<string[]>([])
|
|
const initParam = reactive({
|
|
const initParam = reactive({
|
|
User_tokey: globalStore.GET_User_tokey,
|
|
User_tokey: globalStore.GET_User_tokey,
|
|
T_name: '',
|
|
T_name: '',
|
|
T_state: '',
|
|
T_state: '',
|
|
T_end_date: '',
|
|
T_end_date: '',
|
|
- T_start_date: ''
|
|
|
|
|
|
+ T_start_date: '',
|
|
|
|
+ T_reporting_start_time: '',
|
|
|
|
+ T_reporting_end_time: ''
|
|
})
|
|
})
|
|
|
|
|
|
const searchHandle = () => {
|
|
const searchHandle = () => {
|
|
initParam.T_end_date = T_date.value ? T_date.value[1] : ''
|
|
initParam.T_end_date = T_date.value ? T_date.value[1] : ''
|
|
initParam.T_start_date = T_date.value ? T_date.value[0] : ''
|
|
initParam.T_start_date = T_date.value ? T_date.value[0] : ''
|
|
|
|
+ initParam.T_reporting_start_time = T_reporting_date.value ? T_reporting_date.value[0] : ''
|
|
|
|
+ initParam.T_reporting_end_time = T_reporting_date.value ? T_reporting_date.value[1] : ''
|
|
TableRef.value?.searchTable()
|
|
TableRef.value?.searchTable()
|
|
}
|
|
}
|
|
|
|
|
|
@@ -66,6 +76,8 @@ const searchHandle = () => {
|
|
const exportMyPercentageExcel = async () => {
|
|
const exportMyPercentageExcel = async () => {
|
|
initParam.T_end_date = T_date.value ? T_date.value[1] : ''
|
|
initParam.T_end_date = T_date.value ? T_date.value[1] : ''
|
|
initParam.T_start_date = T_date.value ? T_date.value[0] : ''
|
|
initParam.T_start_date = T_date.value ? T_date.value[0] : ''
|
|
|
|
+ initParam.T_reporting_start_time = T_reporting_date.value ? T_reporting_date.value[0] : ''
|
|
|
|
+ initParam.T_reporting_end_time = T_reporting_date.value ? T_reporting_date.value[1] : ''
|
|
TableRef.value?.searchTable()
|
|
TableRef.value?.searchTable()
|
|
const res: any = await percentage_User_Excel(initParam)
|
|
const res: any = await percentage_User_Excel(initParam)
|
|
if (res.Code === 200) {
|
|
if (res.Code === 200) {
|
|
@@ -112,7 +124,7 @@ const processdel = (id: any) => {
|
|
<template #table-header>
|
|
<template #table-header>
|
|
<div class="input-suffix">
|
|
<div class="input-suffix">
|
|
<el-row :gutter="20" style="margin-bottom: 0">
|
|
<el-row :gutter="20" style="margin-bottom: 0">
|
|
- <el-col :xl="6" :lg="7" :md="11" style="display: flex">
|
|
|
|
|
|
+ <el-col :xl="5" :lg="5" :md="5" style="display: flex">
|
|
<span class="inline-flex items-center">回款日期:</span>
|
|
<span class="inline-flex items-center">回款日期:</span>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="T_date"
|
|
v-model="T_date"
|
|
@@ -124,20 +136,32 @@ const processdel = (id: any) => {
|
|
value-format="YYYY-MM-DD"
|
|
value-format="YYYY-MM-DD"
|
|
/>
|
|
/>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xl="5" :md="6">
|
|
|
|
|
|
+ <el-col :xl="5" :lg="5" :md="5" style="display: flex">
|
|
|
|
+ <span class="inline-flex items-center">统计日期:</span>
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="T_reporting_date"
|
|
|
|
+ type="daterange"
|
|
|
|
+ range-separator="~"
|
|
|
|
+ start-placeholder="开始时间"
|
|
|
|
+ end-placeholder="结束时间"
|
|
|
|
+ format="YYYY-MM-DD"
|
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
|
+ />
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xl="5" :md="5">
|
|
<span class="inline-flex items-center">关键字:</span>
|
|
<span class="inline-flex items-center">关键字:</span>
|
|
<el-input v-model="initParam.T_name" type="text" class="w-50 m-2"
|
|
<el-input v-model="initParam.T_name" type="text" class="w-50 m-2"
|
|
placeholder="按任务编号、公司名称搜索" clearable
|
|
placeholder="按任务编号、公司名称搜索" clearable
|
|
@change="searchHandle"/>
|
|
@change="searchHandle"/>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xl="5" :md="6">
|
|
|
|
|
|
+ <el-col :xl="6" :md="6">
|
|
<span class="inline-flex items-center">状态:</span>
|
|
<span class="inline-flex items-center">状态:</span>
|
|
<el-select v-model="initParam.T_state" class="w-50" clearable placeholder="请选择状态~">
|
|
<el-select v-model="initParam.T_state" class="w-50" clearable placeholder="请选择状态~">
|
|
<el-option v-for="item in options2" :key="item.id" :label="item.name" :value="item.id"/>
|
|
<el-option v-for="item in options2" :key="item.id" :label="item.name" :value="item.id"/>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-col>
|
|
|
|
- <el-col :xl="6" :md="3" class="btn">
|
|
|
|
<el-button type="primary" @click="searchHandle">搜索</el-button>
|
|
<el-button type="primary" @click="searchHandle">搜索</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :xl="15" :lg="15" :md="15" style="margin-top: 10px">
|
|
<el-button type="primary" @click="exportMyPercentageExcel">导出表格</el-button>
|
|
<el-button type="primary" @click="exportMyPercentageExcel">导出表格</el-button>
|
|
<el-button type="success" @click="openContractFormDrawer('new')">申请提成</el-button>
|
|
<el-button type="success" @click="openContractFormDrawer('new')">申请提成</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -164,14 +188,14 @@ const processdel = (id: any) => {
|
|
<el-tag v-else type="danger" effect="dark"> ---</el-tag>
|
|
<el-tag v-else type="danger" effect="dark"> ---</el-tag>
|
|
</template>
|
|
</template>
|
|
<template #T_verifyCompany_name="{ row }">
|
|
<template #T_verifyCompany_name="{ row }">
|
|
- {{row.T_verifyCompany.T_name}}
|
|
|
|
|
|
+ {{ row.T_verifyCompany.T_name }}
|
|
</template>
|
|
</template>
|
|
<template #T_verifyCompany_State="{ row }">
|
|
<template #T_verifyCompany_State="{ row }">
|
|
<el-tag v-if="row.T_verifyCompany.T_State === 1" type="info" effect="dark"> 未回款</el-tag>
|
|
<el-tag v-if="row.T_verifyCompany.T_State === 1" type="info" effect="dark"> 未回款</el-tag>
|
|
<el-tag v-if="row.T_verifyCompany.T_State === 2" type="success" effect="dark"> 已回款</el-tag>
|
|
<el-tag v-if="row.T_verifyCompany.T_State === 2" type="success" effect="dark"> 已回款</el-tag>
|
|
</template>
|
|
</template>
|
|
<template #T_recoveries_time="{ row }">
|
|
<template #T_recoveries_time="{ row }">
|
|
- {{row.T_verifyCompany.T_recoveries_time}}
|
|
|
|
|
|
+ {{ row.T_verifyCompany.T_recoveries_time }}
|
|
</template>
|
|
</template>
|
|
<template #right="{ row }">
|
|
<template #right="{ row }">
|
|
<el-button link type="primary" size="small" :disabled="![3,6].includes(row.T_State)" :icon="Check"
|
|
<el-button link type="primary" size="small" :disabled="![3,6].includes(row.T_State)" :icon="Check"
|
|
@@ -198,26 +222,26 @@ const processdel = (id: any) => {
|
|
.contract {
|
|
.contract {
|
|
@include f-direction;
|
|
@include f-direction;
|
|
|
|
|
|
-:deep(.el-drawer__header) {
|
|
|
|
- margin-bottom: 0;
|
|
|
|
-}
|
|
|
|
|
|
+ :deep(.el-drawer__header) {
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
+ }
|
|
|
|
|
|
-.input-suffix {
|
|
|
|
- width: 100%;
|
|
|
|
|
|
+ .input-suffix {
|
|
|
|
+ width: 100%;
|
|
|
|
|
|
-.inline-flex {
|
|
|
|
- white-space: nowrap;
|
|
|
|
-}
|
|
|
|
|
|
+ .inline-flex {
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ }
|
|
|
|
|
|
-.btn {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: end;
|
|
|
|
-}
|
|
|
|
|
|
+ .btn {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: end;
|
|
|
|
+ }
|
|
|
|
|
|
-.w-50 {
|
|
|
|
- width: 12.5rem;
|
|
|
|
-}
|
|
|
|
|
|
+ .w-50 {
|
|
|
|
+ width: 12.5rem;
|
|
|
|
+ }
|
|
|
|
|
|
-}
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|