|
|
@@ -19,7 +19,7 @@
|
|
|
<el-dropdown-item command="启用" v-if="agreementInfo.isEnable == '1'">启用</el-dropdown-item>
|
|
|
<el-dropdown-item command="禁用" v-else>禁用</el-dropdown-item>
|
|
|
<el-dropdown-item command="删除">删除</el-dropdown-item>
|
|
|
- <el-dropdown-item command="分配管理人">复制协议</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="复制协议">复制协议</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
</el-dropdown>
|
|
|
@@ -57,42 +57,47 @@
|
|
|
<el-descriptions-item label="协议生效时间:">{{ agreementInfo.startDate }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="协议失效时间:">{{ agreementInfo.endDate }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="是否含增值税结算:">
|
|
|
- {{ agreementInfo.withTax }}
|
|
|
+ {{ getDict('with_tax').find(val => val.value == agreementInfo.withTax)?.label }}
|
|
|
+
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="结算周期:">T{{ agreementInfo.moneyTime }} </el-descriptions-item>
|
|
|
<el-descriptions-item label="协议描述:">{{ agreementInfo.agreementName }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
<el-descriptions title="其他信息" class="m-top-20" :column="3">
|
|
|
<el-descriptions-item label="协议归属:">{{ agreementInfo.deptName }} </el-descriptions-item>
|
|
|
- <el-descriptions-item label="保险公司:"> {{ agreementInfo.companyId }}</el-descriptions-item>
|
|
|
- <el-descriptions-item label="协议类型:">{{ agreementInfo.agreementType }} </el-descriptions-item>
|
|
|
- <el-descriptions-item label="管理人:"> {{ agreementInfo.custodianId }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="保险公司:"> {{ agreementInfo.company }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="协议类型:">{{ getDict('agreement_type').find(val => val.value == agreementInfo.agreementType)?.label}} </el-descriptions-item>
|
|
|
+
|
|
|
+ <el-descriptions-item label="管理人:"> {{ agreementInfo.managerName }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="对接人:"> {{ agreementInfo.dockingPerson }} </el-descriptions-item>
|
|
|
<el-descriptions-item label="对接人手机号:"> {{ agreementInfo.dockingPhone }} </el-descriptions-item>
|
|
|
<el-descriptions-item label="出单账号:"> {{ agreementInfo.attributionId }} </el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
- <span class="strong" style="font-size: 16px;color: #303133;">协议文件</span>
|
|
|
- <span class="strong m-top-20 m-btn-10" style="display: block;">协议费用政策告知单</span>
|
|
|
- <div class="agreementNotice flex a-c j-s">
|
|
|
- <div class="flex a-c">
|
|
|
- <img src="../../../assets/images/pdf.png" alt="">
|
|
|
- <div class="flex f-c j-s">
|
|
|
- <span>{{ agreementInfo.fileName }}</span>
|
|
|
- <span>{{ agreementInfo.fileSize }}</span>
|
|
|
+ <div v-if="agreementInfo.fileUrl">
|
|
|
+ <span class="strong" style="font-size: 16px;color: #303133;">协议文件</span>
|
|
|
+ <span class="strong m-top-20 m-btn-10" style="display: block;">协议费用政策告知单</span>
|
|
|
+ <div class="agreementNotice flex a-c j-s">
|
|
|
+ <div class="flex a-c">
|
|
|
+ <img src="../../../assets/images/pdf.png" alt="">
|
|
|
+ <div class="flex f-c j-s">
|
|
|
+ <span>{{ agreementInfo.fileName }}</span>
|
|
|
+ <span>{{ agreementInfo.fileSize }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="fileBtn flex a-c">
|
|
|
- <el-upload :show-file-list="false" :auto-upload="false" accept=".pdf, .doc, .docx, .xls, .xlsx"
|
|
|
- @change="uploadImage($event)" style="display: flex; align-items: center;">
|
|
|
- <el-icon class="btn-icon">
|
|
|
- <Refresh />
|
|
|
+ <div class="fileBtn flex a-c">
|
|
|
+ <el-upload :show-file-list="false" :auto-upload="false" accept=".pdf, .doc, .docx, .xls, .xlsx"
|
|
|
+ @change="uploadImage($event)" style="display: flex; align-items: center;">
|
|
|
+ <el-icon class="btn-icon">
|
|
|
+ <Refresh />
|
|
|
+ </el-icon>
|
|
|
+ </el-upload>
|
|
|
+ <el-icon class="btn-icon" @click="Fileonload(agreementInfo.fileUrl, agreementInfo.fileName)">
|
|
|
+ <Download />
|
|
|
</el-icon>
|
|
|
- </el-upload>
|
|
|
- <el-icon class="btn-icon" @click="Fileonload(agreementInfo.fileUrl, agreementInfo.fileName)">
|
|
|
- <Download />
|
|
|
- </el-icon>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="费用管理" name="costManagement">
|
|
|
<span class="strong m-right-20">规则与费用</span>
|
|
|
@@ -188,10 +193,10 @@
|
|
|
</el-drawer>
|
|
|
<!-- 协议授权弹窗 -->
|
|
|
<auth-Drawer :Drawer="agreementAuthDrawer" @cancel="agreementAuthDrawer = false" @save="DrawerSave"
|
|
|
- @query="Drawerquery" :deptlist="deptauthList" :checkedKeys="checkedKeys" :checkedIds="checkedIds"></auth-Drawer>
|
|
|
+ @query="Drawerquery" @echoValue="echoValue" :deptlist="deptauthList" :checkedKeys="checkedKeys" :checkedIds="checkedIds"></auth-Drawer>
|
|
|
<!-- 规则条件弹窗 -->
|
|
|
- <RuleCondition v-if="ruleConditionVisible" :ruleConditionVisible="ruleConditionVisible"
|
|
|
- @cancel="ruleConditionVisible = false" @save="ruleConditionSave" :attrIdList="rulesAttrListInfo.rulesAttrList" />
|
|
|
+ <RuleCondition :ruleConditionVisible="ruleConditionVisible" @cancel="ruleConditionVisible = false"
|
|
|
+ @save="ruleConditionSave" :attrIdList="rulesAttrListInfo.rulesAttrList" />
|
|
|
<!-- 规则费用抽屉组件 -->
|
|
|
<ruleFeeDialog v-if="ruleFeeVisible" :ruleFeeVisible="ruleFeeVisible" :agreementInfo="agreementInfo"
|
|
|
:RulesInfo="RulesInfo" @save="ruleFeeSave" @cancel="ruleFeeVisible = false" />
|
|
|
@@ -209,7 +214,7 @@ import { ElMessage, ElMessageBox, DrawerProps, TabsInstance } from 'element-plus
|
|
|
import { ref, reactive } from 'vue'
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
import { loadDicts, getDict } from '@/utils/composables/dictService';//字典组件
|
|
|
-import { Fileonload, formatFileSize,processFileName } from '@/utils/composables/fileProcessing';//文件处理工具
|
|
|
+import { Fileonload, formatFileSize, processFileName } from '@/utils/composables/fileProcessing';//文件处理工具
|
|
|
import authDrawer from "./components/agreementAuth.vue";
|
|
|
import ruleFeeDialog from "./components/ruleFeeDialog.vue";
|
|
|
import ruleFeeDialogEdit from "./components/ruleFeeDialogEdit.vue";
|
|
|
@@ -238,8 +243,10 @@ onBeforeMount(async () => {
|
|
|
const detailsInfo = () => {
|
|
|
api.agreementApi.agreementGet(id.value).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
- res.data.agreement.fileName=processFileName(res.data.agreement.fileName)
|
|
|
- res.data.agreement.fileSize=formatFileSize(res.data.agreement.fileSize);
|
|
|
+ if (res.data.fileUrl) {
|
|
|
+ res.data.agreement.fileName = processFileName(res.data.agreement.fileName)
|
|
|
+ res.data.agreement.fileSize = formatFileSize(res.data.agreement.fileSize);
|
|
|
+ }
|
|
|
agreementInfo.value = res.data.agreement;
|
|
|
|
|
|
authDeptlength.value = res.data.dept.length;
|
|
|
@@ -268,8 +275,14 @@ const checkedIds = ref<string[]>([])//授权机构回显id
|
|
|
const Drawerquery = (name: any) => {
|
|
|
agreementAuth(name)
|
|
|
}
|
|
|
+//全选赋值
|
|
|
+const echoValue=(ids:any[])=>{
|
|
|
+ checkedKeys.value=ids;
|
|
|
+}
|
|
|
//授权保存
|
|
|
const DrawerSave = (list: any) => {
|
|
|
+ console.log(list)
|
|
|
+ return;
|
|
|
api.agreementApi.authSave({ deptIds: list, id: id.value }).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
ElMessage({
|
|
|
@@ -314,6 +327,7 @@ function getUncheckedIds(data: any[]): string[] {
|
|
|
|
|
|
//更多操作集合
|
|
|
const dropdownCommand = (e: any) => {
|
|
|
+ console.log(e)
|
|
|
switch (e) {
|
|
|
case '启用':
|
|
|
api.agreementApi.sysUpAndDown({ ids: [id.value], opType: '0' }).then((res: any) => {
|
|
|
@@ -382,6 +396,12 @@ const dropdownCommand = (e: any) => {
|
|
|
})
|
|
|
break;
|
|
|
case '复制协议':
|
|
|
+ router.push({
|
|
|
+ name: 'AgreementCopy',
|
|
|
+ query: {
|
|
|
+ id: id.value
|
|
|
+ }
|
|
|
+ })
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
@@ -487,6 +507,7 @@ const ruleEdit = (id: string) => {
|
|
|
api.agreementApi.agreementRulesGet(id).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
rulesAttrListInfo.rulesAttrList = processArray(res.data.costsAttrLinks);
|
|
|
+ console.log(rulesAttrListInfo.rulesAttrList)
|
|
|
} else {
|
|
|
}
|
|
|
});
|
|
|
@@ -623,11 +644,15 @@ const ruleFeeAdd = (item: any) => {
|
|
|
}
|
|
|
//费用提交
|
|
|
const ruleFeeSave = (data: object) => {
|
|
|
-
|
|
|
api.agreementApi.ptlAgreementCostsave(data).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
ruleFeeVisible.value = false;
|
|
|
} else {
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: res.msg,
|
|
|
+ plain: true,
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -644,9 +669,9 @@ const ruleFeeEditSave = (data: object) => {
|
|
|
});
|
|
|
}
|
|
|
//编辑删除费用
|
|
|
-const costitemEdit = (id: string, item: any) => {
|
|
|
+const costitemEdit = (id: string, item: any) => {
|
|
|
RulesInfo.value = item;
|
|
|
- api.agreementApi.AgreementFeeById(id).then((res: any) => {
|
|
|
+ api.agreementApi.AgreementFeeById(id).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
res.data.ruleConditions = processArray(res.data.ruleConditions);
|
|
|
ruleFeeHeaderTitle.value = res.data.productName;
|
|
|
@@ -695,7 +720,6 @@ const rulesAttrListInfo = reactive<rulesAttrListInfo>({
|
|
|
rulesAttrList: []
|
|
|
});//规则条件列表数据
|
|
|
const ruleConditionSave = (list: string[]) => {//获取规则条件选中集合
|
|
|
-
|
|
|
rulesAttrListInfo.rulesAttrList = list;
|
|
|
ruleConditionVisible.value = false;
|
|
|
}
|
|
|
@@ -716,7 +740,7 @@ const rulesAttrselectChange = (item: any) => {
|
|
|
}
|
|
|
//协议文件处理
|
|
|
//上传
|
|
|
-const uploadImage = (file: any) => {
|
|
|
+const uploadImage = (file: any) => {
|
|
|
let files = file.raw
|
|
|
const params = new FormData(); // 声明formData数据类型
|
|
|
params.append("file", files);
|