diff --git a/jero-web/src/views/phoneView/preHomoMangement.vue b/jero-web/src/views/phoneView/preHomoMangement.vue index 512ff90eb..d84b7a3ec 100644 --- a/jero-web/src/views/phoneView/preHomoMangement.vue +++ b/jero-web/src/views/phoneView/preHomoMangement.vue @@ -347,9 +347,13 @@ this.textLoading = this.$t('Submitting') this.show = true if (this.$route.query.taskDefinitionKey == 'Task Review') { - this.ApprovedClick() + if (this.form.disposeResult == 'rzgcssc_tg') { + this.preservationClick() + } else { + this.ApprovedClick() + } } else if (this.$route.query.taskDefinitionKey == 'Task handling') { - this.submitClick() + this.submitPreservation() } else if (this.$route.query.taskDefinitionKey == 'Task responsibility confirmation') { this.ApprovedClick() } @@ -361,7 +365,6 @@ 'projectLibraryId': this.queryForm.projectLibraryId, 'ids': this.queryForm.id } - this.submitPreservation() postAction('/project/projectCertificationInventoryEO/submitTask', query).then((res) => { if (res.success) { Toast(this.$t('OperationSuccessful')) @@ -384,6 +387,9 @@ } content[0] = Object.assign(this.queryForm, form) postAction(this.url.saveBatch, { 'dataList': content }).then((res) => { + if (res.success) { + this.submitClick() + } }) }, ApprovedClick() { @@ -393,9 +399,6 @@ 'ids': this.queryForm.id, reasonForReturn: this.form.reasonForReturn } - if (this.form.disposeResult == 'rzgcssc_tg') { - this.preservationClick() - } postAction('/project/projectCertificationInventoryEO/submitTask', query).then((res) => { if (res.success) { Toast(this.$t('OperationSuccessful')) @@ -411,6 +414,9 @@ let content = [] content[0] = Object.assign(this.queryForm, this.form) postAction(this.url.saveBatch, { 'dataList': content }).then((res) => { + if (res.success) { + this.ApprovedClick() + } }) }, getData() {