按钮loading-标准征求意见流程
This commit is contained in:
@@ -835,6 +835,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', {
|
||||||
id: '',
|
id: '',
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
@@ -870,10 +871,13 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('流程启动失败')
|
this.$message.warning('流程启动失败')
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@@ -887,6 +891,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSave () {
|
handleSave () {
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
|
this.isSubmit = true
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
this.form.filesId = this.addFjList
|
this.form.filesId = this.addFjList
|
||||||
_formData.append('id', this.bpnId || '')
|
_formData.append('id', this.bpnId || '')
|
||||||
@@ -902,8 +907,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
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -844,6 +844,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)
|
||||||
@@ -856,11 +857,11 @@ export default {
|
|||||||
commentText1: this.commentText1
|
commentText1: this.commentText1
|
||||||
}))
|
}))
|
||||||
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
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
@@ -869,6 +870,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', {
|
||||||
id: '',
|
id: '',
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
@@ -904,14 +906,17 @@ 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('流程启动失败')
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('流程启动失败')
|
this.$message.warning('流程启动失败')
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -261,6 +261,8 @@ export default {
|
|||||||
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, // 委托人
|
||||||
@@ -275,6 +277,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -329,6 +334,7 @@ export default {
|
|||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
|
this.isSubmit = true
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
this.form.onlyKey = this.onlyKey
|
this.form.onlyKey = this.onlyKey
|
||||||
_formData.append("id", this.bpnId || "");
|
_formData.append("id", this.bpnId || "");
|
||||||
@@ -339,17 +345,18 @@ export default {
|
|||||||
commentText2: this.commentText2
|
commentText2: this.commentText2
|
||||||
}));
|
}));
|
||||||
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(() => {
|
||||||
this.saveLoading = false;
|
this.saveLoading = false;
|
||||||
|
this.isSubmit = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$refs["bzzqyjForm"].validate((valid) => {
|
this.$refs["bzzqyjForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
json.commentText = this.commentText2;
|
json.commentText = this.commentText2;
|
||||||
@@ -368,6 +375,7 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return this.$message.warning("请完善基础信息");
|
return this.$message.warning("请完善基础信息");
|
||||||
|
|||||||
@@ -500,6 +500,8 @@
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.saveLoading = true
|
||||||
|
this.isSubmit = 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, // 委托人
|
||||||
@@ -514,6 +516,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -575,6 +580,7 @@
|
|||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
|
this.isSubmit = true
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
let json = this.form
|
let json = this.form
|
||||||
json.data = this.data
|
json.data = this.data
|
||||||
@@ -588,13 +594,16 @@
|
|||||||
}));
|
}));
|
||||||
saveTaskForPub(_formData).then(res => {
|
saveTaskForPub(_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 => {
|
}).finally(() => {
|
||||||
this.saveLoading = false;
|
this.saveLoading = false;
|
||||||
|
this.isSubmit = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleAccept(){
|
handleAccept(){
|
||||||
|
this.saveLoading = true;
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
execTask({
|
execTask({
|
||||||
todoId: this.todoId // 当前节点ID
|
todoId: this.todoId // 当前节点ID
|
||||||
@@ -604,11 +613,16 @@
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.data.length < 1) {
|
if (this.data.length < 1) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
json.commentText = this.commentText3
|
json.commentText = this.commentText3
|
||||||
@@ -626,6 +640,7 @@
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
var a = 0
|
var a = 0
|
||||||
@@ -652,6 +667,7 @@
|
|||||||
// }
|
// }
|
||||||
else {
|
else {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.commentText = this.commentText3
|
json.commentText = this.commentText3
|
||||||
json.info = this.data
|
json.info = this.data
|
||||||
@@ -668,6 +684,7 @@
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,6 +230,7 @@
|
|||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:isSubmitBack="isSubmit"
|
||||||
show-transfer
|
show-transfer
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -361,6 +362,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, // 委托人
|
||||||
@@ -375,6 +378,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -408,6 +414,7 @@
|
|||||||
this.$refs['bzzqyjForm'].validate((valid) => {
|
this.$refs['bzzqyjForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
let json = this.json
|
let json = this.json
|
||||||
json.info = this.data
|
json.info = this.data
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -425,6 +432,7 @@
|
|||||||
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('请选择标准法规工程师分线管理员')
|
||||||
@@ -433,6 +441,8 @@
|
|||||||
},
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText41) {
|
if (this.commentText41) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.spFlag = '1'
|
json.spFlag = '1'
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -446,6 +456,8 @@
|
|||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请输审批意见')
|
this.$message.warning('请输审批意见')
|
||||||
|
|||||||
@@ -222,6 +222,7 @@
|
|||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:isSubmitBack="isSubmit"
|
||||||
show-transfer
|
show-transfer
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
@@ -353,6 +354,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, // 委托人
|
||||||
@@ -367,6 +370,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -398,6 +404,7 @@
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
let json = this.json
|
let json = this.json
|
||||||
json.info = this.data
|
json.info = this.data
|
||||||
json.commentText = this.commentText42
|
json.commentText = this.commentText42
|
||||||
@@ -413,10 +420,13 @@
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText42) {
|
if (this.commentText42) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.bzFlag = '1'
|
json.bzFlag = '1'
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -430,6 +440,8 @@
|
|||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请输入反馈意见')
|
this.$message.warning('请输入反馈意见')
|
||||||
|
|||||||
@@ -575,6 +575,8 @@ export default {
|
|||||||
this.drawerModal = true
|
this.drawerModal = true
|
||||||
},
|
},
|
||||||
checkedRole (data) {
|
checkedRole (data) {
|
||||||
|
this.saveLoading = true
|
||||||
|
this.isSubmit = 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, // 委托人
|
||||||
@@ -589,6 +591,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.saveLoading = false
|
||||||
|
this.isSubmit = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -621,6 +626,7 @@ export default {
|
|||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
|
this.isSubmit = true
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
let json = this.json
|
let json = this.json
|
||||||
json.info = this.data
|
json.info = this.data
|
||||||
@@ -641,14 +647,16 @@ 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.$refs['bzzqyjForm'].validate((valid) => {
|
this.$refs['bzzqyjForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
let json = this.json
|
let json = this.json
|
||||||
json.actionFlag = 0
|
json.actionFlag = 0
|
||||||
json.commentText = this.commentText4
|
json.commentText = this.commentText4
|
||||||
@@ -667,6 +675,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('请选择审批人')
|
||||||
|
|||||||
@@ -546,6 +546,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
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, // 委托人
|
||||||
@@ -560,6 +562,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -596,6 +601,7 @@
|
|||||||
handleSave() {
|
handleSave() {
|
||||||
if(this.clickFlag){
|
if(this.clickFlag){
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
|
this.isSubmit = true
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
let json = this.form;
|
let json = this.form;
|
||||||
json.data = this.data;
|
json.data = this.data;
|
||||||
@@ -611,8 +617,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
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning('公开征求意见未结束,无法操作')
|
this.$message.warning('公开征求意见未结束,无法操作')
|
||||||
@@ -634,6 +641,7 @@
|
|||||||
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
|
||||||
@@ -649,6 +657,7 @@
|
|||||||
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('公开征求意见未结束,无法操作')
|
||||||
|
|||||||
@@ -261,6 +261,7 @@
|
|||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
|
:isSubmitBack="isSubmit"
|
||||||
show-back
|
show-back
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
show-transfer
|
show-transfer
|
||||||
@@ -398,6 +399,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, // 委托人
|
||||||
@@ -412,6 +415,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -487,6 +493,7 @@
|
|||||||
this.$refs['bzzqyjForm'].validate((valid) => {
|
this.$refs['bzzqyjForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.hqFlag = '0';
|
json.hqFlag = '0';
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -503,6 +510,7 @@
|
|||||||
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('请选择审批领导')
|
||||||
@@ -512,6 +520,7 @@
|
|||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText6) {
|
if (this.commentText6) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.hqFlag = '1';
|
json.hqFlag = '1';
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -526,6 +535,7 @@
|
|||||||
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("请输入反馈意见");
|
||||||
|
|||||||
@@ -252,6 +252,7 @@
|
|||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:isSubmitBack="isSubmit"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-back
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@@ -367,6 +368,8 @@ export default {
|
|||||||
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, // 委托人
|
||||||
@@ -381,6 +384,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -454,6 +460,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.bdFlag = '0'
|
json.bdFlag = '0'
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -468,11 +475,13 @@ export default {
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText7) {
|
if (this.commentText7) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.bdFlag = '1'
|
json.bdFlag = '1'
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -487,6 +496,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('请输入反馈意见')
|
||||||
|
|||||||
@@ -252,6 +252,7 @@
|
|||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:isSubmitBack="isSubmit"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-back
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@@ -367,6 +368,8 @@ export default {
|
|||||||
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, // 委托人
|
||||||
@@ -381,6 +384,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -454,6 +460,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.directorFlag = '0'
|
json.directorFlag = '0'
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -470,11 +477,13 @@ export default {
|
|||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText8) {
|
if (this.commentText8) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = this.json
|
||||||
json.directorFlag = '1'
|
json.directorFlag = '1'
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
@@ -489,6 +498,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('请输入反馈意见')
|
||||||
|
|||||||
@@ -251,6 +251,7 @@
|
|||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
:isSubmitBack="isSubmit"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-back
|
||||||
@back="handleSubmitNo"
|
@back="handleSubmitNo"
|
||||||
@@ -366,6 +367,8 @@ export default {
|
|||||||
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, // 委托人
|
||||||
@@ -380,6 +383,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 请求转换流程图
|
// 请求转换流程图
|
||||||
@@ -453,6 +459,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.info = this.data2
|
json.info = this.data2
|
||||||
json.presidentFlag = '0';
|
json.presidentFlag = '0';
|
||||||
@@ -468,11 +475,13 @@ export default {
|
|||||||
this.$router.push("/processCenter");
|
this.$router.push("/processCenter");
|
||||||
}
|
}
|
||||||
this.isSubmit = false;
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText9) {
|
if (this.commentText9) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = this.json;
|
||||||
json.onlyKey = this.onlyKey
|
json.onlyKey = this.onlyKey
|
||||||
json.presidentFlag = '1';
|
json.presidentFlag = '1';
|
||||||
@@ -487,6 +496,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("请输入反馈意见");
|
||||||
|
|||||||
Reference in New Issue
Block a user