手机端-标准征求意见流程-意见反馈、意见汇总报批、意见处理
This commit is contained in:
@@ -0,0 +1,72 @@
|
|||||||
|
<template>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<TextareaFormItem
|
||||||
|
label="标准编号/名称"
|
||||||
|
prop="cid"
|
||||||
|
v-model="form.cid"
|
||||||
|
:disabled="disabled"
|
||||||
|
></TextareaFormItem>
|
||||||
|
<UploadFormItem
|
||||||
|
label="标准文本"
|
||||||
|
prop="fjListName"
|
||||||
|
:ids.sync="form.fjListId"
|
||||||
|
:names.sync="form.fjListName"
|
||||||
|
view
|
||||||
|
:disabled="disabled">
|
||||||
|
</UploadFormItem>
|
||||||
|
<UploadFormItem
|
||||||
|
label="相关文件"
|
||||||
|
prop="modelName"
|
||||||
|
:ids.sync="form.modelId"
|
||||||
|
:names.sync="form.modelName"
|
||||||
|
view
|
||||||
|
:disabled="disabled">
|
||||||
|
</UploadFormItem>
|
||||||
|
<DatePickerFormItem
|
||||||
|
label="征求意见结束日期"
|
||||||
|
prop="endTime"
|
||||||
|
v-model="form.endTime"
|
||||||
|
:disabled="disabled"
|
||||||
|
></DatePickerFormItem>
|
||||||
|
<van-field v-if="$route.name === 'phoneBzzqyjStep4'" label="审批人" v-model="form.spName" placeholder="" readonly />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import InputFormItem from '@/components/hzwlComponents/InputFormItem'
|
||||||
|
import TextareaFormItem from '@/components/hzwlComponents/TextareaFormItem'
|
||||||
|
import DatePickerFormItem from '@/components/hzwlComponents/DatePickerFormItem'
|
||||||
|
import UploadFormItem from "@/components/hzwlComponents/UploadFormItem";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Basic",
|
||||||
|
components: {
|
||||||
|
InputFormItem,
|
||||||
|
TextareaFormItem,
|
||||||
|
UploadFormItem,
|
||||||
|
DatePickerFormItem
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
form: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {}
|
||||||
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
dict: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
console.log(this.form.fjListId)
|
||||||
|
console.log(this.form.fjListName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
<template>
|
||||||
|
<el-table
|
||||||
|
ref="selection"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%;"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
align="center"
|
||||||
|
label="章条编号">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
align="center"
|
||||||
|
label="章节名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="commentText"
|
||||||
|
align="center"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
<el-table-column
|
||||||
|
prop="oldText"
|
||||||
|
align="center"
|
||||||
|
label="修改前">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="primary" :disabled="scope.row.chapterNumber.length === 0" @click="itermsConditionsOpen(scope.row.oldText)" class="common-button-primary">查看修改前内容</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="newText"
|
||||||
|
align="center"
|
||||||
|
label="修改后">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="reason"
|
||||||
|
align="center"
|
||||||
|
label="修改理由">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="$route.name === 'phoneBzzqyjStep5'"
|
||||||
|
prop="sourceType"
|
||||||
|
align="center"
|
||||||
|
label="来源">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="$route.name === 'phoneBzzqyjStep4' || $route.name === 'phoneBzzqyjStep5'"
|
||||||
|
prop="department"
|
||||||
|
align="center"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="$route.name === 'phoneBzzqyjStep4' || $route.name === 'phoneBzzqyjStep5'"
|
||||||
|
prop="responUserName"
|
||||||
|
align="center"
|
||||||
|
label="提出人">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="$route.name === 'phoneBzzqyjStep5'"
|
||||||
|
prop="state"
|
||||||
|
align="center"
|
||||||
|
label="处理意见">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.state === '1'">上报</span>
|
||||||
|
<span v-else-if="scope.row.state === '2'">处理后上报</span>
|
||||||
|
<span v-else-if="scope.row.state === '3'">不上报</span>
|
||||||
|
<!--<div style="margin: 5px 0;">-->
|
||||||
|
<!-- <el-select-->
|
||||||
|
<!-- :disabled="scope.row.type"-->
|
||||||
|
<!-- v-model="scope.row.state"-->
|
||||||
|
<!-- collapse-tags-->
|
||||||
|
<!-- style="margin-left: 20px;"-->
|
||||||
|
<!-- placeholder="请选择处理意见">-->
|
||||||
|
<!-- <el-option key="1" label="上报" value="1"></el-option>-->
|
||||||
|
<!-- <el-option key="2" label="处理后上报" value="2"></el-option>-->
|
||||||
|
<!-- <el-option key="3" label="不上报" value="3"></el-option>-->
|
||||||
|
<!-- </el-select>-->
|
||||||
|
<!--</div>-->
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="$route.name === 'phoneBzzqyjStep5'"
|
||||||
|
prop="cause"
|
||||||
|
align="center"
|
||||||
|
label="原因">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "SolicitationList",
|
||||||
|
props: {
|
||||||
|
data: {
|
||||||
|
type: Array,
|
||||||
|
default: () => []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,195 @@
|
|||||||
|
<template>
|
||||||
|
<div class="phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">标准征求意见流程</template>
|
||||||
|
<template slot="proNode">意见反馈</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
<el-form
|
||||||
|
v-if="reloadForm"
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
class="label-input-form phoneForm"
|
||||||
|
label-width="112px"
|
||||||
|
>
|
||||||
|
<template v-if="active === '1'">
|
||||||
|
<div>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<SolicitationList></SolicitationList>
|
||||||
|
</div>
|
||||||
|
<ReceiptDescription v-model="form.commentText" title="回执说明"></ReceiptDescription>
|
||||||
|
</template>
|
||||||
|
<template v-if="active === '3'">
|
||||||
|
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
||||||
|
</template>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-submit
|
||||||
|
show-transfer
|
||||||
|
:submitLoading="footerLoading"
|
||||||
|
:saveLoading="footerLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<phoneRoleTree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></phoneRoleTree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
|
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
||||||
|
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
||||||
|
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
|
import Basic from "./componnets/Basic";
|
||||||
|
import SolicitationList from "./componnets/SolicitationList";
|
||||||
|
|
||||||
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "step3",
|
||||||
|
components: {
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
PhoneHistortTable,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessFooter,
|
||||||
|
ReceiptDescription,
|
||||||
|
phoneRoleTree,
|
||||||
|
Basic,
|
||||||
|
SolicitationList
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
const form = {}
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
reloadForm: true,
|
||||||
|
form,
|
||||||
|
dict: {},
|
||||||
|
disabled: true,
|
||||||
|
footerLoading: false,
|
||||||
|
|
||||||
|
// 福田全公司选人解决方案
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: '',
|
||||||
|
nodeList: [],
|
||||||
|
|
||||||
|
tableData: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
getData () {
|
||||||
|
const { taskIds, prcId } = this.$route.query
|
||||||
|
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds,
|
||||||
|
pId: prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
this.reloadForm = false
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.form = JSON.parse(JSON.stringify(processForm.form || processForm))
|
||||||
|
this.form.commentText = ''
|
||||||
|
this.form.modelId = this.form.modelList.map(item => item.id).join(',')
|
||||||
|
this.form.modelName = this.form.modelList.map(item => item.name).join(',')
|
||||||
|
this.form.fjListId = this.form.fjList.map(item => item.id).join(',')
|
||||||
|
this.form.fjListName = this.form.fjList.map(item => item.fileName).join(',')
|
||||||
|
|
||||||
|
this.tableData = this.form.data || this.form.info || []
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.reloadForm = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit () {
|
||||||
|
this.$message({
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
|
message: <div style="word-break: keep-all;color: #F56C6C">当前任务不支持手机端处理</div>,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTransfer () {
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 转办
|
||||||
|
checkedRole (data) {
|
||||||
|
this.footerLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
pId: this.$route.query.prcId, // 流程实例
|
||||||
|
}).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.drawerModal = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$router.go(-2)
|
||||||
|
}, 100)
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.footerLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
.phoneBox .content {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
margin-top: 51px;
|
||||||
|
height: calc(100% - 156px);
|
||||||
|
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 0 10px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
overflow: auto;
|
||||||
|
.phoneForm {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.phoneBox /deep/ .van-field__label {
|
||||||
|
width: 112px !important;
|
||||||
|
margin-right: 0 !important;
|
||||||
|
padding-left: 10px !important;
|
||||||
|
}
|
||||||
|
.phoneBox /deep/ .van-field__control {
|
||||||
|
padding-left: 10px !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,195 @@
|
|||||||
|
<template>
|
||||||
|
<div class="phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">标准征求意见流程</template>
|
||||||
|
<template slot="proNode">意见汇总报批</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
<el-form
|
||||||
|
v-if="reloadForm"
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
class="label-input-form phoneForm"
|
||||||
|
label-width="112px"
|
||||||
|
>
|
||||||
|
<template v-if="active === '1'">
|
||||||
|
<div>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<SolicitationList></SolicitationList>
|
||||||
|
</div>
|
||||||
|
<ReceiptDescription v-model="form.commentText" title="回执说明"></ReceiptDescription>
|
||||||
|
</template>
|
||||||
|
<template v-if="active === '3'">
|
||||||
|
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
||||||
|
</template>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-submit
|
||||||
|
show-transfer
|
||||||
|
:submitLoading="footerLoading"
|
||||||
|
:saveLoading="footerLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<phoneRoleTree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></phoneRoleTree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
|
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
||||||
|
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
||||||
|
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
|
import Basic from "./componnets/Basic";
|
||||||
|
import SolicitationList from "./componnets/SolicitationList";
|
||||||
|
|
||||||
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "step3",
|
||||||
|
components: {
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
PhoneHistortTable,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessFooter,
|
||||||
|
ReceiptDescription,
|
||||||
|
phoneRoleTree,
|
||||||
|
Basic,
|
||||||
|
SolicitationList
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
const form = {}
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
reloadForm: true,
|
||||||
|
form,
|
||||||
|
dict: {},
|
||||||
|
disabled: true,
|
||||||
|
footerLoading: false,
|
||||||
|
|
||||||
|
// 福田全公司选人解决方案
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: '',
|
||||||
|
nodeList: [],
|
||||||
|
|
||||||
|
tableData: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
getData () {
|
||||||
|
const { taskIds, prcId } = this.$route.query
|
||||||
|
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds,
|
||||||
|
pId: prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
this.reloadForm = false
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.form = JSON.parse(JSON.stringify(processForm.form || processForm))
|
||||||
|
this.form.commentText = ''
|
||||||
|
this.form.modelId = this.form.modelList.map(item => item.id).join(',')
|
||||||
|
this.form.modelName = this.form.modelList.map(item => item.name).join(',')
|
||||||
|
this.form.fjListId = this.form.fjList.map(item => item.id).join(',')
|
||||||
|
this.form.fjListName = this.form.fjList.map(item => item.fileName).join(',')
|
||||||
|
|
||||||
|
this.tableData = this.form.data || this.form.info || []
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.reloadForm = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit () {
|
||||||
|
this.$message({
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
|
message: <div style="word-break: keep-all;color: #F56C6C">当前任务不支持手机端处理</div>,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTransfer () {
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 转办
|
||||||
|
checkedRole (data) {
|
||||||
|
this.footerLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
pId: this.$route.query.prcId, // 流程实例
|
||||||
|
}).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.drawerModal = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$router.go(-2)
|
||||||
|
}, 100)
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.footerLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
.phoneBox .content {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
margin-top: 51px;
|
||||||
|
height: calc(100% - 156px);
|
||||||
|
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 0 10px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
overflow: auto;
|
||||||
|
.phoneForm {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.phoneBox /deep/ .van-field__label {
|
||||||
|
width: 112px !important;
|
||||||
|
margin-right: 0 !important;
|
||||||
|
padding-left: 10px !important;
|
||||||
|
}
|
||||||
|
.phoneBox /deep/ .van-field__control {
|
||||||
|
padding-left: 10px !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,195 @@
|
|||||||
|
<template>
|
||||||
|
<div class="phoneBox">
|
||||||
|
<ProcessHeaderPhone toggle>
|
||||||
|
<template slot="proName">标准征求意见流程</template>
|
||||||
|
<template slot="proNode">意见处理</template>
|
||||||
|
</ProcessHeaderPhone>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
<el-form
|
||||||
|
v-if="reloadForm"
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
class="label-input-form phoneForm"
|
||||||
|
label-width="112px"
|
||||||
|
>
|
||||||
|
<template v-if="active === '1'">
|
||||||
|
<div>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<Basic :form="form" :dict="dict" :disabled="disabled"></Basic>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<SolicitationList></SolicitationList>
|
||||||
|
</div>
|
||||||
|
<ReceiptDescription v-model="form.commentText" title="回执说明"></ReceiptDescription>
|
||||||
|
</template>
|
||||||
|
<template v-if="active === '3'">
|
||||||
|
<PhoneHistortTable :prcNum="this.$route.query.prcNum"></PhoneHistortTable>
|
||||||
|
</template>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
<ProcessFooter
|
||||||
|
show-submit
|
||||||
|
show-transfer
|
||||||
|
:submitLoading="footerLoading"
|
||||||
|
:saveLoading="footerLoading"
|
||||||
|
@submit="handleSubmit"
|
||||||
|
@transfer="handleTransfer"
|
||||||
|
>
|
||||||
|
</ProcessFooter>
|
||||||
|
<!-- 福田全公司选人解决方案 -->
|
||||||
|
<phoneRoleTree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></phoneRoleTree>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeaderPhone from '@/pages/processCenter/pages/components/ProcessHeaderPhone'
|
||||||
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
|
import ProcessFooter from '@/pages/processCenter/pages/components/ProcessFooter'
|
||||||
|
import PhoneHistortTable from '@/components/hzwlComponents/phoneComponents/phoneApprovalHistory'
|
||||||
|
import ReceiptDescription from "@/components/hzwlComponents/ReceiptDescription";
|
||||||
|
import phoneRoleTree from '@/components/hzwlComponents/phoneComponents/phoneRoleTree'
|
||||||
|
|
||||||
|
import Basic from "./componnets/Basic";
|
||||||
|
import SolicitationList from "./componnets/SolicitationList";
|
||||||
|
|
||||||
|
import {inboundLiaisonDetail, processCreateStand, changeAssigneeNew} from 'api/process'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "step3",
|
||||||
|
components: {
|
||||||
|
ProcessHeaderPhone,
|
||||||
|
PhoneHistortTable,
|
||||||
|
ProcessTitle,
|
||||||
|
ProcessFooter,
|
||||||
|
ReceiptDescription,
|
||||||
|
phoneRoleTree,
|
||||||
|
Basic,
|
||||||
|
SolicitationList
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
const form = {}
|
||||||
|
return {
|
||||||
|
active: '1',
|
||||||
|
reloadForm: true,
|
||||||
|
form,
|
||||||
|
dict: {},
|
||||||
|
disabled: true,
|
||||||
|
footerLoading: false,
|
||||||
|
|
||||||
|
// 福田全公司选人解决方案
|
||||||
|
drawerModal: false,
|
||||||
|
drawerTitle: '',
|
||||||
|
nodeList: [],
|
||||||
|
|
||||||
|
tableData: []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getData()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name
|
||||||
|
},
|
||||||
|
getData () {
|
||||||
|
const { taskIds, prcId } = this.$route.query
|
||||||
|
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds,
|
||||||
|
pId: prcId
|
||||||
|
}).then(res => {
|
||||||
|
if (res) {
|
||||||
|
this.reloadForm = false
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.form = JSON.parse(JSON.stringify(processForm.form || processForm))
|
||||||
|
this.form.commentText = ''
|
||||||
|
this.form.modelId = this.form.modelList.map(item => item.id).join(',')
|
||||||
|
this.form.modelName = this.form.modelList.map(item => item.name).join(',')
|
||||||
|
this.form.fjListId = this.form.fjList.map(item => item.id).join(',')
|
||||||
|
this.form.fjListName = this.form.fjList.map(item => item.fileName).join(',')
|
||||||
|
|
||||||
|
this.tableData = this.form.data || this.form.info || []
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.reloadForm = true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleSubmit () {
|
||||||
|
this.$message({
|
||||||
|
dangerouslyUseHTMLString: true,
|
||||||
|
message: <div style="word-break: keep-all;color: #F56C6C">当前任务不支持手机端处理</div>,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleTransfer () {
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
|
// 转办
|
||||||
|
checkedRole (data) {
|
||||||
|
this.footerLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
pId: this.$route.query.prcId, // 流程实例
|
||||||
|
}).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.drawerModal = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$router.go(-2)
|
||||||
|
}, 100)
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.footerLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
.phoneBox .content {
|
||||||
|
border-top: 1px solid #DCDFE6;
|
||||||
|
margin-top: 51px;
|
||||||
|
height: calc(100% - 156px);
|
||||||
|
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 0 10px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
overflow: auto;
|
||||||
|
.phoneForm {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.phoneBox /deep/ .van-field__label {
|
||||||
|
width: 112px !important;
|
||||||
|
margin-right: 0 !important;
|
||||||
|
padding-left: 10px !important;
|
||||||
|
}
|
||||||
|
.phoneBox /deep/ .van-field__control {
|
||||||
|
padding-left: 10px !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1726,6 +1726,28 @@ const routes = [
|
|||||||
title: '标准征求意见流程'
|
title: '标准征求意见流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 意见反馈
|
||||||
|
{
|
||||||
|
path: '/phoneBzzqyjStep3',
|
||||||
|
name: 'phoneBzzqyjStep3',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/bzzqyj/step3.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准征求意见流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 意见汇总报批
|
||||||
|
{
|
||||||
|
path: '/phoneBzzqyjStep4',
|
||||||
|
name: 'phoneBzzqyjStep4',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/bzzqyj/step4.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准征求意见流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/phoneBzzqyjStep4-1',
|
path: '/phoneBzzqyjStep4-1',
|
||||||
name: 'phoneBzzqyjStep4-1',
|
name: 'phoneBzzqyjStep4-1',
|
||||||
@@ -1746,6 +1768,17 @@ const routes = [
|
|||||||
title: '标准征求意见流程'
|
title: '标准征求意见流程'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 意见处理
|
||||||
|
{
|
||||||
|
path: '/phoneBzzqyjStep5',
|
||||||
|
name: 'phoneBzzqyjStep5',
|
||||||
|
component: () => import('@/pages/processCenter/pages/phone/bzzqyj/step5.vue'),
|
||||||
|
meta: {
|
||||||
|
isBoolean: true,
|
||||||
|
requireAuth: true,
|
||||||
|
title: '标准征求意见流程'
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/phoneBzzqyjStep6',
|
path: '/phoneBzzqyjStep6',
|
||||||
name: 'phoneBzzqyjStep6',
|
name: 'phoneBzzqyjStep6',
|
||||||
|
|||||||
Reference in New Issue
Block a user