588 lines
18 KiB
Vue
588 lines
18 KiB
Vue
<template>
|
|
<div class="zdrzbzORzchgxxmsc-step7">
|
|
<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 === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>
|
|
</div>
|
|
<div class="content" v-show="active === '1'">
|
|
<div style="flex: auto; overflow: auto;">
|
|
<el-form
|
|
ref="zdrzbzORzchgxxmscForm"
|
|
:model="form"
|
|
:rules="formRules"
|
|
class="label-input-form"
|
|
label-width="210px"
|
|
>
|
|
<ProcessTitle>
|
|
<template slot="title">基础信息</template>
|
|
</ProcessTitle>
|
|
<!--这个div是事业部信息-->
|
|
<div style="height: 430px" v-if="feedbackDept === '1'">
|
|
<el-table
|
|
:data="infoTableDatas"
|
|
ref="multipleTable"
|
|
tooltip-effect="dark"
|
|
border
|
|
style="width: 100%;"
|
|
height="100%"
|
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '48px'}">
|
|
<el-table-column
|
|
type="selection"
|
|
width="55"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="lawCode"
|
|
label="标准编号/政策编号"
|
|
align="center"
|
|
width="150"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
show-overflow-tooltip
|
|
prop="lawName"
|
|
label="标准名称/政策名称"
|
|
min-width="150"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="productType"
|
|
sortable="custom"
|
|
width="120"
|
|
align="center"
|
|
label="产品类型">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="implTime"
|
|
sortable="custom"
|
|
align="center"
|
|
width="120"
|
|
label="实施日期">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="implRequire"
|
|
sortable="custom"
|
|
align="center"
|
|
width="120"
|
|
label="实施要求">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="conformSituation"
|
|
sortable="custom"
|
|
align="center"
|
|
width="130"
|
|
label="资源符合情况">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="devScheme"
|
|
sortable="custom"
|
|
align="center"
|
|
width="120"
|
|
label="开发计划">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="sopTime"
|
|
sortable="custom"
|
|
align="center"
|
|
width="120"
|
|
label="SOP时间">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="completeSituation"
|
|
sortable="custom"
|
|
align="center"
|
|
width="120"
|
|
label="完成情况">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="timeoutSituation"
|
|
sortable="custom"
|
|
align="center"
|
|
width="400"
|
|
label="SOP时间超过法规时限的空档期的业务应对方案">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="isRisk"
|
|
align="center"
|
|
width="120"
|
|
label="是否是风险项">
|
|
<template slot-scope="scope">
|
|
<el-select style="margin: 10px 0;" v-model="scope.row.isRisk" size="small" placeholder="请选择">
|
|
<el-option label="是" value="1"></el-option>
|
|
<el-option label="否" value="0"></el-option>
|
|
</el-select>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
<!--这个div是产品规划部信息-->
|
|
<div style="height: 430px" v-else-if="feedbackDept === '2'">
|
|
<el-table
|
|
ref="multipleTable"
|
|
tooltip-effect="dark"
|
|
border
|
|
style="width: 100%;"
|
|
height="100%"
|
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
|
fontWeight: 'bold', height: '48px'}">
|
|
<el-table-column
|
|
type="selection"
|
|
width="55"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
type="index"
|
|
label="序号"
|
|
width="55"
|
|
align="center">
|
|
</el-table-column>
|
|
<el-table-column
|
|
label="业务"
|
|
align="center"
|
|
width="150"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
show-overflow-tooltip
|
|
prop="standName"
|
|
label="平台"
|
|
min-width="150"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
show-overflow-tooltip
|
|
prop="standName"
|
|
label="项目"
|
|
min-width="150"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
show-overflow-tooltip
|
|
prop="standName"
|
|
label="项目描述"
|
|
min-width="150"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
show-overflow-tooltip
|
|
prop="standName"
|
|
label="当前节点"
|
|
min-width="150"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
show-overflow-tooltip
|
|
prop="standName"
|
|
label="概念状态"
|
|
min-width="150"
|
|
align="center"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="SSRQ"
|
|
align="center"
|
|
width="150"
|
|
label="概念计划下发时间">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="SSRQ"
|
|
align="center"
|
|
width="120"
|
|
label="概念修订计划">
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="SSRQ"
|
|
align="center"
|
|
width="400"
|
|
label="其他说明">
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
</el-form>
|
|
</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 === '2'">
|
|
<el-table
|
|
height="100%"
|
|
ref="selection"
|
|
:data="histortData"
|
|
tooltip-effect="dark"
|
|
style="width: 100%"
|
|
border
|
|
row-key="id"
|
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
|
<el-table-column
|
|
prop="name"
|
|
label="任务步骤"
|
|
align="center"
|
|
sortable="custom"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="assignee"
|
|
label="任务受理人"
|
|
align="center"
|
|
sortable="custom"
|
|
>
|
|
</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>
|
|
</div>
|
|
<ProcessFooter
|
|
show-submit
|
|
show-save
|
|
:submitLoading="isSubmit"
|
|
:saveLoading="saveLoading"
|
|
show-transfer
|
|
@transfer="handleTransfer"
|
|
@save="handleSave"
|
|
@submit="handleSubmit"
|
|
@back="handleSubmitNo"
|
|
>
|
|
</ProcessFooter>
|
|
<Role-tree
|
|
check-box
|
|
is-title="转办处理人"
|
|
:is-visible.sync="drawerModal"
|
|
@checkedRole="checkedRole"
|
|
></Role-tree>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ProcessHeader from "../../components/ProcessHeader";
|
|
import ProcessFooter from "../../components/ProcessFooter";
|
|
import ProcessTitle from "../../components/ProcessTitle";
|
|
import {inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew} from "api/process";
|
|
import axios from "axios";
|
|
|
|
export default {
|
|
name: "zdrzbzORzchgxxmscStep7",
|
|
data() {
|
|
return {
|
|
infoTableDatas: [],
|
|
//用来判断反馈情况的是哪个部门,1代表各事业部,2代表产品规划部,0代表其他部门
|
|
feedbackDept: "",
|
|
drawerModal: false,
|
|
histortData: [],
|
|
commentText: "",
|
|
taskIds: this.$route.query.taskIds,
|
|
pId: this.$route.query.prcId,
|
|
nodeList: [],
|
|
type: "",
|
|
modalshowflag: false, // drawer开关
|
|
drawerTitle: "", //drawer标题
|
|
textarea: "", // 意见
|
|
ListModel: false, // 新增编辑抽屉开关
|
|
active: "1", // 默认显示
|
|
isSubmit: false,
|
|
saveLoading: false,
|
|
form: {
|
|
cid: "", // 政策编号
|
|
endTime: "", // 责任部门领导审批 截止时间
|
|
cname: "", // 名称
|
|
fjList: [],
|
|
fjListId: '',
|
|
responUserList: "",
|
|
responUserListName: ""
|
|
},
|
|
formRules: {
|
|
responUserList: [
|
|
{required: true, message: "请选择责任人", trigger: "change"}
|
|
]
|
|
},
|
|
json: {}
|
|
};
|
|
},
|
|
components: {
|
|
ProcessHeader,
|
|
ProcessFooter,
|
|
ProcessTitle
|
|
},
|
|
methods: {
|
|
handleTransfer() {
|
|
this.drawerModal = true
|
|
},
|
|
checkedRole(data) {
|
|
changeAssigneeNew({
|
|
taskId: this.$route.query.taskIds, // 任务id
|
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
|
assignee: data[0].id, // 被委托人
|
|
pId: this.$route.query.prcId, // 流程实例
|
|
}).then(res => {
|
|
if (res.success) {
|
|
this.drawerModal = false
|
|
this.$message.success('调整成功')
|
|
this.processNum()
|
|
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
|
} else {
|
|
this.$message.warning(res.message)
|
|
}
|
|
})
|
|
},
|
|
// 请求转换流程图
|
|
processNum(row) {
|
|
axios.request({
|
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
|
responseType: 'blob',
|
|
method: 'get',
|
|
params: {
|
|
prcNum: this.$route.query.prcNum
|
|
}
|
|
}).then(res => {
|
|
this.processStep = window.URL.createObjectURL(res.data)
|
|
})
|
|
},
|
|
getHistoryData() {
|
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
|
prcNum: this.$route.query.prcNum
|
|
}, {}, res => {
|
|
this.histortData = res;
|
|
}, e => {
|
|
});
|
|
},
|
|
checkedRole2(data) {
|
|
var idList = "";
|
|
var nameList = "";
|
|
data.forEach(item => {
|
|
if (nameList.length > 0) {
|
|
nameList += ",";
|
|
idList += ",";
|
|
}
|
|
idList += item.id;
|
|
nameList += item.name;
|
|
});
|
|
this.form.responUserList = idList;
|
|
this.form.responUserListName = nameList;
|
|
|
|
},
|
|
choiceZRR() {
|
|
this.nodeList = [];
|
|
if (this.form.responUserList.length > 0) {
|
|
this.nodeList = this.form.responUserList.split(",");
|
|
}
|
|
this.modalshowflag = true;
|
|
},
|
|
handleTabs(name) {
|
|
this.active = name;
|
|
},
|
|
//保存事件
|
|
handleSave() {
|
|
this.saveLoading = true;
|
|
let _formData = new FormData();
|
|
_formData.append("id", this.bpnId || "");
|
|
_formData.append("prcType", "3");
|
|
_formData.append("taskIds", this.taskIds);
|
|
_formData.append("json", JSON.stringify({
|
|
form: this.form,
|
|
commentText: this.commentText
|
|
}));
|
|
saveTaskForPub(_formData).then(res => {
|
|
this.saveLoading = false;
|
|
this.$message.success("保存成功");
|
|
this.bpnId = res.result;
|
|
}).catch(e => {
|
|
this.saveLoading = false;
|
|
});
|
|
},
|
|
handleSubmit() {
|
|
this.$refs["zdrzbzORzchgxxmscForm"].validate((valid) => {
|
|
if (valid) {
|
|
let infoTableDatas = []
|
|
infoTableDatas = JSON.stringify(this.infoTableDatas)
|
|
this.isSubmit = true;
|
|
localStorage.setItem('infoTableDatas', JSON.stringify(this.infoTableDatas))
|
|
var json = this.json;
|
|
json.infoTableDatas = infoTableDatas
|
|
json.commentText = this.commentText;
|
|
json.responUserList = this.form.responUserList;
|
|
json.responUserListName = this.form.responUserListName;
|
|
json.introduce = false;
|
|
this.$http.post("lawss/activiti/completeTask", {
|
|
json: JSON.stringify(json),
|
|
taskId: this.taskIds,
|
|
userId: this.$store.getters.userInfo.userId
|
|
}, {}, res => {
|
|
if (res.success) {
|
|
this.$message.success("提交成功");
|
|
this.$router.push("/processCenter");
|
|
}
|
|
this.isSubmit = false;
|
|
});
|
|
} else {
|
|
return this.$message.warning("请完善基础信息");
|
|
}
|
|
});
|
|
},
|
|
handleSubmitNo() {
|
|
if (this.commentText) {
|
|
var json = this.json
|
|
json.actionFlag = 1
|
|
json.commentText = this.commentText
|
|
this.$http.post('lawss/activiti/completeTask', {
|
|
json: JSON.stringify(json),
|
|
taskId: this.taskIds,
|
|
userId: this.$store.getters.userInfo.userId
|
|
}, {}, res => {
|
|
if (res.success) {
|
|
this.$message.success('提交成功')
|
|
this.$router.push('/processCenter')
|
|
}
|
|
})
|
|
} else {
|
|
this.$message.warning('请输入反馈意见')
|
|
}
|
|
|
|
},
|
|
getData() {
|
|
return new Promise((resolve, reject) => {
|
|
inboundLiaisonDetail({
|
|
taskIds: this.taskIds,
|
|
pId: this.pId
|
|
}).then(res => {
|
|
let data = JSON.parse(res.mesg)
|
|
this.infoTableDatas = JSON.parse(data.infoTableDatas)
|
|
this.form.cid = data.cid
|
|
this.form.endTime = data.endTime
|
|
this.form.cname = data.cname
|
|
this.form.fjList = data.fjList
|
|
this.form.fjListId = data.fjListId
|
|
this.json = data
|
|
this.feedbackDept = this.json.feedbackDept
|
|
}).catch(e => {
|
|
});
|
|
});
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getHistoryData();
|
|
this.getData();
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
@import '~@/assets/styles/style';
|
|
|
|
.zdrzbzORzchgxxmsc-step7 {
|
|
/deep/ .el-drawer__container {
|
|
.prc-content-border {
|
|
border: none;
|
|
padding: 0 20px 0;
|
|
}
|
|
}
|
|
|
|
.fileClass {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fileClass:hover {
|
|
color: #0c91e5;
|
|
}
|
|
|
|
position: relative;
|
|
height: 100%;
|
|
|
|
.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 {
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|