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