按钮loading-参与外部标准制修订信息提报流程
This commit is contained in:
@@ -187,6 +187,7 @@ export default {
|
|||||||
this.$refs["Form"].validate((valid) => {
|
this.$refs["Form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
this.$http.post("lawss/activiti/startProcessRollBack", {
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
createUserName: this.$store.getters.userInfo.userName,
|
createUserName: this.$store.getters.userInfo.userName,
|
||||||
@@ -219,7 +220,11 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -230,6 +235,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);
|
||||||
@@ -240,11 +246,11 @@ export default {
|
|||||||
roleForm: this.roleForm,
|
roleForm: this.roleForm,
|
||||||
}));
|
}));
|
||||||
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.saveLoading = false;
|
||||||
|
this.isSubmit = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -91,7 +91,7 @@
|
|||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -390,9 +390,9 @@
|
|||||||
show-save
|
show-save
|
||||||
show-submit
|
show-submit
|
||||||
show-record
|
show-record
|
||||||
:recordLoading="recordLoading"
|
:recordLoading="isSubmit"
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
@record="handleRecord"
|
@record="handleRecord"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -641,6 +641,7 @@ export default {
|
|||||||
let json = {
|
let json = {
|
||||||
signFlag: '2',
|
signFlag: '2',
|
||||||
};
|
};
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -670,6 +671,7 @@ export default {
|
|||||||
wbbzform: this.wbbzform,
|
wbbzform: this.wbbzform,
|
||||||
signFlag: '1',
|
signFlag: '1',
|
||||||
};
|
};
|
||||||
|
this.isSubmit = true;
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
|||||||
@@ -223,8 +223,8 @@
|
|||||||
show-transfer
|
show-transfer
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:transfer-loading="isTransfer"
|
:isSubmitBack="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
:approval="true"
|
:approval="true"
|
||||||
@back="beforeBack"
|
@back="beforeBack"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@@ -369,6 +369,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -389,7 +390,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning("项目信息不能为空");
|
||||||
} else {
|
} else {
|
||||||
@@ -406,6 +406,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -433,14 +434,13 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedTransferRole (data) {
|
checkedTransferRole (data) {
|
||||||
this.assigneeNewLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
pId: this.$route.query.prcId // 流程实例
|
pId: this.$route.query.prcId // 流程实例
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.isTransfer = false
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
@@ -449,6 +449,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -223,8 +223,8 @@
|
|||||||
show-transfer
|
show-transfer
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:transfer-loading="isTransfer"
|
:isSubmitBack="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
:approval="true"
|
:approval="true"
|
||||||
@back="beforeBack"
|
@back="beforeBack"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@@ -369,6 +369,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -389,7 +390,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning("项目信息不能为空");
|
||||||
} else {
|
} else {
|
||||||
@@ -406,6 +406,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -433,14 +434,13 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedTransferRole (data) {
|
checkedTransferRole (data) {
|
||||||
this.assigneeNewLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
pId: this.$route.query.prcId // 流程实例
|
pId: this.$route.query.prcId // 流程实例
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.isTransfer = false
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
@@ -449,6 +449,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -223,8 +223,8 @@
|
|||||||
show-transfer
|
show-transfer
|
||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:transfer-loading="isTransfer"
|
:isSubmitBack="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="isSubmit"
|
||||||
:approval="true"
|
:approval="true"
|
||||||
@back="beforeBack"
|
@back="beforeBack"
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@@ -369,6 +369,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -389,7 +390,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
|
||||||
if (this.participantsData.length < 1) {
|
if (this.participantsData.length < 1) {
|
||||||
this.$message.warning("项目信息不能为空");
|
this.$message.warning("项目信息不能为空");
|
||||||
} else {
|
} else {
|
||||||
@@ -406,6 +406,7 @@ export default {
|
|||||||
};
|
};
|
||||||
this.$refs["wbbzForm"].validate((valid) => {
|
this.$refs["wbbzForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.isSubmit = true
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId: this.$store.getters.userInfo.userId,
|
userId: this.$store.getters.userInfo.userId,
|
||||||
@@ -433,14 +434,13 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedTransferRole (data) {
|
checkedTransferRole (data) {
|
||||||
this.assigneeNewLoading = true
|
this.isSubmit = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
assignee: data[0].id, // 被委托人
|
assignee: data[0].id, // 被委托人
|
||||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||||
pId: this.$route.query.prcId // 流程实例
|
pId: this.$route.query.prcId // 流程实例
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.isTransfer = false
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.drawerModal = false
|
this.drawerModal = false
|
||||||
this.$message.success('调整成功')
|
this.$message.success('调整成功')
|
||||||
@@ -449,6 +449,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user