|
@@ -52,7 +52,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="max-height: 500px;padding: 20px 14px;overflow-y: auto;border-top: 1px solid #e5e5e5;"
|
|
<div style="max-height: 500px;padding: 20px 14px;overflow-y: auto;border-top: 1px solid #e5e5e5;"
|
|
|
- v-if="Costitem.ruleFeeShow">
|
|
|
|
|
|
|
+ v-show="Costitem.ruleFeeShow">
|
|
|
<ElRow :gutter="20" class="m-top-20">
|
|
<ElRow :gutter="20" class="m-top-20">
|
|
|
<el-form :model="Costitem" :id="Costitem.fromID" label-width="80px" ref="feeFormRef"
|
|
<el-form :model="Costitem" :id="Costitem.fromID" label-width="80px" ref="feeFormRef"
|
|
|
style="width: 100%;" :rules="feerules" class="flex a-c f-wrap" :size="fromSize">
|
|
style="width: 100%;" :rules="feerules" class="flex a-c f-wrap" :size="fromSize">
|
|
@@ -356,14 +356,17 @@ const save = async (formEl: FormInstance | undefined | any) => {
|
|
|
// if (hasInvalidItem) {
|
|
// if (hasInvalidItem) {
|
|
|
// return;
|
|
// return;
|
|
|
// }
|
|
// }
|
|
|
|
|
+ console.log("🚀 ~ save ~ index:", index)
|
|
|
if (ruleFeeinfo.value[insuranceTypeIndex.value].ptlAgreementCostAddList[index].ruleConditions.length && result) {
|
|
if (ruleFeeinfo.value[insuranceTypeIndex.value].ptlAgreementCostAddList[index].ruleConditions.length && result) {
|
|
|
resolve(true);
|
|
resolve(true);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ console.log("🚀 ~ save ~ index:", index)
|
|
|
reject(index);
|
|
reject(index);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ console.log("🚀 ~ save ~ index:", index)
|
|
|
reject(index);
|
|
reject(index);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -380,6 +383,7 @@ const save = async (formEl: FormInstance | undefined | any) => {
|
|
|
})
|
|
})
|
|
|
emits("save", { ptlAgreementCode: props.agreementInfo.agreementCode, ptlAgreementName: props.agreementInfo.agreementTitle, costAddList: ruleFeeinfo.value })
|
|
emits("save", { ptlAgreementCode: props.agreementInfo.agreementCode, ptlAgreementName: props.agreementInfo.agreementTitle, costAddList: ruleFeeinfo.value })
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
|
|
+ console.log("🚀 ~ save ~ error:", error)
|
|
|
const invalidIndex: any = error; // 获取未通过校验的表单索引
|
|
const invalidIndex: any = error; // 获取未通过校验的表单索引
|
|
|
// const invalidForm = ruleFeeinfo.value[insuranceTypeIndex.value].ptlAgreementCostAddList[invalidIndex]; // 获取未通过校验的表单对象
|
|
// const invalidForm = ruleFeeinfo.value[insuranceTypeIndex.value].ptlAgreementCostAddList[invalidIndex]; // 获取未通过校验的表单对象
|
|
|
const invalidFormElement = document.getElementById(`from-${insuranceTypeIndex.value}-${invalidIndex}`); // 获取未通过校验的表单元素
|
|
const invalidFormElement = document.getElementById(`from-${insuranceTypeIndex.value}-${invalidIndex}`); // 获取未通过校验的表单元素
|