|
|
@@ -29,7 +29,7 @@
|
|
|
<el-tag type="primary" style="margin-right: 20px;">{{
|
|
|
getDict('is_enable').find(val => val.value == agreementInfo.isEnable)?.label}}</el-tag>
|
|
|
<el-tag type="success">{{getDict('valid_status').find(val => val.value == agreementInfo.validStatus)?.label
|
|
|
- }}</el-tag>
|
|
|
+ }}</el-tag>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-descriptions :column="3" style="margin-top: 10px;">
|
|
|
@@ -51,9 +51,9 @@
|
|
|
<el-tab-pane label="协议信息" name="agreementInfo">
|
|
|
<el-descriptions title="基本信息" class="m-top-20" :column="3">
|
|
|
<el-descriptions-item label="协议名称:">{{ agreementInfo.agreementTitle
|
|
|
- }}</el-descriptions-item>
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="协议简称:">{{ agreementInfo.agreementAbbreviation
|
|
|
- }}</el-descriptions-item>
|
|
|
+ }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="协议生效时间:">{{ agreementInfo.startDate }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="协议失效时间:">{{ agreementInfo.endDate }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="是否含增值税结算:">
|
|
|
@@ -117,7 +117,7 @@
|
|
|
<div class="flex a-c">
|
|
|
<img src="../../../assets/images/fee.png" alt="">
|
|
|
<span style="margin-right: 30px;font-size: 16px;" class="strong m-left-10">承保规则一{{ index + 1
|
|
|
- }}</span>
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
<div class="flex">
|
|
|
<el-button link type="primary" :icon="Delete" @click="ruleDel(item.id)">删除</el-button>
|
|
|
@@ -147,13 +147,15 @@
|
|
|
<el-tab-pane v-for="(costitem, costindex) in item.costVoList" :key="costindex"
|
|
|
:label="costitem.productName" :name="costitem.productName">
|
|
|
<span class="strong">{{ costitem.productName }}费用({{ costitem.ptlAgreementCostVoList.length
|
|
|
- }}条)</span>
|
|
|
+ }}条)</span>
|
|
|
<ComplexTable :tableData="costitem.ptlAgreementCostVoList" :columns="columns" :maxHeight="250"
|
|
|
:showIndex="false" :columnwidth="200" :showSelect="false">
|
|
|
<template v-slot:operation="scope">
|
|
|
<el-button type="primary" link
|
|
|
@click="costitemEdit(scope.operationData.id, item, index, costindex)"> 编辑
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" link @click="costitemCopy(scope.operationData.id)"> 复制
|
|
|
+ </el-button>
|
|
|
<el-button type="primary" link @click="costitemDel(scope.operationData.id)"> 删除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
@@ -466,7 +468,7 @@ const regionLicenseNumber = (value: string) => {
|
|
|
});
|
|
|
}
|
|
|
// 添加承保规则
|
|
|
-const RulesList = ref();//承保规则数据
|
|
|
+const RulesList = ref([]);//承保规则数据
|
|
|
const addUnderwritingRuleShow = ref(false);//添加规则抽屉
|
|
|
|
|
|
const ruleFeePosition = ref<TabsInstance['tabPosition']>('left')
|
|
|
@@ -519,7 +521,16 @@ const agreementRulesList = () => {
|
|
|
val.ruleFeeShow = false;
|
|
|
return val;
|
|
|
})
|
|
|
- RulesList.value = res.data;
|
|
|
+ RulesList.value = res.data.map(v=>{
|
|
|
+ const index=RulesList.value.findIndex(k=>k.id===v.id)
|
|
|
+ const ruleFeeShow=RulesList.value[index]?.ruleFeeShow
|
|
|
+ const ruleFeeActive=RulesList.value[index]?.ruleFeeActive
|
|
|
+ return {
|
|
|
+ ...v,
|
|
|
+ ruleFeeShow,
|
|
|
+ ruleFeeActive,
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
} else {
|
|
|
}
|
|
|
@@ -700,11 +711,7 @@ const ruleFeeEditSave = (data: object) => {
|
|
|
message: res.msg,
|
|
|
plain: true,
|
|
|
})
|
|
|
- const ptlAgreementCostVoList = RulesList.value[index1.value].costVoList[costindex1.value].ptlAgreementCostVoList
|
|
|
-
|
|
|
- const ruleIndex = ptlAgreementCostVoList.findIndex(v => v.id === data.id)
|
|
|
- const ruleObj = ptlAgreementCostVoList[ruleIndex]
|
|
|
- ptlAgreementCostVoList[ruleIndex] = { ...data, costRules: ruleObj.costRules }
|
|
|
+ agreementRulesList()
|
|
|
ruleFeeEditVisible.value = false;
|
|
|
|
|
|
}
|
|
|
@@ -754,6 +761,28 @@ const costitemDel = (id: string) => {
|
|
|
});
|
|
|
})
|
|
|
}
|
|
|
+//删除费用
|
|
|
+const costitemCopy = (costId: string) => {
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ '确定要复制该费用,请确认是否复制?',
|
|
|
+ '复制费用',
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定复制',
|
|
|
+ center: true,
|
|
|
+ }
|
|
|
+ ).then(() => {
|
|
|
+ api.agreementApi.AgreementFeecopy({ costId }).then((res: any) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ agreementRulesList();
|
|
|
+ ElMessage({
|
|
|
+ type: 'success',
|
|
|
+ message: res.msg,
|
|
|
+ plain: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+}
|
|
|
interface rulesAttrListInfo {
|
|
|
id: string,
|
|
|
agreementId: string,
|