update 流程同意调整
This commit is contained in:
+9
-4
@@ -426,9 +426,9 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
// 发起流程并且没有被驳回,调发起接口,否则调审批接口
|
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
||||||
if (this.currentNode === EsInspectionPlan.initiate.value && this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
this.handleAgree()
|
this.handleAgree(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
@@ -450,12 +450,17 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 同意
|
* 同意
|
||||||
|
* @param isSubmitBtn - 是否提交按钮(提交按钮除了发起也走同意接口)
|
||||||
*/
|
*/
|
||||||
handleAgree () {
|
handleAgree (isSubmitBtn) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
|
// 不是提交按钮 且 如果没有填写注释,就默认同意
|
||||||
|
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||||
|
res.processApprovalRecord.commitText = '同意'
|
||||||
|
}
|
||||||
return approvalInspectPlan(res)
|
return approvalInspectPlan(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
+9
-4
@@ -370,9 +370,9 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
// 发起流程并且没有被驳回,调发起接口,否则调审批接口
|
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
||||||
if (this.currentNode === EsInspectionProcess.initiate.value && this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
this.handleAgree()
|
this.handleAgree(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
@@ -394,12 +394,17 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 同意
|
* 同意
|
||||||
|
* @param isSubmitBtn - 是否提交按钮(提交按钮除了发起也走同意接口)
|
||||||
*/
|
*/
|
||||||
handleAgree () {
|
handleAgree (isSubmitBtn) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
|
// 不是提交按钮 且 如果没有填写注释,就默认同意
|
||||||
|
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||||
|
res.processApprovalRecord.commitText = '同意'
|
||||||
|
}
|
||||||
return approvalInspectProcess(res)
|
return approvalInspectProcess(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
+6
-1
@@ -392,12 +392,17 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 同意
|
* 同意
|
||||||
|
* @param isSubmitBtn - 是否提交按钮(提交按钮除了发起也走同意接口)
|
||||||
*/
|
*/
|
||||||
handleAgree () {
|
handleAgree (isSubmitBtn) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
|
// 不是提交按钮 且 如果没有填写注释,就默认同意
|
||||||
|
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||||
|
res.processApprovalRecord.commitText = '同意'
|
||||||
|
}
|
||||||
return approvalInspectRectify(res)
|
return approvalInspectRectify(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
+9
-4
@@ -371,9 +371,9 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
// 发起流程并且没有被驳回,调发起接口,否则调审批接口
|
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
||||||
if (this.currentNode === InspectionExtensionRequestProcess.initiate.value && this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
this.handleAgree()
|
this.handleAgree(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
@@ -395,12 +395,17 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 同意
|
* 同意
|
||||||
|
* @param isSubmitBtn - 是否提交按钮(提交按钮除了发起也走同意接口)
|
||||||
*/
|
*/
|
||||||
handleAgree () {
|
handleAgree (isSubmitBtn) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
|
// 不是提交按钮 且 如果没有填写注释,就默认同意
|
||||||
|
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||||
|
res.processApprovalRecord.commitText = '同意'
|
||||||
|
}
|
||||||
return approvalInspectExtension(res)
|
return approvalInspectExtension(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
@@ -473,9 +473,9 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
// 发起流程并且没有被驳回,调发起接口,否则调审批接口
|
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
||||||
if (this.currentNode === PermissionApply.initiate.value && this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
this.handleAgree()
|
this.handleAgree(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
@@ -497,12 +497,17 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 同意
|
* 同意
|
||||||
|
* @param isSubmitBtn - 是否提交按钮(提交按钮除了发起也走同意接口)
|
||||||
*/
|
*/
|
||||||
handleAgree () {
|
handleAgree (isSubmitBtn) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
|
// 不是提交按钮 且 如果没有填写注释,就默认同意
|
||||||
|
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||||
|
res.processApprovalRecord.commitText = '同意'
|
||||||
|
}
|
||||||
return approvalPermissionApply(res)
|
return approvalPermissionApply(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
@@ -396,9 +396,9 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
// 发起流程并且没有被驳回,调发起接口
|
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
||||||
if (this.currentNode !== PostMeetingManage.initiate.value) {
|
if (this.$route.query.taskId) {
|
||||||
this.handleAgree()
|
this.handleAgree(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
@@ -420,13 +420,18 @@ export default {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 同意
|
* 同意
|
||||||
|
* @param isSubmitBtn - 是否提交按钮(提交按钮除了发起也走同意接口)
|
||||||
*/
|
*/
|
||||||
handleAgree () {
|
handleAgree (isSubmitBtn) {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.getPageParams().then(res => {
|
this.getPageParams().then(res => {
|
||||||
res.map.pass = true
|
res.map.pass = true
|
||||||
res.notAttend = false
|
res.notAttend = false
|
||||||
|
// 不是提交按钮 且 如果没有填写注释,就默认同意
|
||||||
|
if (!isSubmitBtn && !res.processApprovalRecord.commitText) {
|
||||||
|
res.processApprovalRecord.commitText = '同意'
|
||||||
|
}
|
||||||
return approvalPostMeetingManage(res)
|
return approvalPostMeetingManage(res)
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user