对接政策征求意见流程

This commit is contained in:
范强强
2023-10-18 15:52:03 +08:00
parent 7c3c229485
commit fb543ac0d3
2 changed files with 1064 additions and 1006 deletions
@@ -259,6 +259,7 @@
:accept="accept" :accept="accept"
:fileMax_M="fileMax_M" :fileMax_M="fileMax_M"
@uploadSuccess="uploadSuccess"/> @uploadSuccess="uploadSuccess"/>
<loading :loading="dataLoading">正在加载数据</loading>
</div> </div>
</template> </template>
@@ -291,6 +292,7 @@
active: '1', active: '1',
accept: '', accept: '',
fileMax_M: 0, fileMax_M: 0,
dataLoading: false,
drawerModal: false, drawerModal: false,
nodeList: [], nodeList: [],
formRules: { formRules: {
@@ -337,7 +339,7 @@
checkBox: false, checkBox: false,
selectType: '', selectType: '',
roleForm: {}, roleForm: {},
bpnId: '', bpnId: this.$route.query.bpnId,
} }
}, },
computed: { computed: {
@@ -439,7 +441,14 @@
}, },
}, },
mounted() { mounted() {
//获取草稿的数据进行展示
if (this.bpnId) {
this.getTaskDraftData()
}
//获取流程中数据进行展示
if (this.taskKey) {
this.getData() this.getData()
}
}, },
methods: { methods: {
handlePreview(file) { handlePreview(file) {
@@ -586,12 +595,24 @@
}, {_this: this}, res => { }, {_this: this}, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId) {
this.taskDel()
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false; this.isSubmit = false;
this.saveLoading = false; this.saveLoading = false;
}) })
}, },
//删除草稿
taskDel() {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res => {
return res
})
},
handleTransfer() { handleTransfer() {
this.title = '转办处理人' this.title = '转办处理人'
this.checkBox = true this.checkBox = true
@@ -670,6 +691,7 @@
this.dataForm = {...this.dataForm} this.dataForm = {...this.dataForm}
}, },
getData() { getData() {
this.dataLoading = true
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
inboundLiaisonDetail({ inboundLiaisonDetail({
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
@@ -679,7 +701,9 @@
const processForm = JSON.parse(res.mesg) const processForm = JSON.parse(res.mesg)
this.formProcessing(processForm) this.formProcessing(processForm)
} }
this.dataLoading = false
}).catch(e => { }).catch(e => {
this.dataLoading = false
}); });
}); });
}, },
@@ -690,6 +714,18 @@
this.$refs.personnelInformationRef.getData(row) this.$refs.personnelInformationRef.getData(row)
} }
}, },
getTaskDraftData() {
this.dataLoading = true
queryTaskFirst({
bpnId: this.bpnId
}).then(res => {
let mes = JSON.parse(res.mes);
this.dataForm = mes.form
this.roleForm = mes.roleForm
this.commentText = mes.commentText
this.dataLoading = false
});
},
} }
} }
</script> </script>
@@ -41,16 +41,19 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
v-btn-permission="'255351d90836fad911d347da0e8c65b5'" v-btn-permission="'255351d90836fad911d347da0e8c65b5'"
@click="selectProcessBtn">查询</el-button> @click="selectProcessBtn">查询
</el-button>
<el-button <el-button
class="common-button-default" class="common-button-default"
size="mini" size="mini"
v-btn-permission="'568cc2a4431e8ea0d1f65bd0c0805907'" v-btn-permission="'568cc2a4431e8ea0d1f65bd0c0805907'"
@click="resetSelect">清空</el-button> @click="resetSelect">清空
</el-button>
<el-button size="mini" type="danger" <el-button size="mini" type="danger"
v-btn-permission="'de85dfbf1ca4fff1f47d4908af13c284'" v-btn-permission="'de85dfbf1ca4fff1f47d4908af13c284'"
@click="dataDel" @click="dataDel"
>删除</el-button> >删除
</el-button>
</el-form-item> </el-form-item>
</div> </div>
<div class="search-area-item"> <div class="search-area-item">
@@ -87,7 +90,8 @@
align="center" align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="dealWith(scope.row)" class="table-jump">{{ scope.row.prcName|| getPrcName(scope.row.prcType) }}</a> <a @click="dealWith(scope.row)" class="table-jump">{{ scope.row.prcName||
getPrcName(scope.row.prcType) }}</a>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
@@ -144,6 +148,7 @@
import {mapMutations, mapActions} from 'vuex' import {mapMutations, mapActions} from 'vuex'
import ProcessMixin from '../../../components/ProcessMixin' import ProcessMixin from '../../../components/ProcessMixin'
import {taskDel} from '@/api/process.js' import {taskDel} from '@/api/process.js'
export default { export default {
name: 'ProcessCenter', name: 'ProcessCenter',
mixins: [ProcessMixin], mixins: [ProcessMixin],
@@ -963,6 +968,15 @@ export default {
} }
}) })
break break
case '29':
this.$router.push({
path: 'policyConsultation',
query: {
bpnId: id
}
})
break
} }
}, },
...mapMutations(['setProcess', 'setHandleInfo']), ...mapMutations(['setProcess', 'setHandleInfo']),
@@ -981,32 +995,39 @@ export default {
background: #fff; background: #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.el-form-item { .el-form-item {
} }
.label-input-form { .label-input-form {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.content { .content {
width: 100%; width: 100%;
flex: auto; flex: auto;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.table-wrap { .table-wrap {
flex: auto; flex: auto;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.pagination { .pagination {
position: static; position: static;
/deep/ .pagination-slot { /deep/ .pagination-slot {
padding: 0; padding: 0;
} }
} }
} }
} }
.clearfix:after { /*伪元素是行内元素 正常浏览器清除浮动方法*/ .clearfix:after { /*伪元素是行内元素 正常浏览器清除浮动方法*/
content: ""; content: "";
display: block; display: block;
@@ -1014,6 +1035,7 @@ export default {
clear: both; clear: both;
visibility: hidden; visibility: hidden;
} }
.clearfix { .clearfix {
*zoom: 1; /*ie6清除浮动的方式 *号只有IE6-IE7执行,其他浏览器不执行*/ *zoom: 1; /*ie6清除浮动的方式 *号只有IE6-IE7执行,其他浏览器不执行*/
} }