|
|
@@ -135,7 +135,7 @@
|
|
|
<p class=" m-top-10" style="font-size: 14px;letter-spacing: 2px;">规则描述:{{ item.ruleDescription }}</p>
|
|
|
</div>
|
|
|
<div class="header-content" v-if="item.ruleFeeShow">
|
|
|
- <el-button plain type="primary" @click=" ruleFeeAdd(item)" class="m-top-20 m-btn-20">添加费用
|
|
|
+ <el-button plain type="primary" @click=" ruleFeeAdd(item)" class="m-top-10 m-btn-10">添加费用
|
|
|
<template #icon>
|
|
|
<el-icon>
|
|
|
<Plus />
|
|
|
@@ -684,7 +684,7 @@ const costitemEditInfo = ref();
|
|
|
const RulesInfo = ref({});
|
|
|
const columns = [
|
|
|
{ prop: "costRules", label: "费用规则", width: '200', },
|
|
|
- { prop: "priorityLevel", label: "优先级", width: '60', },
|
|
|
+ { prop: "priorityLevel", label: "优先级", width: '100', },
|
|
|
{ prop: "costDescribe", label: "费用规则", width: '200', },
|
|
|
{
|
|
|
prop: "ptlAgreementCostTypeList", label: "交强险费用", width: '300', formatter: (row: any) => {
|
|
|
@@ -785,33 +785,31 @@ const ruleFeeSave = (data: object) => {
|
|
|
});
|
|
|
}
|
|
|
const ruleFeeEditSave = (data: object) => {
|
|
|
- // 检查入口比例是否小于入口手续费比例
|
|
|
- const hasInvalidItem = data.ptlAgreementCostTypeList.some((item: any) => {
|
|
|
- // 获取当前险种对应的入口手续费比例
|
|
|
- let entranceFeeRatio = 0;
|
|
|
- if (item.costType == '交强险') {
|
|
|
- entranceFeeRatio = handlingFeeInfo.value?.jqEntranceFeeRatio || 0;
|
|
|
- } else if (item.costType == '商业险') {
|
|
|
- entranceFeeRatio = handlingFeeInfo.value?.syEntranceFeeRatio || 0;
|
|
|
- } else if (item.costType == '驾意险') {
|
|
|
- entranceFeeRatio = handlingFeeInfo.value?.jyEntranceFeeRatio || 0;
|
|
|
- }
|
|
|
+ // const hasInvalidItem = data.ptlAgreementCostTypeList.some((item: any) => {
|
|
|
+ // let entranceFeeRatio = 0;
|
|
|
+ // if (item.costType == '交强险') {
|
|
|
+ // entranceFeeRatio = handlingFeeInfo.value?.jqEntranceFeeRatio || 0;
|
|
|
+ // } else if (item.costType == '商业险') {
|
|
|
+ // entranceFeeRatio = handlingFeeInfo.value?.syEntranceFeeRatio || 0;
|
|
|
+ // } else if (item.costType == '驾意险') {
|
|
|
+ // entranceFeeRatio = handlingFeeInfo.value?.jyEntranceFeeRatio || 0;
|
|
|
+ // }
|
|
|
|
|
|
- // 检查入口比例是否小于入口手续费比例(转换为数字比较)
|
|
|
- if (Number(item.inlet) < Number(entranceFeeRatio)) {
|
|
|
- ElMessage({
|
|
|
- type: 'warning',
|
|
|
- message: `${item.costType}入口比例不能小于入口手续费比例(${entranceFeeRatio}%)`,
|
|
|
- plain: true,
|
|
|
- });
|
|
|
- return true; // 找到不符合条件的项,中断循环
|
|
|
- }
|
|
|
- return false;
|
|
|
- });
|
|
|
+ // // 检查入口比例是否小于入口手续费比例(转换为数字比较)
|
|
|
+ // if (Number(item.inlet) < Number(entranceFeeRatio)) {
|
|
|
+ // ElMessage({
|
|
|
+ // type: 'warning',
|
|
|
+ // message: `${item.costType}入口比例不能小于入口手续费比例(${entranceFeeRatio}%)`,
|
|
|
+ // plain: true,
|
|
|
+ // });
|
|
|
+ // return true; // 找到不符合条件的项,中断循环
|
|
|
+ // }
|
|
|
+ // return false;
|
|
|
+ // });
|
|
|
|
|
|
- if (hasInvalidItem) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (hasInvalidItem) {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
api.agreementApi.AgreementFeeupdate(data).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
ElMessage({
|
|
|
@@ -1010,15 +1008,16 @@ const uploadImage = (file: any) => {
|
|
|
<!-- 样式区域 -->
|
|
|
<style lang='scss' scoped>
|
|
|
:deep(.demo-tabs .el-tabs__item) {
|
|
|
- height: 60px;
|
|
|
font-size: 20px;
|
|
|
font-weight: bold !important;
|
|
|
+ align-items: start;
|
|
|
}
|
|
|
|
|
|
:deep(.ruleFee .el-tabs__item) {
|
|
|
- height: 40px;
|
|
|
font-size: 14px;
|
|
|
font-weight: 500 !important;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
:deep(.agreement .p-5) {
|
|
|
@@ -1042,11 +1041,11 @@ const uploadImage = (file: any) => {
|
|
|
}
|
|
|
|
|
|
.RuleContainer {
|
|
|
- margin-top: 20px;
|
|
|
+ margin-top: 10px;
|
|
|
|
|
|
.list-item {
|
|
|
padding: 18px 16px;
|
|
|
- margin-bottom: 20px;
|
|
|
+ margin-bottom: 10px;
|
|
|
border: 1px solid #e5e5e5;
|
|
|
border-radius: 10px;
|
|
|
|