移动端转办

This commit is contained in:
宋伟佳
2021-12-22 20:53:20 +08:00
parent 316ffa031b
commit 9197a9404c
2 changed files with 70 additions and 9 deletions
@@ -252,15 +252,21 @@
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
show-transfer
:transfer-loading="isTransfer" :transfer-loading="isTransfer"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
:approval="true" :approval="true"
@transfer="handleTransfer" @transfer="handleTransfer"
@back="beforeBack"
@submit="handleSubmit" @submit="handleSubmit"
> >
</ProcessFooter> </ProcessFooter>
<phone-role
:role-title="drawerTitle"
:result-list="phoneRoleList"
:is-show-phone.sync="phoneshowflag"
@checkedRole="drawerCheck"
/>
</div> </div>
</template> </template>
@@ -282,6 +288,9 @@ export default {
}, },
data() { data() {
return { return {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
tableIndex: 0, tableIndex: 0,
itemLists: [], itemLists: [],
foldFormFlag: false, foldFormFlag: false,
@@ -365,11 +374,32 @@ export default {
this.processStep = window.URL.createObjectURL(res.data) this.processStep = window.URL.createObjectURL(res.data)
}) })
}, },
//转办事件 //转办按钮
handleTransfer(){ handleTransfer(){
this.drawerModal = true this.phoneshowflag = true
this.drawerTitle = '转办处理人' this.phoneRoleList = this.roleTransfer
this.selectPeople = row this.phoneDrawerTitle = '转办处理人'
},
//确认转办
drawerCheck (data) {
this.roleTransfer = data
this.phoneRoleList = this.roleTransfer
this.turnLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
assignee: data[0].id, // 被委托人
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例
}).then(res =>{
if (res.success) {
this.turnLoading = false
this.$message.success('调整成功')
this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
}
})
this.modalshowflag = false
}, },
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(item) {
@@ -253,6 +253,7 @@
<ProcessFooter <ProcessFooter
show-back show-back
show-submit show-submit
show-transfer
:transfer-loading="isTransfer" :transfer-loading="isTransfer"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@@ -262,6 +263,12 @@
@submit="handleSubmit" @submit="handleSubmit"
> >
</ProcessFooter> </ProcessFooter>
<phone-role
:role-title="drawerTitle"
:result-list="phoneRoleList"
:is-show-phone.sync="phoneshowflag"
@checkedRole="drawerCheck"
/>
</div> </div>
</template> </template>
@@ -283,6 +290,9 @@ export default {
}, },
data() { data() {
return { return {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
tableIndex: 0, tableIndex: 0,
itemLists: [], itemLists: [],
foldFormFlag: false, foldFormFlag: false,
@@ -366,11 +376,32 @@ export default {
this.processStep = window.URL.createObjectURL(res.data) this.processStep = window.URL.createObjectURL(res.data)
}) })
}, },
//转办事件 //转办按钮
handleTransfer(){ handleTransfer(){
this.drawerModal = true this.phoneshowflag = true
this.drawerTitle = '转办处理人' this.phoneRoleList = this.roleTransfer
this.selectPeople = row this.phoneDrawerTitle = '转办处理人'
},
//确认转办
drawerCheck (data) {
this.roleTransfer = data
this.phoneRoleList = this.roleTransfer
this.turnLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
assignee: data[0].id, // 被委托人
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例
}).then(res =>{
if (res.success) {
this.turnLoading = false
this.$message.success('调整成功')
this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
}
})
this.modalshowflag = false
}, },
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(item) {