|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form-item label="合同编号" prop="contractno">
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.contractno"
|
|
|
|
placeholder="请输入合同编号"
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="合同名称" prop="contractName">
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.contractName"
|
|
|
|
placeholder="请输入合同名称"
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="到期日期" prop="expirationDate">
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="queryParams.expirationDate"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择到期日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="甲方" prop="partyA">
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.partyA"
|
|
|
|
placeholder="请输入甲方"
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="乙方" prop="partyB">
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.partyB"
|
|
|
|
placeholder="请输入乙方"
|
|
|
|
clearable
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="签订日期" prop="signingDate">
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="queryParams.signingDate"
|
|
|
|
type="date"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
placeholder="请选择签订日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
type="primary"
|
|
|
|
plain
|
|
|
|
icon="el-icon-plus"
|
|
|
|
size="mini"
|
|
|
|
@click="handleAdd"
|
|
|
|
v-hasPermi="['compliancemanagement:complianceReview:add']"
|
|
|
|
>新增</el-button>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
plain
|
|
|
|
icon="el-icon-edit"
|
|
|
|
size="mini"
|
|
|
|
:disabled="single"
|
|
|
|
@click="handleUpdate"
|
|
|
|
v-hasPermi="['compliancemanagement:complianceReview:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
</el-col>-->
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
type="danger"
|
|
|
|
plain
|
|
|
|
icon="el-icon-delete"
|
|
|
|
size="mini"
|
|
|
|
:disabled="multiple"
|
|
|
|
@click="handleDelete"
|
|
|
|
v-hasPermi="['compliancemanagement:complianceReview:remove']"
|
|
|
|
>删除</el-button>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
type="warning"
|
|
|
|
plain
|
|
|
|
icon="el-icon-download"
|
|
|
|
size="mini"
|
|
|
|
@click="handleExport"
|
|
|
|
v-hasPermi="['compliancemanagement:complianceReview:export']"
|
|
|
|
>导出</el-button>
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="complianceReviewList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column label="合同编号" align="center" prop="contractno" />
|
|
|
|
<el-table-column label="合同名称" align="center" prop="contractName" />
|
|
|
|
<el-table-column label="合同类型" align="center" prop="contractType" />
|
|
|
|
<el-table-column label="生效日期" align="center" prop="effectiveDate" width="180">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.effectiveDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="到期日期" align="center" prop="expirationDate" width="180">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.expirationDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="甲方" align="center" prop="partyA" />
|
|
|
|
<el-table-column label="乙方" align="center" prop="partyB" />
|
|
|
|
<el-table-column label="签订日期" align="center" prop="signingDate" width="180">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ parseTime(scope.row.signingDate, '{y}-{m}-{d}') }}</span>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="标的物信息" align="center" prop="subjectInformation" />
|
|
|
|
<el-table-column label="附件" align="center" prop="attachments" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<img v-if="scope.row.attachments" src="@/assets/images/PDF.png" @click="preview(scope.row.attachments)" width="40px" height="auto" style="cursor: pointer"/>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="合同状态" align="center" prop="status" />
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
size="mini"
|
|
|
|
icon="el-icon-tickets"
|
|
|
|
@click="handleFlowRecord(scope.row)"
|
|
|
|
v-hasPermi="['workflow:process:query']"
|
|
|
|
>详情</el-button
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
size="mini"
|
|
|
|
icon="el-icon-delete"
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
v-if="scope.row.finishTime"
|
|
|
|
v-hasPermi="['workflow:process:remove']"
|
|
|
|
>删除</el-button
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
size="mini"
|
|
|
|
icon="el-icon-circle-close"
|
|
|
|
@click="handleStop(scope.row)"
|
|
|
|
v-hasPermi="['workflow:process:cancel']"
|
|
|
|
>取消</el-button
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
size="mini"
|
|
|
|
icon="el-icon-refresh-right"
|
|
|
|
v-hasPermi="['workflow:process:start']"
|
|
|
|
@click="handleAgain(scope.row)"
|
|
|
|
>重新发起</el-button
|
|
|
|
>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
v-show="total>0"
|
|
|
|
:total="total"
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
<el-dialog title="合同预览" :visible.sync="dialogVisibleContract" width="50%" center :before-close="handleClose">
|
|
|
|
<vue-pdf :src="pdfUrl" type="application/pdf" width="100%" height="800px" />
|
|
|
|
</el-dialog>
|
|
|
|
<!-- 添加或修改合规审查对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form-item label="合同编号" prop="contractno">
|
|
|
|
<el-input v-model="form.contractno" placeholder="请输入合同编号" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="合同名称" prop="contractName">
|
|
|
|
<el-input v-model="form.contractName" placeholder="请输入合同名称" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="生效日期" prop="effectiveDate">
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="form.effectiveDate"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
placeholder="请选择生效日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="到期日期" prop="expirationDate">
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="form.expirationDate"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
placeholder="请选择到期日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="甲方" prop="partyA">
|
|
|
|
<el-input v-model="form.partyA" placeholder="请输入甲方" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="甲方链接地址" prop="partyAAddress">
|
|
|
|
<el-input v-model="form.partyAAddress" placeholder="请输入甲方链接地址" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="乙方" prop="partyB">
|
|
|
|
<el-input v-model="form.partyB" placeholder="请输入乙方" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="乙方链接地址" prop="partyBAddress">
|
|
|
|
<el-input v-model="form.partyBAddress" placeholder="请输入乙方链接地址" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="签订日期" prop="signingDate">
|
|
|
|
<el-date-picker clearable
|
|
|
|
v-model="form.signingDate"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
placeholder="请选择签订日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="标的物信息" prop="subjectInformation">
|
|
|
|
<el-input v-model="form.subjectInformation" placeholder="请输入标的物信息" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="附件" prop="attachments">
|
|
|
|
<el-input v-model="form.attachments" placeholder="请输入附件" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { listComplianceReview, getComplianceReview, delComplianceReview, addComplianceReview, updateComplianceReview } from "@/api/compliancemanagement/compliancereview";
|
|
|
|
import VuePdf from 'vue-pdf';
|
|
|
|
export default {
|
|
|
|
name: "ComplianceReview",
|
|
|
|
components: {
|
|
|
|
VuePdf
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
pdfUrl: '',
|
|
|
|
dialogVisibleContract:false,
|
|
|
|
baseUrl:process.env.VUE_APP_BASE_API+ '/',
|
|
|
|
// 按钮loading
|
|
|
|
buttonLoading: false,
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
// 非单个禁用
|
|
|
|
single: true,
|
|
|
|
// 非多个禁用
|
|
|
|
multiple: true,
|
|
|
|
// 显示搜索条件
|
|
|
|
showSearch: true,
|
|
|
|
// 总条数
|
|
|
|
total: 0,
|
|
|
|
// 合规审查表格数据
|
|
|
|
complianceReviewList: [],
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
contractno: undefined,
|
|
|
|
contractName: undefined,
|
|
|
|
contractType: undefined,
|
|
|
|
effectiveDate: undefined,
|
|
|
|
expirationDate: undefined,
|
|
|
|
partyA: undefined,
|
|
|
|
partyAAddress: undefined,
|
|
|
|
partyB: undefined,
|
|
|
|
partyBAddress: undefined,
|
|
|
|
signingDate: undefined,
|
|
|
|
subjectInformation: undefined,
|
|
|
|
attachments: undefined,
|
|
|
|
status: undefined,
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
id: [
|
|
|
|
{ required: true, message: "不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
contractno: [
|
|
|
|
{ required: true, message: "合同编号不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
contractName: [
|
|
|
|
{ required: true, message: "合同名称不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
contractType: [
|
|
|
|
{ required: true, message: "合同类型不能为空", trigger: "change" }
|
|
|
|
],
|
|
|
|
effectiveDate: [
|
|
|
|
{ required: true, message: "生效日期不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
expirationDate: [
|
|
|
|
{ required: true, message: "到期日期不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
partyA: [
|
|
|
|
{ required: true, message: "甲方不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
partyAAddress: [
|
|
|
|
{ required: true, message: "甲方链接地址不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
partyB: [
|
|
|
|
{ required: true, message: "乙方不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
partyBAddress: [
|
|
|
|
{ required: true, message: "乙方链接地址不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
signingDate: [
|
|
|
|
{ required: true, message: "签订日期不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
subjectInformation: [
|
|
|
|
{ required: true, message: "标的物信息不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
attachments: [
|
|
|
|
{ required: true, message: "附件不能为空", trigger: "blur" }
|
|
|
|
],
|
|
|
|
status: [
|
|
|
|
{ required: true, message: "合同状态:0已完成;1进行中;2已终止;3已解除不能为空", trigger: "change" }
|
|
|
|
],
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
/** 查询合规审查列表 */
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
listComplianceReview(this.queryParams).then(response => {
|
|
|
|
this.complianceReviewList = response.rows;
|
|
|
|
this.total = response.total;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
cancel() {
|
|
|
|
this.open = false;
|
|
|
|
this.reset();
|
|
|
|
},
|
|
|
|
//合同附件预览
|
|
|
|
preview(contract) {
|
|
|
|
this.dialogVisibleContract = true
|
|
|
|
console.log('contract:',contract)
|
|
|
|
this.pdfUrl = this.baseUrl + contract
|
|
|
|
},
|
|
|
|
handleClose() {
|
|
|
|
this.pdfUrl = ''
|
|
|
|
this.dialogVisibleContract = false
|
|
|
|
},
|
|
|
|
// 表单重置
|
|
|
|
reset() {
|
|
|
|
this.form = {
|
|
|
|
id: undefined,
|
|
|
|
contractno: undefined,
|
|
|
|
contractName: undefined,
|
|
|
|
contractType: undefined,
|
|
|
|
effectiveDate: undefined,
|
|
|
|
expirationDate: undefined,
|
|
|
|
partyA: undefined,
|
|
|
|
partyAAddress: undefined,
|
|
|
|
partyB: undefined,
|
|
|
|
partyBAddress: undefined,
|
|
|
|
signingDate: undefined,
|
|
|
|
subjectInformation: undefined,
|
|
|
|
attachments: undefined,
|
|
|
|
status: undefined,
|
|
|
|
createBy: undefined,
|
|
|
|
createTime: undefined,
|
|
|
|
updateBy: undefined,
|
|
|
|
updateTime: undefined
|
|
|
|
};
|
|
|
|
this.resetForm("form");
|
|
|
|
},
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
handleQuery() {
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
resetQuery() {
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
this.handleQuery();
|
|
|
|
},
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
this.single = selection.length!==1
|
|
|
|
this.multiple = !selection.length
|
|
|
|
},
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
this.reset();
|
|
|
|
this.open = true;
|
|
|
|
this.title = "添加合规审查";
|
|
|
|
},
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
handleUpdate(row) {
|
|
|
|
this.loading = true;
|
|
|
|
this.reset();
|
|
|
|
const id = row.id || this.ids
|
|
|
|
getComplianceReview(id).then(response => {
|
|
|
|
this.loading = false;
|
|
|
|
this.form = response.data;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改合规审查";
|
|
|
|
});
|
|
|
|
},
|
|
|
|
/** 提交按钮 */
|
|
|
|
submitForm() {
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
this.buttonLoading = true;
|
|
|
|
if (this.form.id != null) {
|
|
|
|
updateComplianceReview(this.form).then(response => {
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
}).finally(() => {
|
|
|
|
this.buttonLoading = false;
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
addComplianceReview(this.form).then(response => {
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
}).finally(() => {
|
|
|
|
this.buttonLoading = false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
this.$modal.confirm('是否确认删除合规审查编号为"' + ids + '"的数据项?').then(() => {
|
|
|
|
this.loading = true;
|
|
|
|
return delComplianceReview(ids);
|
|
|
|
}).then(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.getList();
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
}).catch(() => {
|
|
|
|
}).finally(() => {
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
this.download('compliancemanagement/complianceReview/export', {
|
|
|
|
...this.queryParams
|
|
|
|
}, `complianceReview_${new Date().getTime()}.xlsx`)
|
|
|
|
},
|
|
|
|
/** 流程流转记录 */
|
|
|
|
handleFlowRecord(row) {
|
|
|
|
console.log(row)
|
|
|
|
this.$router.push({
|
|
|
|
path: "/workflow/process/detail/" + row.procInsId,
|
|
|
|
query: {
|
|
|
|
processed: false,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
/** 取消流程申请 */
|
|
|
|
handleStop(row) {
|
|
|
|
const params = {
|
|
|
|
procInsId: row.procInsId,
|
|
|
|
};
|
|
|
|
stopProcess(params).then((res) => {
|
|
|
|
this.$modal.msgSuccess(res.msg);
|
|
|
|
this.getList();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
handleAgain(row) {
|
|
|
|
console.log(row)
|
|
|
|
startProcess(row.procDefId,row).then((res) =>{
|
|
|
|
if(res){
|
|
|
|
this.$modal.msgSuccess("流程重启动成功");
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$router.push({
|
|
|
|
path: "/workflow/process/start/" + row.deployId,
|
|
|
|
query: {
|
|
|
|
definitionId: row.procDefId,
|
|
|
|
procInsId: row.procInsId,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
// console.log(row);
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script> |
...
|
...
|
|