style: 格式化代码
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<!-- 流程信息公共标题 -->
|
||||
<template>
|
||||
<div class="contentTitle">
|
||||
<div class="titleIcon"></div>
|
||||
<div class="titleText"><slot name="title"></slot></div>
|
||||
<div class="titleIcon" />
|
||||
<div class="titleText"><slot name="title" /></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ProcessTitle"
|
||||
name: 'ProcessTitle'
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@
|
||||
<div v-else class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<el-form v-if="reloadForm"
|
||||
<el-form
|
||||
v-if="reloadForm"
|
||||
ref="form"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
@@ -21,29 +22,41 @@
|
||||
<ProcessTitle>
|
||||
<template slot="title">基础信息</template>
|
||||
</ProcessTitle>
|
||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
||||
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||
<ProcessTitle>
|
||||
<template slot="title">会议分类</template>
|
||||
</ProcessTitle>
|
||||
<Classification :form="form" :dict="dict" :disabled="disabled"></Classification>
|
||||
<Classification :form="form" :dict="dict" :disabled="disabled" />
|
||||
<div v-for="(item, index) in form.meetingTopicList">
|
||||
<ProcessTitle>
|
||||
<template slot="title">
|
||||
会议议题
|
||||
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addMeetingTopic" :disabled="disabled"
|
||||
:style="{visibility: (index === form.meetingTopicList.length - 1) ? 'visible' : 'collapse'}"></el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-minus" @click="removeMeetingTopic(index)" :disabled="disabled"
|
||||
:style="{visibility: (form.meetingTopicList.length < 2 && index === 0) ? 'collapse' : 'visible'}"></el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
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>
|
||||
</ProcessTitle>
|
||||
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled"></Topics>
|
||||
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled" />
|
||||
</div>
|
||||
<ReceiptDescription isItem v-model="form.commentText" title="回执说明" :disabled="disabled"></ReceiptDescription>
|
||||
<ReceiptDescription v-model="form.commentText" isItem title="回执说明" :disabled="disabled" />
|
||||
</div>
|
||||
<div class="block" style="padding-top: 20px;" v-show="active === '2'">
|
||||
<PersonInfo ref="roleForm" :roleForm="roleForm" :roleRules="roleRules" :disabled="disabled"></PersonInfo>
|
||||
<div v-show="active === '2'" class="block" style="padding-top: 20px;">
|
||||
<PersonInfo ref="roleForm" :roleForm="roleForm" :roleRules="roleRules" :disabled="disabled" />
|
||||
</div>
|
||||
<ApprovalHistory v-if="active === '3'"></ApprovalHistory>
|
||||
<ApprovalHistory v-if="active === '3'" />
|
||||
</el-form>
|
||||
</div>
|
||||
<ProcessFooter
|
||||
@@ -54,8 +67,7 @@
|
||||
:saveLoading="footerLoading"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
</ProcessFooter>
|
||||
/>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
@@ -64,17 +76,17 @@
|
||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||
import ProcessHeader from '@/pages/processCenter/pages/components//ProcessHeader'
|
||||
import ProcessFooter from '@/pages/processCenter/pages/components//ProcessFooter'
|
||||
import Basic from "./components/Basic";
|
||||
import Classification from "./components/Classification";
|
||||
import Topics from "./components/Topics";
|
||||
import PersonInfo from "./components/PersonInfo";
|
||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
||||
import ApprovalHistory from "@/components/hzwlComponents/ApprovalHistory";
|
||||
import Basic from './components/Basic';
|
||||
import Classification from './components/Classification';
|
||||
import Topics from './components/Topics';
|
||||
import PersonInfo from './components/PersonInfo';
|
||||
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||
import ApprovalHistory from '@/components/hzwlComponents/ApprovalHistory';
|
||||
|
||||
import { getDicTypeListCode, saveTaskFirst, queryTaskFirst, inboundLiaisonDetail, taskDel, saveTaskForPub } from 'api/process'
|
||||
|
||||
export default {
|
||||
name: "policyMeetings1",
|
||||
name: 'PolicyMeetings1',
|
||||
components: {
|
||||
ProcessTitle,
|
||||
ProcessHeader,
|
||||
@@ -207,7 +219,7 @@ export default {
|
||||
this.form.meetingTopicList = [ ...this.form.meetingTopicList, meetingTopicItem ]
|
||||
},
|
||||
removeMeetingTopic (index) {
|
||||
let res = []
|
||||
const res = []
|
||||
this.form.meetingTopicList.forEach((item, i) => {
|
||||
if (i !== index) {
|
||||
res.push(item)
|
||||
@@ -262,7 +274,7 @@ export default {
|
||||
this.reloadForm = false
|
||||
if (mes.form) {
|
||||
// 驳回
|
||||
let mes = JSON.parse(res.mes)
|
||||
const mes = JSON.parse(res.mes)
|
||||
this.$set(this, 'form', mes.form)
|
||||
} else {
|
||||
// 撤回
|
||||
@@ -286,7 +298,7 @@ export default {
|
||||
// 保存
|
||||
handleSave () {
|
||||
this.footerLoading = true
|
||||
let _formData = new FormData()
|
||||
const _formData = new FormData()
|
||||
_formData.append('prcType', '29')
|
||||
|
||||
if (this.$route.query.taskIds) {
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<el-form v-if="reloadForm"
|
||||
<el-form
|
||||
v-if="reloadForm"
|
||||
ref="form"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
@@ -20,26 +21,38 @@
|
||||
<ProcessTitle>
|
||||
<template slot="title">基础信息</template>
|
||||
</ProcessTitle>
|
||||
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
||||
<Basic :form="form" :dict="dict" :disabled="disabled" />
|
||||
<ProcessTitle>
|
||||
<template slot="title">会议分类</template>
|
||||
</ProcessTitle>
|
||||
<Classification :form="form" :dict="dict" :disabled="disabled"></Classification>
|
||||
<Classification :form="form" :dict="dict" :disabled="disabled" />
|
||||
<div v-for="(item, index) in form.meetingTopicList">
|
||||
<ProcessTitle>
|
||||
<template slot="title">
|
||||
会议议题
|
||||
<el-button type="primary" size="mini" icon="el-icon-plus" @click="addMeetingTopic" :disabled="disabled"
|
||||
:style="{visibility: (index === form.meetingTopicList.length - 1) ? 'visible' : 'collapse'}"></el-button>
|
||||
<el-button type="primary" size="mini" icon="el-icon-minus" @click="removeMeetingTopic(index)" :disabled="disabled"
|
||||
:style="{visibility: (form.meetingTopicList.length < 2 && index === 0) ? 'collapse' : 'visible'}"></el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
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>
|
||||
</ProcessTitle>
|
||||
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled"></Topics>
|
||||
<Topics :item="item" :index="index" :rules="rules" :disabled="disabled" />
|
||||
</div>
|
||||
<ReceiptDescription isItem v-model="form.commentText" prop="commentText" title="审批意见"></ReceiptDescription>
|
||||
<ReceiptDescription v-model="form.commentText" isItem prop="commentText" title="审批意见" />
|
||||
</div>
|
||||
<ApprovalHistory v-if="active === '3'"></ApprovalHistory>
|
||||
<ApprovalHistory v-if="active === '3'" />
|
||||
</el-form>
|
||||
</div>
|
||||
<ProcessFooter
|
||||
@@ -51,15 +64,15 @@
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleApprove"
|
||||
@over2="handleOver"
|
||||
></ProcessFooter>
|
||||
/>
|
||||
<!-- 福田全公司选人解决方案 -->
|
||||
<Role-tree
|
||||
check-box
|
||||
:is-title="drawerTitle"
|
||||
:is-visible.sync="drawerModal"
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
@checkedRole="checkedRole"
|
||||
/>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
@@ -68,16 +81,16 @@
|
||||
ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||
import ProcessHeader from '@/pages/processCenter/pages/components//ProcessHeader'
|
||||
import ProcessFooter from '@/pages/processCenter/pages/components//ProcessFooter'
|
||||
import Basic from "./components/Basic";
|
||||
import Classification from "./components/Classification";
|
||||
import Topics from "./components/Topics";
|
||||
import PersonInfo from "./components/PersonInfo";
|
||||
import ApprovalHistory from "@/components/hzwlComponents/ApprovalHistory";
|
||||
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
||||
import Basic from './components/Basic';
|
||||
import Classification from './components/Classification';
|
||||
import Topics from './components/Topics';
|
||||
import PersonInfo from './components/PersonInfo';
|
||||
import ApprovalHistory from '@/components/hzwlComponents/ApprovalHistory';
|
||||
import ReceiptDescription from '@/components/hzwlComponents/ReceiptDescription';
|
||||
|
||||
import { getDicTypeListCode, inboundLiaisonDetail, changeAssigneeNew, processCreateMeeting, completeTask } from 'api/process'
|
||||
export default {
|
||||
name: "policyMeetings2",
|
||||
name: 'PolicyMeetings2',
|
||||
components: {
|
||||
ProcessTitle,
|
||||
ProcessHeader,
|
||||
@@ -213,7 +226,7 @@ export default {
|
||||
this.form.meetingTopicList = [ ...this.form.meetingTopicList, meetingTopicItem ]
|
||||
},
|
||||
removeMeetingTopic (index) {
|
||||
let res = []
|
||||
const res = []
|
||||
this.form.meetingTopicList.forEach((item, i) => {
|
||||
if (i !== index) {
|
||||
res.push(item)
|
||||
@@ -301,7 +314,7 @@ export default {
|
||||
this.$http._post('lawss/activiti/completeTask', query).then(res => {
|
||||
if (res.success) {
|
||||
if(this.form.approvalOpinion === 1) {
|
||||
this.$message.warning("驳回成功")
|
||||
this.$message.warning('驳回成功')
|
||||
this.footerLoading = false
|
||||
// 流程提交之后,应该流转至待办任务页面
|
||||
this.$router.push({ path: '/processCenter?tabsName=ProcessCenter' })
|
||||
@@ -315,7 +328,8 @@ export default {
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||
}})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 流程入库
|
||||
processCreate (json) {
|
||||
|
||||
Reference in New Issue
Block a user