670 lines
20 KiB
Vue
670 lines
20 KiB
Vue
<template>
|
|
<div class="bzchStep5">
|
|
<ProcessHeader toggle>
|
|
<template slot="proName">外部标准化协会参会流程</template>
|
|
<template slot="proNode">汇总修订</template>
|
|
</ProcessHeader>
|
|
<div class="headerTabs">
|
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
|
</div>
|
|
<div class="content" v-show="active === '1'">
|
|
<div style="flex: auto; overflow: auto;">
|
|
<ProcessTitle>
|
|
<template slot="title">基础信息</template>
|
|
</ProcessTitle>
|
|
<div class="content_form">
|
|
<el-form class="label-input-form" ref="ch_pageData" :model="ch_pageData" :rules="ch_rules" label-width="120px">
|
|
<el-row :gutter="24">
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="会议名称:">
|
|
{{ ch_pageData.meetingName || '-' }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="主办单位:">
|
|
{{ ch_pageData.primaryUnit || '-' }}
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="协会名称:">
|
|
<span
|
|
v-for="item in ch_pageData.associaOptionsOne"
|
|
:key="item.id"
|
|
v-if="item.id === ch_pageData.associaName">
|
|
{{ item.name || '-'}}
|
|
</span>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="会议时间:">
|
|
{{ ch_pageData.meetingStartTime || '-' }}
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="会议地点:">
|
|
{{ ch_pageData.meetingPlace || '-' }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="费用标准:">
|
|
{{ ch_pageData.feeStand || '-' }}
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="费用列支:">
|
|
{{ ch_pageData.feeKind || '-' }}
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="10">
|
|
<el-form-item class="add-form-item" label="上传附件:" prop="uploadFile">
|
|
<span v-if="uploadFileLength < 1">{{ '-' }}</span>
|
|
<div v-for="item in ch_pageData.fileTextList" :key="item.id" style="color: #409EFF;">
|
|
<a v-if="item.name.length > 30" style="cursor: pointer" @click="fileLook(item)">
|
|
{{ item.name.slice(0,30) + '...' }} {{ ';' }}
|
|
</a>
|
|
<a v-else style="cursor: pointer" @click="fileLook(item)">
|
|
{{ item.name }} {{ ';' }}
|
|
</a>
|
|
<el-button
|
|
size="mini"
|
|
@click="previews(item.id)"
|
|
icon="el-icon-download"
|
|
style="height: 25px; margin-left: 5px;"
|
|
></el-button>
|
|
</div>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row :gutter="24">
|
|
<el-col :span="8">
|
|
<el-form-item class="add-form-item" label="类别:">
|
|
<span v-if="ch_pageData.sort === '1'">计划内</span>
|
|
<span v-else>计划外</span>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-form-item class="add-form-item" label="议题:">
|
|
<el-table
|
|
class="meeting_table"
|
|
:data="ch_pageData.meetingTable"
|
|
border
|
|
ref="entryTable"
|
|
height="49%"
|
|
style="width: 100%"
|
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '20px'}">
|
|
<el-table-column type="index" width="50" align="center"/>
|
|
<el-table-column
|
|
label="议题"
|
|
align="center"
|
|
prop="meetingTheme">
|
|
<template slot-scope="scope">
|
|
<el-input v-model="scope.row.meetingTheme"/>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-form-item>
|
|
<el-form-item class="add-form-item" label="入会人员:">
|
|
<div class="myPart_btn">
|
|
<el-button
|
|
type="primary"
|
|
size="small"
|
|
@click="add_partForm">
|
|
新增</el-button>
|
|
<el-button
|
|
type="danger"
|
|
size="small"
|
|
@click="del_partForm">
|
|
批量删除
|
|
</el-button>
|
|
</div>
|
|
<el-table
|
|
:data="ch_pageData.myPartRole"
|
|
border
|
|
ref="entryTable"
|
|
@selection-change="selectedDelete"
|
|
height="49%"
|
|
style="width: 100%"
|
|
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '20px'}">
|
|
<el-table-column type="selection" width="55"/>
|
|
<el-table-column type="index" width="50" align="center"/>
|
|
<el-table-column prop="fillPeople" align="center" label="人员">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.fillPeople || '' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="fillUnit" align="center" label="单位">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.fillUnit || '' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="fillDept" align="center" label="部门">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.fillDept || '' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="fillTel" align="center" label="电话">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.fillTel || '' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="fillMail" align="center" label="邮箱">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.fillMail || '' }}
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
fixed="right"
|
|
label="操作"
|
|
align="center"
|
|
width="100">
|
|
<template slot-scope="scope">
|
|
<el-button type="primary" plain size="mini" @click="edit_partForm(scope.row)">编辑</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<el-collapse accordion>
|
|
<el-collapse-item title="回执说明">
|
|
<div style="margin: 10px 0;">
|
|
<el-input
|
|
type="textarea"
|
|
:rows="3"
|
|
resize="none"
|
|
placeholder="请输入意见"
|
|
v-model="commentText">
|
|
</el-input>
|
|
</div>
|
|
</el-collapse-item>
|
|
</el-collapse>
|
|
</div>
|
|
<div class="content" v-show="active === '3'">
|
|
<div class="flow-list">
|
|
<el-table
|
|
height="100%"
|
|
ref="selection"
|
|
:data="detailData"
|
|
tooltip-effect="dark"
|
|
style="width: 100%"
|
|
border
|
|
row-key="id"
|
|
:no-data-text="listNoDataText"
|
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
|
>
|
|
<el-table-column
|
|
type="selection"
|
|
width="55"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="name"
|
|
label="任务步骤"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="assignee"
|
|
label="任务受理人"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="createTime"
|
|
label="创建时间"
|
|
sortable="custom"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="endTime"
|
|
label="完成时间"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="comment"
|
|
label="流程信息"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.commentText }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="completeFlag"
|
|
label="状态"
|
|
align="center">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<loading :loading="loading">流程列表加载中</loading>
|
|
</div>
|
|
</div>
|
|
<el-drawer
|
|
title="编辑人员信息"
|
|
:visible.sync="editFlag"
|
|
size="500px"
|
|
custom-class="demo-drawer"
|
|
>
|
|
<div class="content_form" style="height: 100%">
|
|
<el-form class="label-input-form" ref="editForm" :model="editForm" label-width="80px">
|
|
<el-form-item class="add-form-item" label="参与人员:">
|
|
<el-input v-model="editForm.fillPeopleId" style="display: none;"></el-input>
|
|
<el-input
|
|
placeholder="请选择参与人员"
|
|
style="width: 50%"
|
|
@click.native="choiceRole('fillPeopleId','请选择入会成员',editForm.fillPeopleId,)"
|
|
v-model="editForm.fillPeople"
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item class="add-form-item" label="单位:">
|
|
<el-input v-model="editForm.fillUnit" placeholder=""></el-input>
|
|
</el-form-item>
|
|
<el-form-item class="add-form-item" label="部门:">
|
|
<el-input v-model="editForm.fillDept" placeholder=""></el-input>
|
|
</el-form-item>
|
|
<el-form-item class="add-form-item" label="电话:">
|
|
<el-input v-model="editForm.fillTel" placeholder=""></el-input>
|
|
</el-form-item>
|
|
<el-form-item class="add-form-item" label="邮箱:">
|
|
<el-input v-model="editForm.fillMail" placeholder=""></el-input>
|
|
</el-form-item>
|
|
</el-form>
|
|
</div>
|
|
<div class="demo-drawer-footer">
|
|
<el-button size="mini" @click="falseDrawer">取消</el-button>
|
|
<el-button type="primary" size="mini" @click="OkDrawer">确认</el-button>
|
|
</div>
|
|
</el-drawer>
|
|
<ProcessFooter
|
|
show-save
|
|
show-submit
|
|
:submitLoading="isSubmit"
|
|
:saveLoading="saveLoading"
|
|
@save="handleSave"
|
|
@submit="handleSubmit"
|
|
>
|
|
</ProcessFooter>
|
|
<Role-tree
|
|
check-box
|
|
is-title="选择入会人员"
|
|
:is-visible.sync="roleShowflag"
|
|
:nodeList="nodeList"
|
|
@checkedRole="drawerCheck"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ProcessHeader from "../../components/ProcessHeader";
|
|
import ProcessFooter from "../../components/ProcessFooter";
|
|
import ProcessTitle from "../../components/ProcessTitle";
|
|
import {saveTaskForPub, completeTask, inboundLiaisonDetail} from '@/api/process.js'
|
|
|
|
export default {
|
|
components: {
|
|
ProcessHeader,
|
|
ProcessFooter,
|
|
ProcessTitle
|
|
},
|
|
name: "bzchStep5",
|
|
data() {
|
|
return {
|
|
active: '1',
|
|
|
|
ch_pageData: {
|
|
myPartRole: [],
|
|
},
|
|
ch_rules: {},
|
|
textarea: '',
|
|
|
|
isSubmit: false,
|
|
saveLoading: false,
|
|
|
|
deleteDataList: [],
|
|
detailData: [],
|
|
loading: false,
|
|
|
|
taskIds: this.$route.query.taskIds,
|
|
pId: this.$route.query.prcId,
|
|
|
|
uploadFileLength: '',
|
|
commentText: '',
|
|
roleShowflag: false,
|
|
nodeList: [],
|
|
// 人员编辑
|
|
editFlag: false,
|
|
editForm: {
|
|
fillPeople: '',
|
|
fillUnit: '',
|
|
fillDept: '',
|
|
fillTel: '',
|
|
fillMail: '',
|
|
}
|
|
}
|
|
},
|
|
computed: {
|
|
listNoDataText() {
|
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
|
}
|
|
},
|
|
created() {
|
|
this.processTable()
|
|
this.getData()
|
|
},
|
|
methods: {
|
|
// 右上标签页面切换
|
|
handleTabs(name) {
|
|
this.active = name
|
|
},
|
|
processTable() {
|
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
|
prcNum: this.$route.query.prcNum,
|
|
sortWord: this.shunxu ? this.paixu : "",
|
|
shunxu: this.shunxu
|
|
}, {
|
|
loading: "loading",
|
|
_this: this
|
|
}, res => {
|
|
this.detailData = res
|
|
}, e => {
|
|
})
|
|
},
|
|
|
|
getData() {
|
|
const params = {
|
|
taskIds: this.taskIds,
|
|
pId: this.pId,
|
|
}
|
|
inboundLiaisonDetail(params).then(res => {
|
|
const processForm = JSON.parse(res.mesg)
|
|
this.getFormFieldList(processForm)
|
|
})
|
|
},
|
|
getFormFieldList(item) {
|
|
this.$nextTick(() => {
|
|
this.ch_pageData = JSON.parse(JSON.stringify(item)).ch_pageData
|
|
this.uploadFileLength = this.ch_pageData.fileTextList.length
|
|
this.roleForm = JSON.parse(JSON.stringify(item)).roleList
|
|
// this.ch_pageData.comityFileNum = this.fileTextList
|
|
})
|
|
},
|
|
/** 我司参与人员新增 */
|
|
add_partForm() {
|
|
var list = {
|
|
fillPeople: this.fillPeople,
|
|
fillUnit: this.fillUnit,
|
|
fillDept: this.fillDept,
|
|
fillTel: this.fillTel,
|
|
fillMail: this.fillMail,
|
|
}
|
|
this.ch_pageData.myPartRole.push(list)
|
|
},
|
|
// 编辑框确认按钮
|
|
OkDrawer() {
|
|
this.editFlag = false
|
|
},
|
|
falseDrawer() {
|
|
let Item = JSON.parse(localStorage.getItem('obj'))
|
|
this.editForm.fillPeopleId = Item.fillPeopleId
|
|
this.editForm.fillPeople = Item.fillPeople
|
|
this.editForm.fillUnit = Item.fillUnit
|
|
this.editForm.fillDept = Item.fillDept
|
|
this.editForm.fillTel = Item.fillTel
|
|
this.editForm.fillMail = Item.fillMail
|
|
this.editFlag = false
|
|
},
|
|
/** 入会人员编辑 */
|
|
edit_partForm(row) {
|
|
// 用来储存取消时原来的数据,防止取消时修改
|
|
localStorage.setItem('obj', JSON.stringify(row))
|
|
this.fileListData = row
|
|
this.editForm = row
|
|
this.editFlag = true
|
|
},
|
|
// 编辑框选人
|
|
choiceRole(type, title, id) {
|
|
this.nodeList = []
|
|
this.nodeList.push(id)
|
|
this.type = type
|
|
this.roleShowflag = true
|
|
},
|
|
drawerCheck(data) {
|
|
if (data.length > 0) {
|
|
this.fileListData.fillPeopleId = data[0].id
|
|
this.fileListData.fillPeople = data[0].name
|
|
}
|
|
this.roleShowflag = false
|
|
},
|
|
/** 批量删除 */
|
|
del_partForm() {
|
|
if (this.deleteDataList.length < 1) {
|
|
this.$message.warning("请选择一条数据进行删除");
|
|
} else {
|
|
this.$confirm("您确认删除这些数据?", "提示", {
|
|
confirmButtonText: "确认",
|
|
confirmButtonClass: "common-button-primary",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
}).then(() => {
|
|
let exits = [];
|
|
this.deleteDataList.map(item => {
|
|
let index;
|
|
index = this.ch_pageData.myPartRole.findIndex(items => {
|
|
return items === item;
|
|
});
|
|
if (index > -1) {
|
|
this.ch_pageData.myPartRole.splice(index, 1);
|
|
}
|
|
exits.push(item);
|
|
});
|
|
this.deleteDataList = [];
|
|
}).catch(() => {
|
|
});
|
|
}
|
|
},
|
|
|
|
selectedDelete(val) {
|
|
this.deleteDataList = val
|
|
},
|
|
// 保存按钮
|
|
handleSave() {
|
|
this.saveLoading = true
|
|
let _formData = new FormData()
|
|
_formData.append('taskIds', this.taskIds)
|
|
_formData.append('json', JSON.stringify({
|
|
ch_pageData: this.ch_pageData,
|
|
roleList: this.roleForm,
|
|
commentText: this.commentText
|
|
}))
|
|
saveTaskForPub(_formData).then(res => {
|
|
this.saveLoading = false
|
|
this.$message.success('保存成功')
|
|
this.bpnId = res.result
|
|
}).catch(e => {
|
|
this.saveLoading = false
|
|
})
|
|
},
|
|
// 提交按钮
|
|
handleSubmit() {
|
|
let json = {
|
|
leader: this.roleForm.leaderUserId,
|
|
ch_pageData: this.ch_pageData,
|
|
commentText: this.commentText,
|
|
roleList: this.roleForm,
|
|
}
|
|
this.$refs['ch_pageData'].validate((valid) => {
|
|
if (valid) {
|
|
this.isSubmit = true
|
|
const params = new FormData();
|
|
params.set('json', JSON.stringify(json))
|
|
params.set('userId', this.$store.getters.userInfo.userId)
|
|
params.set('taskId', this.taskIds)
|
|
completeTask(params).then(res => {
|
|
if (res.success === true) {
|
|
this.$message.success('提交成功')
|
|
this.$router.push("/processCenter");
|
|
}
|
|
this.isSubmit = false
|
|
});
|
|
}
|
|
})
|
|
|
|
},
|
|
// 预览
|
|
fileLook(file) { // 预览
|
|
const attId = file.id
|
|
this.$preview(attId)
|
|
},
|
|
/** 点击对应附件进行下载*/
|
|
previews(val) {
|
|
let attId = val
|
|
if (attId != null && attId !== "") {
|
|
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
|
}
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '~@/assets/styles/style';
|
|
|
|
.bzchStep5 {
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
/deep/ .el-drawer__container {
|
|
.prc-content-border {
|
|
border: none;
|
|
padding: 0 20px 0;
|
|
}
|
|
}
|
|
|
|
.headerTabs {
|
|
height: 52px;
|
|
display: flex;
|
|
align-items: center;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 10px;
|
|
|
|
.headerTabsItem {
|
|
border: 1px solid #c1c1c1;
|
|
padding: 0 5px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.active {
|
|
border: 1px solid #E6A23C;
|
|
color: #fff;
|
|
background: #E6A23C;
|
|
}
|
|
}
|
|
|
|
.content-center {
|
|
padding: 10px 0px 10px 10px;
|
|
}
|
|
|
|
.content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
height: calc(~'100% - 103px');
|
|
overflow: auto;
|
|
|
|
.tableTitle {
|
|
margin-bottom: 10px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
position: relative;
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
|
|
.tableButton {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content_form {
|
|
padding-top: 15px;
|
|
padding-left: 30px;
|
|
|
|
.el-divider--horizontal {
|
|
margin-top: 0px;
|
|
}
|
|
|
|
.meeting_table {
|
|
/deep/ .el-input__inner {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
/deep/ .el-table__body-wrapper {
|
|
height: auto !important;
|
|
}
|
|
|
|
/deep/ .el-textarea__inner {
|
|
font-family: inherit;
|
|
}
|
|
|
|
.meeting_table {
|
|
/deep/ .el-input__inner {
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
/deep/ .el-table th {
|
|
padding: 0px;
|
|
}
|
|
/deep/.el-form-item__content {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/deep/ .el-upload {
|
|
display: unset;
|
|
}
|
|
|
|
/deep/ .el-upload-list__item-status-label {
|
|
font-size: 0;
|
|
}
|
|
|
|
/deep/ .el-upload-list__item {
|
|
.el-icon-close {
|
|
font-size: 0;
|
|
}
|
|
|
|
.el-icon-close-tip {
|
|
font-size: 0;
|
|
}
|
|
}
|
|
|
|
.myPart_btn {
|
|
text-align: right;
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|