|
|
@@ -21,8 +21,10 @@
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
<el-dropdown-item :disabled="!sysUpAndDownList.length" @click="handleCopy()">批量复制</el-dropdown-item>
|
|
|
- <el-dropdown-item :disabled="!sysUpAndDownList.length" @click="handleUpdateValidDate()">批量设置有效期</el-dropdown-item>
|
|
|
- <el-dropdown-item :disabled="!sysUpAndDownList.length" @click="handleUpdateCostRatio()">批量设置比例</el-dropdown-item>
|
|
|
+ <el-dropdown-item :disabled="!sysUpAndDownList.length"
|
|
|
+ @click="handleUpdateValidDate()">批量设置有效期</el-dropdown-item>
|
|
|
+ <el-dropdown-item :disabled="!sysUpAndDownList.length"
|
|
|
+ @click="handleUpdateCostRatio()">批量设置比例</el-dropdown-item>
|
|
|
<el-dropdown-item :disabled="!sysUpAndDownList.length" @click="batchDel">删除</el-dropdown-item>
|
|
|
<el-dropdown-item :disabled="!sysUpAndDownList.length" @click="batchdisable">禁用</el-dropdown-item>
|
|
|
<el-dropdown-item :disabled="!sysUpAndDownList.length" @click="batchenable">启用</el-dropdown-item>
|
|
|
@@ -337,33 +339,14 @@ const columns = [
|
|
|
prop: "ruleDescription", label: "承保规则", width: '500',
|
|
|
},
|
|
|
{ prop: "productName", label: "险种", width: '120', },
|
|
|
- {
|
|
|
- prop: "costRules", label: "费用规则", width: '500',
|
|
|
- },
|
|
|
+ { prop: "effectiveTime", label: "生效时间", width: '200' },
|
|
|
+ { prop: "failureTime", label: "失效时间", width: '200' },
|
|
|
{
|
|
|
prop: "costDescribe", label: "费用描述", width: '500',
|
|
|
},
|
|
|
{
|
|
|
- prop: "isEnabled", label: "费用状态", width: '100', component: "Tag",
|
|
|
- formatter: (row: any) => {
|
|
|
- let name = getDict('is_enable').find(val => val.value == row.isEnabled).label
|
|
|
- if (name) {
|
|
|
- return { type: 'primary', text: name };
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- prop: "approved", label: "审核状态", width: '120', component: "Tag",
|
|
|
- formatter: (row: any) => {
|
|
|
- let name = getDict('audit_status').find(val => val.value == row.approved).label
|
|
|
- if (name) {
|
|
|
- return { type: 'warning', text: name };
|
|
|
- }
|
|
|
- }
|
|
|
+ prop: "costRules", label: "费用规则", width: '500',
|
|
|
},
|
|
|
- { prop: "dockingPerson", label: "对接人", width: '100' },
|
|
|
- { prop: "effectiveTime", label: "生效时间", width: '200' },
|
|
|
- { prop: "failureTime", label: "失效时间", width: '200' },
|
|
|
{ prop: "updateTime", label: "修改时间", width: '200' },
|
|
|
{
|
|
|
prop: "ruleConditions", label: "交强费用", width: '300', formatter: (row: any) => {
|
|
|
@@ -395,6 +378,27 @@ const columns = [
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: "isEnabled", label: "费用状态", width: '100', component: "Tag",
|
|
|
+ formatter: (row: any) => {
|
|
|
+ let name = getDict('is_enable').find(val => val.value == row.isEnabled).label
|
|
|
+ if (name) {
|
|
|
+ return { type: 'primary', text: name };
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "approved", label: "审核状态", width: '120', component: "Tag",
|
|
|
+ formatter: (row: any) => {
|
|
|
+ let name = getDict('audit_status').find(val => val.value == row.approved).label
|
|
|
+ if (name) {
|
|
|
+ return { type: 'warning', text: name };
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { prop: "dockingPerson", label: "对接人", width: '100' },
|
|
|
+
|
|
|
+
|
|
|
];
|
|
|
//分页事件
|
|
|
function getList(item: PageInfo) {
|