|
|
@ -54,6 +54,7 @@ export const drawerMixins = { |
|
|
|
this.displayDialog.editDialog = true |
|
|
|
} |
|
|
|
// 申请业务 流程按钮实现
|
|
|
|
// 【提交】操作
|
|
|
|
if (val == 'submitRequest') { |
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/submit/').then(res => { |
|
|
@ -67,7 +68,9 @@ export const drawerMixins = { |
|
|
|
console.log(err) |
|
|
|
that.Loading.appMainLoading = false |
|
|
|
}) |
|
|
|
} else if (val == 'agreeRequest') { |
|
|
|
} |
|
|
|
// 【审批】操作
|
|
|
|
else if (val == 'agreeRequest') { |
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/agree/').then(res => { |
|
|
|
that.$successMsg('已同意') |
|
|
@ -80,7 +83,9 @@ export const drawerMixins = { |
|
|
|
console.log(err) |
|
|
|
that.Loading.appMainLoading = false |
|
|
|
}) |
|
|
|
} else if (val == 'handleRequest') { |
|
|
|
} |
|
|
|
// 【处理】操作
|
|
|
|
else if (val == 'handleRequest') { |
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/handle/').then(res => { |
|
|
|
that.$successMsg('处理完成') |
|
|
@ -93,7 +98,9 @@ export const drawerMixins = { |
|
|
|
console.log(err) |
|
|
|
that.Loading.appMainLoading = false |
|
|
|
}) |
|
|
|
} else if (val == 'againHandleRequest') { // 针对部分完成情况下,再次执行任务操作
|
|
|
|
} |
|
|
|
// 【执行】操作
|
|
|
|
else if (val == 'againHandleRequest') { // 针对部分完成情况下,再次执行任务操作
|
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/handle/').then(res => { |
|
|
|
that.$successMsg('执行成功') |
|
|
@ -106,7 +113,9 @@ export const drawerMixins = { |
|
|
|
console.log(err) |
|
|
|
that.Loading.appMainLoading = false |
|
|
|
}) |
|
|
|
} else if (val == 'abortRequest') { |
|
|
|
} |
|
|
|
// 【中止】操作
|
|
|
|
else if (val == 'abortRequest') { |
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/abort/').then(res => { |
|
|
|
that.$successMsg('已中止') |
|
|
@ -119,7 +128,9 @@ export const drawerMixins = { |
|
|
|
console.log(err) |
|
|
|
that.Loading.appMainLoading = false |
|
|
|
}) |
|
|
|
} else if (val == 'completeRequest') { |
|
|
|
} |
|
|
|
// 【执行完成】操作
|
|
|
|
else if (val == 'completeRequest') { |
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/complete/').then(res => { |
|
|
|
that.$successMsg('执行完成') |
|
|
@ -132,7 +143,9 @@ export const drawerMixins = { |
|
|
|
console.log(err) |
|
|
|
that.Loading.appMainLoading = false |
|
|
|
}) |
|
|
|
} else if (val == 'cancelRequest') { |
|
|
|
} |
|
|
|
// 【取消】操作
|
|
|
|
else if (val == 'cancelRequest') { |
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/cancel/').then(res => { |
|
|
|
that.$successMsg('已取消') |
|
|
@ -145,7 +158,9 @@ export const drawerMixins = { |
|
|
|
console.log(err) |
|
|
|
that.Loading.appMainLoading = false |
|
|
|
}) |
|
|
|
} else if (val == 'refuseRequest') { |
|
|
|
} |
|
|
|
// 【驳回】操作
|
|
|
|
else if (val == 'refuseRequest') { |
|
|
|
that.Loading.appMainLoading = true |
|
|
|
processRequest(that.propsData.id, that.URL + '/refuse/').then(res => { |
|
|
|
that.$successMsg('已驳回') |
|
|
|