This commit is contained in:
zhutianqi
2021-10-26 16:34:07 +08:00
parent 37702f435f
commit 7acba6aaaa
6 changed files with 1354 additions and 114 deletions
@@ -379,7 +379,6 @@ export default {
} else {
this.$message.warning('请选择要删除的数据')
}
},
addModal() {
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
@@ -1,18 +1,324 @@
<template>
<div class="zcch-step1">
<div>政策参会</div>
<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="qdqrForm"
:model="rhform"
:rules="formRules"
class="label-input-form"
label-width="210px"
>
<ProcessTitle>
<template slot="title">基础信息</template>
</ProcessTitle>
<div class="prc-content-border" v-if="foldFormFlag">
<el-row :gutter="24">
<el-col :span="24">
<el-form-item label="课题名称" prop="title" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.title"
placeholder="请输入课题名称"
clearable
></el-input>
</el-form-item>
<el-form-item label="课题主要研究内容" prop="content" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.content"
placeholder="请输入课题主要研究内容"
clearable
></el-input>
</el-form-item>
<el-form-item label="参会费用" prop="price" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.price"
placeholder="请输入参会费用"
clearable
></el-input>
</el-form-item>
<el-form-item label="参会时间" prop="price" class="add-form-item form-item-disabled">
<el-date-picker
v-model="rhform.time2"
type="datetime"
placeholder="请选择完成时间">
</el-date-picker>
</el-form-item>
<el-form-item label="参会地点" prop="place" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.place"
placeholder="请输入参会地点"
clearable
></el-input>
</el-form-item>
<el-form-item label="承办单位" prop="Company" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.Company"
placeholder="请输入承办单位"
clearable
></el-input>
</el-form-item>
<el-form-item label="会议通知" prop="modelNameList" class="add-form-item form-item-disabled">
<el-button
type="primary"
class="common-button-primary"
size="mini">
点击上传
</el-button>
</el-form-item>
<el-form-item label="课题研究周期" prop="time" class="add-form-item form-item-disabled">
<el-date-picker
v-model="rhform.time"
type="datetimerange"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</div>
<el-button style="width: 100%" icon="el-icon-caret-top" @click="foldForm">{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}</el-button>
</el-form>
<ProcessTitle>
<template slot="title">外部信息</template>
</ProcessTitle>
<div class="action-bar">
<el-button type="primary" class="common-button-primary add-button" size="mini">
添加
</el-button>
<el-button type="primary" class="common-button-primary add-button" size="mini">
批量删除
</el-button>
</div>
<el-table border
ref="selection"
:data="data1"
tooltip-effect="dark"
style="width: 100%;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange1"
row-key="id">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column
prop="itemsNum"
label="联络人"
width="150"
align="center">
</el-table-column>
<el-table-column
prop="itemsName"
label="单位"
align="center">
</el-table-column>
<el-table-column
prop="itermsConditions"
label="电话"
width="200"
align="center">
</el-table-column>
<el-table-column
label="邮箱"
width="350"
align="center">
</el-table-column>
</el-table>
<ProcessTitle>
<template slot="title">内部信息</template>
</ProcessTitle>
<div class="action-bar">
<el-button type="primary" class="common-button-primary add-button" size="mini">
添加
</el-button>
<el-button type="primary" class="common-button-primary add-button" size="mini">
批量删除
</el-button>
</div>
<el-table border
ref="selection"
:data="data2"
tooltip-effect="dark"
style="width: 100%;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange2"
row-key="id">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column
prop="itemsNum"
label="我司在工作组排名顺序"
width="170"
align="center">
</el-table-column>
<el-table-column
prop="itemsName"
label="我司成员"
width="150"
align="center">
</el-table-column>
<el-table-column
prop="itermsConditions"
label="单位"
align="center">
</el-table-column>
<el-table-column
label="部门"
width="150"
align="center">
</el-table-column>
<el-table-column
label="电话"
width="200"
align="center">
</el-table-column>
<el-table-column
label="邮箱"
width="300"
align="center">
</el-table-column>
<el-table-column
label="身份"
width="150"
align="center">
</el-table-column>
<el-table-column
label="资料"
width="200"
align="center">
</el-table-column>
</el-table>
</div>
</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.applyUserId ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="applyUserId" style="margin-bottom: 0">
<h4>流程发起人</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.applyUserId" style="display: none;"/>
<el-input v-model="roleForm.applyUserIdName" placeholder="流程发起人" disabled/>
</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="审批" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="presidentUserName" style="margin-bottom: 0">
<h4>公司副总</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.presidentUser" style="display: none;"></el-input>
<el-input v-model="roleForm.presidentUserName" placeholder="选择公司副总" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长', roleForm.presidentUser)"></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>
</div>
</template>
<script>
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { saveTaskFirst } from "api/process";
export default {
name: "zcchStep1",
components: {},
components: {
ProcessHeader,
ProcessFooter,
ProcessTitle
},
data() {
return {}
return {
isSubmit: false,
saveLoading: false,
active: "1", //默认显示
rhform: {
title: '',
content: '',
price: '',
time: '',
time2: '',
place: '',
Company: '',
},
formRules: {},
foldFormFlag: true,
data1: [],
data2: [],
roleForm: {},
roleFormRules: {}
}
},
methods: {
handleTabs(type) {
this.active = type;
}, // 切换tabs
foldForm() {
this.foldFormFlag = !this.foldFormFlag
}, // 基础信息显隐
handleSave() {
}, // 保存事件
handleSubmit() {
console.log(this.rhform);
}, // 提交事件
handleSelectionChange1() {
}, // table1选中change事件
handleSelectionChange2() {
}, // table2选中change事件
choiceZRR() {
}, // 点击人员input事件
},
methods: {},
mounted() {}
};
</script>
@@ -20,7 +326,62 @@
<style lang="less" scoped>
@import '~@/assets/styles/style';
.zcch-step1 {}
.zcch-step1 {
position: relative;
height: 100%;
.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;
}
}
}
.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;
}
}
.label-input-form {
.add-form-item {
/deep/.el-form-item__content {
.el-date-editor {
width: 400px;
}
}
}
}
}
</style>
@@ -1,18 +1,340 @@
<template>
<div class="zchh-step1">
<div>政策会后</div>
<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="qdqrForm"
:model="rhform"
:rules="formRules"
class="label-input-form"
label-width="210px"
>
<ProcessTitle>
<template slot="title">基础信息</template>
</ProcessTitle>
<div class="prc-content-border" v-if="foldFormFlag">
<el-row :gutter="24">
<el-col :span="24">
<el-form-item label="课题名称" prop="title" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.title"
placeholder="请输入课题名称"
clearable
></el-input>
</el-form-item>
<el-form-item label="主持及参与人员" prop="Participants" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.Participants"
placeholder="请输入主持及参与人员"
clearable
></el-input>
</el-form-item>
<el-form-item label="课题主要研究内容" prop="content" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.content"
placeholder="请输入课题主要研究内容"
clearable
></el-input>
</el-form-item>
<el-form-item label="参会费用" prop="price" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.price"
placeholder="请输入参会费用"
clearable
></el-input>
</el-form-item>
<el-form-item label="参会时间" prop="price" class="add-form-item form-item-disabled">
<el-date-picker
v-model="rhform.time2"
type="datetime"
placeholder="请选择完成时间">
</el-date-picker>
</el-form-item>
<el-form-item label="参会地点" prop="place" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.place"
placeholder="请输入参会地点"
clearable
></el-input>
</el-form-item>
<el-form-item label="承办单位" prop="Company" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.Company"
placeholder="请输入承办单位"
clearable
></el-input>
</el-form-item>
<el-form-item label="会议总结" prop="summary" class="add-form-item form-item-disabled">
<el-input
v-model="rhform.summary"
placeholder="请输入会议总结"
clearable
></el-input>
</el-form-item>
<el-form-item label="会议资料" prop="modelNameList" class="add-form-item form-item-disabled">
<el-button
type="primary"
class="common-button-primary"
size="mini">
点击上传
</el-button>
</el-form-item>
<el-form-item label="课题研究周期" prop="time" class="add-form-item form-item-disabled">
<el-date-picker
v-model="rhform.time"
type="datetimerange"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</div>
<el-button style="width: 100%" icon="el-icon-caret-top" @click="foldForm">{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}</el-button>
</el-form>
<ProcessTitle>
<template slot="title">外部信息</template>
</ProcessTitle>
<div class="action-bar">
<el-button type="primary" class="common-button-primary add-button" size="mini">
添加
</el-button>
<el-button type="primary" class="common-button-primary add-button" size="mini">
批量删除
</el-button>
</div>
<el-table border
ref="selection"
:data="data1"
tooltip-effect="dark"
style="width: 100%;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange1"
row-key="id">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column
prop="itemsNum"
label="联络人"
width="150"
align="center">
</el-table-column>
<el-table-column
prop="itemsName"
label="单位"
align="center">
</el-table-column>
<el-table-column
prop="itermsConditions"
label="电话"
width="200"
align="center">
</el-table-column>
<el-table-column
label="邮箱"
width="350"
align="center">
</el-table-column>
</el-table>
<ProcessTitle>
<template slot="title">内部信息</template>
</ProcessTitle>
<div class="action-bar">
<el-button type="primary" class="common-button-primary add-button" size="mini">
添加
</el-button>
<el-button type="primary" class="common-button-primary add-button" size="mini">
批量删除
</el-button>
</div>
<el-table border
ref="selection"
:data="data2"
tooltip-effect="dark"
style="width: 100%;"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="handleSelectionChange2"
row-key="id">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column
prop="itemsNum"
label="我司在工作组排名顺序"
width="170"
align="center">
</el-table-column>
<el-table-column
prop="itemsName"
label="我司成员"
width="150"
align="center">
</el-table-column>
<el-table-column
prop="itermsConditions"
label="单位"
align="center">
</el-table-column>
<el-table-column
label="部门"
width="150"
align="center">
</el-table-column>
<el-table-column
label="电话"
width="200"
align="center">
</el-table-column>
<el-table-column
label="邮箱"
width="300"
align="center">
</el-table-column>
<el-table-column
label="身份"
width="150"
align="center">
</el-table-column>
<el-table-column
label="资料"
width="200"
align="center">
</el-table-column>
</el-table>
</div>
</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.applyUserId ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="applyUserId" style="margin-bottom: 0">
<h4>流程发起人</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.applyUserId" style="display: none;"/>
<el-input v-model="roleForm.applyUserIdName" placeholder="流程发起人" disabled/>
</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="审批" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="presidentUserName" style="margin-bottom: 0">
<h4>公司副总</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.presidentUser" style="display: none;"></el-input>
<el-input v-model="roleForm.presidentUserName" placeholder="选择公司副总" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长', roleForm.presidentUser)"></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>
</div>
</template>
<script>
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { saveTaskFirst } from "api/process";
export default {
name: "zchhStep1",
components: {},
components: {
ProcessHeader,
ProcessFooter,
ProcessTitle
},
data() {
return {}
return {
isSubmit: false,
saveLoading: false,
active: "1", //默认显示
rhform: {
title: '',
Participants: '',
content: '',
price: '',
time: '',
time2: '',
place: '',
Company: '',
summary: '',
},
formRules: {},
foldFormFlag: true,
data1: [],
data2: [],
roleForm: {},
roleFormRules: {}
}
},
methods: {
handleTabs(type) {
this.active = type;
}, // 切换tabs
foldForm() {
this.foldFormFlag = !this.foldFormFlag
}, // 基础信息显隐
handleSave() {
}, // 保存事件
handleSubmit() {
console.log(this.rhform);
}, // 提交事件
handleSelectionChange1() {
}, // table1选中change事件
handleSelectionChange2() {
}, // table2选中change事件
choiceZRR() {
}, // 点击人员input事件
},
methods: {},
mounted() {}
};
</script>
@@ -20,7 +342,62 @@
<style lang="less" scoped>
@import '~@/assets/styles/style';
.zchh-step1 {}
.zchh-step1 {
position: relative;
height: 100%;
.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;
}
}
}
.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;
}
}
.label-input-form {
.add-form-item {
/deep/.el-form-item__content {
.el-date-editor {
width: 400px;
}
}
}
}
}
</style>
@@ -11,7 +11,7 @@
<div class="content" v-show="active === '1'">
<div style="flex: auto; overflow: auto;">
<el-form
ref="qdqrForm"
ref="rhForm"
:model="rhform"
:rules="formRules"
class="label-input-form"
@@ -44,10 +44,32 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="课题组通知" prop="modelNameList" class="add-form-item form-item-disabled">
<el-input
disabled
style="display: none;"
v-model="rhform.modelNameList"
clearable
></el-input>
<div v-if="rhform.modelList.length > 0" class="fileClass" style="display: flex;">
<div v-for="(item, index) in rhform.modelList" :key="index" @click="fileUpload" style="margin-right: 5px;">
{{ item.name }}
</div>
</div>
<div v-else>
<el-button
type="primary"
class="common-button-primary"
@click="fileUpload"
size="mini">
点击上传
</el-button>
</div>
</el-form-item>
<el-form-item label="课题研究周期" prop="time" class="add-form-item form-item-disabled">
<el-date-picker
v-model="rhform.time"
type="daterange"
type="datetimerange"
range-separator=""
start-placeholder="开始日期"
end-placeholder="结束日期">
@@ -59,8 +81,16 @@
<el-button style="width: 100%" icon="el-icon-caret-top" @click="foldForm">{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}</el-button>
</el-form>
<ProcessTitle>
<template slot="title">外部信息</template>
<template slot="title">课题组联系方式</template>
</ProcessTitle>
<div class="action-bar">
<el-button type="primary" class="common-button-primary add-button" size="mini" @click="add1">
添加
</el-button>
<el-button type="primary" :disabled="!idList1.length > 0" class="common-button-primary add-button" size="mini" @click="addDelete1">
批量删除
</el-button>
</div>
<el-table border
ref="selection"
:data="data1"
@@ -72,31 +102,52 @@
row-key="id">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column
prop="itemsNum"
prop="ContactPerson"
label="联络人"
width="150"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.ContactPerson"></el-input>
</template>
</el-table-column>
<el-table-column
prop="itemsName"
prop="Company"
label="单位"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Company"></el-input>
</template>
</el-table-column>
<el-table-column
prop="itermsConditions"
prop="Telephone"
label="电话"
width="200"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Telephone"></el-input>
</template>
</el-table-column>
<el-table-column
prop="Email"
label="邮箱"
width="350"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Email"></el-input>
</template>
</el-table-column>
</el-table>
<ProcessTitle>
<template slot="title">内部信息</template>
<template slot="title">集团内部参与人员</template>
</ProcessTitle>
<div class="action-bar">
<el-button type="primary" class="common-button-primary add-button" size="mini" @click="add2">
添加
</el-button>
<el-button :disabled="!idList2.length > 0" type="primary" class="common-button-primary add-button" size="mini" @click="addDelete2">
批量删除
</el-button>
</div>
<el-table border
ref="selection"
:data="data2"
@@ -108,52 +159,160 @@
row-key="id">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column
prop="itemsNum"
prop="Sindex"
label="我司在工作组排名顺序"
width="170"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Sindex"></el-input>
</template>
</el-table-column>
<el-table-column
prop="itemsName"
prop="Member"
label="我司成员"
width="150"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Member"></el-input>
</template>
</el-table-column>
<el-table-column
prop="itermsConditions"
prop="Company"
label="单位"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Company"></el-input>
</template>
</el-table-column>
<el-table-column
prop="Department"
label="部门"
width="150"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Department"></el-input>
</template>
</el-table-column>
<el-table-column
prop="Telephone"
label="电话"
width="200"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Telephone"></el-input>
</template>
</el-table-column>
<el-table-column
prop="Email"
label="邮箱"
width="300"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Email"></el-input>
</template>
</el-table-column>
<el-table-column
prop="Identity"
label="身份"
width="150"
align="center">
<template slot-scope="scope">
<el-input style="margin: 10px 0;" v-model="scope.row.Identity"></el-input>
</template>
</el-table-column>
<el-table-column
prop="data"
label="资料"
width="200"
align="center">
<template slot-scope="scope">
<div v-if="scope.row.data.length > 0" class="fileClass">
<div v-for="(item, index) in scope.row.data" :key="index" @click="fileUpload2(scope.$index)" style="margin-right: 5px;">
{{ item.name }}
</div>
</div>
<div v-else>
<el-button
type="primary"
class="common-button-primary"
@click="fileUpload2(scope.$index)"
size="mini">
点击上传
</el-button>
</div>
</template>
</el-table-column>
</el-table>
<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>
<div class="content" v-show="active === '2'">
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.applyUserId ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="revisionId" style="margin-bottom: 0">
<h4>流程发起人</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.revisionId" style="display: none;"/>
<el-input v-model="roleForm.revisionIdName" placeholder="流程发起人" disabled/>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="审批" placement="top" :color="roleForm.ministerId ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="ministerIdName" style="margin-bottom: 0">
<h4>法规认证部部长</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.ministerId" style="display: none;"></el-input>
<el-input v-model="roleForm.ministerIdName" placeholder="选择法规认证部部长" @click.native="choiceZRR('ministerId', '选择法规认证部部长', roleForm.ministerId)"></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="inspectorIdName" style="margin-bottom: 0">
<h4>法规认证部副总监</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.inspectorId" style="display: none;"></el-input>
<el-input v-model="roleForm.inspectorIdName" placeholder="选择法规认证部副总监" @click.native="choiceZRR('inspectorId', '选择法规认证部副总监', roleForm.inspectorId)"></el-input>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="审批" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="presidentIdName" style="margin-bottom: 0">
<h4>公司副总</h4>
<div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.presidentId" style="display: none;"></el-input>
<el-input v-model="roleForm.presidentIdName" placeholder="选择公司副总" @click.native="choiceZRR('presidentId', '选择公司副总', roleForm.presidentId)"></el-input>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
</el-form>
</el-timeline>
</div>
</div>
<ProcessFooter
show-save
@@ -164,6 +323,55 @@
@submit="handleSubmit"
>
</ProcessFooter>
<el-dialog width='400px' :visible.sync="fileMadel" title="上传课题组通知">
<el-upload
multiple
class="upload-demo"
drag
:action="fileUrl"
ref="importfile"
name="file"
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
:before-upload="beginImportFile"
:on-success="importFileSuccess"
:on-remove="importFileRemove"
:show-file-list="true"
>
<div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i>
<p>点击或拖拽上传文件</p>
</div>
</el-upload>
</el-dialog>
<el-dialog width='400px' :visible.sync="fileMadel2" title="上传资料">
<el-upload
v-if="fileMadel2"
multiple
class="upload-demo"
drag
:action="fileUrl"
ref="importfile2"
name="file"
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
:before-upload="beginImportFile"
:on-success="importFileSuccess2"
:on-remove="importFileRemove2"
:show-file-list="true"
:file-list="fileList"
>
<div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i>
<p>点击或拖拽上传文件</p>
</div>
</el-upload>
</el-dialog>
<Role-tree
check-box
:is-title="drawerTitle"
:is-visible.sync="modalshowflag"
@checkedRole="checkedRole"
:nodeList="nodeList"
></Role-tree>
</div>
</template>
@@ -182,6 +390,7 @@
},
data() {
return {
commentText: '',
isSubmit: false,
saveLoading: false,
active: "1", //默认显示
@@ -189,27 +398,386 @@
title: '',
content: '',
price: '',
time: ''
time: '',
modelNameList: '',
modelList: []
},
formRules: {
title: [
{ required: true, message: '请输入课题名称', trigger: 'blur' },
],
content: [
{ required: true, message: '请输入主要议题', trigger: 'blur' },
],
price: [
{ required: true, message: '请输入费用', trigger: 'blur' },
],
time: [
{ required: true, message: '请选择课题研究周期', trigger: 'change' },
],
modelNameList: [
{ required: true, message: '请上传课题组通知', trigger: 'blur' },
]
},
formRules: {},
foldFormFlag: true,
data1: [],
data2: [],
roleForm: {
revisionId: this.$store.getters.userInfo.userId,
revisionIdName: this.$store.getters.userInfo.userName,
ministerId: '',
ministerIdName: '',
inspectorId: '',
inspectorIdName: '',
presidentId: '',
presidentIdName: '',
},
roleFormRules: {
ministerIdName: [
{required: true, message: '请选择法规认证部部长', trigger: 'change'},
],
inspectorIdName: [
{required: true, message: '请选择法规认证部总监', trigger: 'change'},
],
presidentIdName: [
{required: true, message: '请选择公司副总', trigger: 'change'},
]
},
fileMadel: false,
fileMadel2: false,
fileUrl: 'api/att/attFile/upload',
idList1: [],
idList2: [],
fileIndex: '',
fileList: [],
nodeList: [],
type: '',
drawerTitle: '',
modalshowflag: false,
}
},
methods: {
add1() {
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
var json = {
ContactPerson: '',
Company: '',
Telephone: '',
Email: '',
id: id
}
this.data1.push(json)
},
add2() {
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
var json = {
Sindex: '',
Member: '',
Company: '',
Email: '',
id: id,
Department: '',
Telephone: '',
Identity: '',
dataName: '',
data: [],
}
this.data2.push(json)
},
addDelete1() {
if (this.idList1.length > 0) {
this.$confirm('删除选中数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
for (let a = 0; a < this.data1.length; a++) {
this.idList1.forEach(item => {
if (this.data1[a].id === item) {
this.data1.splice(a, 1)
}
})
}
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
} else {
this.$message.warning('请选择要删除的数据')
}
},
addDelete2() {
if (this.idList2.length > 0) {
this.$confirm('删除选中数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
for (let a = 0; a < this.data2.length; a++) {
this.idList2.forEach(item => {
if (this.data2[a].id === item) {
this.data2.splice(a, 1)
}
})
}
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
} else {
this.$message.warning('请选择要删除的数据')
}
},
// 导入按钮 上传之前的钩子
beginImportFile(file) {
var filename = file.name
var index1 = filename.lastIndexOf('.')
var index2 = filename.length
var fileSuffix = filename.substring(index1, index2)
// const fileSuffix = file.name.split('.')[1] // 后缀名
// 判断上传文件格式
if (fileSuffix === '.ppt' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' || fileSuffix === '.xls' || fileSuffix === '.xlsx') {
return true
} else {
this.$message.error('文件' + file.name + '格式不正确,请上传PPT,DOCX,XLS文件')
return false
}
// 判断文件上传大小
// eslint-disable-next-line no-unreachable
if (file.size / 1024 / 1024 <= 200) {
return true
} else {
this.$message.error('文件' + file.name + '大小不超过200M')
return false
}
return true
},
importFileSuccess(response, file) {
if (response.ok) {
this.rhform.modelList.push(response.data)
let list = ''
this.rhform.modelList.forEach(item => {
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.rhform.modelNameList = list
this.$message({
showClose: true,
message: response.message,
type: 'success'
})
} else {
this.$message.error('程序异常,上传失败')
}
},
importFileRemove(file, fileList) {
let list = ''
this.rhform.modelList = []
fileList.forEach(item => {
this.rhform.modelList.push(item)
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.rhform.modelNameList = list
},
importFileSuccess2(response, file) {
if (response.ok) {
this.data2[this.fileIndex].data.push(response.data)
let list = ''
this.data2[this.fileIndex].data.forEach(item => {
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.data2[this.fileIndex].dataName = list
this.$message({
showClose: true,
message: response.message,
type: 'success'
})
} else {
this.$message.error('程序异常,上传失败')
}
},
importFileRemove2(file, fileList) {
let list = ''
this.data2[this.fileIndex].data = []
fileList.forEach(item => {
this.data2[this.fileIndex].data.push(item)
if (list.length > 0) {
list += ','
list += item.name
} else {
list+= item.name
}
})
this.data2[this.fileIndex].dataName = list
},
fileUpload() {
this.fileMadel = true
},
fileUpload2(index) {
this.fileIndex = index
this.fileList = this.data2[this.fileIndex].data
this.fileMadel2 = true
},
handleTabs(type) {
this.active = type;
},
}, // 切换tabs
foldForm() {
this.foldFormFlag = !this.foldFormFlag
},
handleSave() {},
}, // 基础信息显隐
handleSave() {
}, // 保存事件
handleSubmit() {
console.log(this.rhform);
},
handleSelectionChange1() {},
handleSelectionChange2() {}
this.$refs['rhForm'].validate((valid) => {
if (valid) {
if (this.data1.length) {
if (this.data2.length) {
let ContactPerson = 0,Company = 0,Telephone = 0,Email = 0,Sindex = 0,Member = 0,Telephone2 = 0,Email2 = 0, Company2 = 0,Department = 0,Identity = 0
this.data1.forEach((item, index) =>{
if (!item.ContactPerson) {
ContactPerson++
} else if (!item.Company) {
Company++
} else if (!item.Telephone) {
Telephone++
} else if (!item.Email) {
Email++
}
})
this.data2.forEach((item, index) =>{
if (!item.Sindex) {
Sindex++
} else if (!item.Member) {
Member++
} else if (!item.Telephone) {
Telephone2++
} else if (!item.Email) {
Email2++
} else if (!item.Company) {
Company2++
} else if (!item.Department) {
Department++
} else if (!item.Identity) {
Identity++
}
})
if (ContactPerson > 0) {
return this.$message.warning('请输入联络人')
} else if (Company > 0) {
return this.$message.warning('请输入课题组联络人单位')
} else if (Telephone > 0) {
return this.$message.warning('请输入课题组联络人电话')
} else if (Email > 0) {
return this.$message.warning('请输入课题组联络人邮箱')
} else if (Sindex > 0) {
return this.$message.warning('请输入工作组排名顺序')
} else if (Member > 0) {
return this.$message.warning('请输入我司成员')
} else if (Telephone2 > 0) {
return this.$message.warning('请输入内部参与人员电话')
} else if (Email2 > 0) {
return this.$message.warning('请输入内部参与人员油邮箱')
} else if (Company2 > 0) {
return this.$message.warning('请输入内部参与人员单位')
} else if (Department > 0) {
return this.$message.warning('请输入内部参与人员部门')
} else if (Identity > 0) {
return this.$message.warning('请输入内部参与人员身份')
} else {
this.$refs['Form'].validate((valid) => {
if (valid) {
this.isSubmit = true
this.$http.get('lawss/activiti/startProcess', {
type: '17'
}, {}, res => {
if (res.ok) {
var json = Object.assign(this.rhform, this.roleForm)
json.commentText = this.commentText
json.data1 = this.data1
json.data2 = this.data2
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success('流程发起成功')
this.$router.push('/processCenter')
this.isSubmit = false
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else {
return this.$message.warning('请完善人员信息')
}
})
}
} else {
return this.$message.warning('请添加集团内部参与人员')
}
} else {
return this.$message.warning('请添加课题组人员')
}
} else {
return this.$message.warning('请完善基础信息')
}
})
}, // 提交事件
handleSelectionChange1(val) {
this.idList1 = []
val.forEach(item => {
this.idList1.push(item.id)
})
}, // table1选中change事件
handleSelectionChange2(val) {
this.idList2 = []
val.forEach(item => {
this.idList2.push(item.id)
})
}, // table2选中change事件
choiceZRR(type, title, id) {
this.nodeList = []
this.nodeList.push(id)
this.type = type
this.drawerTitle = title
this.modalshowflag = true
}, // 点击人员input事件
checkedRole(data) {
if (this.type === 'ministerId') {
this.roleForm.ministerId = data[0].id
this.roleForm.ministerIdName = data[0].name
} else if (this.type === 'inspectorId') {
this.roleForm.inspectorId = data[0].id
this.roleForm.inspectorIdName = data[0].name
} else if (this.type === 'presidentId') {
this.roleForm.presidentId = data[0].id
this.roleForm.presidentIdName = data[0].name
}
}, // 选择人员确认事件
},
mounted() {}
};
@@ -263,6 +831,15 @@
background: #E6A23C;
}
}
.label-input-form {
.add-form-item {
/deep/.el-form-item__content {
.el-date-editor {
width: 400px;
}
}
}
}
}
</style>
@@ -144,7 +144,7 @@
</el-col>
<el-col :span="size ? 6 : 8" v-btn-permission="'7d81e0afa045f8ba8911bcf984b64675'">
<el-card shadow="hover">
<div class="card-box" @click="handleCreateProcess('15')">
<div class="card-box" @click="handleCreateProcess('17')">
<div class="card-top">
<div class="card-top-left">
<img :src="getImg(Math.floor(Math.random() * 6))">
@@ -159,7 +159,7 @@
</el-col>
<el-col :span="size ? 6 : 8" v-btn-permission="'7128980e23ca7726ef92aad579ac7cb1'">
<el-card shadow="hover">
<div class="card-box" @click="handleCreateProcess('16')">
<div class="card-box" @click="handleCreateProcess('18')">
<div class="card-top">
<div class="card-top-left">
<img :src="getImg(Math.floor(Math.random() * 6))">
@@ -174,7 +174,7 @@
</el-col>
<el-col :span="size ? 6 : 8">
<el-card shadow="hover">
<div class="card-box" @click="handleCreateProcess('17')">
<div class="card-box" @click="handleCreateProcess('19')">
<div class="card-top">
<div class="card-top-left">
<img :src="getImg(Math.floor(Math.random() * 6))">
@@ -202,62 +202,6 @@
</div>
</el-card>
</el-col>
<!-- &lt;!&ndash;严逸舟写的分割线&ndash;&gt;-->
<!-- <el-col :span="size ? 6 : 8" v-btn-permission="">-->
<!-- <el-card shadow="hover">-->
<!-- <div class="card-box" @click="handleCreateProcess('12')">-->
<!-- <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>-->
<!-- &lt;!&ndash; <div class="card-bottom">&ndash;&gt;-->
<!-- &lt;!&ndash; 流程简介: 容器默认存在两根轴:水平的主轴(main axis)和垂直的交叉轴(cross axis)。主轴的开始位置(与边框的交叉点)叫做main start,结束位置叫做main end;交叉轴的开始位置叫做cross start,结束位置叫做cross end。&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- </div>-->
<!-- </el-card>-->
<!-- </el-col>-->
<!-- <el-col :span="size ? 6 : 8" v-btn-permission="">-->
<!-- <el-card shadow="hover">-->
<!-- <div class="card-box" @click="handleCreateProcess('13')">-->
<!-- <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>-->
<!-- &lt;!&ndash; <div class="card-bottom">&ndash;&gt;-->
<!-- &lt;!&ndash; 流程简介: 容器默认存在两根轴:水平的主轴(main axis)和垂直的交叉轴(cross axis)。主轴的开始位置(与边框的交叉点)叫做main start,结束位置叫做main end;交叉轴的开始位置叫做cross start,结束位置叫做cross end。&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- </div>-->
<!-- </el-card>-->
<!-- </el-col>-->
<!-- <el-col :span="size ? 6 : 8" v-btn-permission="">-->
<!-- <el-card shadow="hover">-->
<!-- <div class="card-box" @click="handleCreateProcess('14')">-->
<!-- <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>-->
<!-- &lt;!&ndash; <div class="card-bottom">&ndash;&gt;-->
<!-- &lt;!&ndash; 流程简介: 容器默认存在两根轴:水平的主轴(main axis)和垂直的交叉轴(cross axis)。主轴的开始位置(与边框的交叉点)叫做main start,结束位置叫做main end;交叉轴的开始位置叫做cross start,结束位置叫做cross end。&ndash;&gt;-->
<!-- &lt;!&ndash; </div>&ndash;&gt;-->
<!-- </div>-->
<!-- </el-card>-->
<!-- </el-col>-->
<!-- &lt;!&ndash;严逸舟写的分割线&ndash;&gt;-->
</div>
</div>
</div>
@@ -360,37 +304,19 @@ export default {
name:'xmqdqrStep1'
})
break
case '12':
// 赵开耀的流程
this.$router.push({
name: 'zhaokaiyaoStep1'
})
break
case '13':
// 严逸舟的流程
this.$router.push({
name: 'yanyizhouStep1'
})
break
case '14':
// 张宇欢的流程
this.$router.push({
name: 'zhangyuhuanStep1'
})
break
case '15':
case '17':
//政策课题入会流程
this.$router.push({
name: 'zcrhStep1'
})
break
case '16':
case '18':
//政策课题参会流程
this.$router.push({
name: 'zcchStep1'
})
break
case '17':
case '19':
//政策课题会后流程
this.$router.push({
name: 'zchhStep1'
+3 -3
View File
@@ -6,9 +6,9 @@
// 服务器地址
// const devIp = '39.98.140.126'
// const devInterfacePORT = '10005'
// const devIp = '192.168.10.248'
const devIp = '62.234.136.153'
const devInterfacePORT = '8033'
const devIp = '192.168.10.52'
// const devIp = '62.234.136.153'
const devInterfacePORT = '9999'
// 配置 idm 认证
const ssoLogin = 'http://sso.foton.com.cn/oauth2.0/authorize?client_id=app_slrs&response_type=code&redirect_uri='
// 配置 前端服务