style: 格式化代码
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
<!-- 流程信息公共标题 -->
|
<!-- 流程信息公共标题 -->
|
||||||
<template>
|
<template>
|
||||||
<div class="contentTitle">
|
<div class="contentTitle">
|
||||||
<div class="titleIcon"></div>
|
<div class="titleIcon" />
|
||||||
<div class="titleText"><slot name="title"></slot></div>
|
<div class="titleText"><slot name="title" /></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "ProcessTitle"
|
name: 'ProcessTitle'
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|||||||
@@ -10,52 +10,64 @@
|
|||||||
<div v-else class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
<div v-else class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-form v-if="reloadForm"
|
<el-form
|
||||||
ref="form"
|
v-if="reloadForm"
|
||||||
:model="form"
|
ref="form"
|
||||||
:rules="rules"
|
:model="form"
|
||||||
class="label-input-form"
|
:rules="rules"
|
||||||
label-width="210px"
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
>
|
>
|
||||||
<div v-show="active === '1'">
|
<div v-show="active === '1'">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">会议分类</template>
|
<template slot="title">会议分类</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Classification :form="form" :dict="dict" :disabled="disabled"></Classification>
|
<Classification :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<div v-for="(item, index) in form.meetingTopicList">
|
<div v-for="(item, index) in form.meetingTopicList">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
会议议题
|
会议议题
|
||||||
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addMeetingTopic" :disabled="disabled"
|
<el-button
|
||||||
:style="{visibility: (index === form.meetingTopicList.length - 1) ? 'visible' : 'collapse'}"></el-button>
|
type="primary"
|
||||||
<el-button type="primary" size="mini" icon="el-icon-minus" @click="removeMeetingTopic(index)" :disabled="disabled"
|
size="mini"
|
||||||
:style="{visibility: (form.meetingTopicList.length < 2 && index === 0) ? 'collapse' : 'visible'}"></el-button>
|
icon="el-icon-plus"
|
||||||
|
:disabled="disabled"
|
||||||
|
:style="{visibility: (index === form.meetingTopicList.length - 1) ? 'visible' : 'collapse'}"
|
||||||
|
@click="addMeetingTopic"
|
||||||
|
/>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-minus"
|
||||||
|
:disabled="disabled"
|
||||||
|
:style="{visibility: (form.meetingTopicList.length < 2 && index === 0) ? 'collapse' : 'visible'}"
|
||||||
|
@click="removeMeetingTopic(index)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled"></Topics>
|
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled" />
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription isItem v-model="form.commentText" title="回执说明" :disabled="disabled"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" isItem title="回执说明" :disabled="disabled" />
|
||||||
</div>
|
</div>
|
||||||
<div class="block" style="padding-top: 20px;" v-show="active === '2'">
|
<div v-show="active === '2'" class="block" style="padding-top: 20px;">
|
||||||
<PersonInfo ref="roleForm" :roleForm="roleForm" :roleRules="roleRules" :disabled="disabled"></PersonInfo>
|
<PersonInfo ref="roleForm" :roleForm="roleForm" :roleRules="roleRules" :disabled="disabled" />
|
||||||
</div>
|
</div>
|
||||||
<ApprovalHistory v-if="active === '3'"></ApprovalHistory>
|
<ApprovalHistory v-if="active === '3'" />
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
v-show="!disabled"
|
v-show="!disabled"
|
||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="footerLoading"
|
:submitLoading="footerLoading"
|
||||||
:saveLoading="footerLoading"
|
:saveLoading="footerLoading"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
>
|
/>
|
||||||
</ProcessFooter>
|
|
||||||
<loading :loading="loading">数据获取中</loading>
|
<loading :loading="loading">数据获取中</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -64,17 +76,17 @@
|
|||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessHeader from '@/pages/processCenter/pages/components//ProcessHeader'
|
import ProcessHeader from '@/pages/processCenter/pages/components//ProcessHeader'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components//ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components//ProcessFooter'
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import Classification from "./components/Classification";
|
import Classification from './components/Classification';
|
||||||
import Topics from "./components/Topics";
|
import Topics from './components/Topics';
|
||||||
import PersonInfo from "./components/PersonInfo";
|
import PersonInfo from './components/PersonInfo';
|
||||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||||
import ApprovalHistory from "@/components/hzwlComponents/ApprovalHistory";
|
import ApprovalHistory from '@/components/hzwlComponents/ApprovalHistory';
|
||||||
|
|
||||||
import { getDicTypeListCode, saveTaskFirst, queryTaskFirst, inboundLiaisonDetail, taskDel, saveTaskForPub } from 'api/process'
|
import { getDicTypeListCode, saveTaskFirst, queryTaskFirst, inboundLiaisonDetail, taskDel, saveTaskForPub } from 'api/process'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "policyMeetings1",
|
name: 'PolicyMeetings1',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -112,49 +124,49 @@ export default {
|
|||||||
}
|
}
|
||||||
const rules = {
|
const rules = {
|
||||||
meetingName: [
|
meetingName: [
|
||||||
{required: true, type: 'string', message: '会议名称不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议名称不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议名称不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议名称不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingOrganizer: [
|
meetingOrganizer: [
|
||||||
{required: true, type: 'string', message: '会议主办单位不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议主办单位不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议主办单位不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议主办单位不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingTime: [
|
meetingTime: [
|
||||||
{required: true, message: '会议时间不能为空', trigger: 'change'}
|
{ required: true, message: '会议时间不能为空', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingAddress: [
|
meetingAddress: [
|
||||||
{required: true, type: 'string', message: '会议地点不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议地点不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议地点不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议地点不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
participants: [
|
participants: [
|
||||||
{required: true, type: 'string', message: '参会人员不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '参会人员不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '参会人员不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '参会人员不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingContent: [
|
meetingContent: [
|
||||||
{required: true, type: 'string', message: '会议主要内容不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议主要内容不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议主要内容不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议主要内容不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
firstMeetingType: [
|
firstMeetingType: [
|
||||||
{required: true, message: '1级会议分类不能为空', trigger: 'change'}
|
{ required: true, message: '1级会议分类不能为空', trigger: 'change' }
|
||||||
],
|
],
|
||||||
secondMeetingType: [
|
secondMeetingType: [
|
||||||
{required: true, message: '2级会议分类不能为空', trigger: 'change'}
|
{ required: true, message: '2级会议分类不能为空', trigger: 'change' }
|
||||||
],
|
],
|
||||||
agendaName: [
|
agendaName: [
|
||||||
{required: true, type: 'string', message: '议题名称不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '议题名称不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '议题名称不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '议题名称不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
reporter: [
|
reporter: [
|
||||||
{required: true, type: 'string', message: '汇报人不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '汇报人不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '汇报人不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '汇报人不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
reportingUnit: [
|
reportingUnit: [
|
||||||
{required: true, type: 'string', message: '汇报人单位不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '汇报人单位不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '汇报人单位不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '汇报人单位不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
agendaContent: [
|
agendaContent: [
|
||||||
{required: true, type: 'string', message: '议题主要内容不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '议题主要内容不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '议题主要内容不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '议题主要内容不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
const roleForm = {
|
const roleForm = {
|
||||||
@@ -165,10 +177,10 @@ export default {
|
|||||||
}
|
}
|
||||||
const roleRules = {
|
const roleRules = {
|
||||||
applyUserName: [
|
applyUserName: [
|
||||||
{required: true, message: '流程发起人不能为空', trigger: ['blur', 'change']}
|
{ required: true, message: '流程发起人不能为空', trigger: [ 'blur', 'change' ] }
|
||||||
],
|
],
|
||||||
jlUserName: [
|
jlUserName: [
|
||||||
{required: true, message: '审批人不能为空', trigger: ['blur', 'change']}
|
{ required: true, message: '审批人不能为空', trigger: [ 'blur', 'change' ] }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@@ -187,12 +199,12 @@ export default {
|
|||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleTabs(tab) {
|
handleTabs (tab) {
|
||||||
this.active = tab
|
this.active = tab
|
||||||
},
|
},
|
||||||
addMeetingTopic () {
|
addMeetingTopic () {
|
||||||
@@ -204,10 +216,10 @@ export default {
|
|||||||
reportingUnit: '',
|
reportingUnit: '',
|
||||||
agendaContent: ''
|
agendaContent: ''
|
||||||
}
|
}
|
||||||
this.form.meetingTopicList = [...this.form.meetingTopicList, meetingTopicItem]
|
this.form.meetingTopicList = [ ...this.form.meetingTopicList, meetingTopicItem ]
|
||||||
},
|
},
|
||||||
removeMeetingTopic (index) {
|
removeMeetingTopic (index) {
|
||||||
let res = []
|
const res = []
|
||||||
this.form.meetingTopicList.forEach((item, i) => {
|
this.form.meetingTopicList.forEach((item, i) => {
|
||||||
if (i !== index) {
|
if (i !== index) {
|
||||||
res.push(item)
|
res.push(item)
|
||||||
@@ -262,7 +274,7 @@ export default {
|
|||||||
this.reloadForm = false
|
this.reloadForm = false
|
||||||
if (mes.form) {
|
if (mes.form) {
|
||||||
// 驳回
|
// 驳回
|
||||||
let mes = JSON.parse(res.mes)
|
const mes = JSON.parse(res.mes)
|
||||||
this.$set(this, 'form', mes.form)
|
this.$set(this, 'form', mes.form)
|
||||||
} else {
|
} else {
|
||||||
// 撤回
|
// 撤回
|
||||||
@@ -283,10 +295,10 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//保存
|
// 保存
|
||||||
handleSave() {
|
handleSave () {
|
||||||
this.footerLoading = true
|
this.footerLoading = true
|
||||||
let _formData = new FormData()
|
const _formData = new FormData()
|
||||||
_formData.append('prcType', '29')
|
_formData.append('prcType', '29')
|
||||||
|
|
||||||
if (this.$route.query.taskIds) {
|
if (this.$route.query.taskIds) {
|
||||||
@@ -332,7 +344,7 @@ export default {
|
|||||||
// 重新起草
|
// 重新起草
|
||||||
completeTaskQuery = {
|
completeTaskQuery = {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId : this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -351,7 +363,7 @@ export default {
|
|||||||
|
|
||||||
completeTaskQuery = {
|
completeTaskQuery = {
|
||||||
taskIds: res.data,
|
taskIds: res.data,
|
||||||
userId : this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
json: JSON.stringify(json)
|
json: JSON.stringify(json)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -369,9 +381,9 @@ export default {
|
|||||||
taskDel({ id: this.$route.query.bpnId })
|
taskDel({ id: this.$route.query.bpnId })
|
||||||
}
|
}
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
await this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
await this.$router.push({ path: '/processCenter?tabsName=ProcessCenter' })
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit () {
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['roleForm'].$refs['userForm'].validate((valid) => {
|
this.$refs['roleForm'].$refs['userForm'].validate((valid) => {
|
||||||
|
|||||||
@@ -9,57 +9,70 @@
|
|||||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-form v-if="reloadForm"
|
<el-form
|
||||||
ref="form"
|
v-if="reloadForm"
|
||||||
:model="form"
|
ref="form"
|
||||||
:rules="rules"
|
:model="form"
|
||||||
class="label-input-form"
|
:rules="rules"
|
||||||
label-width="210px"
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
>
|
>
|
||||||
<div v-show="active === '1'">
|
<div v-show="active === '1'">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">基础信息</template>
|
<template slot="title">基础信息</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">会议分类</template>
|
<template slot="title">会议分类</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Classification :form="form" :dict="dict" :disabled="disabled"></Classification>
|
<Classification :form="form" :dict="dict" :disabled="disabled" />
|
||||||
<div v-for="(item, index) in form.meetingTopicList">
|
<div v-for="(item, index) in form.meetingTopicList">
|
||||||
<ProcessTitle>
|
<ProcessTitle>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
会议议题
|
会议议题
|
||||||
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addMeetingTopic" :disabled="disabled"
|
<el-button
|
||||||
:style="{visibility: (index === form.meetingTopicList.length - 1) ? 'visible' : 'collapse'}"></el-button>
|
type="primary"
|
||||||
<el-button type="primary" size="mini" icon="el-icon-minus" @click="removeMeetingTopic(index)" :disabled="disabled"
|
size="mini"
|
||||||
:style="{visibility: (form.meetingTopicList.length < 2 && index === 0) ? 'collapse' : 'visible'}"></el-button>
|
icon="el-icon-plus"
|
||||||
|
:disabled="disabled"
|
||||||
|
:style="{visibility: (index === form.meetingTopicList.length - 1) ? 'visible' : 'collapse'}"
|
||||||
|
@click="addMeetingTopic"
|
||||||
|
/>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
icon="el-icon-minus"
|
||||||
|
:disabled="disabled"
|
||||||
|
:style="{visibility: (form.meetingTopicList.length < 2 && index === 0) ? 'collapse' : 'visible'}"
|
||||||
|
@click="removeMeetingTopic(index)"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</ProcessTitle>
|
</ProcessTitle>
|
||||||
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled"></Topics>
|
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled" />
|
||||||
</div>
|
</div>
|
||||||
<ReceiptDescription isItem v-model="form.commentText" prop="commentText" title="审批意见"></ReceiptDescription>
|
<ReceiptDescription v-model="form.commentText" isItem prop="commentText" title="审批意见" />
|
||||||
</div>
|
</div>
|
||||||
<ApprovalHistory v-if="active === '3'"></ApprovalHistory>
|
<ApprovalHistory v-if="active === '3'" />
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-submit
|
show-submit
|
||||||
show-over2
|
show-over2
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="footerLoading"
|
:submitLoading="footerLoading"
|
||||||
:saveLoading="footerLoading"
|
:saveLoading="footerLoading"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@submit="handleApprove"
|
@submit="handleApprove"
|
||||||
@over2="handleOver"
|
@over2="handleOver"
|
||||||
></ProcessFooter>
|
/>
|
||||||
<!-- 福田全公司选人解决方案 -->
|
<!-- 福田全公司选人解决方案 -->
|
||||||
<Role-tree
|
<Role-tree
|
||||||
check-box
|
check-box
|
||||||
:is-title="drawerTitle"
|
:is-title="drawerTitle"
|
||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
:nodeList="nodeList"
|
||||||
:nodeList="nodeList"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
/>
|
||||||
<loading :loading="loading">数据获取中</loading>
|
<loading :loading="loading">数据获取中</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -68,16 +81,16 @@
|
|||||||
ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
import ProcessHeader from '@/pages/processCenter/pages/components//ProcessHeader'
|
import ProcessHeader from '@/pages/processCenter/pages/components//ProcessHeader'
|
||||||
import ProcessFooter from '@/pages/processCenter/pages/components//ProcessFooter'
|
import ProcessFooter from '@/pages/processCenter/pages/components//ProcessFooter'
|
||||||
import Basic from "./components/Basic";
|
import Basic from './components/Basic';
|
||||||
import Classification from "./components/Classification";
|
import Classification from './components/Classification';
|
||||||
import Topics from "./components/Topics";
|
import Topics from './components/Topics';
|
||||||
import PersonInfo from "./components/PersonInfo";
|
import PersonInfo from './components/PersonInfo';
|
||||||
import ApprovalHistory from "@/components/hzwlComponents/ApprovalHistory";
|
import ApprovalHistory from '@/components/hzwlComponents/ApprovalHistory';
|
||||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||||
|
|
||||||
import { getDicTypeListCode, inboundLiaisonDetail, changeAssigneeNew, processCreateMeeting, completeTask } from 'api/process'
|
import { getDicTypeListCode, inboundLiaisonDetail, changeAssigneeNew, processCreateMeeting, completeTask } from 'api/process'
|
||||||
export default {
|
export default {
|
||||||
name: "policyMeetings2",
|
name: 'PolicyMeetings2',
|
||||||
components: {
|
components: {
|
||||||
ProcessTitle,
|
ProcessTitle,
|
||||||
ProcessHeader,
|
ProcessHeader,
|
||||||
@@ -115,49 +128,49 @@ export default {
|
|||||||
}
|
}
|
||||||
const rules = {
|
const rules = {
|
||||||
meetingName: [
|
meetingName: [
|
||||||
{required: true, type: 'string', message: '会议名称不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议名称不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议名称不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议名称不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingOrganizer: [
|
meetingOrganizer: [
|
||||||
{required: true, type: 'string', message: '会议主办单位不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议主办单位不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议主办单位不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议主办单位不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingTime: [
|
meetingTime: [
|
||||||
{required: true, message: '会议时间不能为空', trigger: 'change'}
|
{ required: true, message: '会议时间不能为空', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingAddress: [
|
meetingAddress: [
|
||||||
{required: true, type: 'string', message: '会议地点不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议地点不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议地点不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议地点不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
participants: [
|
participants: [
|
||||||
{required: true, type: 'string', message: '参会人员不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '参会人员不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '参会人员不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '参会人员不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
meetingContent: [
|
meetingContent: [
|
||||||
{required: true, type: 'string', message: '会议主要内容不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '会议主要内容不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '会议主要内容不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '会议主要内容不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
firstMeetingType: [
|
firstMeetingType: [
|
||||||
{required: true, message: '1级会议分类不能为空', trigger: 'change'}
|
{ required: true, message: '1级会议分类不能为空', trigger: 'change' }
|
||||||
],
|
],
|
||||||
secondMeetingType: [
|
secondMeetingType: [
|
||||||
{required: true, message: '2级会议分类不能为空', trigger: 'change'}
|
{ required: true, message: '2级会议分类不能为空', trigger: 'change' }
|
||||||
],
|
],
|
||||||
agendaName: [
|
agendaName: [
|
||||||
{required: true, type: 'string', message: '议题名称不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '议题名称不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '议题名称不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '议题名称不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
reporter: [
|
reporter: [
|
||||||
{required: true, type: 'string', message: '汇报人不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '汇报人不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '汇报人不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '汇报人不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
reportingUnit: [
|
reportingUnit: [
|
||||||
{required: true, type: 'string', message: '汇报人单位不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '汇报人单位不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '汇报人单位不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '汇报人单位不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
agendaContent: [
|
agendaContent: [
|
||||||
{required: true, type: 'string', message: '议题主要内容不能为空', trigger: 'change'},
|
{ required: true, type: 'string', message: '议题主要内容不能为空', trigger: 'change' },
|
||||||
{type: 'string', max: 500, message: '议题主要内容不能超过500个字符', trigger: 'change'}
|
{ type: 'string', max: 500, message: '议题主要内容不能超过500个字符', trigger: 'change' }
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
const roleForm = {
|
const roleForm = {
|
||||||
@@ -168,10 +181,10 @@ export default {
|
|||||||
}
|
}
|
||||||
const roleRules = {
|
const roleRules = {
|
||||||
applyUserName: [
|
applyUserName: [
|
||||||
{required: true, message: '流程发起人不能为空', trigger: ['blur', 'change']}
|
{ required: true, message: '流程发起人不能为空', trigger: [ 'blur', 'change' ] }
|
||||||
],
|
],
|
||||||
jlUserName: [
|
jlUserName: [
|
||||||
{required: true, message: '审批人不能为空', trigger: ['blur', 'change']}
|
{ required: true, message: '审批人不能为空', trigger: [ 'blur', 'change' ] }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@@ -193,12 +206,12 @@ export default {
|
|||||||
loading: false
|
loading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created () {
|
||||||
this.getDicTypeListCode()
|
this.getDicTypeListCode()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleTabs(tab) {
|
handleTabs (tab) {
|
||||||
this.active = tab
|
this.active = tab
|
||||||
},
|
},
|
||||||
addMeetingTopic () {
|
addMeetingTopic () {
|
||||||
@@ -210,10 +223,10 @@ export default {
|
|||||||
reportingUnit: '',
|
reportingUnit: '',
|
||||||
agendaContent: ''
|
agendaContent: ''
|
||||||
}
|
}
|
||||||
this.form.meetingTopicList = [...this.form.meetingTopicList, meetingTopicItem]
|
this.form.meetingTopicList = [ ...this.form.meetingTopicList, meetingTopicItem ]
|
||||||
},
|
},
|
||||||
removeMeetingTopic (index) {
|
removeMeetingTopic (index) {
|
||||||
let res = []
|
const res = []
|
||||||
this.form.meetingTopicList.forEach((item, i) => {
|
this.form.meetingTopicList.forEach((item, i) => {
|
||||||
if (i !== index) {
|
if (i !== index) {
|
||||||
res.push(item)
|
res.push(item)
|
||||||
@@ -221,7 +234,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.form.meetingTopicList = [ ...res ]
|
this.form.meetingTopicList = [ ...res ]
|
||||||
},
|
},
|
||||||
getData() {
|
getData () {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
@@ -242,7 +255,7 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleTransfer() {
|
handleTransfer () {
|
||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
this.drawerTitle = '转办处理人'
|
this.drawerTitle = '转办处理人'
|
||||||
},
|
},
|
||||||
@@ -250,25 +263,25 @@ export default {
|
|||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
pId: this.$route.query.prcId, // 流程实例
|
pId: this.$route.query.prcId, // 流程实例
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
this.$router.push({ path: '/processCenter?tabsName=ProcessCenter' })
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleOver(){
|
handleOver () {
|
||||||
// 驳回
|
// 驳回
|
||||||
this.form.approvalOpinion = 1
|
this.form.approvalOpinion = 1
|
||||||
this.handleSubmit()
|
this.handleSubmit()
|
||||||
},
|
},
|
||||||
handleApprove(){
|
handleApprove () {
|
||||||
// 通过
|
// 通过
|
||||||
this.form.approvalOpinion = 0
|
this.form.approvalOpinion = 0
|
||||||
this.handleSubmit()
|
this.handleSubmit()
|
||||||
@@ -287,7 +300,7 @@ export default {
|
|||||||
this.rules = { ...this.rules }
|
this.rules = { ...this.rules }
|
||||||
},
|
},
|
||||||
// 提交
|
// 提交
|
||||||
handleSubmit() {
|
handleSubmit () {
|
||||||
this.addRule()
|
this.addRule()
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -295,16 +308,16 @@ export default {
|
|||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
const query = {
|
const query = {
|
||||||
taskId: this.$route.query.taskIds,
|
taskId: this.$route.query.taskIds,
|
||||||
userId:this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
json: json
|
json: json
|
||||||
}
|
}
|
||||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if(this.form.approvalOpinion === 1){
|
if(this.form.approvalOpinion === 1) {
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning('驳回成功')
|
||||||
this.footerLoading = false
|
this.footerLoading = false
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
this.$router.push({ path: '/processCenter?tabsName=ProcessCenter' })
|
||||||
}else{
|
}else{
|
||||||
this.processCreate(json)
|
this.processCreate(json)
|
||||||
}
|
}
|
||||||
@@ -315,7 +328,8 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||||
}})
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 流程入库
|
// 流程入库
|
||||||
processCreate (json) {
|
processCreate (json) {
|
||||||
@@ -325,7 +339,7 @@ export default {
|
|||||||
if (res.result === '操作成功' || res.data === '入库成功') {
|
if (res.result === '操作成功' || res.data === '入库成功') {
|
||||||
this.$message.success(res.data)
|
this.$message.success(res.data)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
this.$router.push({ path: '/processCenter?tabsName=ProcessCenter' })
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user