|
@@ -142,7 +142,8 @@
|
|
|
</el-icon>
|
|
</el-icon>
|
|
|
</template>
|
|
</template>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <el-tabs :tab-position="ruleFeePosition" class="ruleFee" v-if="item.costVoList">
|
|
|
|
|
|
|
+ <el-tabs v-model="item.ruleFeeActive" :tab-position="ruleFeePosition" class="ruleFee"
|
|
|
|
|
+ v-if="item.costVoList">
|
|
|
<el-tab-pane v-for="(costitem, costindex) in item.costVoList" :key="costindex"
|
|
<el-tab-pane v-for="(costitem, costindex) in item.costVoList" :key="costindex"
|
|
|
:label="costitem.productName" :name="costitem.productName">
|
|
:label="costitem.productName" :name="costitem.productName">
|
|
|
<span class="strong">{{ costitem.productName }}费用({{ costitem.ptlAgreementCostVoList.length
|
|
<span class="strong">{{ costitem.productName }}费用({{ costitem.ptlAgreementCostVoList.length
|
|
@@ -150,7 +151,10 @@
|
|
|
<ComplexTable :tableData="costitem.ptlAgreementCostVoList" :columns="columns" :maxHeight="250"
|
|
<ComplexTable :tableData="costitem.ptlAgreementCostVoList" :columns="columns" :maxHeight="250"
|
|
|
:showIndex="false" :columnwidth="200" :showSelect="false">
|
|
:showIndex="false" :columnwidth="200" :showSelect="false">
|
|
|
<template v-slot:operation="scope">
|
|
<template v-slot:operation="scope">
|
|
|
- <el-button type="primary" link @click="costitemEdit(scope.operationData.id, item)"> 编辑
|
|
|
|
|
|
|
+ <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>
|
|
|
<el-button type="primary" link @click="costitemDel(scope.operationData.id)"> 删除
|
|
<el-button type="primary" link @click="costitemDel(scope.operationData.id)"> 删除
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -464,7 +468,7 @@ const regionLicenseNumber = (value: string) => {
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
// 添加承保规则
|
|
// 添加承保规则
|
|
|
-const RulesList = ref();//承保规则数据
|
|
|
|
|
|
|
+const RulesList = ref([]);//承保规则数据
|
|
|
const addUnderwritingRuleShow = ref(false);//添加规则抽屉
|
|
const addUnderwritingRuleShow = ref(false);//添加规则抽屉
|
|
|
|
|
|
|
|
const ruleFeePosition = ref<TabsInstance['tabPosition']>('left')
|
|
const ruleFeePosition = ref<TabsInstance['tabPosition']>('left')
|
|
@@ -517,7 +521,16 @@ const agreementRulesList = () => {
|
|
|
val.ruleFeeShow = false;
|
|
val.ruleFeeShow = false;
|
|
|
return val;
|
|
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 {
|
|
} else {
|
|
|
}
|
|
}
|
|
@@ -699,12 +712,17 @@ const ruleFeeEditSave = (data: object) => {
|
|
|
plain: true,
|
|
plain: true,
|
|
|
})
|
|
})
|
|
|
agreementRulesList()
|
|
agreementRulesList()
|
|
|
- } else {
|
|
|
|
|
|
|
+ ruleFeeEditVisible.value = false;
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+const index1 = ref(0)
|
|
|
|
|
+const costindex1 = ref(0)
|
|
|
//编辑删除费用
|
|
//编辑删除费用
|
|
|
-const costitemEdit = (id: string, item: any) => {
|
|
|
|
|
|
|
+const costitemEdit = (id: string, item: any, index: number, costindex: number) => {
|
|
|
|
|
+ index1.value = index;
|
|
|
|
|
+ costindex1.value = costindex;
|
|
|
RulesInfo.value = item;
|
|
RulesInfo.value = item;
|
|
|
api.agreementApi.AgreementFeeById(id).then((res: any) => {
|
|
api.agreementApi.AgreementFeeById(id).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
@@ -743,6 +761,30 @@ const costitemDel = (id: string) => {
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+//删除费用
|
|
|
|
|
+const costitemCopy = (costId: string) => {
|
|
|
|
|
+ ElMessageBox.confirm(
|
|
|
|
|
+ '确定要复制该费用,请确认是否复制?',
|
|
|
|
|
+ '复制费用',
|
|
|
|
|
+ {
|
|
|
|
|
+ confirmButtonText: '确定复制',
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ center: true,
|
|
|
|
|
+ confirmButtonClass: 'el-button--primary',
|
|
|
|
|
+ }
|
|
|
|
|
+ ).then(() => {
|
|
|
|
|
+ api.agreementApi.AgreementFeecopy({ costId }).then((res: any) => {
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ agreementRulesList();
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ plain: true,
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
interface rulesAttrListInfo {
|
|
interface rulesAttrListInfo {
|
|
|
id: string,
|
|
id: string,
|
|
|
agreementId: string,
|
|
agreementId: string,
|