按钮loading-未符合项整改流程
This commit is contained in:
@@ -608,6 +608,7 @@ export default {
|
|||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append('id', this.bpnId || '')
|
_formData.append('id', this.bpnId || '')
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
@@ -619,12 +620,12 @@ export default {
|
|||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).finally(() => {
|
||||||
this.saveLoading = false
|
this.isSubmit = false;
|
||||||
})
|
this.saveLoading = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
@@ -650,6 +651,7 @@ export default {
|
|||||||
this.$refs['roleForm'].validate((valid) => {
|
this.$refs['roleForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
let paramsInfo = new FormData()
|
let paramsInfo = new FormData()
|
||||||
// paramsInfo.append('id', this.bpnId || '')
|
// paramsInfo.append('id', this.bpnId || '')
|
||||||
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
@@ -680,7 +682,13 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
}).finally(() => {
|
||||||
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
|
});
|
||||||
|
}).catch(e => {
|
||||||
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -698,6 +706,8 @@ export default {
|
|||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.$http.post("lawss/activiti/completeTaskNew", {
|
this.$http.post("lawss/activiti/completeTaskNew", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -719,6 +729,7 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
|||||||
@@ -151,8 +151,8 @@
|
|||||||
show-transfer
|
show-transfer
|
||||||
show-back
|
show-back
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:isSubmitBack="isSubmit"
|
||||||
:transferLoading="turnLoading"
|
:saveLoading="isSubmit"
|
||||||
@back="beforeBack"
|
@back="beforeBack"
|
||||||
@transfer="handleTurnTo"
|
@transfer="handleTurnTo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@@ -322,7 +322,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
@@ -331,11 +331,10 @@ export default {
|
|||||||
commentInfo: this.commentInfo
|
commentInfo: this.commentInfo
|
||||||
}))
|
}))
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).finally(e => {
|
||||||
this.saveLoading = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//驳回按钮
|
//驳回按钮
|
||||||
@@ -370,13 +369,13 @@ export default {
|
|||||||
params.set('json', JSON.stringify(json))
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
params.set('taskIds', this.taskIds)
|
params.set('taskIds', this.taskIds)
|
||||||
|
this.isSubmit = true
|
||||||
completeTask(params).then(res => {
|
completeTask(params).then(res => {
|
||||||
if(res.success === true) {
|
if(res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
}).finally(() => {
|
||||||
}).catch(e => {
|
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -384,7 +383,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
|
||||||
let zqa = new Map();
|
let zqa = new Map();
|
||||||
for (let lastDataListElement of this.dataList) {
|
for (let lastDataListElement of this.dataList) {
|
||||||
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
let a = zqa.get(lastDataListElement.dutyPeopleInfoId)
|
||||||
@@ -420,20 +418,20 @@ export default {
|
|||||||
params.set('json', JSON.stringify(json))
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
params.set('taskIds', this.taskIds)
|
params.set('taskIds', this.taskIds)
|
||||||
|
this.isSubmit = true
|
||||||
completeTask(params).then(res => {
|
completeTask(params).then(res => {
|
||||||
if(res.success === true) {
|
if(res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
}).finally(e => {
|
||||||
}).catch(e => {
|
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
if (this.drawerTitle === '转办处理人') {
|
if (this.drawerTitle === '转办处理人') {
|
||||||
this.turnLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.taskIds, // 任务id
|
taskId: this.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
@@ -447,6 +445,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.roleRow = data[0]
|
this.roleRow = data[0]
|
||||||
|
|||||||
@@ -154,8 +154,8 @@
|
|||||||
show-submit
|
show-submit
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
:transferLoading="turnLoading"
|
:isSubmitBack="isSubmit"
|
||||||
@transfer="handleTurnTo"
|
@transfer="handleTurnTo"
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@@ -366,11 +366,14 @@ export default {
|
|||||||
params.set('json', JSON.stringify(json))
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
params.set('taskIds', this.taskIds)
|
params.set('taskIds', this.taskIds)
|
||||||
|
this.isSubmit = true
|
||||||
completeTask(params).then(res => {
|
completeTask(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success('驳回成功')
|
this.$message.success('驳回成功')
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请输入反馈意见')
|
this.$message.warning('请输入反馈意见')
|
||||||
@@ -407,7 +410,7 @@ export default {
|
|||||||
for(let item of zqa) {
|
for(let item of zqa) {
|
||||||
list.push(item[1])
|
list.push(item[1])
|
||||||
}
|
}
|
||||||
this.saveLoading = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
@@ -416,16 +419,14 @@ export default {
|
|||||||
textarea: this.textarea
|
textarea: this.textarea
|
||||||
}))
|
}))
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).finally(e => {
|
||||||
this.saveLoading = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
|
||||||
let flag=false
|
let flag=false
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
if (item.dutyPeople === '') {
|
if (item.dutyPeople === '') {
|
||||||
@@ -462,20 +463,20 @@ export default {
|
|||||||
params.set('json', JSON.stringify(json))
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
params.set('taskIds', this.taskIds)
|
params.set('taskIds', this.taskIds)
|
||||||
|
this.isSubmit = true
|
||||||
completeTask(params).then(res => {
|
completeTask(params).then(res => {
|
||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
}).finally(e => {
|
||||||
}).catch(e => {
|
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
if (this.drawerTitle === '转办处理人') {
|
if (this.drawerTitle === '转办处理人') {
|
||||||
this.turnLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.taskIds, // 任务id
|
taskId: this.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
@@ -483,12 +484,13 @@ export default {
|
|||||||
pId: this.pId // 流程实例
|
pId: this.pId // 流程实例
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.turnLoading = false
|
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
this.$router.push("/processCenter")
|
this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.roleForm = data[0]
|
this.roleForm = data[0]
|
||||||
|
|||||||
@@ -153,8 +153,8 @@
|
|||||||
show-submit
|
show-submit
|
||||||
show-transfer
|
show-transfer
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
:transferLoading="turnLoading"
|
:isSubmitBack="isSubmit"
|
||||||
@transfer="handleTurnTo"
|
@transfer="handleTurnTo"
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@@ -341,12 +341,15 @@ export default {
|
|||||||
params.set('json', JSON.stringify(json))
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
params.set('taskIds', this.taskIds)
|
params.set('taskIds', this.taskIds)
|
||||||
|
this.isSubmit = true
|
||||||
completeTask(params).then(res => {
|
completeTask(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success('驳回成功')
|
this.$message.success('驳回成功')
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
})
|
}).finally(() => {
|
||||||
|
this.isSubmit = false;
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请输入反馈意见')
|
this.$message.warning('请输入反馈意见')
|
||||||
}
|
}
|
||||||
@@ -382,7 +385,7 @@ export default {
|
|||||||
for(let item of zqa) {
|
for(let item of zqa) {
|
||||||
list.push(item[1])
|
list.push(item[1])
|
||||||
}
|
}
|
||||||
this.saveLoading = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
@@ -391,16 +394,14 @@ export default {
|
|||||||
textarea: this.textarea
|
textarea: this.textarea
|
||||||
}))
|
}))
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).finally(e => {
|
||||||
this.saveLoading = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
|
||||||
let flag=false
|
let flag=false
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
if (item.dutyPeople === '') {
|
if (item.dutyPeople === '') {
|
||||||
@@ -437,20 +438,20 @@ export default {
|
|||||||
params.set('json', JSON.stringify(json))
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
params.set('taskIds', this.taskIds)
|
params.set('taskIds', this.taskIds)
|
||||||
|
this.isSubmit = true
|
||||||
completeTask(params).then(res => {
|
completeTask(params).then(res => {
|
||||||
if (res.success === true) {
|
if (res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
}).finally(e => {
|
||||||
}).catch(e => {
|
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
if (this.drawerTitle === '转办处理人') {
|
if (this.drawerTitle === '转办处理人') {
|
||||||
this.turnLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.taskIds, // 任务id
|
taskId: this.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
@@ -458,12 +459,13 @@ export default {
|
|||||||
pId: this.pId // 流程实例
|
pId: this.pId // 流程实例
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.turnLoading = false
|
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
this.$router.push("/processCenter")
|
this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.roleForm = data[0]
|
this.roleForm = data[0]
|
||||||
|
|||||||
@@ -155,8 +155,7 @@
|
|||||||
:show-submit="submitShow"
|
:show-submit="submitShow"
|
||||||
:show-confirm="acceptShow"
|
:show-confirm="acceptShow"
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
:transferLoading="turnLoading"
|
|
||||||
@transfer="handleTurnTo"
|
@transfer="handleTurnTo"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -389,21 +388,21 @@ export default {
|
|||||||
window.open(routeUrl.href, '_blank')
|
window.open(routeUrl.href, '_blank')
|
||||||
},
|
},
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
this.turnLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.taskIds, // 任务id
|
taskId: this.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
userId: this.userId, // 委托人
|
userId: this.userId, // 委托人
|
||||||
pId: this.pId // 流程实例
|
pId: this.pId // 流程实例
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
this.isSubmit = true
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.turnLoading = false
|
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
this.$router.push("/processCenter")
|
this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
@@ -429,7 +428,7 @@ export default {
|
|||||||
for(let item of zqa) {
|
for(let item of zqa) {
|
||||||
list.push(item[1].standardInfoList)
|
list.push(item[1].standardInfoList)
|
||||||
}
|
}
|
||||||
this.saveLoading = true
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
_formData.append('taskIds', this.taskIds)
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
@@ -438,11 +437,10 @@ export default {
|
|||||||
commentInput: this.commentInput
|
commentInput: this.commentInput
|
||||||
}))
|
}))
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).finally(e => {
|
||||||
this.saveLoading = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 接受按钮
|
// 接受按钮
|
||||||
@@ -455,12 +453,12 @@ export default {
|
|||||||
this.$message.success('接收成功')
|
this.$message.success('接收成功')
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
}).finally(() => {
|
||||||
})
|
this.isSubmit = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
|
||||||
let flag = false
|
let flag = false
|
||||||
this.dataList.forEach(item => {
|
this.dataList.forEach(item => {
|
||||||
if (item.fileText.length === 0) {
|
if (item.fileText.length === 0) {
|
||||||
@@ -479,15 +477,15 @@ export default {
|
|||||||
params.set('json', JSON.stringify(json))
|
params.set('json', JSON.stringify(json))
|
||||||
params.set('userId', this.$store.getters.userInfo.userId)
|
params.set('userId', this.$store.getters.userInfo.userId)
|
||||||
params.set('taskIds', this.taskIds)
|
params.set('taskIds', this.taskIds)
|
||||||
|
this.isSubmit = true
|
||||||
completeTask(params).then(res => {
|
completeTask(params).then(res => {
|
||||||
if(res.success === true) {
|
if(res.success === true) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
}).finally(() => {
|
||||||
}).catch(e => {
|
this.isSubmit = false;
|
||||||
this.isSubmit = false
|
});
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//未整改项抽屉中的查询按钮
|
//未整改项抽屉中的查询按钮
|
||||||
|
|||||||
@@ -135,8 +135,7 @@
|
|||||||
show-transfer
|
show-transfer
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:isSubmitBack="backLoading"
|
:isSubmitBack="isSubmit"
|
||||||
:transferLoading="turnLoading"
|
|
||||||
@transfer="handleTurnTo"
|
@transfer="handleTurnTo"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
@@ -312,7 +311,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
drawerCheck (data) {
|
drawerCheck (data) {
|
||||||
this.turnLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.taskIds, // 任务id
|
taskId: this.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
@@ -320,12 +319,13 @@ export default {
|
|||||||
pId: this.pId // 流程实例
|
pId: this.pId // 流程实例
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.turnLoading = false
|
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
this.$router.push("/processCenter")
|
this.$router.push("/processCenter")
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
this.modalshowflag = false
|
this.modalshowflag = false
|
||||||
},
|
},
|
||||||
@@ -335,13 +335,13 @@ export default {
|
|||||||
this.drawerTitle = '转办处理人'
|
this.drawerTitle = '转办处理人'
|
||||||
},
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
this.backLoading = true
|
|
||||||
if (this.commentText) {
|
if (this.commentText) {
|
||||||
var json = {
|
var json = {
|
||||||
responUserList: this.dataList,
|
responUserList: this.dataList,
|
||||||
actionFlag: 1,
|
actionFlag: 1,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}
|
}
|
||||||
|
this.isSubmit = true
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
taskId: this.taskIds,
|
taskId: this.taskIds,
|
||||||
@@ -350,12 +350,11 @@ export default {
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success('驳回成功')
|
this.$message.success('驳回成功')
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
this.backLoading = false
|
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请输入反馈意见')
|
this.$message.warning('请输入反馈意见')
|
||||||
this.backLoading = false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//未整改项抽屉中的查询按钮
|
//未整改项抽屉中的查询按钮
|
||||||
|
|||||||
Reference in New Issue
Block a user