解开流程管理的注释

This commit is contained in:
范强强
2023-10-16 10:35:49 +08:00
parent 267bfb38b9
commit 38d22bd96e
4 changed files with 76 additions and 25 deletions
+10 -10
View File
@@ -423,16 +423,16 @@
// path: '/DynamicInformations', // path: '/DynamicInformations',
// menuId: '3C87BSHJUF' // menuId: '3C87BSHJUF'
// }, // },
// // { {
// // title: '流程分类管理', title: '流程分类管理',
// // path: '/processClassificationManage', path: '/processClassificationManage',
// // menuId: 'N323F2UB9FTUV5SD3GTD' // menuId: 'N323F2UB9FTUV5SD3GTD'
// // }, },
// // { {
// // title: '流程管理', title: '流程管理',
// // path: '/processManage', path: '/processManage',
// // menuId: 'K5KXSS3X9CF7CS8AMFJ5' // menuId: 'K5KXSS3X9CF7CS8AMFJ5'
// // }, },
// { // {
// title: 'SVPPS', // title: 'SVPPS',
// path: '/svpps', // path: '/svpps',
@@ -34,15 +34,15 @@
<!--</table-tools-bar>--> <!--</table-tools-bar>-->
<div class="content"> <div class="content">
<!--<div class="action-bar">--> <div class="action-bar">
<!-- <el-button--> <!-- v-btn-permission="'XBRKH5BP5K'"-->
<!-- type="primary"--> <el-button
<!-- class="common-button-primary add-button"--> type="primary"
<!-- round--> class="common-button-primary add-button"
<!-- @click="addRow"--> round
<!-- v-btn-permission="'XBRKH5BP5K'"--> @click="addRow"
<!-- ><i class="el-icon-plus"></i>新增</el-button>--> ><i class="el-icon-plus"></i>新增</el-button>
<!--</div>--> </div>
<loading :loading="tableDataLoading">{{$t('m.dataProcessing')}}</loading> <loading :loading="tableDataLoading">{{$t('m.dataProcessing')}}</loading>
<el-table <el-table
border border
@@ -35,12 +35,12 @@
<div class="content"> <div class="content">
<div class="action-bar"> <div class="action-bar">
<!-- v-btn-permission="'XBRKH5BP5K'"-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary add-button" class="common-button-primary add-button"
round round
@click="addRow" @click="addRow"
v-btn-permission="'XBRKH5BP5K'"
><i class="el-icon-plus"></i>新增</el-button> ><i class="el-icon-plus"></i>新增</el-button>
</div> </div>
<loading :loading="tableDataLoading">{{$t('m.dataProcessing')}}</loading> <loading :loading="tableDataLoading">{{$t('m.dataProcessing')}}</loading>
@@ -146,17 +146,19 @@
<personnelInformation ref="personnelInformationRef"/> <personnelInformation ref="personnelInformationRef"/>
</div> </div>
<div class="content" style="padding-top: 20px" v-show="active === '3'"> <div class="content" style="padding-top: 20px" v-show="active === '3'">
<approvalHistory /> <approvalHistory/>
</div> </div>
<ProcessFooter show-save <ProcessFooter show-submit
show-submit :show-save="showSave"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
:show-transfer="showTransfer"
@save="handleSave" @save="handleSave"
@transfer="handleTransfer"
@submit="handleSubmit" @submit="handleSubmit"
> >
</ProcessFooter> </ProcessFooter>
<el-dialog width='400px' :visible.sync="fileMadel" title="上传调研模板"> <el-dialog width='400px' :visible.sync="fileMadel" title="上传模板">
<el-upload <el-upload
v-if="fileMadel" v-if="fileMadel"
multiple multiple
@@ -178,6 +180,12 @@
</div> </div>
</el-upload> </el-upload>
</el-dialog> </el-dialog>
<Role-tree
check-box
is-title="转办处理人"
:is-visible.sync="drawerModal"
@checkedRole="checkedRole"
></Role-tree>
</div> </div>
</template> </template>
@@ -188,7 +196,8 @@
import approvalHistory from "./components/approvalHistory"; import approvalHistory from "./components/approvalHistory";
import personnelInformation from "./components/personnelInformation"; import personnelInformation from "./components/personnelInformation";
import solicitationList from "./components/solicitationList"; import solicitationList from "./components/solicitationList";
import { queryTaskFirst, saveTaskFirst, taskDel } from "api/process"; import {queryTaskFirst, saveTaskFirst, taskDel, changeAssigneeNew} from "api/process";
import axios from "axios";
export default { export default {
name: "index", name: "index",
@@ -204,6 +213,7 @@
return { return {
active: '1', active: '1',
disabledXX: false, disabledXX: false,
drawerModal: false,
formRules: { formRules: {
lawsNumber: [ lawsNumber: [
{required: true, message: '请输入政策编号', trigger: 'change'}, {required: true, message: '请输入政策编号', trigger: 'change'},
@@ -229,6 +239,14 @@
commentText: '', commentText: '',
} }
}, },
computed: {
showSave() {
return true
},
showTransfer() {
return true
}
},
methods: { methods: {
//基础信息/人员信息 //基础信息/人员信息
handleTabs(type) { handleTabs(type) {
@@ -391,6 +409,39 @@
} }
}) })
}, },
handleTransfer() {
this.drawerModal = true
},
checkedRole(data) {
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('调整成功')
this.processNum()
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
} else {
this.$message.warning(res.message)
}
})
},
// 请求转换流程图
processNum (row) {
axios.request({
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
responseType: 'blob',
method: 'get',
params: {
prcNum: this.$route.query.prcNum
}
}).then(res => {
this.processStep = window.URL.createObjectURL(res.data)
})
},
} }
} }
</script> </script>