From d34c375f20be5bbf70f2152f168a639688e4c3bd Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Tue, 25 Apr 2023 18:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=A1=A8=E6=A0=BC=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/Enum/enum.js | 8 +- src/utils/date.js | 1 - .../components/reportDialog.vue | 2 +- src/views/permissionApplication/examine.vue | 53 ++-- src/views/permissionApplication/launch.vue | 247 ++++++++++-------- .../processCenter/finishProcess.vue | 11 +- .../userCenter/processCenter/gencyProcess.vue | 6 +- .../processCenter/monitorProcesses.vue | 10 +- .../monitorProcesses/monitorDetail.vue | 24 +- .../monitorProcesses/monitorModal.vue | 176 +++++++------ .../userCenter/processCenter/sentProcess.vue | 9 +- src/views/userCenter/processCenter/tabs.vue | 8 +- 12 files changed, 306 insertions(+), 249 deletions(-) diff --git a/src/utils/Enum/enum.js b/src/utils/Enum/enum.js index b594b8e..33f93ca 100644 --- a/src/utils/Enum/enum.js +++ b/src/utils/Enum/enum.js @@ -5,10 +5,4 @@ export const PERMISSION = new Esenum([ { label: '预览', value: "1" }, { label: '预览+下载', value: "2" } ]) -// 流程状态 -export const PROCESSSTATE = new Esenum( - { - COMPLETED: {name: '已完成', index: 1}, - INCOMPLETED: {name: '未完成', index: 0} - } -) + diff --git a/src/utils/date.js b/src/utils/date.js index a9390ae..6d7bb58 100644 --- a/src/utils/date.js +++ b/src/utils/date.js @@ -28,7 +28,6 @@ export function formatDate (value, fmt) { } return fmt } else { - console.log(typeof value) value = value.trim() value = value.replace('T', ' ') return value.substr(0, fmt.length) diff --git a/src/views/permissionApplication/components/reportDialog.vue b/src/views/permissionApplication/components/reportDialog.vue index d493866..ce3b3d1 100644 --- a/src/views/permissionApplication/components/reportDialog.vue +++ b/src/views/permissionApplication/components/reportDialog.vue @@ -122,7 +122,7 @@ export default { } }) this.checkList = this.checkList.filter(item => { - return ids.indexOf(item.id) === -1 + return ids.indexOf(item.reportId) === -1 }) if (name.length > 0) { this.$alert(`报告${name.toString()}已经存在`, '提示', { diff --git a/src/views/permissionApplication/examine.vue b/src/views/permissionApplication/examine.vue index 68cf2c4..6b94235 100644 --- a/src/views/permissionApplication/examine.vue +++ b/src/views/permissionApplication/examine.vue @@ -153,20 +153,20 @@ export default { if(this.$route.query.type=='yiban'){ this.disabled=true } - this.getProcessDetail(params).then(res=>{ - this.tableData = JSON.parse(this.processOld.dataJson) - this.applicationForm.power = this.tableData[0].power - this.applicationForm.applyReason = this.tableData[0].applyReason - this.processForm.prcName = this.prcName - this.disabled=false - this.formControl= true - if(this.$route.query.type=='yiban'){ - this.disabled=true - this.submitjson=JSON.parse(this.processOld.submitJson) - }else{ + this.getProcessDetail(params).then(res=>{ + this.tableData = JSON.parse(this.processOld.dataJson) + this.applicationForm.power = this.tableData[0].power + this.applicationForm.applyReason = this.tableData[0].applyReason + this.processForm.prcName = this.prcName + this.disabled=false + this.formControl= true + if(this.$route.query.type=='yiban'){ + this.disabled=true + this.submitjson=JSON.parse(this.processOld.submitJson) + }else{ - } - }) + } + }) }, @@ -187,16 +187,21 @@ export default { // assignee: treeNode[0].userId, // 转办人 // userId: this.$store.getters.userInfo.userId, // dangqian人 // pId: this.$store.getters.getHandleInfo.prcId // 流程实例 - this.$api.process.changeAssignee({ - taskId: this.processOld.taskId, - assignee: treeNode[0].USID, - userId: this.$store.getters.userInfo.usid, - pId: this.processOld.pId - }).then(() => { - this.$message.success('转办成功') - this.$router.push({path: '/processCenter', query: {id: this.$route.query.id}}) - this.visibleTree = false - }) + if( treeNode[0].USID == this.$store.getters.userInfo.usid){ + this.$message.warning("您不能转办给自己") + }else{ + this.$api.process.changeAssignee({ + taskId: this.taskId, + assignee: treeNode[0].USID, + userId: this.$store.getters.userInfo.usid, + pId: this.prcId + }).then(() => { + this.$message.success('转办成功') + this.$router.push({path: '/userCenter/processCenter', query: {id: this.$route.query.id}}) + this.visibleTree = false + }) + } + }, handleSubmit() { // if (this.$refs.operationRef.submit()) { @@ -204,7 +209,7 @@ export default { let submit = JSON.parse(this.processOld.submitJson) let dataJson = this.processOld.dataJson let submitJson = JSON.stringify({...submit, ...this.$refs.operationRef.examineForm}) - this.completeProcess({ + this.completeProcess({ dataJson, submitJson, taskId: this.taskId, diff --git a/src/views/permissionApplication/launch.vue b/src/views/permissionApplication/launch.vue index b7adf74..c17f415 100644 --- a/src/views/permissionApplication/launch.vue +++ b/src/views/permissionApplication/launch.vue @@ -1,24 +1,24 @@ + }" :workNumFlag="true" :maxSelected="1" @confirm="isTreeOk"> + + +