|
@@ -16,7 +16,7 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</RouterLink>
|
|
</RouterLink>
|
|
|
<el-dropdown placement="bottom-start">
|
|
<el-dropdown placement="bottom-start">
|
|
|
- <el-button > 批量管理<el-icon>
|
|
|
|
|
|
|
+ <el-button> 批量管理<el-icon>
|
|
|
<arrow-down />
|
|
<arrow-down />
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -30,9 +30,9 @@
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:operation="scope">
|
|
<template v-slot:operation="scope">
|
|
|
- <el-button type="primary" link @click="agreementEdit(scope.operationData.id)">编辑</el-button>
|
|
|
|
|
- <el-button type="primary" link @click="agreemenUpdate(scope.operationData)"> 详情
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" link @click="agreementEdit(scope.operationData.id)">编辑</el-button>
|
|
|
|
|
+ <el-button type="primary" link @click="agreemenUpdate(scope.operationData)"> 详情
|
|
|
|
|
+ </el-button>
|
|
|
<el-dropdown placement="bottom-start" trigger="click">
|
|
<el-dropdown placement="bottom-start" trigger="click">
|
|
|
<span class="el-dropdown-link">
|
|
<span class="el-dropdown-link">
|
|
|
更 多
|
|
更 多
|
|
@@ -45,6 +45,7 @@
|
|
|
<el-dropdown-item @click="agreemenCopy(scope.operationData.id)">复制协议</el-dropdown-item>
|
|
<el-dropdown-item @click="agreemenCopy(scope.operationData.id)">复制协议</el-dropdown-item>
|
|
|
<el-dropdown-item @click="batchAuthorization(scope.operationData.id)">协议授权</el-dropdown-item>
|
|
<el-dropdown-item @click="batchAuthorization(scope.operationData.id)">协议授权</el-dropdown-item>
|
|
|
<el-dropdown-item @click="cost(scope.operationData.id)">费用管理</el-dropdown-item>
|
|
<el-dropdown-item @click="cost(scope.operationData.id)">费用管理</el-dropdown-item>
|
|
|
|
|
+ <el-dropdown-item @click="operatorTrajectoryRef.operAtorTrajectory(scope.operationData.id)">轨迹查看</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
@@ -55,9 +56,10 @@
|
|
|
</ComplexTable>
|
|
</ComplexTable>
|
|
|
</PageMain>
|
|
</PageMain>
|
|
|
<auth-Drawer :Drawer="agreementAuthDrawer" @cancel=" agreementAuthDrawer = false" @save="DrawerSave"
|
|
<auth-Drawer :Drawer="agreementAuthDrawer" @cancel=" agreementAuthDrawer = false" @save="DrawerSave"
|
|
|
- @query="Drawerquery" :deptlist="deptauthList" :checkedKeys="checkedKeys" @echoValue="echoValue" :checkedIds="checkedIds"></auth-Drawer>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ @query="Drawerquery" :deptlist="deptauthList" :checkedKeys="checkedKeys" @echoValue="echoValue"
|
|
|
|
|
+ :checkedIds="checkedIds"></auth-Drawer>
|
|
|
|
|
|
|
|
|
|
+ <operatorTrajectory ref="operatorTrajectoryRef" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -67,6 +69,8 @@ import { RouterLink, useRouter } from "vue-router";
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import { loadDicts, getDict } from '@/utils/composables/dictService';//字典组件
|
|
import { loadDicts, getDict } from '@/utils/composables/dictService';//字典组件
|
|
|
import authDrawer from "./components/agreementAuth.vue";
|
|
import authDrawer from "./components/agreementAuth.vue";
|
|
|
|
|
+import operatorTrajectory from "./components/operatorTrajectory.vue";
|
|
|
|
|
+const operatorTrajectoryRef = ref(null)
|
|
|
import api from '@/api';
|
|
import api from '@/api';
|
|
|
interface PageInfo {
|
|
interface PageInfo {
|
|
|
pageNum: number;
|
|
pageNum: number;
|
|
@@ -98,10 +102,10 @@ const provinceoptions = ref<string[]>([])//省市区回显数据
|
|
|
const deptOptions = ref()//机构数据
|
|
const deptOptions = ref()//机构数据
|
|
|
let company_list = ref()
|
|
let company_list = ref()
|
|
|
const companyIdprops = {
|
|
const companyIdprops = {
|
|
|
- expandTrigger: 'hover' as const,
|
|
|
|
|
- value: 'id',
|
|
|
|
|
- label: 'name',
|
|
|
|
|
- checkStrictly: true,
|
|
|
|
|
|
|
+ expandTrigger: 'hover' as const,
|
|
|
|
|
+ value: 'id',
|
|
|
|
|
+ label: 'name',
|
|
|
|
|
+ checkStrictly: true,
|
|
|
}
|
|
}
|
|
|
const agreement_type = ref();
|
|
const agreement_type = ref();
|
|
|
const valid_status = ref();
|
|
const valid_status = ref();
|
|
@@ -128,9 +132,9 @@ const formInline = reactive({
|
|
|
takeEndDate: "",
|
|
takeEndDate: "",
|
|
|
loseStartDate: "",
|
|
loseStartDate: "",
|
|
|
loseEndDate: "",
|
|
loseEndDate: "",
|
|
|
- isExternal:'0',
|
|
|
|
|
- value1:[],
|
|
|
|
|
- value2:[],
|
|
|
|
|
|
|
+ isExternal: '0',
|
|
|
|
|
+ value1: [],
|
|
|
|
|
+ value2: [],
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
//表格字段数据
|
|
//表格字段数据
|
|
@@ -142,7 +146,7 @@ const fields = ref([
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: "保险公司", model: "companyId", type: "cascader", placeholder: "选择保险公司", options: company_list, props: companyIdprops, placement: 'left'
|
|
|
|
|
|
|
+ label: "保险公司", model: "companyId", type: "cascader", placeholder: "选择保险公司", options: company_list, props: companyIdprops, placement: 'left'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: "协议类型", model: "agreementType", type: "select", placeholder: "选择协议类型", options: agreement_type,
|
|
label: "协议类型", model: "agreementType", type: "select", placeholder: "选择协议类型", options: agreement_type,
|
|
@@ -183,22 +187,22 @@ const fields = ref([
|
|
|
|
|
|
|
|
// 保险公司
|
|
// 保险公司
|
|
|
const initCompany = () => {
|
|
const initCompany = () => {
|
|
|
- api.agreementApi.findTree({ name: "", systemCode: localStorage.getItem('login_system') }).then((res: any) => {
|
|
|
|
|
- if (res.code == '200') {
|
|
|
|
|
- company_list.value = res.data;
|
|
|
|
|
- } else {
|
|
|
|
|
- ElMessage({
|
|
|
|
|
- type: 'error',
|
|
|
|
|
- message: res.msg,
|
|
|
|
|
- plain: true,
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ api.agreementApi.findTree({ name: "", systemCode: localStorage.getItem('login_system') }).then((res: any) => {
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ company_list.value = res.data;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ plain: true,
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//数据查询
|
|
//数据查询
|
|
|
function findpage() {
|
|
function findpage() {
|
|
|
- let query = {...formInline}
|
|
|
|
|
|
|
+ let query = { ...formInline }
|
|
|
query.companyId = query.companyId?.[query.companyId.length - 1]
|
|
query.companyId = query.companyId?.[query.companyId.length - 1]
|
|
|
api.agreementApi.agreementList({ pages: pageInfo.value.pageNum, size: pageInfo.value.pageSize, ...query }).then((res: any) => {
|
|
api.agreementApi.agreementList({ pages: pageInfo.value.pageNum, size: pageInfo.value.pageSize, ...query }).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
@@ -211,8 +215,10 @@ function findpage() {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
const columns = [
|
|
const columns = [
|
|
|
- { prop: "agreementCode", label: "协议编号", width: '200',component: "RouterLink",
|
|
|
|
|
- formatter: (row: any) => ({ name: 'AgreementDetails', query: { id: row.id} }) },
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "agreementCode", label: "协议编号", width: '200', component: "RouterLink",
|
|
|
|
|
+ formatter: (row: any) => ({ name: 'AgreementDetails', query: { id: row.id } })
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: "agreementTitle", label: "协议名称", width: '200',
|
|
prop: "agreementTitle", label: "协议名称", width: '200',
|
|
|
},
|
|
},
|
|
@@ -263,17 +269,21 @@ const columns = [
|
|
|
return 'T' + row.moneyTime
|
|
return 'T' + row.moneyTime
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- { prop: "username", label: "出单账号", width: '220',
|
|
|
|
|
- formatter: (row: any) => {
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "username", label: "出单账号", width: '220',
|
|
|
|
|
+ formatter: (row: any) => {
|
|
|
return `用户名:${row.username}\n简称:${row.userAbbr}`
|
|
return `用户名:${row.username}\n简称:${row.userAbbr}`
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{ prop: "company", label: "保险公司", width: '200' },
|
|
{ prop: "company", label: "保险公司", width: '200' },
|
|
|
- { prop: "dockingPerson", label: "对接人", width: '200', formatter: (row: any) => {
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "dockingPerson", label: "对接人", width: '200', formatter: (row: any) => {
|
|
|
return `${row.dockingPerson}-${row.dockingPhone}`
|
|
return `${row.dockingPerson}-${row.dockingPhone}`
|
|
|
- } },
|
|
|
|
|
- { prop: "custodianId", label: "管理人", width: '200',
|
|
|
|
|
- formatter: (row: any) => {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: "custodianId", label: "管理人", width: '200',
|
|
|
|
|
+ formatter: (row: any) => {
|
|
|
return `${row.managerName}-${row.managerDeptName}`
|
|
return `${row.managerName}-${row.managerDeptName}`
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -348,13 +358,13 @@ function getUncheckedIds(data: any[]): string[] {
|
|
|
return ids;
|
|
return ids;
|
|
|
}
|
|
}
|
|
|
//编辑跳转
|
|
//编辑跳转
|
|
|
-const agreementEdit = (id:any) => {
|
|
|
|
|
- router.push({
|
|
|
|
|
- name: 'AgreementAdd',
|
|
|
|
|
- query: {
|
|
|
|
|
- id: id
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+const agreementEdit = (id: any) => {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ name: 'AgreementAdd',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ id: id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function agreemenUpdate(item: any) {
|
|
function agreemenUpdate(item: any) {
|
|
@@ -365,13 +375,13 @@ function agreemenUpdate(item: any) {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-const cost=(id:string)=>{
|
|
|
|
|
|
|
+const cost = (id: string) => {
|
|
|
router.push({
|
|
router.push({
|
|
|
- name: 'AgreementDetails',
|
|
|
|
|
- query: {
|
|
|
|
|
- id: id,
|
|
|
|
|
- from: '费用管理'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ name: 'AgreementDetails',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ id: id,
|
|
|
|
|
+ from: '费用管理'
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
//多选事件
|
|
//多选事件
|
|
@@ -394,7 +404,7 @@ const batchAuthorization = (value: string) => {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
//复制协议
|
|
//复制协议
|
|
|
-const agreemenCopy = (id:string) => {
|
|
|
|
|
|
|
+const agreemenCopy = (id: string) => {
|
|
|
router.push({
|
|
router.push({
|
|
|
name: 'AgreementCopy',
|
|
name: 'AgreementCopy',
|
|
|
query: {
|
|
query: {
|