|
|
@@ -330,32 +330,32 @@ const save = async (formEl: FormInstance | undefined | any) => {
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- // 检查入口比例是否小于入口手续费比例
|
|
|
- const hasInvalidItem = formRef.ptlAgreementCostTypeList.some((item: any) => {
|
|
|
- // 获取当前险种对应的入口手续费比例
|
|
|
- let entranceFeeRatio = 0;
|
|
|
- if (item.costType == '交强险') {
|
|
|
- entranceFeeRatio = props.handlingFee?.jqEntranceFeeRatio || 0;
|
|
|
- } else if (item.costType == '商业险') {
|
|
|
- entranceFeeRatio = props.handlingFee?.syEntranceFeeRatio || 0;
|
|
|
- } else if (item.costType == '驾意险') {
|
|
|
- entranceFeeRatio = props.handlingFee?.jyEntranceFeeRatio || 0;
|
|
|
- }
|
|
|
+ // // 检查入口比例是否小于入口手续费比例
|
|
|
+ // const hasInvalidItem = formRef.ptlAgreementCostTypeList.some((item: any) => {
|
|
|
+ // // 获取当前险种对应的入口手续费比例
|
|
|
+ // let entranceFeeRatio = 0;
|
|
|
+ // if (item.costType == '交强险') {
|
|
|
+ // entranceFeeRatio = props.handlingFee?.jqEntranceFeeRatio || 0;
|
|
|
+ // } else if (item.costType == '商业险') {
|
|
|
+ // entranceFeeRatio = props.handlingFee?.syEntranceFeeRatio || 0;
|
|
|
+ // } else if (item.costType == '驾意险') {
|
|
|
+ // entranceFeeRatio = props.handlingFee?.jyEntranceFeeRatio || 0;
|
|
|
+ // }
|
|
|
|
|
|
- // 检查入口比例是否小于入口手续费比例(转换为数字比较)
|
|
|
- if (Number(item.inlet) < Number(entranceFeeRatio)) {
|
|
|
- ElMessage({
|
|
|
- type: 'warning',
|
|
|
- message: `${item.costType}入口比例不能小于入口手续费比例(${entranceFeeRatio}%)`,
|
|
|
- plain: true,
|
|
|
- });
|
|
|
- return true; // 找到不符合条件的项,中断循环
|
|
|
- }
|
|
|
- return false;
|
|
|
- });
|
|
|
- if (hasInvalidItem) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ // // 检查入口比例是否小于入口手续费比例(转换为数字比较)
|
|
|
+ // if (Number(item.inlet) < Number(entranceFeeRatio)) {
|
|
|
+ // ElMessage({
|
|
|
+ // type: 'warning',
|
|
|
+ // message: `${item.costType}入口比例不能小于入口手续费比例(${entranceFeeRatio}%)`,
|
|
|
+ // plain: true,
|
|
|
+ // });
|
|
|
+ // return true; // 找到不符合条件的项,中断循环
|
|
|
+ // }
|
|
|
+ // return false;
|
|
|
+ // });
|
|
|
+ // if (hasInvalidItem) {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if (ruleFeeinfo.value[insuranceTypeIndex.value].ptlAgreementCostAddList[index].ruleConditions.length && result) {
|
|
|
resolve(true);
|
|
|
}
|
|
|
@@ -440,26 +440,26 @@ const addRuleCondition = (index: number, Costindex: number) => {
|
|
|
}
|
|
|
|
|
|
const handelRK = (scope) => {
|
|
|
- // 获取当前险种对应的入口手续费比例
|
|
|
- let entranceFeeRatio = 0;
|
|
|
- if (scope.row.costType == '交强险') {
|
|
|
- entranceFeeRatio = props.handlingFee?.jqEntranceFeeRatio || 0;
|
|
|
- } else if (scope.row.costType == '商业险') {
|
|
|
- entranceFeeRatio = props.handlingFee?.syEntranceFeeRatio || 0;
|
|
|
- } else if (scope.row.costType == '驾意险') {
|
|
|
- entranceFeeRatio = props.handlingFee?.jyEntranceFeeRatio || 0;
|
|
|
- }
|
|
|
+ // // 获取当前险种对应的入口手续费比例
|
|
|
+ // let entranceFeeRatio = 0;
|
|
|
+ // if (scope.row.costType == '交强险') {
|
|
|
+ // entranceFeeRatio = props.handlingFee?.jqEntranceFeeRatio || 0;
|
|
|
+ // } else if (scope.row.costType == '商业险') {
|
|
|
+ // entranceFeeRatio = props.handlingFee?.syEntranceFeeRatio || 0;
|
|
|
+ // } else if (scope.row.costType == '驾意险') {
|
|
|
+ // entranceFeeRatio = props.handlingFee?.jyEntranceFeeRatio || 0;
|
|
|
+ // }
|
|
|
|
|
|
- // 检查入口比例是否小于入口手续费比例
|
|
|
- if (scope.row.inlet < entranceFeeRatio) {
|
|
|
- ElMessage({
|
|
|
- type: 'warning',
|
|
|
- message: `入口比例不能小于入口手续费比例(${entranceFeeRatio}%)`,
|
|
|
- plain: true,
|
|
|
- });
|
|
|
- scope.row.inlet = entranceFeeRatio;
|
|
|
- return;
|
|
|
- }
|
|
|
+ // // 检查入口比例是否小于入口手续费比例
|
|
|
+ // if (scope.row.inlet < entranceFeeRatio) {
|
|
|
+ // ElMessage({
|
|
|
+ // type: 'warning',
|
|
|
+ // message: `入口比例不能小于入口手续费比例(${entranceFeeRatio}%)`,
|
|
|
+ // plain: true,
|
|
|
+ // });
|
|
|
+ // scope.row.inlet = entranceFeeRatio;
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
console.log(scope.row)
|
|
|
if (scope.row.export && scope.row.addThrow || scope.row.export && scope.row.addThrow === 0) {
|