修改法规清单
This commit is contained in:
+7
-75
@@ -36,15 +36,10 @@
|
||||
v-if="isDisplay"
|
||||
:is-adopt="isAdopt"
|
||||
:isSendBack="isSendBack"
|
||||
:isSubmit="isSubmit"
|
||||
:is-resubmit="isResubmit"
|
||||
:is-cancel="isCancel"
|
||||
:is-confirm="isConfirm"
|
||||
@terminationProcess="terminationProcess"
|
||||
@adopt="adopt"
|
||||
@sendBack="sendBack"
|
||||
@submit="submit"
|
||||
@Resubmit="Resubmit"
|
||||
@cancel="handleCancel"
|
||||
@confirm="confirm"
|
||||
/>
|
||||
@@ -133,20 +128,6 @@
|
||||
}
|
||||
return false
|
||||
},
|
||||
isSubmit() {
|
||||
if (this.queryData.TaskKey == 'zrrclrw' && this.queryData.isDisplay) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
},
|
||||
isResubmit() {
|
||||
if (this.queryData.TaskKey == 'dreDispose' && this.queryData.isDisplay) {
|
||||
if (this.queryPersonInCharge.engineerFeedbackContent && this.queryPersonInCharge.status != 'haveDone') {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
},
|
||||
isCancel() {
|
||||
if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr' || this.queryData.TaskKey == 'zrrtjjfw') {
|
||||
return true
|
||||
@@ -167,75 +148,26 @@
|
||||
handleCancel() {
|
||||
this.visible = false
|
||||
},
|
||||
terminationProcess(operatorTime) {
|
||||
this.textLoading = this.$t('terminationProcessing')
|
||||
this.loading = true
|
||||
this.queryBy.reviewResult = 'Termination of task'
|
||||
this.$refs.reviewedByThePersonInChargeRef.submitNoRule((res) => {
|
||||
this.completeTask({ flag: 2, operatorTime: operatorTime, ...res })
|
||||
})
|
||||
},
|
||||
adopt(operatorTime) {
|
||||
this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
|
||||
this.$refs.reviewedByThePersonInChargeRef.submitNoRule((res) => {
|
||||
this.textLoading = this.$t('Submitting')
|
||||
this.loading = true
|
||||
res.flag = 0
|
||||
res.operatorTime = operatorTime
|
||||
res.disposeResult = 'Accepted'
|
||||
this.completeTask(res)
|
||||
})
|
||||
},
|
||||
sendBack(operatorTime) {
|
||||
this.textLoading = this.$t('Returning')
|
||||
this.loading = true
|
||||
if (this.queryBy.reviewResult == 'Non-Compliance' || this.queryBy.reviewResult == 'To be tracked') {
|
||||
|
||||
} else {
|
||||
this.queryBy.reviewResult = 'No rating'
|
||||
}
|
||||
this.$refs.reviewedByThePersonInChargeRef.submitNoRule((res) => {
|
||||
this.completeTask({ flag: 1, operatorTime: operatorTime, ...res })
|
||||
})
|
||||
},
|
||||
Resubmit(operatorTime) {
|
||||
this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
|
||||
this.textLoading = this.$t('Submitting')
|
||||
this.loading = true
|
||||
res.operatorTime = operatorTime
|
||||
if (this.$route.query.TaskKey == 'dreDispose') {
|
||||
this.dreSubmit(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
submit(operatorTime) {
|
||||
this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
|
||||
this.textLoading = this.$t('Submitting')
|
||||
this.loading = true
|
||||
res.operatorTime = operatorTime
|
||||
if (this.$route.query.TaskKey == 'dreDispose') {
|
||||
this.dreSubmit(res)
|
||||
if (this.queryData.TaskKey == 'fggcssh"') {
|
||||
res.disposeResult = 'Rejected'
|
||||
} else {
|
||||
if (this.$route.query.TaskKey == 'zrrclrw') {
|
||||
let dataSource = this.$refs.engineeringConfirmationRef.dataSource
|
||||
let isTrue
|
||||
if (dataSource && dataSource.length > 0) {
|
||||
for (let i = 0; i < dataSource.length; i++) {
|
||||
if (dataSource[i].status == 'haveDone' || dataSource[i].createUser) {
|
||||
isTrue = true
|
||||
} else {
|
||||
isTrue = false
|
||||
this.$message.warning(this.$t('pleaseSubmitStatus'))
|
||||
this.loading = false
|
||||
return
|
||||
}
|
||||
}
|
||||
} else {
|
||||
isTrue = true
|
||||
}
|
||||
if (isTrue) {
|
||||
this.completeTask(res)
|
||||
}
|
||||
}
|
||||
res.disposeResult = 'Returned'
|
||||
}
|
||||
res.secondChargePersonUserId = ''
|
||||
this.completeTask({ operatorTime: operatorTime, ...res })
|
||||
})
|
||||
},
|
||||
confirm(operatorTime) {
|
||||
|
||||
Reference in New Issue
Block a user