|
|
|
<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>
|
|
|
|
<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="warning" plain icon="el-icon-download" size="mini" @click="handleExport" v-hasPermi="['system:contract:export']" >导出</el-button >
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" ></right-toolbar>
|
|
|
|
</el-row> -->
|
|
|
|
<el-table v-loading="loading" :data="contractList" @selection-change="handleSelectionChange" >
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
<el-table-column label="合同编号" align="center" prop="contractno" width="100" />
|
|
|
|
<el-table-column label="合同名称" align="center" prop="contractName" width="200" />
|
|
|
|
<el-table-column label="合同类型" align="center" prop="contractType" width="100" />
|
|
|
|
<el-table-column label="合同金额" align="center" prop="contractAmount" width="100" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button type="text" size="mini" @click="handleContractAmount(scope.row)" >{{scope.row.contractAmount}}</el-button >
|
|
|
|
</template></el-table-column>
|
|
|
|
<el-table-column label="生效日期" align="center" prop="effectiveDate" width="100" >
|
|
|
|
<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="100" >
|
|
|
|
<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" width="200">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<a :href="scope.row.partyAAddress" target="_blank" style="color: #1890ff" >{{ scope.row.partyA }}</a >
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="乙方" align="center" prop="partyB" width="200">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<a :href="scope.row.partyBAddress" target="_blank" style="color: #1890ff" >{{ scope.row.partyB }}</a >
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="付款方式" align="center" prop="paymentMethod" width="200" />
|
|
|
|
<el-table-column label="签订日期" align="center" prop="signingDate" width="100" >
|
|
|
|
<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" width="200" />
|
|
|
|
<el-table-column label="合同状态" align="center" prop="status" width="200" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-tag v-if="scope.row.status == '0'">进行中</el-tag>
|
|
|
|
<el-tag type="danger" v-if="scope.row.status == '1'">已终止</el-tag>
|
|
|
|
<el-tag type="info" v-if="scope.row.status == '2'">已解除</el-tag>
|
|
|
|
<el-tag type="warning" v-if="scope.row.status == '3'">已完成</el-tag>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="用印合同" align="center" prop="seal_contract" width="100" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<img v-if="scope.row.sealContract" src="@/assets/images/PDF.png" @click="preview(scope.row.sealContract)" width="40px" height="auto" style="cursor: pointer" />
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="250" >
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button type="text" size="mini" icon="el-icon-star-off" @click="handleEvaluate(scope.row)" >履行评价</el-button >
|
|
|
|
<el-button type="text" size="mini" icon="el-icon-edit-outline" @click="handleEdit(scope.row)" >合同变更</el-button >
|
|
|
|
<el-button type="text" size="mini" icon="el-icon-edit-outline" @click="handleUnbind(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" >
|
|
|
|
<pdf :src="pdfUrl" type="application/pdf" width="100%" height="800px" v-if="pdfUrl" />
|
|
|
|
</el-dialog>
|
|
|
|
<!-- 合同变更 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
|
<el-form-item label="变更原因" prop="reasonChange">
|
|
|
|
<el-input v-model="form.reasonChange" placeholder="请输入变更原因" />
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="变更内容" prop="reasonText">
|
|
|
|
<el-input type="textarea" v-model="form.reasonText" placeholder="请输入变更内容" :row="3" />
|
|
|
|
</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>
|
|
|
|
<!-- 履行评价 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="showDialogEvaluate">
|
|
|
|
<el-table :data="tableData" style="width: 100%" border>
|
|
|
|
<el-table-column prop="content" label="内容" width="200"></el-table-column>
|
|
|
|
<el-table-column prop="description" label="评价描述" width="350">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-input v-model="scope.row.description" clearable />
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column prop="level" label="评价等级">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-radio v-model="scope.row.level" label="1">优秀</el-radio>
|
|
|
|
<el-radio v-model="scope.row.level" label="2">良好</el-radio>
|
|
|
|
<el-radio v-model="scope.row.level" label="3">一般</el-radio>
|
|
|
|
<el-radio v-model="scope.row.level" label="4">较差</el-radio>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<el-button :loading="buttonLoading" type="primary" @click="submitFormEvaluate">确 定</el-button >
|
|
|
|
<el-button @click="cancelEvaluate">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
<!-- 付款进度 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="showContractAmount" width="500px">
|
|
|
|
<el-table :data="ContractAmountList" >
|
|
|
|
<el-table-column prop="amountDate" label="日期" ></el-table-column>
|
|
|
|
<el-table-column prop="amount" label="已付/已收金额(元)" >
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import { listSealContract, getContract, delContract, addContract, updateContract} from "@/api/compliancemanagement/contract";
|
|
|
|
import { startProcess, stopProcess } from "@/api/workflow/process";
|
|
|
|
import pdf from 'vue-pdf';
|
|
|
|
export default {
|
|
|
|
name: "contractfiling",
|
|
|
|
dicts: ['wf_process_status'],
|
|
|
|
components: {
|
|
|
|
pdf,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
ContractAmountList:[
|
|
|
|
{amountDate:'2024-07-05',
|
|
|
|
amount:'100'},{amountDate:'2024-07-10',
|
|
|
|
amount:'100'}
|
|
|
|
],
|
|
|
|
showContractAmount:false,
|
|
|
|
tableData: [{
|
|
|
|
content: '合同规范性',
|
|
|
|
description: '',
|
|
|
|
level: ''
|
|
|
|
}, {
|
|
|
|
content: '质量',
|
|
|
|
description: '',
|
|
|
|
level: ''
|
|
|
|
}, {
|
|
|
|
content: '交期(工期)',
|
|
|
|
description: '',
|
|
|
|
level: ''
|
|
|
|
}, {
|
|
|
|
content: '成本',
|
|
|
|
description: '',
|
|
|
|
level: ''
|
|
|
|
},{
|
|
|
|
content: '合作配合情况',
|
|
|
|
description: '',
|
|
|
|
level: ''
|
|
|
|
}],
|
|
|
|
switchValue: true,
|
|
|
|
pdfUrl: "",
|
|
|
|
dialogVisibleContract: false,
|
|
|
|
baseUrl: process.env.VUE_APP_BASE_API + "/",
|
|
|
|
// 按钮loading
|
|
|
|
buttonLoading: false,
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
// 选中数组
|
|
|
|
ids: [],
|
|
|
|
// 非单个禁用
|
|
|
|
single: true,
|
|
|
|
// 非多个禁用
|
|
|
|
multiple: true,
|
|
|
|
// 显示搜索条件
|
|
|
|
showSearch: true,
|
|
|
|
// 总条数
|
|
|
|
total: 0,
|
|
|
|
// 【请填写功能名称】表格数据
|
|
|
|
contractList: [],
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
contractno: undefined,
|
|
|
|
contractName: undefined,
|
|
|
|
contractType: undefined,
|
|
|
|
contractAmount: undefined,
|
|
|
|
effectiveDate: undefined,
|
|
|
|
expirationDate: undefined,
|
|
|
|
partyA: undefined,
|
|
|
|
partyB: undefined,
|
|
|
|
paymentMethod: undefined,
|
|
|
|
signingDate: undefined,
|
|
|
|
subjectInformation: undefined,
|
|
|
|
attachments: undefined,
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
biangeng: [],
|
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
rules: {
|
|
|
|
contractno: [
|
|
|
|
{ required: true, message: "合同编号不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
contractName: [
|
|
|
|
{ required: true, message: "合同名称不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
contractType: [
|
|
|
|
{ required: true, message: "合同类型不能为空", trigger: "change" },
|
|
|
|
],
|
|
|
|
contractAmount: [
|
|
|
|
{ required: true, message: "合同金额不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
effectiveDate: [
|
|
|
|
{ required: true, message: "生效日期不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
expirationDate: [
|
|
|
|
{ required: true, message: "到期日期不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
partyA: [{ required: true, message: "甲方不能为空", trigger: "blur" }],
|
|
|
|
partyB: [{ required: true, message: "乙方不能为空", trigger: "blur" }],
|
|
|
|
paymentMethod: [
|
|
|
|
{ required: true, message: "付款方式不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
signingDate: [
|
|
|
|
{ required: true, message: "签订日期不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
subjectInformation: [
|
|
|
|
{ required: true, message: "标的物信息不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
attachments: [
|
|
|
|
{ required: true, message: "附件不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
reasonChange: [
|
|
|
|
{ required: true, message: "变更原因不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
reasonText: [
|
|
|
|
{ required: true, message: "变更内容不能为空", trigger: "blur" },
|
|
|
|
],
|
|
|
|
id: [{ required: true, message: "不能为空", trigger: "blur" }],
|
|
|
|
},
|
|
|
|
showDialogEvaluate:false,
|
|
|
|
showDialogUploadSealContract:false,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
handleUploadSealContract(row){
|
|
|
|
this.showDialogUploadSealContract = true
|
|
|
|
this.title = '上传用印合同'
|
|
|
|
},
|
|
|
|
beforeUpload(file) {
|
|
|
|
const isPDF = file.type === 'application/pdf';
|
|
|
|
const isLt5M = file.size / 1024 / 1024 < 5;
|
|
|
|
|
|
|
|
if (!isPDF) {
|
|
|
|
this.$message.error('只能上传 PDF 文件');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (!isLt5M) {
|
|
|
|
this.$message.error('上传文件大小不能超过 5MB');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 如果需要其他处理,可以在这里添加
|
|
|
|
|
|
|
|
return true; // 返回 true 允许上传
|
|
|
|
},
|
|
|
|
handleChange(file, fileList) {
|
|
|
|
this.fileList = fileList;
|
|
|
|
},
|
|
|
|
handleSuccess(response, file, fileList) {
|
|
|
|
// response 是上传成功后的响应数据
|
|
|
|
// 可以从中获取文件地址或文件名
|
|
|
|
// 假设后端返回的数据结构中有一个字段 url 表示文件地址
|
|
|
|
const fileUrl = response.data.fileNames;
|
|
|
|
// 将文件地址或文件名赋值给表单的字段
|
|
|
|
this.form.templatefile =fileUrl;
|
|
|
|
},
|
|
|
|
handleRemove(file, fileList) {
|
|
|
|
this.form.templatefile=''
|
|
|
|
console.log(file, fileList);
|
|
|
|
},
|
|
|
|
handlePreview(file) {
|
|
|
|
console.log(file);
|
|
|
|
},
|
|
|
|
handleExceed(files, fileList) {
|
|
|
|
this.$message.warning(
|
|
|
|
`当前限制上传 1 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
|
|
|
|
files.length + fileList.length
|
|
|
|
} 个文件`
|
|
|
|
);
|
|
|
|
},
|
|
|
|
beforeRemove(file, fileList) {
|
|
|
|
this.fileList = fileList;
|
|
|
|
if (file && file.status==="success") {
|
|
|
|
return this.$confirm(`确定移除 ${file.name}?`);
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
handleContractAmount(row){
|
|
|
|
this.showContractAmount = true
|
|
|
|
this.title = '进度'
|
|
|
|
|
|
|
|
},
|
|
|
|
// 更多操作触发
|
|
|
|
handleCommand(command, row) {
|
|
|
|
switch (command) {
|
|
|
|
case "handleAgain":
|
|
|
|
this.handleAgain(row);
|
|
|
|
break;
|
|
|
|
case "handleEvaluate":
|
|
|
|
this.handleEvaluate(row);
|
|
|
|
break;
|
|
|
|
case "handleEdit":
|
|
|
|
this.handleEdit(row);
|
|
|
|
break;
|
|
|
|
case "handleUnbind":
|
|
|
|
this.handleUnbind(row);
|
|
|
|
break;
|
|
|
|
case "handleDelete":
|
|
|
|
this.handleDelete(row);
|
|
|
|
break;
|
|
|
|
case "handleStop":
|
|
|
|
this.handleStop(row);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
handleUnbind(row){
|
|
|
|
console.log(row)
|
|
|
|
},
|
|
|
|
/** 查询【请填写功能名称】列表 */
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
listSealContract(this.queryParams).then((response) => {
|
|
|
|
this.contractList = response.rows;
|
|
|
|
this.total = response.total;
|
|
|
|
this.loading = false;
|
|
|
|
console.log(this.contractList);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 取消按钮
|
|
|
|
cancel() {
|
|
|
|
this.open = false;
|
|
|
|
this.reset();
|
|
|
|
},
|
|
|
|
//合同附件预览
|
|
|
|
preview(contract) {
|
|
|
|
this.dialogVisibleContract = true;
|
|
|
|
console.log("contract:", contract);
|
|
|
|
// this.pdfUrl = process.env.VUE_APP_BASE_API+contract;
|
|
|
|
this.pdfUrl = this.baseUrl+contract;
|
|
|
|
},
|
|
|
|
handleClose() {
|
|
|
|
this.pdfUrl = "";
|
|
|
|
this.dialogVisibleContract = false;
|
|
|
|
},
|
|
|
|
// 表单重置
|
|
|
|
reset() {
|
|
|
|
this.form = {
|
|
|
|
contractno: undefined,
|
|
|
|
contractName: undefined,
|
|
|
|
contractType: undefined,
|
|
|
|
contractAmount: undefined,
|
|
|
|
effectiveDate: undefined,
|
|
|
|
expirationDate: undefined,
|
|
|
|
partyA: undefined,
|
|
|
|
partyB: undefined,
|
|
|
|
paymentMethod: undefined,
|
|
|
|
signingDate: undefined,
|
|
|
|
subjectInformation: undefined,
|
|
|
|
attachments: undefined,
|
|
|
|
reasonChange: undefined,
|
|
|
|
reasonText: undefined,
|
|
|
|
id: 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;
|
|
|
|
},
|
|
|
|
/** 合同变更按钮操作 */
|
|
|
|
handleEdit(row) {
|
|
|
|
this.loading = true;
|
|
|
|
this.reset();
|
|
|
|
this.biangeng = row;
|
|
|
|
console.log("变更值:", this.biangeng);
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
getContract(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;
|
|
|
|
updateContract(this.form)
|
|
|
|
.then((response) => {
|
|
|
|
this.$modal.msgSuccess("合同变更成功,已重新启动流程");
|
|
|
|
this.open = false;
|
|
|
|
this.getList();
|
|
|
|
console.log("变更列表值:", this.biangeng);
|
|
|
|
this.handleAgain2(this.biangeng);
|
|
|
|
})
|
|
|
|
.finally(() => {
|
|
|
|
this.buttonLoading = false;
|
|
|
|
this.$router.push({
|
|
|
|
path: "/contract/compliancemanagement/contractmanagement/contract",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
this.$modal
|
|
|
|
.confirm('是否确认删除【请填写功能名称】编号为"' + ids + '"的数据项?')
|
|
|
|
.then(() => {
|
|
|
|
this.loading = true;
|
|
|
|
return delContract(ids);
|
|
|
|
})
|
|
|
|
.then(() => {
|
|
|
|
this.loading = false;
|
|
|
|
this.getList();
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
})
|
|
|
|
.catch(() => {})
|
|
|
|
.finally(() => {
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
this.download(
|
|
|
|
"system/contract/export",
|
|
|
|
{
|
|
|
|
...this.queryParams,
|
|
|
|
},
|
|
|
|
`contract_${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);
|
|
|
|
},
|
|
|
|
handleAgain2(row) {
|
|
|
|
console.log(row);
|
|
|
|
startProcess(row.procDefId, row).then((res) => {});
|
|
|
|
},
|
|
|
|
handleEvaluate(row){
|
|
|
|
// console.log('评价',row)
|
|
|
|
this.title = row.contractName
|
|
|
|
this.showDialogEvaluate = true
|
|
|
|
},
|
|
|
|
submitFormEvaluate(){
|
|
|
|
console.log(this.tableData)
|
|
|
|
this.showDialogEvaluate = false
|
|
|
|
},
|
|
|
|
cancelEvaluate(){
|
|
|
|
this.showDialogEvaluate = false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
/* switch按钮样式 */
|
|
|
|
.switch .el-switch__label {
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
color: #fff !important;
|
|
|
|
}
|
|
|
|
/*打开时文字位置设置*/
|
|
|
|
.switch .el-switch__label--right {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
/* 调整打开时文字的显示位子 */
|
|
|
|
.switch .el-switch__label--right span {
|
|
|
|
margin-right: 9px;
|
|
|
|
}
|
|
|
|
/*关闭时文字位置设置*/
|
|
|
|
.switch .el-switch__label--left {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
/* 调整关闭时文字的显示位子 */
|
|
|
|
.switch .el-switch__label--left span {
|
|
|
|
margin-left: 9px;
|
|
|
|
}
|
|
|
|
/*显示文字*/
|
|
|
|
.switch .el-switch__label.is-active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
/* 调整按钮的宽度 */
|
|
|
|
.switch.el-switch .el-switch__core,
|
|
|
|
.el-switch .el-switch__label {
|
|
|
|
width: 70px !important;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style> |
...
|
...
|
|