Browse Source

申请流程调整

dev_web_online
安虹睿 2 years ago
parent
commit
ee7808d9ee
  1. 29
      fe/PC/src/mixins/drawerMixins.js
  2. 2
      fe/PC/src/utils/processButtonData.js
  3. 16
      fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueRequest.vue

29
fe/PC/src/mixins/drawerMixins.js

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

2
fe/PC/src/utils/processButtonData.js

@ -90,7 +90,7 @@
// { // {
// type: 'primary', // type: 'primary',
// icon: 'el-icon-circle-check', // icon: 'el-icon-circle-check',
// label: '执行', // label: '执行完成',
// name: "completeRequest", // name: "completeRequest",
// hide: () => { return hideButtonRequest(that, [5]) }, // hide: () => { return hideButtonRequest(that, [5]) },
// size: 'mini' // size: 'mini'

16
fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueRequest.vue

@ -127,13 +127,13 @@ export default {
// }), // }),
//使 noShow //使 noShow
// ...requestData(this,false,false,['againHandleRequest']), // ...requestData(this,false,false,['againHandleRequest']),
// { {
// type: 'primary', type: 'primary',
// icon: 'el-icon-circle-check', icon: 'el-icon-circle-check',
// label: '', label: '完成',
// name: "IssueRequest-over", name: "completeRequest",
// size: 'mini' size: 'mini'
// }, },
], ],
}; };
}, },
@ -166,7 +166,7 @@ export default {
} }
}) })
return data return data
} },
// //
// drawerbutton (val) { // drawerbutton (val) {
// // // //

Loading…
Cancel
Save