|
|
@@ -15,8 +15,16 @@
|
|
|
</template>
|
|
|
</el-button>
|
|
|
</RouterLink>
|
|
|
+ <el-button @click="selAgreement()">
|
|
|
+ 复制内部协议
|
|
|
+ <template #icon>
|
|
|
+ <el-icon>
|
|
|
+ <CopyDocument />
|
|
|
+ </el-icon>
|
|
|
+ </template>
|
|
|
+ </el-button>
|
|
|
<el-dropdown placement="bottom-start">
|
|
|
- <el-button > 批量管理<el-icon>
|
|
|
+ <el-button> 批量管理<el-icon>
|
|
|
<arrow-down />
|
|
|
</el-icon>
|
|
|
</el-button>
|
|
|
@@ -30,7 +38,7 @@
|
|
|
</el-dropdown>
|
|
|
</template>
|
|
|
<template v-slot:operation="scope">
|
|
|
- <el-button type="primary" link @click="agreementEdit(scope.operationData.id)">编辑</el-button>
|
|
|
+ <el-button type="primary" link @click="agreementEdit(scope.operationData.id)">编辑</el-button>
|
|
|
<el-button type="primary" link @click="agreemenUpdate(scope.operationData)"> 详情
|
|
|
</el-button>
|
|
|
<el-dropdown placement="bottom-start" trigger="click">
|
|
|
@@ -41,7 +49,7 @@
|
|
|
<el-dropdown-menu>
|
|
|
<el-dropdown-item @click="enable(scope.operationData.id)">启用</el-dropdown-item>
|
|
|
<el-dropdown-item @click="disable(scope.operationData.id)">禁用</el-dropdown-item>
|
|
|
- <el-dropdown-item @click="agreemenCopy(scope.operationData.id)">复制协议</el-dropdown-item>
|
|
|
+ <!-- <el-dropdown-item @click="agreemenCopy(scope.operationData.id)">复制协议</el-dropdown-item> -->
|
|
|
<el-dropdown-item @click="del(scope.operationData.id)">删除</el-dropdown-item>
|
|
|
<el-dropdown-item @click="batchAuthorization(scope.operationData.id)">协议授权</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
@@ -53,6 +61,19 @@
|
|
|
</template>
|
|
|
</ComplexTable>
|
|
|
</PageMain>
|
|
|
+ <el-dialog :close-on-click-modal="false" v-model="copyDialog" title="选中内部协议" width="600">
|
|
|
+ <el-form>
|
|
|
+ <el-form-item label="内部协议">
|
|
|
+ <el-select v-model="agreementCopyId" placeholder="请选择内部协议" filterable>
|
|
|
+ <el-option v-for="item in agreementList" :key="item.id" :value="item.id"
|
|
|
+ :label="item.agreementTitle"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <template #footer>
|
|
|
+ <el-button type="primary" @click="agreemenCopy()">确定</el-button>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
<auth-Drawer :Drawer="agreementAuthDrawer" @cancel=" agreementAuthDrawer = false" @save="DrawerSave"
|
|
|
@query="Drawerquery" :deptlist="deptauthList" :checkedKeys="checkedKeys" :checkedIds="checkedIds"></auth-Drawer>
|
|
|
</div>
|
|
|
@@ -95,10 +116,10 @@ const provinceoptions = ref<string[]>([])//省市区回显数据
|
|
|
const deptOptions = ref()//机构数据
|
|
|
let company_list = ref()
|
|
|
const companyIdprops = {
|
|
|
- expandTrigger: 'hover' as const,
|
|
|
- value: 'id',
|
|
|
- label: 'nameSimple',
|
|
|
- checkStrictly: true,
|
|
|
+ expandTrigger: 'hover' as const,
|
|
|
+ value: 'id',
|
|
|
+ label: 'nameSimple',
|
|
|
+ checkStrictly: true,
|
|
|
}
|
|
|
const agreement_type = ref();
|
|
|
const valid_status = ref();
|
|
|
@@ -125,9 +146,9 @@ const formInline = reactive({
|
|
|
takeEndDate: "",
|
|
|
loseStartDate: "",
|
|
|
loseEndDate: "",
|
|
|
- isExternal:'1',
|
|
|
- value1:[],
|
|
|
- value2:[],
|
|
|
+ isExternal: '1',
|
|
|
+ value1: [],
|
|
|
+ value2: [],
|
|
|
})
|
|
|
|
|
|
//表格字段数据
|
|
|
@@ -173,22 +194,22 @@ const fields = ref([
|
|
|
|
|
|
// 保险公司
|
|
|
const initCompany = () => {
|
|
|
- api.agreementApi.findTree({ name: "", systemCode: localStorage.getItem('login_system') }).then((res: any) => {
|
|
|
- if (res.code == '200') {
|
|
|
- company_list.value = res.data;
|
|
|
- } else {
|
|
|
- ElMessage({
|
|
|
- type: 'error',
|
|
|
- message: res.msg,
|
|
|
- plain: true,
|
|
|
- })
|
|
|
- }
|
|
|
- });
|
|
|
+ api.agreementApi.findTree({ name: "", systemCode: localStorage.getItem('login_system') }).then((res: any) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ company_list.value = res.data;
|
|
|
+ } else {
|
|
|
+ ElMessage({
|
|
|
+ type: 'error',
|
|
|
+ message: res.msg,
|
|
|
+ plain: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
//数据查询
|
|
|
function findpage() {
|
|
|
- let query = {...formInline}
|
|
|
+ let query = { ...formInline }
|
|
|
query.companyId = query.companyId[query.companyId.length - 1]
|
|
|
api.agreementApi.agreementList({ pages: pageInfo.value.pageNum, size: pageInfo.value.pageSize, ...query }).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
@@ -201,8 +222,10 @@ function findpage() {
|
|
|
});
|
|
|
}
|
|
|
const columns = [
|
|
|
- { prop: "agreementCode", label: "协议编号", width: '200', component: "RouterLink",
|
|
|
- formatter: (row: any) => ({ name: 'ExternalAgreementDetails', query: { id: row.id} }) },
|
|
|
+ {
|
|
|
+ prop: "agreementCode", label: "协议编号", width: '200', component: "RouterLink",
|
|
|
+ formatter: (row: any) => ({ name: 'ExternalAgreementDetails', query: { id: row.id } })
|
|
|
+ },
|
|
|
{
|
|
|
prop: "agreementTitle", label: "协议名称", width: '200',
|
|
|
},
|
|
|
@@ -233,7 +256,7 @@ const columns = [
|
|
|
prop: "validStatus", label: "生效状态", width: '120', component: "Tag",
|
|
|
formatter: (row: any) => {
|
|
|
let name = getDict('valid_status').find(val => val.value == row.validStatus).label
|
|
|
- if (name=='生效中') {
|
|
|
+ if (name == '生效中') {
|
|
|
return { type: 'primary', text: name };
|
|
|
} else {
|
|
|
return { type: 'danger', text: name };
|
|
|
@@ -322,12 +345,12 @@ function getUncheckedIds(data: any[]): string[] {
|
|
|
|
|
|
//编辑跳转
|
|
|
const agreementEdit = (id) => {
|
|
|
- router.push({
|
|
|
- name: 'ExternalagreementAdd',
|
|
|
- query: {
|
|
|
- id: id
|
|
|
- }
|
|
|
- })
|
|
|
+ router.push({
|
|
|
+ name: 'ExternalagreementAdd',
|
|
|
+ query: {
|
|
|
+ id: id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function agreemenUpdate(item: any) {
|
|
|
@@ -380,13 +403,15 @@ const enable = (value: string) => {
|
|
|
sysUpAndDown('0', [value]);
|
|
|
}
|
|
|
//复制协议
|
|
|
-const agreemenCopy = (id:string) => {
|
|
|
- router.push({
|
|
|
- name: 'AgreementCopy',
|
|
|
- query: {
|
|
|
- id: id
|
|
|
- }
|
|
|
- })
|
|
|
+const agreemenCopy = () => {
|
|
|
+ router.push({
|
|
|
+ name: 'AgreementCopy',
|
|
|
+ query: {
|
|
|
+ id: agreementCopyId.value,
|
|
|
+ type: 'outToInCopy'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ copyDialog.value = false
|
|
|
}
|
|
|
const del = (value: string) => {
|
|
|
ElMessageBox.confirm(
|
|
|
@@ -509,6 +534,19 @@ const getDeptTree = () => {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+const copyDialog = ref(false)
|
|
|
+const agreementCopyId = ref('')
|
|
|
+const agreementList = ref([])
|
|
|
+const selAgreement = () => {
|
|
|
+ agreementCopyId.value = '';
|
|
|
+ copyDialog.value = true;
|
|
|
+ api.agreementApi.agreementList({ size: 1000,isExternal:"0" }).then((res: any) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ agreementList.value = res.data.records;
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|