|
|
@@ -70,6 +70,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" style="display: flex; align-items: center; justify-content: flex-end">
|
|
|
+ <el-button plain @click="handleExport('0')">数据导出</el-button>
|
|
|
<el-button type="primary" @click="handleSearch">搜索</el-button>
|
|
|
<el-button plain @click="handleReset">重置</el-button>
|
|
|
<span class="icon_s">
|
|
|
@@ -89,14 +90,14 @@
|
|
|
<el-table-column prop="orderType" label="订单类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.orderType == '1' ? '车险录入' : scope.row.orderType == '2' ? '代客录单' : scope.row.orderType ==
|
|
|
- '3' ?'外部订单':'--' }}
|
|
|
+ '3' ? '外部订单' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="业务员信息" width="120"></el-table-column>
|
|
|
<el-table-column prop="attrType" label="业务员类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.attrType == '5' ? '团队' : scope.row.attrType == '6' ? '个代' : scope.row.attrType ==
|
|
|
- '7' ? '渠道' : scope.row.attrType == '8' ?'电销组':'--' }}
|
|
|
+ '7' ? '渠道' : scope.row.attrType == '8' ? '电销组' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="signingTime" label="签单时间" width="120"></el-table-column>
|
|
|
@@ -194,6 +195,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" style="display: flex; align-items: center; justify-content: flex-end">
|
|
|
+ <el-button plain @click="handleExport('1')">数据导出</el-button>
|
|
|
<el-button type="primary" @click="handleSearch">搜索</el-button>
|
|
|
<el-button plain @click="handleReset">重置</el-button>
|
|
|
<span class="icon_s">
|
|
|
@@ -213,14 +215,14 @@
|
|
|
<el-table-column prop="orderType" label="订单类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.orderType == '1' ? '车险录入' : scope.row.orderType == '2' ? '代客录单' : scope.row.orderType ==
|
|
|
- '3' ?'外部订单':'--' }}
|
|
|
+ '3' ? '外部订单' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="业务员信息" width="120"></el-table-column>
|
|
|
<el-table-column prop="attrType" label="业务员类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.attrType == '5' ? '团队' : scope.row.attrType == '6' ? '个代' : scope.row.attrType ==
|
|
|
- '7' ? '渠道' : scope.row.attrType == '8' ?'电销组':'--' }}
|
|
|
+ '7' ? '渠道' : scope.row.attrType == '8' ? '电销组' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="signingTime" label="签单时间" width="120"></el-table-column>
|
|
|
@@ -319,6 +321,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" style="display: flex; align-items: center; justify-content: flex-end">
|
|
|
+ <el-button plain @click="handleExport('2')">数据导出</el-button>
|
|
|
<el-button type="primary" @click="handleSearch">搜索</el-button>
|
|
|
<el-button plain @click="handleReset">重置</el-button>
|
|
|
<span class="icon_s">
|
|
|
@@ -338,14 +341,14 @@
|
|
|
<el-table-column prop="orderType" label="订单类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.orderType == '1' ? '车险录入' : scope.row.orderType == '2' ? '代客录单' : scope.row.orderType ==
|
|
|
- '3' ?'外部订单':'--' }}
|
|
|
+ '3' ? '外部订单' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="业务员信息" width="120"></el-table-column>
|
|
|
<el-table-column prop="attrType" label="业务员类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.attrType == '5' ? '团队' : scope.row.attrType == '6' ? '个代' : scope.row.attrType ==
|
|
|
- '7' ? '渠道' : scope.row.attrType == '8' ?'电销组':'--' }}
|
|
|
+ '7' ? '渠道' : scope.row.attrType == '8' ? '电销组' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="signingTime" label="签单时间" width="120"></el-table-column>
|
|
|
@@ -448,6 +451,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24" style="display: flex; align-items: center; justify-content: flex-end">
|
|
|
+ <el-button plain @click="handleExport('3')">数据导出</el-button>
|
|
|
<el-button type="primary" @click="handleSearch">搜索</el-button>
|
|
|
<el-button plain @click="handleReset">重置</el-button>
|
|
|
<span class="icon_s">
|
|
|
@@ -467,14 +471,14 @@
|
|
|
<el-table-column prop="orderType" label="订单类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.orderType == '1' ? '车险录入' : scope.row.orderType == '2' ? '代客录单' : scope.row.orderType ==
|
|
|
- '3' ?'外部订单':'--' }}
|
|
|
+ '3' ? '外部订单' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="业务员信息" width="120"></el-table-column>
|
|
|
<el-table-column prop="attrType" label="业务员类型" width="120">
|
|
|
<template #default="scope">
|
|
|
{{ scope.row.attrType == '5' ? '团队' : scope.row.attrType == '6' ? '个代' : scope.row.attrType ==
|
|
|
- '7' ? '渠道' : scope.row.attrType == '8' ?'电销组':'--' }}
|
|
|
+ '7' ? '渠道' : scope.row.attrType == '8' ? '电销组' : '--' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="signingTime" label="签单时间" width="120"></el-table-column>
|
|
|
@@ -696,7 +700,41 @@ const handleUpdateToQuestionOrder = (scope) => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+// 数据导出// 数据导出
|
|
|
+const handleExport = (type: any) => {
|
|
|
+ let obj = null;
|
|
|
+ obj = {
|
|
|
+ pages: pages.value,
|
|
|
+ size: size.value,
|
|
|
+ receiveUser: localStorage.getItem('userName'),
|
|
|
+ licenseNo: firstForm.value?.licenseNo,
|
|
|
+ attrType: firstForm.value?.attrType,
|
|
|
+ salesman: firstForm.value?.salesman,
|
|
|
+ orderType: firstForm.value?.orderType,
|
|
|
+ companyId: firstForm.value?.companyId,
|
|
|
+ deptId: firstForm.value?.deptId,
|
|
|
+ insurName: firstForm.value?.insurName,
|
|
|
+ quotationTimeStart: firstForm.value?.quotationTime?.[0],
|
|
|
+ quotationTimeEnd: firstForm.value?.quotationTime?.[1],
|
|
|
+ signingTimeStart: firstForm.value?.signingTime?.[0],
|
|
|
+ signingTimeEnd: firstForm.value?.insurName?.[1],
|
|
|
+ isProblem: type == '3' ? 1 : 0
|
|
|
+ }
|
|
|
+ if (type !== '3') {
|
|
|
+ obj.auditStatus = type
|
|
|
+ }
|
|
|
+ api.financeApi.exportOrderExcel(obj).then((res: any) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ const link = document.createElement('a');
|
|
|
+ link.href = res.msg;
|
|
|
+ link.download = '';
|
|
|
+ // 触发下载
|
|
|
+ document.body.appendChild(link);
|
|
|
+ link.click();
|
|
|
+ document.body.removeChild(link);
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
onMounted(() => {
|
|
|
initList('0');
|
|
|
initList('1');
|