按钮loading-企标废止流程

This commit is contained in:
zyn
2023-11-06 08:47:11 +08:00
parent 9260629872
commit eaa58e0a18
6 changed files with 49 additions and 22 deletions
@@ -646,13 +646,14 @@ export default {
}, res => {
if (res.success) {
this.$message.success(res.message)
this.isSubmit = false
this.saveLoading = false
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}
this.isSubmit = false
this.saveLoading = false
})
} else {
this.isSubmit = true
this.saveLoading = true
this.standardSearch.commentText = this.commentText
var json = Object.assign(this.roleForm, this.standardSearch)
this.$http.post('lawss/activiti/startProcessRollBack', {
@@ -685,9 +686,10 @@ export default {
return res
})
}
this.isSubmit = false
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}
this.isSubmit = false
this.saveLoading = false
})
}
})
@@ -192,7 +192,6 @@
<ProcessFooter
show-transfer
show-submit
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:approval="true"
@@ -323,6 +322,7 @@ export default {
this.$refs['qbfsForm'].validate((valid) => {
if(valid){
this.isSubmit = true
this.saveLoading = true
this.qbfsForm.commentText = this.commentText
this.qbfsForm.presentPeople = this.$store.getters.userInfo.userName
this.qbfsForm.presentPeopleId = this.$store.getters.userInfo.userId
@@ -339,6 +339,7 @@ export default {
this.$router.push('/processCenter')
}
this.isSubmit = false
this.saveLoading = false
}, e => {
});
}else{
@@ -354,8 +355,8 @@ export default {
},
//确认转办
checkedRoles (data) {
this.isTransfer = true;
this.isSubmit = true;
this.saveLoading = true;
this.assigneeNewLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
@@ -363,8 +364,6 @@ export default {
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例
}).then(res => {
this.isTransfer = false;
this.isSubmit = false;
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
@@ -373,6 +372,9 @@ export default {
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false;
})
},
// 请求转换流程图
@@ -232,7 +232,6 @@
<ProcessFooter
show-transfer
show-submit
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:approval="true"
@@ -366,6 +365,7 @@ export default {
this.$refs['qbfsForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.saveLoading = true;
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.dataList = this.dataList;
let json = JSON.stringify(this.qbfsForm);
@@ -381,6 +381,7 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
}, e => {
});
}else{
@@ -403,7 +404,7 @@ export default {
},
//确认转办
checkedRole(data) {
this.isTransfer = true;
this.saveLoading = true;
this.isSubmit = true;
this.assigneeNewLoading = true;
changeAssigneeNew({
@@ -412,8 +413,6 @@ export default {
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例
}).then(res => {
this.isTransfer = false;
this.isSubmit = false;
if (res.success) {
this.drawerModal = false;
this.$message.success("调整成功");
@@ -422,7 +421,10 @@ export default {
} else {
this.$message.warning(res.message);
}
});
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false;
})
},
// 请求转换流程图
processNum(row) {
@@ -234,7 +234,6 @@
show-transfer
show-submit
show-back
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
@@ -368,6 +367,7 @@ export default {
this.$message.warning('请填写审批意见')
}else{
this.isSubmit = true;
this.saveLoading = true;
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bzFlag = '1'
this.qbfsForm.dataList = this.dataList;
@@ -384,6 +384,7 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false
}, e => {
});
}
@@ -393,7 +394,7 @@ export default {
this.$refs['qbfsForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.isTransfer = true;
this.saveLoading = true;
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bzFlag = '0'
this.qbfsForm.dataList = this.dataList;
@@ -410,7 +411,7 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false;
this.isTransfer = false;
this.saveLoading = false;
}, e => {
});
}else{
@@ -433,7 +434,7 @@ export default {
},
//确认转办
checkedRole(data) {
this.isTransfer = true;
this.saveLoading = true;
this.isSubmit = true;
this.assigneeNewLoading = true;
changeAssigneeNew({
@@ -442,8 +443,6 @@ export default {
userId: this.$store.getters.userInfo.userId, // 委托人
pId: this.$route.query.prcId // 流程实例
}).then(res => {
this.isTransfer = false;
this.isSubmit = false;
if (res.success) {
this.drawerModal = false;
this.$message.success("调整成功");
@@ -452,7 +451,10 @@ export default {
} else {
this.$message.warning(res.message);
}
});
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false;
})
},
// 请求转换流程图
processNum(row) {
@@ -234,7 +234,6 @@
show-transfer
show-submit
show-back
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
@@ -368,6 +367,7 @@ export default {
this.$message.warning('请填写审批意见')
}else{
this.isSubmit = true;
this.saveLoading = true;
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.sdFlag = '1'
this.qbfsForm.dataList = this.dataList;
@@ -384,6 +384,7 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
}, e => {
});
}
@@ -393,6 +394,7 @@ export default {
this.$refs['qbfsForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.saveLoading = true;
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.sdFlag = '0'
this.qbfsForm.dataList = this.dataList;
@@ -409,6 +411,7 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
}, e => {
});
}else{
@@ -433,6 +436,7 @@ export default {
checkedRole(data) {
this.isTransfer = true;
this.isSubmit = true;
this.saveLoading = true;
this.assigneeNewLoading = true;
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
@@ -450,6 +454,9 @@ export default {
} else {
this.$message.warning(res.message);
}
}).finally(() => {
this.saveLoading = false;
this.isSubmit = false;
});
},
// 请求转换流程图
@@ -234,7 +234,6 @@
show-transfer
show-submit
show-back
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:isSubmitBack="isSubmit"
@@ -368,6 +367,7 @@ export default {
this.$message.warning('请填写审批意见')
}else{
this.isSubmit = true;
this.saveLoading = true;
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bafzFlag = '1'
this.qbfsForm.dataList = this.dataList;
@@ -384,6 +384,7 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
}, e => {
});
}
@@ -393,6 +394,7 @@ export default {
this.$refs['qbfsForm'].validate((valid) => {
if (valid) {
this.isSubmit = true;
this.saveLoading = true;
this.qbfsForm.commentText = this.commentText;
this.qbfsForm.bafzFlag = '0'
this.qbfsForm.dataList = this.dataList;
@@ -404,9 +406,14 @@ export default {
this.$http._getData('lawss/sarBussionessStand/repeal',params,{}).then(res => {
if(res && res.ok){
this.completeTask(json)
} else {
this.isSubmit = false;
this.saveLoading = false;
}
}).catch(e=>{
console.log(e)
this.isSubmit = false;
this.saveLoading = false;
})
}else{
this.$message.warning('请完善基础信息')
@@ -426,6 +433,7 @@ export default {
this.$router.push("/processCenter");
}
this.isSubmit = false;
this.saveLoading = false;
}, e => {
});
},
@@ -445,6 +453,7 @@ export default {
checkedRole(data) {
this.isTransfer = true;
this.isSubmit = true;
this.saveLoading = true;
this.assigneeNewLoading = true;
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
@@ -462,7 +471,10 @@ export default {
} else {
this.$message.warning(res.message);
}
});
}).finally(()=>{
this.saveLoading = false;
this.isSubmit = false;
})
},
// 请求转换流程图
processNum(row) {