style: 格式化代码
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
<!-- 流程信息公共标题 -->
|
<!-- 流程信息公共标题 -->
|
||||||
<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>
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
<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
|
||||||
|
v-if="reloadForm"
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
@@ -21,29 +22,41 @@
|
|||||||
<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
|
||||||
@@ -54,8 +67,7 @@
|
|||||||
: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,
|
||||||
@@ -207,7 +219,7 @@ export default {
|
|||||||
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 {
|
||||||
// 撤回
|
// 撤回
|
||||||
@@ -286,7 +298,7 @@ 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) {
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
<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
|
||||||
|
v-if="reloadForm"
|
||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
@@ -20,26 +21,38 @@
|
|||||||
<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
|
||||||
@@ -51,15 +64,15 @@
|
|||||||
@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"
|
||||||
></Role-tree>
|
@checkedRole="checkedRole"
|
||||||
|
/>
|
||||||
<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,
|
||||||
@@ -213,7 +226,7 @@ export default {
|
|||||||
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)
|
||||||
@@ -301,7 +314,7 @@ export default {
|
|||||||
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' })
|
||||||
@@ -315,7 +328,8 @@ export default {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||||
}})
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 流程入库
|
// 流程入库
|
||||||
processCreate (json) {
|
processCreate (json) {
|
||||||
|
|||||||
Reference in New Issue
Block a user