修改法规清单
This commit is contained in:
+7
-75
@@ -36,15 +36,10 @@
|
|||||||
v-if="isDisplay"
|
v-if="isDisplay"
|
||||||
:is-adopt="isAdopt"
|
:is-adopt="isAdopt"
|
||||||
:isSendBack="isSendBack"
|
:isSendBack="isSendBack"
|
||||||
:isSubmit="isSubmit"
|
|
||||||
:is-resubmit="isResubmit"
|
|
||||||
:is-cancel="isCancel"
|
:is-cancel="isCancel"
|
||||||
:is-confirm="isConfirm"
|
:is-confirm="isConfirm"
|
||||||
@terminationProcess="terminationProcess"
|
|
||||||
@adopt="adopt"
|
@adopt="adopt"
|
||||||
@sendBack="sendBack"
|
@sendBack="sendBack"
|
||||||
@submit="submit"
|
|
||||||
@Resubmit="Resubmit"
|
|
||||||
@cancel="handleCancel"
|
@cancel="handleCancel"
|
||||||
@confirm="confirm"
|
@confirm="confirm"
|
||||||
/>
|
/>
|
||||||
@@ -133,20 +128,6 @@
|
|||||||
}
|
}
|
||||||
return false
|
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() {
|
isCancel() {
|
||||||
if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr' || this.queryData.TaskKey == 'zrrtjjfw') {
|
if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr' || this.queryData.TaskKey == 'zrrtjjfw') {
|
||||||
return true
|
return true
|
||||||
@@ -167,75 +148,26 @@
|
|||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.visible = false
|
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) {
|
adopt(operatorTime) {
|
||||||
this.$refs.reviewedByThePersonInChargeRef.submit((res) => {
|
this.$refs.reviewedByThePersonInChargeRef.submitNoRule((res) => {
|
||||||
this.textLoading = this.$t('Submitting')
|
this.textLoading = this.$t('Submitting')
|
||||||
this.loading = true
|
this.loading = true
|
||||||
res.flag = 0
|
|
||||||
res.operatorTime = operatorTime
|
res.operatorTime = operatorTime
|
||||||
|
res.disposeResult = 'Accepted'
|
||||||
this.completeTask(res)
|
this.completeTask(res)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
sendBack(operatorTime) {
|
sendBack(operatorTime) {
|
||||||
this.textLoading = this.$t('Returning')
|
this.textLoading = this.$t('Returning')
|
||||||
this.loading = true
|
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.$refs.reviewedByThePersonInChargeRef.submitNoRule((res) => {
|
||||||
this.completeTask({ flag: 1, operatorTime: operatorTime, ...res })
|
if (this.queryData.TaskKey == 'fggcssh"') {
|
||||||
})
|
res.disposeResult = 'Rejected'
|
||||||
},
|
|
||||||
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)
|
|
||||||
} else {
|
} else {
|
||||||
if (this.$route.query.TaskKey == 'zrrclrw') {
|
res.disposeResult = 'Returned'
|
||||||
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.secondChargePersonUserId = ''
|
||||||
|
this.completeTask({ operatorTime: operatorTime, ...res })
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirm(operatorTime) {
|
confirm(operatorTime) {
|
||||||
|
|||||||
Reference in New Issue
Block a user