调整流程按钮loading
This commit is contained in:
@@ -553,6 +553,7 @@
|
|||||||
},
|
},
|
||||||
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)
|
||||||
@@ -567,8 +568,9 @@
|
|||||||
this.saveLoading = false
|
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
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
@@ -576,6 +578,7 @@
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['Form'].validate((valid) => {
|
this.$refs['Form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.saveLoading = true
|
||||||
this.isSubmit = true
|
this.isSubmit = 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,
|
||||||
@@ -607,9 +610,11 @@
|
|||||||
}
|
}
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.saveLoading = false
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.saveLoading = false
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
this.$message.warning('流程启动失败')
|
this.$message.warning('流程启动失败')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -365,6 +365,8 @@
|
|||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
return this.$message.warning('请完善基础信息')
|
return this.$message.warning('请完善基础信息')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -307,6 +307,8 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||||
@@ -321,6 +323,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -395,6 +400,7 @@
|
|||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
|
this.isSubmit = true
|
||||||
let json = this.form
|
let json = this.form
|
||||||
json.responUserList = this.tableData
|
json.responUserList = this.tableData
|
||||||
this.form.docUser = this.newDocUser
|
this.form.docUser = this.newDocUser
|
||||||
@@ -407,14 +413,16 @@
|
|||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
}).catch(e => {
|
}).finally(() => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs['qbkwForm'].validate((valid) => {
|
this.$refs['qbkwForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
let json = this.jsonData
|
let json = this.jsonData
|
||||||
json.commentText = this.commentText5
|
json.commentText = this.commentText5
|
||||||
json.hzfileId = this.form.hzfileId
|
json.hzfileId = this.form.hzfileId
|
||||||
@@ -431,6 +439,7 @@
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -785,6 +785,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning('请完成流程信息的人员选择')
|
this.$message.warning('请完成流程信息的人员选择')
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1035,11 +1035,13 @@ export default {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
return this.$message.warning("请完善人员信息");
|
return this.$message.warning("请完善人员信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning("请完善基础信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -1092,11 +1094,13 @@ export default {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
return this.$message.warning("请完善人员信息");
|
return this.$message.warning("请完善人员信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning("请完善基础信息");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -635,7 +635,7 @@ export default {
|
|||||||
this.listForm.commentText = this.commentText;
|
this.listForm.commentText = this.commentText;
|
||||||
const json = JSON.stringify(this.listForm);
|
const json = JSON.stringify(this.listForm);
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = false
|
this.saveLoading = true
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId: this.userId,
|
userId: this.userId,
|
||||||
|
|||||||
@@ -1117,6 +1117,7 @@ export default {
|
|||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
|
this.isSubmit = true
|
||||||
this.listForm.fileName = this.fileInfoList;
|
this.listForm.fileName = this.fileInfoList;
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
_formData.append("id", this.bpnId || "");
|
_formData.append("id", this.bpnId || "");
|
||||||
@@ -1133,8 +1134,9 @@ export default {
|
|||||||
this.saveLoading = false;
|
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
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
|
|||||||
@@ -665,6 +665,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);
|
||||||
@@ -683,12 +684,15 @@ export default {
|
|||||||
this.saveLoading = false;
|
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;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.listForm.commentText = this.commentText
|
this.listForm.commentText = this.commentText
|
||||||
const json = JSON.stringify(this.listForm);
|
const json = JSON.stringify(this.listForm);
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
@@ -702,6 +706,8 @@ export default {
|
|||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//标准表格选择框改变
|
//标准表格选择框改变
|
||||||
|
|||||||
@@ -1051,6 +1051,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
|
this.isSubmit = true
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
this.listForm.dataList = this.dataList
|
this.listForm.dataList = this.dataList
|
||||||
this.listForm.fileName = this.fileInfoList
|
this.listForm.fileName = this.fileInfoList
|
||||||
@@ -1071,6 +1072,7 @@ export default {
|
|||||||
this.bpnId = res.result;
|
this.bpnId = res.result;
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.saveLoading = false;
|
this.saveLoading = false;
|
||||||
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//提交事件
|
//提交事件
|
||||||
@@ -1088,6 +1090,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,
|
||||||
@@ -1122,6 +1125,7 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -561,6 +561,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||||
@@ -575,6 +577,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -610,6 +615,7 @@ export default {
|
|||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
if(this.clickFlag){
|
if(this.clickFlag){
|
||||||
|
this.isSubmit = true
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
let json = this.form;
|
let json = this.form;
|
||||||
@@ -628,6 +634,7 @@ export default {
|
|||||||
this.bpnId = res.result;
|
this.bpnId = res.result;
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.saveLoading = false;
|
this.saveLoading = false;
|
||||||
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning('公开征求意见未结束,无法操作')
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
@@ -649,6 +656,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.oldinfo = this.oldData;
|
json.oldinfo = this.oldData;
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -664,6 +672,7 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning('公开征求意见未结束,无法操作')
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-transfer
|
show-transfer
|
||||||
show-submit
|
show-submit
|
||||||
:transfer-loading="isTransfer"
|
:transfer-loading="isSubmit"
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
:approval="true"
|
:approval="true"
|
||||||
@@ -335,6 +335,7 @@ export default {
|
|||||||
//流程提交
|
//流程提交
|
||||||
handleSubmit(){
|
handleSubmit(){
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.qbfsForm.presentPeople = this.$store.getters.userInfo.userName
|
this.qbfsForm.presentPeople = this.$store.getters.userInfo.userName
|
||||||
this.qbfsForm.presentPeopleId = this.$store.getters.userInfo.userId
|
this.qbfsForm.presentPeopleId = this.$store.getters.userInfo.userId
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
@@ -351,6 +352,7 @@ export default {
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -366,6 +368,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.assigneeNewLoading = true
|
this.assigneeNewLoading = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
@@ -382,6 +386,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -252,7 +252,7 @@
|
|||||||
<ProcessFooter
|
<ProcessFooter
|
||||||
show-transfer
|
show-transfer
|
||||||
show-submit
|
show-submit
|
||||||
:transfer-loading="isTransfer"
|
:transfer-loading="isSubmit"
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
:approval="true"
|
:approval="true"
|
||||||
@@ -403,6 +403,7 @@ export default {
|
|||||||
//流程提交
|
//流程提交
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
@@ -418,6 +419,7 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -436,6 +438,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
this.assigneeNewLoading = true;
|
this.assigneeNewLoading = true;
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
@@ -452,6 +456,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false;
|
||||||
|
this.isSubmit = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -612,6 +612,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -3034,7 +3034,7 @@ export default {
|
|||||||
// if(item.country !== undefined && item.country !== null){
|
// if(item.country !== undefined && item.country !== null){
|
||||||
// this.sarStandardsInfoEO.country = item.country.split(",");
|
// this.sarStandardsInfoEO.country = item.country.split(",");
|
||||||
// }
|
// }
|
||||||
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
this.fileInfoHandle()
|
this.fileInfoHandle()
|
||||||
@@ -3051,10 +3051,12 @@ export default {
|
|||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
this.bpnId = res.result
|
this.bpnId = res.result
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fileInfoHandle(){
|
fileInfoHandle(){
|
||||||
@@ -3164,6 +3166,7 @@ export default {
|
|||||||
this.$refs['userForm'].validate((valid) => {
|
this.$refs['userForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
// this.qbfsForm.commentText = this.commentText
|
// this.qbfsForm.commentText = this.commentText
|
||||||
this.form.commentText = this.commentText;
|
this.form.commentText = this.commentText;
|
||||||
let jsons = JSON.stringify(this.form);
|
let jsons = JSON.stringify(this.form);
|
||||||
@@ -3214,6 +3217,7 @@ export default {
|
|||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -3223,6 +3227,7 @@ export default {
|
|||||||
// })
|
// })
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
@@ -3181,6 +3181,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 接受按钮
|
// 接受按钮
|
||||||
handleReceive(){
|
handleReceive(){
|
||||||
|
this.saveLoading = true
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
// execTask({
|
// execTask({
|
||||||
// todoId: this.todoId // 当前节点ID
|
// todoId: this.todoId // 当前节点ID
|
||||||
@@ -3206,6 +3207,7 @@ export default {
|
|||||||
// if (res.sign && res.sign === '0') {
|
// if (res.sign && res.sign === '0') {
|
||||||
this.$message.success('接收成功')
|
this.$message.success('接收成功')
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
this.showreceive = false
|
this.showreceive = false
|
||||||
// this.$router.push('/processCenter')
|
// this.$router.push('/processCenter')
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -312,6 +312,7 @@ export default {
|
|||||||
this.$message.warning('请填写审批意见')
|
this.$message.warning('请填写审批意见')
|
||||||
}else{
|
}else{
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.qbfsForm.passFlag = '1'
|
this.qbfsForm.passFlag = '1'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
@@ -327,6 +328,7 @@ export default {
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -334,6 +336,7 @@ export default {
|
|||||||
//流程提交
|
//流程提交
|
||||||
handleSubmit(){
|
handleSubmit(){
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.qbfsForm.passFlag = '0'
|
this.qbfsForm.passFlag = '0'
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
@@ -349,6 +352,7 @@ export default {
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -360,6 +364,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedRoles (data) {
|
checkedRoles (data) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.assigneeNewLoading = true
|
this.assigneeNewLoading = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
@@ -376,6 +382,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finalize(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -379,6 +379,7 @@ export default {
|
|||||||
this.$refs['qbfsForm'].validate((valid) => {
|
this.$refs['qbfsForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
this.qbfsForm.dataList = this.dataList;
|
this.qbfsForm.dataList = this.dataList;
|
||||||
let json = JSON.stringify(this.qbfsForm);
|
let json = JSON.stringify(this.qbfsForm);
|
||||||
@@ -394,6 +395,7 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
@@ -418,6 +420,7 @@ export default {
|
|||||||
checkedRole(data) {
|
checkedRole(data) {
|
||||||
this.isTransfer = true;
|
this.isTransfer = true;
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
this.assigneeNewLoading = true;
|
this.assigneeNewLoading = true;
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
@@ -425,8 +428,6 @@ export default {
|
|||||||
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;
|
|
||||||
this.isSubmit = false;
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.drawerModal = false;
|
this.drawerModal = false;
|
||||||
this.$message.success("调整成功");
|
this.$message.success("调整成功");
|
||||||
@@ -435,7 +436,11 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message);
|
this.$message.warning(res.message);
|
||||||
}
|
}
|
||||||
});
|
}).finally(() => {
|
||||||
|
this.isTransfer = false;
|
||||||
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
processNum(row) {
|
processNum(row) {
|
||||||
|
|||||||
@@ -2168,6 +2168,7 @@
|
|||||||
this.$refs['formTongGuo'].validate((valid) => {
|
this.$refs['formTongGuo'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.form.commentText = this.formTongGuo.commentText
|
this.form.commentText = this.formTongGuo.commentText
|
||||||
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
@@ -2186,6 +2187,7 @@
|
|||||||
// this.processCreateLaws(json)
|
// this.processCreateLaws(json)
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
@@ -468,6 +468,7 @@ export default {
|
|||||||
handleSave() {
|
handleSave() {
|
||||||
if(this.approvalFlag){
|
if(this.approvalFlag){
|
||||||
//被驳回后的保存
|
//被驳回后的保存
|
||||||
|
this.isSubmit = true
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let qbzxdFrom = this.$refs["childForm"].qbfsForm;
|
let qbzxdFrom = this.$refs["childForm"].qbfsForm;
|
||||||
qbzxdFrom.type = this.toggleType
|
qbzxdFrom.type = this.toggleType
|
||||||
@@ -486,8 +487,9 @@ export default {
|
|||||||
this.saveLoading = false;
|
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
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
//第一次正常保存
|
//第一次正常保存
|
||||||
@@ -536,6 +538,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
|
||||||
qbzxdFrom.commentText = this.commentText;
|
qbzxdFrom.commentText = this.commentText;
|
||||||
qbzxdFrom.addFlag = '0'
|
qbzxdFrom.addFlag = '0'
|
||||||
let json = Object.assign(qbzxdFrom, this.roleForm);
|
let json = Object.assign(qbzxdFrom, this.roleForm);
|
||||||
@@ -571,6 +574,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -977,6 +977,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
|
this.isSubmit = true
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
this.qblx_pageData.qblxFile = this.fileInfoList
|
this.qblx_pageData.qblxFile = this.fileInfoList
|
||||||
@@ -991,8 +992,9 @@ export default {
|
|||||||
this.saveLoading = false;
|
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.isShow = false;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
listSubmit (item) {
|
listSubmit (item) {
|
||||||
@@ -1049,6 +1051,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs["roleForm"].validate(async (valid) => {
|
this.$refs["roleForm"].validate(async (valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.saveLoading = true
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
let finishCount = 0;
|
let finishCount = 0;
|
||||||
while (finishCount < jsonData.length) {
|
while (finishCount < jsonData.length) {
|
||||||
@@ -1063,6 +1066,7 @@ export default {
|
|||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.saveLoading = false
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善人员信息");
|
return this.$message.warning("请完善人员信息");
|
||||||
|
|||||||
@@ -767,6 +767,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs["roleForm"].validate((valid) => {
|
this.$refs["roleForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.saveLoading = true
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.qbfsForm.commentText = this.commentText
|
this.qbfsForm.commentText = this.commentText
|
||||||
let jsons = JSON.stringify(this.qbfsForm);
|
let jsons = JSON.stringify(this.qbfsForm);
|
||||||
@@ -778,7 +779,8 @@ export default {
|
|||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.isSubmit = true;
|
this.saveLoading = true
|
||||||
|
this.isSubmit = true
|
||||||
this.qbfsForm.type = '5'
|
this.qbfsForm.type = '5'
|
||||||
this.qbfsForm.commentText = this.commentText;
|
this.qbfsForm.commentText = this.commentText;
|
||||||
let json = Object.assign(this.qbfsForm, this.roleForm);
|
let json = Object.assign(this.qbfsForm, this.roleForm);
|
||||||
@@ -813,6 +815,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -820,6 +823,7 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}, e => {
|
}, e => {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -840,6 +844,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//确认转办
|
//确认转办
|
||||||
checkedRole3 (data) {
|
checkedRole3 (data) {
|
||||||
|
this.saveLoading = true
|
||||||
|
this.isSubmit = true
|
||||||
this.assigneeNewLoading = true
|
this.assigneeNewLoading = true
|
||||||
changeAssigneeNew({
|
changeAssigneeNew({
|
||||||
taskId: this.$route.query.taskIds, // 任务id
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
@@ -856,6 +862,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
|
|||||||
@@ -1062,7 +1062,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 保存按钮
|
// 保存按钮
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
this.isSubmit = true;
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
this.qblx_pageData.qblxFile = this.fileInfoList
|
this.qblx_pageData.qblxFile = this.fileInfoList
|
||||||
|
|||||||
Reference in New Issue
Block a user