|
|
|
@ -115,25 +115,51 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.$loading(true, 'loadingSb')
|
|
|
|
|
if (this.key == 2) {
|
|
|
|
|
/* approveTask(obj)
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myTrips')
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myClaim')
|
|
|
|
|
history.back()
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
rejectTask(obj)
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myTrips')
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myClaim')
|
|
|
|
|
history.back()
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
}) */
|
|
|
|
|
|
|
|
|
|
approveTask(obj)
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.$forceCloseLoading()
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myTrips')
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myClaim')
|
|
|
|
|
history.back()
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$forceCloseLoading()
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
rejectTask(obj)
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.$forceCloseLoading()
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myTrips')
|
|
|
|
|
this.$EventBus.$emit('handleResetLive', 'company-myClaim')
|
|
|
|
|
history.back()
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$forceCloseLoading()
|
|
|
|
|
this.$loading(false, 'loadingSb')
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|