外部署名推荐审批流程
This commit is contained in:
@@ -0,0 +1,376 @@
|
|||||||
|
<!--外部署名推荐审批流程-->
|
||||||
|
<template>
|
||||||
|
<div class="wbsmStep1">
|
||||||
|
<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;">
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="tableTitle">
|
||||||
|
<div class="tableButton">
|
||||||
|
<el-button plain class="common-button-primary" size="mini" @click="addList">添加</el-button>
|
||||||
|
<el-button plain class="common-button-primary" size="mini" @click="deleteList">批量删除</el-button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="entryTable"
|
||||||
|
height="49%"
|
||||||
|
@selection-change="selectedDelete"
|
||||||
|
style="width: 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 prop="standSerialNumber" label="标准号" show-overflow-tooltip align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="productName" label="标准类别" align="center" show-overflow-tooltip>
|
||||||
|
<template>
|
||||||
|
<el-select v-model="dataList.productName" placeholder="请选择标准类别">
|
||||||
|
<el-option
|
||||||
|
v-for="item in standOptions"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="itemsNum" label="推荐署名人及单位" align="center"/>
|
||||||
|
<el-table-column prop="itemsName" label="署名人所在单位" align="center"/>
|
||||||
|
<el-table-column prop="planCloseTime" label="推荐署名原因" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="itemsNum" label="费用" align="center"/>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="回执说明">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="textarea">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-collapse-item>
|
||||||
|
</el-collapse>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '2'">
|
||||||
|
<div class="block" style="padding-top: 20px;">
|
||||||
|
<el-timeline>
|
||||||
|
<el-form
|
||||||
|
ref="Form"
|
||||||
|
:model="roleForm"
|
||||||
|
:rules="roleFormRules"
|
||||||
|
class="label-input-form">
|
||||||
|
<el-timeline-item timestamp="发起流程" placement="top" :color="roleForm.startUser ? '#66b1ff' : ''">
|
||||||
|
<el-card>
|
||||||
|
<el-form-item prop="startUserName" style="margin-bottom: 0">
|
||||||
|
<h4>标准法规工程师</h4>
|
||||||
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
|
<el-input v-model="roleForm.prcCreateUser" style="display: none;"></el-input>
|
||||||
|
<el-input v-model="roleForm.prcCreateUserName" placeholder="流程发起人"
|
||||||
|
disabled></el-input>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-card>
|
||||||
|
</el-timeline-item>
|
||||||
|
<el-timeline-item timestamp="选择署名人领导,填写意见" placement="top"
|
||||||
|
:color="roleForm.dockUser ? '#66b1ff' : ''" >
|
||||||
|
<el-card>
|
||||||
|
<el-form-item prop="dockUserName" style="margin-bottom: 0">
|
||||||
|
<h4>署名人领导</h4>
|
||||||
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
|
<el-input v-model="roleForm.dockUser" style="display: none;"></el-input>
|
||||||
|
<el-input v-model="roleForm.dockUserName" placeholder="选择署名人领导"
|
||||||
|
@click.native="choiceZRR('dockUser'), '选择署名人领导', roleForm.dockUser">
|
||||||
|
</el-input>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-card>
|
||||||
|
</el-timeline-item>
|
||||||
|
<el-timeline-item timestamp="标准法规部部长审批" placement="top"
|
||||||
|
:color="roleForm.ministerUser ? '#66b1ff' : ''" >
|
||||||
|
<el-card>
|
||||||
|
<el-form-item prop="ministerUserName" style="margin-bottom: 0">
|
||||||
|
<h4>标准法规部部长</h4>
|
||||||
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
|
<el-input v-model="roleForm.ministerUser" style="display: none;"></el-input>
|
||||||
|
<el-input v-model="roleForm.ministerUserName" placeholder="选择标准法规部部长"
|
||||||
|
@click.native="choiceZRR('ministerUser'), '选择标准法规部部长', roleForm.ministerUser" ></el-input>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-card>
|
||||||
|
</el-timeline-item>
|
||||||
|
<el-timeline-item timestamp="技术管理中心主任审批" placement="top"
|
||||||
|
:color="roleForm.directorUser ? '#66b1ff' : ''">
|
||||||
|
<el-card>
|
||||||
|
<el-form-item prop="directorUserName" style="margin-bottom: 0">
|
||||||
|
<h4>技术管理中心主任</h4>
|
||||||
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
|
<el-input v-model="roleForm.directorUser" style="display: none;"></el-input>
|
||||||
|
<el-input v-model="roleForm.directorUserName" placeholder="选择技术管理中心主任"
|
||||||
|
@click.native="choiceZRR('directorUser', '选择技术管理中心主任', roleForm.directorUser)"></el-input>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-card>
|
||||||
|
</el-timeline-item>
|
||||||
|
<el-timeline-item timestamp="工程研究总院院长/FU/BU/SBU领导审批" placement="top"
|
||||||
|
:color="roleForm.directorUser ? '#66b1ff' : ''">
|
||||||
|
<el-card>
|
||||||
|
<el-form-item prop="presidentName" style="margin-bottom: 0">
|
||||||
|
<h4>工程研究总院院长/FU/BU/SBU领导</h4>
|
||||||
|
<div style="margin-top: 10px;width: 300px;">
|
||||||
|
<el-input v-model="roleForm.president" style="display: none;"></el-input>
|
||||||
|
<el-input v-model="roleForm.presidentName" placeholder="选择工程研究总院院长/FU/BU/SBU领导"
|
||||||
|
@click.native="choiceZRR('president', '工程研究总院院长/FU/BU/SBU领导', roleForm.president)"></el-input>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-card>
|
||||||
|
</el-timeline-item>
|
||||||
|
</el-form>
|
||||||
|
</el-timeline>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="modalshowflag"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { startProcess, completeTask, saveTaskFirst, queryTaskFirst } from '@/api/process.js'
|
||||||
|
export default {
|
||||||
|
name: "wbsmStep1",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
textarea: '', // 意见
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
dataList: [],
|
||||||
|
taskID: '',
|
||||||
|
deleteDataList: [],
|
||||||
|
drawerTitle: "", //drawer标题
|
||||||
|
modalshowflag: false, // 选择人员drawer开关
|
||||||
|
nodeList: [], //存放人员信息数组
|
||||||
|
standOptions: [], //标准类别
|
||||||
|
roleForm: {
|
||||||
|
prcCreateUserName: this.$store.getters.userInfo.userName,
|
||||||
|
prcCreateUser: this.$store.getters.userInfo.userId,
|
||||||
|
dockUser: "",
|
||||||
|
ministerUser: "" ,
|
||||||
|
directorUser: "",
|
||||||
|
president: "",
|
||||||
|
dockUserName: "",
|
||||||
|
ministerUserName: "" ,
|
||||||
|
directorUserName: "",
|
||||||
|
presidentName: '',
|
||||||
|
},
|
||||||
|
//必填人员校验规则
|
||||||
|
roleFormRules: {
|
||||||
|
dockUserName: [
|
||||||
|
{required: true, message: "请选择署名人领导", trigger: "change"}
|
||||||
|
],
|
||||||
|
ministerUserName: [
|
||||||
|
{required: true, message: "请选择标准法规部部长", trigger: "change"}
|
||||||
|
],
|
||||||
|
directorUserName: [
|
||||||
|
{required: true, message: "请选择技术管理中心主任", trigger: "change"}
|
||||||
|
],
|
||||||
|
presidentName: [
|
||||||
|
{required: true, message: "请选择工程研究总院院长/FU/BU/SBU领导", trigger: "change"}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
//从数据库中查询下拉框数据
|
||||||
|
this.$http.get('sys/dictype/getDicTypeListCode', '',{
|
||||||
|
_this:this
|
||||||
|
},res =>{
|
||||||
|
this.standOptions = res.data.STANDCLASSIFY
|
||||||
|
}, e => {
|
||||||
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
//点击新增事件
|
||||||
|
addList() {
|
||||||
|
},
|
||||||
|
// 批量删除按钮table,选择数据
|
||||||
|
selectedDelete(val) {
|
||||||
|
this.deleteDataList = []
|
||||||
|
for (let i = 0; i < val.length; i++) {
|
||||||
|
this.deleteDataList.push(val[i].id);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 点击批量删除事件
|
||||||
|
deleteList() {
|
||||||
|
},
|
||||||
|
// 点击查看
|
||||||
|
handlePreview (item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: 'OtherStandardDetails',
|
||||||
|
params: {
|
||||||
|
id: item.standId,
|
||||||
|
pageType: item.standType + '_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
|
||||||
|
// 保存按钮
|
||||||
|
handleSave() {
|
||||||
|
this.saveLoading = true
|
||||||
|
let _formData = new FormData()
|
||||||
|
_formData.append('id', this.bpnId || '')
|
||||||
|
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
|
_formData.append('createUserName', this.$store.getters.userInfo.userName)
|
||||||
|
_formData.append('prcType', '8')
|
||||||
|
_formData.append('json', JSON.stringify({
|
||||||
|
roleForm: this.roleForm,
|
||||||
|
dataList: this.dataList,
|
||||||
|
commentText: this.commentText
|
||||||
|
}))
|
||||||
|
saveTaskFirst(_formData).then(res => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
this.bpnId = res.result
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 提交按钮
|
||||||
|
handleSubmit() {
|
||||||
|
},
|
||||||
|
// 流程阶段负责人选择
|
||||||
|
choiceZRR(type, title, id) {
|
||||||
|
this.nodeList = [];
|
||||||
|
this.nodeList.push(id);
|
||||||
|
this.type = type;
|
||||||
|
this.drawerTitle = title;
|
||||||
|
this.modalshowflag = true;
|
||||||
|
},
|
||||||
|
checkedRole (data) {
|
||||||
|
if (this.type === "dockUser") {
|
||||||
|
this.roleForm.dockUser = data[0].id;
|
||||||
|
this.roleForm.dockUserName = data[0].name;
|
||||||
|
} else if (this.type === "directorUser") {
|
||||||
|
this.roleForm.directorUser = data[0].id;
|
||||||
|
this.roleForm.directorUserName = data[0].name;
|
||||||
|
}else if(this.type === 'ministerUser'){
|
||||||
|
this.roleForm.ministerUser = data[0].id;
|
||||||
|
this.roleForm.ministerUserName = data[0].name;
|
||||||
|
}else if(this.type === 'president'){
|
||||||
|
this.roleForm.president = data[0].id;
|
||||||
|
this.roleForm.presidentName = data[0].name;
|
||||||
|
}
|
||||||
|
this.modalshowflag = false;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.wbsmStep1 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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-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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,519 @@
|
|||||||
|
<template>
|
||||||
|
<div class="wfhxzgStep2">
|
||||||
|
<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;">
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
ref="entryTable"
|
||||||
|
height="49%"
|
||||||
|
@selection-change="selectedDelete"
|
||||||
|
style="width: 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 prop="standSerialNumber" label="标准号" show-overflow-tooltip align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="productName" label="标准类别" align="center" show-overflow-tooltip>
|
||||||
|
<!-- <template>-->
|
||||||
|
<!-- <el-select v-model="dataList.productName" placeholder="请选择标准类别">-->
|
||||||
|
<!-- <el-option-->
|
||||||
|
<!-- v-for="item in standOptions"-->
|
||||||
|
<!-- :key="item.value"-->
|
||||||
|
<!-- :label="item.label"-->
|
||||||
|
<!-- :value="item.value">-->
|
||||||
|
<!-- </el-option>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
|
<!-- </template>-->
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="itemsNum" label="推荐署名人及单位" align="center"/>
|
||||||
|
<el-table-column prop="itemsName" label="署名人所在单位" align="center"/>
|
||||||
|
<el-table-column prop="planCloseTime" label="推荐署名原因" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-input></el-input>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="itemsNum" label="费用" align="center"/>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<el-collapse accordion>
|
||||||
|
<el-collapse-item title="回执说明">
|
||||||
|
<div style="margin: 10px 0;">
|
||||||
|
<el-input
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
resize="none"
|
||||||
|
placeholder="请输入意见"
|
||||||
|
v-model="textarea">
|
||||||
|
</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") : "" }}</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") : "" }}</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>
|
||||||
|
<ProcessFooter
|
||||||
|
show-save
|
||||||
|
show-submit
|
||||||
|
show-transfer
|
||||||
|
:submitLoading="isSubmit"
|
||||||
|
:saveLoading="saveLoading"
|
||||||
|
:transferLoading="turnLoading"
|
||||||
|
@transfer="handleTurnTo"
|
||||||
|
@save="handleSave"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<Role-tree
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
check-box
|
||||||
|
:is-visible.sync="modalshowflag"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
@checkedRole="drawerCheck"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
|
import { roleTreeData } from "@/api/unqualProcess.js"
|
||||||
|
import {completeTask, inboundLiaisonDetail, saveinboundTask, saveTaskForPub, changeAssigneeNew} from "@/api/process.js"
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "wbsmStep2",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
passInfo: 0,
|
||||||
|
detailData: [],
|
||||||
|
loading: false,
|
||||||
|
textarea: '', // 意见
|
||||||
|
title: '', // 新增编辑抽屉标题
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
userId: this.$route.query.taskAssignee,
|
||||||
|
nonSearch: {
|
||||||
|
standSerialNumber: '',
|
||||||
|
standId: '', // 标准号/名称
|
||||||
|
productName: '', // 项目名称
|
||||||
|
responsibleUnit: '' // 责任部门
|
||||||
|
},
|
||||||
|
active: '1', // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
turnLoading: false,
|
||||||
|
dataList: [],
|
||||||
|
endDataList: [],
|
||||||
|
lastDataList: [],
|
||||||
|
// 新增选择分发责任人数组
|
||||||
|
multipleSelection: [],
|
||||||
|
// 当前页数
|
||||||
|
pageNo: 1,
|
||||||
|
total: 0,
|
||||||
|
myLoading: false,
|
||||||
|
// 责任部门
|
||||||
|
zNodesSItem: [],
|
||||||
|
clearSelection: false,
|
||||||
|
nodeList: [],
|
||||||
|
drawerTitle: '', //drawer标题
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
roleForm: {
|
||||||
|
dutyUserInfo: [],
|
||||||
|
dutyUserInfoName: [],
|
||||||
|
dutyPeopleInfo: '',
|
||||||
|
dutyPeople: ''
|
||||||
|
},
|
||||||
|
rowDutyPeople: {},
|
||||||
|
props: { label: 'name', children: 'children', value: 'id', multiple: true, disabled: false },
|
||||||
|
dutyUserCaseData: [],
|
||||||
|
roleFormRules: {},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'name'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.processTable();
|
||||||
|
this.getData();
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
listNoDataText() {
|
||||||
|
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
nonSearch(val) {
|
||||||
|
this.nonSearch = val
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
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,
|
||||||
|
// standId: '', // 标准号/名称
|
||||||
|
// productName: '', // 项目名称
|
||||||
|
// responsibleUnit: '' // 责任部门
|
||||||
|
}
|
||||||
|
inboundLiaisonDetail(params).then(res => {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getFormFieldList (item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if (item.passInfo !== undefined) {
|
||||||
|
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
|
||||||
|
}
|
||||||
|
this.dataList = JSON.parse(JSON.stringify(item)).standardInfoList
|
||||||
|
this.textarea = JSON.parse(JSON.stringify(item)).commentText
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 批量选择分发责任人
|
||||||
|
dutyEngineerList(id) {
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.$message.warning("请选择至少一条数据进行分发责任人");
|
||||||
|
} else {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 每行选择负责人点击操作
|
||||||
|
clickOpen(val, id) {
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
this.rowDutyPeople = val
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
// 选择勾选项的集合
|
||||||
|
handleSelectionChange(value) {
|
||||||
|
this.multipleSelection = value
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
|
||||||
|
// 转办按钮
|
||||||
|
handleTurnTo() {
|
||||||
|
this.modalshowflag = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 保存按钮
|
||||||
|
handleSave() {
|
||||||
|
this.saveLoading = true
|
||||||
|
let _formData = new FormData()
|
||||||
|
_formData.append('taskIds', this.taskIds)
|
||||||
|
_formData.append('json', JSON.stringify({
|
||||||
|
// roleForm: this.roleForm,
|
||||||
|
standardInfoList: this.dataList,
|
||||||
|
commentText: this.commentText
|
||||||
|
}))
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.$message.success('保存成功')
|
||||||
|
this.bpnId = res.result
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 提交按钮
|
||||||
|
handleSubmit() {
|
||||||
|
this.isSubmit = true
|
||||||
|
let zqa = new Map();
|
||||||
|
for (let lastDataListElement of this.dataList) {
|
||||||
|
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
||||||
|
if( a == null){
|
||||||
|
a = {
|
||||||
|
id: lastDataListElement.dutyPeopleInfoId,
|
||||||
|
name: lastDataListElement.dutyPeopleInfo,
|
||||||
|
standardInfoList: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
a.standardInfoList.push(lastDataListElement);
|
||||||
|
zqa.set(a.id, a);
|
||||||
|
}
|
||||||
|
let list = [];
|
||||||
|
for(let item of zqa) {
|
||||||
|
list.push(item[1])
|
||||||
|
}
|
||||||
|
let json = {
|
||||||
|
dockUserList: list,
|
||||||
|
passInfo: this.passInfo
|
||||||
|
}
|
||||||
|
let flag=false
|
||||||
|
this.dataList.forEach(item => {
|
||||||
|
if (item.dutyPeopleInfo === '') {
|
||||||
|
flag=true
|
||||||
|
this.isSubmit = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if(flag)return this.$message.warning('请选择分发负责人填入')
|
||||||
|
const params = new FormData();
|
||||||
|
params.set('json', JSON.stringify(json))
|
||||||
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
|
params.set('taskIds', this.taskIds)
|
||||||
|
completeTask(params).then(res => {
|
||||||
|
if(res.success === true) {
|
||||||
|
this.$message.success('提交成功')
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
}).catch(e => {
|
||||||
|
this.isSubmit = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// 流程阶段负责人选择
|
||||||
|
choiceZRR (type, title, id) {
|
||||||
|
this.nodeList = []
|
||||||
|
this.nodeList.push(id)
|
||||||
|
this.type = type
|
||||||
|
this.drawerTitle = title
|
||||||
|
this.modalshowflag = true
|
||||||
|
},
|
||||||
|
drawerCheck (data) {
|
||||||
|
if (this.drawerTitle === '转办处理人') {
|
||||||
|
this.turnLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.taskIds, // 任务id
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
userId: this.userId, // 委托人
|
||||||
|
pId: this.pId // 流程实例
|
||||||
|
}).then(res =>{
|
||||||
|
if (res.success) {
|
||||||
|
this.turnLoading = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push("/processCenter")
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.roleRow = data[0]
|
||||||
|
// 选取负责人时的操作
|
||||||
|
if (this.multipleSelection.length === 0) {
|
||||||
|
this.rowDutyPeople.dutyPeopleInfo = this.roleRow.name
|
||||||
|
this.rowDutyPeople.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
}else {
|
||||||
|
this.multipleSelection.forEach(item => {
|
||||||
|
item.dutyPeopleInfo = this.roleRow.name
|
||||||
|
item.dutyPeopleInfoId = this.roleRow.id
|
||||||
|
})
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
}
|
||||||
|
this.lastDataList = this.dataList
|
||||||
|
// 选取流程信息完成
|
||||||
|
// this.roleForm.dutyUserInfoName = this.roleRow.name
|
||||||
|
}
|
||||||
|
this.modalshowflag = false
|
||||||
|
},
|
||||||
|
//查询按钮
|
||||||
|
/*getTableByPage({ standId, productName, responsibleUnit }) {//多条件和模糊查询
|
||||||
|
this.realList = this.dataList.filter(item => {
|
||||||
|
let matchId = true; // 标准号 筛选
|
||||||
|
let matchName = true; // 项目名称 筛选
|
||||||
|
let matchUnit = true; // 部门 筛选
|
||||||
|
|
||||||
|
if (standId) {
|
||||||
|
const keysId = standId
|
||||||
|
.toUpperCase() // 转大写
|
||||||
|
.replace(' ', '') // 删掉空格
|
||||||
|
.split('') // 切割成 单个字
|
||||||
|
matchId = keysId.every(key => item.standId.toUpperCase().includes(key));
|
||||||
|
}
|
||||||
|
if (productName) {
|
||||||
|
matchName = item.productName === productName;
|
||||||
|
}
|
||||||
|
if (responsibleUnit) {
|
||||||
|
matchUnit = item.responsibleUnit === responsibleUnit;
|
||||||
|
}
|
||||||
|
return matchId && matchName && matchUnit;
|
||||||
|
})
|
||||||
|
this.dataList = this.realList
|
||||||
|
},*/
|
||||||
|
// 点击查看
|
||||||
|
handlePreview (item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: 'OtherStandardDetails',
|
||||||
|
params: {
|
||||||
|
id: item.standId,
|
||||||
|
// pageType: 'FOREIGN_STAND'
|
||||||
|
pageType: item.standType + '_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
},
|
||||||
|
// 清空 查询条件
|
||||||
|
clearAllSearch () {
|
||||||
|
this.nonSearch = {
|
||||||
|
standId: '',
|
||||||
|
standSerialNumber: '',
|
||||||
|
productName: '',
|
||||||
|
responsibleUnit: ''
|
||||||
|
}
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
// 分页事件
|
||||||
|
pageChange (page) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
pageSizeChange () {
|
||||||
|
this.getTableByPage()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
.wfhxzgStep2 {
|
||||||
|
/deep/.el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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-center {
|
||||||
|
padding: 10px 0px 10px 10px;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -187,6 +187,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="size ? 6 : 8">
|
||||||
|
<el-card shadow="hover">
|
||||||
|
<div class="card-box" @click="handleCreateProcess('18')">
|
||||||
|
<div class="card-top">
|
||||||
|
<div class="card-top-left">
|
||||||
|
<img :src="getImg(Math.floor(Math.random() * 6))">
|
||||||
|
</div>
|
||||||
|
<div class="card-top-right">
|
||||||
|
<div class="card-top-right-text">外部署名推荐审批流程</div>
|
||||||
|
<div class="card-top-right-line"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
</el-col>
|
||||||
<!-- <!–严逸舟写的分割线–>-->
|
<!-- <!–严逸舟写的分割线–>-->
|
||||||
<!-- <el-col :span="size ? 6 : 8" v-btn-permission="">-->
|
<!-- <el-col :span="size ? 6 : 8" v-btn-permission="">-->
|
||||||
<!-- <el-card shadow="hover">-->
|
<!-- <el-card shadow="hover">-->
|
||||||
@@ -381,6 +396,12 @@ export default {
|
|||||||
name: 'zchhStep1'
|
name: 'zchhStep1'
|
||||||
})
|
})
|
||||||
break
|
break
|
||||||
|
case '18':
|
||||||
|
//外部署名推荐审批流程
|
||||||
|
this.$router.push({
|
||||||
|
name: 'wbsmStep1'
|
||||||
|
})
|
||||||
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkPermission(permissionIdArray) {
|
checkPermission(permissionIdArray) {
|
||||||
|
|||||||
@@ -1005,6 +1005,24 @@ const routes = [
|
|||||||
requireAuth: true,
|
requireAuth: true,
|
||||||
title: '政策课题会后流程'
|
title: '政策课题会后流程'
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/wbsmStep1',
|
||||||
|
name: 'wbsmStep1',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/wbsm/step1.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '外部署名推荐审批流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/wbsmStep2',
|
||||||
|
name: 'wbsmStep2',
|
||||||
|
component: () => import('@/pages/processCenter/pages/creatProcess/wbsm/step2.vue'),
|
||||||
|
meta: {
|
||||||
|
requireAuth: true,
|
||||||
|
title: '外部署名推荐审批流程'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user