|
|
|
@ -8,7 +8,7 @@ |
|
|
|
|
<el-input v-model="searchForm.name" placeholder="线索名称" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select v-model="searchForm.state" placeholder="审核状态" clearable style="width: 120px"> |
|
|
|
|
<el-select v-model="searchForm.state" placeholder="审核状态" clearable> |
|
|
|
|
<el-option label="待审核" :value="1" /> |
|
|
|
|
<el-option label="已撤销" :value="2" /> |
|
|
|
|
<el-option label="已通过" :value="3" /> |
|
|
|
@ -16,13 +16,7 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="appStore.getAppInfo?.instanceType == 1"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.receiver" |
|
|
|
|
placeholder="接待人" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
style="width: 120px" |
|
|
|
|
> |
|
|
|
|
<el-select v-model="searchForm.receiver" placeholder="接待人" clearable filterable> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in allUserOptions" |
|
|
|
|
:key="item.id" |
|
|
|
@ -32,13 +26,7 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-else-if="appStore.getAppInfo?.instanceType == 2"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.convertPeople" |
|
|
|
|
placeholder="转化人" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
style="width: 120px" |
|
|
|
|
> |
|
|
|
|
<el-select v-model="searchForm.convertPeople" placeholder="转化人" clearable filterable> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in allUserOptions" |
|
|
|
|
:key="item.id" |
|
|
|
@ -48,13 +36,7 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.signUser" |
|
|
|
|
placeholder="登记人" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
style="width: 120px" |
|
|
|
|
> |
|
|
|
|
<el-select v-model="searchForm.signUser" placeholder="登记人" clearable filterable> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in userOptions" |
|
|
|
|
:key="item.id" |
|
|
|
@ -72,17 +54,10 @@ |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="成交日期" |
|
|
|
|
end-placeholder="成交日期" |
|
|
|
|
style="width: 240px" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.applyUser" |
|
|
|
|
placeholder="申请人" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
style="width: 120px" |
|
|
|
|
> |
|
|
|
|
<el-select v-model="searchForm.applyUser" placeholder="申请人" clearable filterable> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in userOptions" |
|
|
|
|
:key="item.id" |
|
|
|
@ -100,27 +75,12 @@ |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="申请日期" |
|
|
|
|
end-placeholder="申请日期" |
|
|
|
|
style="width: 240px" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="searchForm.checkTime" |
|
|
|
|
type="daterange" |
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
range-separator="-" |
|
|
|
|
start-placeholder="审核日期" |
|
|
|
|
end-placeholder="审核日期" |
|
|
|
|
style="width: 240px" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button @click="handleSearch" v-hasPermi="['clue:order:return-search']">查询</el-button> |
|
|
|
|
<el-button @click="handleReset" v-hasPermi="['clue:order:return-reset']">重置</el-button> |
|
|
|
|
<el-button @click="batchAudit" v-hasPermi="['clue:order:return-batch-audit']"> |
|
|
|
|
批量审核 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button @click="handleSearch">查询</el-button> |
|
|
|
|
<el-button @click="handleReset">重置</el-button> |
|
|
|
|
<el-button @click="batchAudit">批量审核</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
@ -209,27 +169,14 @@ |
|
|
|
|
<el-table-column prop="applyUserName" label="申请人" min-width="90" /> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="applyTime" |
|
|
|
|
label="审核人" |
|
|
|
|
min-width="120px" |
|
|
|
|
:formatter="dateFormatter" |
|
|
|
|
/> |
|
|
|
|
<el-table-column prop="checkUser" label="审核人" min-width="90" /> |
|
|
|
|
<el-table-column |
|
|
|
|
prop="checkTime" |
|
|
|
|
label="审核时间" |
|
|
|
|
label="申请时间" |
|
|
|
|
min-width="120px" |
|
|
|
|
:formatter="dateFormatter" |
|
|
|
|
/> |
|
|
|
|
<el-table-column prop="stateName" label="审核状态" fixed="right" min-width="90" /> |
|
|
|
|
<el-table-column label="操作" width="220px" fixed="right"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
style="padding: 0" |
|
|
|
|
text |
|
|
|
|
v-hasPermi="['clue:order:return-detail']" |
|
|
|
|
@click="handleDetail(row)" |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" style="padding: 0" text @click="handleDetail(row)"> |
|
|
|
|
详情 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
@ -307,7 +254,6 @@ const searchForm = ref({ |
|
|
|
|
signUser: undefined, |
|
|
|
|
applyTime: [], |
|
|
|
|
applyUser: undefined, |
|
|
|
|
checkTime: [], |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 20 |
|
|
|
|
}) |
|
|
|
@ -334,7 +280,6 @@ function handleReset() { |
|
|
|
|
signUser: undefined, |
|
|
|
|
applyTime: [], |
|
|
|
|
applyUser: undefined, |
|
|
|
|
checkTime: [], |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 20 |
|
|
|
|
} |
|
|
|
@ -409,7 +354,7 @@ function getSummaries(param) { |
|
|
|
|
} else if (column.property == 'personProfit') { |
|
|
|
|
sums[index] = totalInfo.value.totalPersonProfit |
|
|
|
|
} else if (column.property == 'companyProfit') { |
|
|
|
|
sums[index] = totalInfo.value.totalCompanyProfit |
|
|
|
|
sums[index] = totalInfo.value.totalPersonProfit |
|
|
|
|
} else if (column.property == 'signPrice') { |
|
|
|
|
sums[index] = totalInfo.value.totalSignPrice |
|
|
|
|
} else { |
|
|
|
|