Browse Source

存放地点变更流程

master
Zhao Qiqi 3 years ago
parent
commit
1a9f19b780
  1. 8
      anrui-scm/anrui-scm-ui/src/api/flow/cunfangdidianbiangeng.js
  2. 74
      anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangeng.vue
  3. 17
      anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengInfo.vue
  4. 4
      anrui-system-ui/src/views/flow/doneList.vue
  5. 4
      anrui-system-ui/src/views/flow/todoList.vue

8
anrui-scm/anrui-scm-ui/src/api/flow/cunfangdidianbiangeng.js

@ -37,16 +37,16 @@ export default {
getNextNodesForSubmit: function(data) { getNextNodesForSubmit: function(data) {
return request({ return request({
url: 'scm/v1/scmvehiclegression/getNextNodesForSubmit', url: 'scm/v1/scmvehiclegression/getNextNodesForSubmit',
method: 'get', method: 'post',
params: data data: data
}) })
}, },
// 审批流程(驳回、终止)获取下一环节 // 审批流程(驳回、终止)获取下一环节
getPreviousNodesForReject: function(data) { getPreviousNodesForReject: function(data) {
return request({ return request({
url: 'scm/v1/scmvehiclegression/getPreviousNodesForReject', url: 'scm/v1/scmvehiclegression/getPreviousNodesForReject',
method: 'get', method: 'post',
params: data data: data
}) })
}, },
// 读取xml文件 // 读取xml文件

74
anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangeng.vue

@ -131,7 +131,7 @@
<!-- 选择待办人 的弹出框--> <!-- 选择待办人 的弹出框-->
<el-dialog title="选择待办人" :visible.sync="nodeDialogVisible" width="80%"> <el-dialog title="选择待办人" :visible.sync="nodeDialogVisible" width="80%">
<el-form label-position="right" class="formadd"> <el-form label-position="right" class="formadd">
<el-row> <el-row v-show="currentLink">
<el-col :span="4" class="tleftb">当前环节</el-col> <el-col :span="4" class="tleftb">当前环节</el-col>
<el-col :span="20" class="trightb"> <el-col :span="20" class="trightb">
<el-form-item prop="purchasingUnitName"><span>{{ current.taskName }}->{{ nextNode.name }}</span> <el-form-item prop="purchasingUnitName"><span>{{ current.taskName }}->{{ nextNode.name }}</span>
@ -182,6 +182,7 @@ export default {
vehiclePhoto: [], vehiclePhoto: [],
rules: {}, rules: {},
// ------------------------------------ // ------------------------------------
currentLink:true, //
dialogList: { dialogList: {
comment: '' comment: ''
}, },
@ -304,7 +305,10 @@ export default {
// //
openAgree(val) { openAgree(val) {
this.operation = val this.operation = val
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => { const formVariables = {
businessSid: this.agreeList.businessSid
}
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, formVariables }).then((resp) => {
if (resp.success) { if (resp.success) {
var arr = resp.data var arr = resp.data
this.nextNode = arr[0] this.nextNode = arr[0]
@ -316,7 +320,10 @@ export default {
// //
openReject(val) { openReject(val) {
this.operation = val this.operation = val
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => { const formVariables = {
businessSid: this.regectList.businessSid
}
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, formVariables }).then((resp) => {
if (resp.success) { if (resp.success) {
var arr = resp.data var arr = resp.data
this.nextNode = arr[0] this.nextNode = arr[0]
@ -328,14 +335,19 @@ export default {
// //
openStop(val) { openStop(val) {
this.operation = val this.operation = val
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => { this.currentLink = false //
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
this.nodeDialogVisible = true this.nodeDialogVisible = true
} // const formVariables = {
this.submitdisabled = false // businessSid: this.stopList.businessSid
}) // }
// req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, formVariables }).then((resp) => {
// if (resp.success) {
// var arr = resp.data
// this.nextNode = arr[0]
// this.nodeDialogVisible = true
// }
// this.submitdisabled = false
// })
}, },
/** 选择代办人确认 */ /** 选择代办人确认 */
confirm() { confirm() {
@ -352,11 +364,10 @@ export default {
this.agreeList.comment = this.dialogList.comment this.agreeList.comment = this.dialogList.comment
req.agreeTask(this.agreeList).then((response) => { req.agreeTask(this.agreeList).then((response) => {
if (response.success) { if (response.success) {
this.$notify({ this.$message({
title: '提示', showClose: true,
message: '执行成功', message: '执行成功',
type: 'success', type: 'success'
duration: 2000
}) })
this.nodeDialogVisible = false this.nodeDialogVisible = false
// //
@ -367,13 +378,6 @@ export default {
code: 1 code: 1
} }
}, '*') }, '*')
} else {
this.$notify({
title: '提示',
message: '执行失败',
type: 'error',
duration: 2000
})
} }
}) })
}, },
@ -382,11 +386,10 @@ export default {
this.regectList.comment = this.dialogList.comment this.regectList.comment = this.dialogList.comment
req.rejectTask(this.regectList).then((response) => { req.rejectTask(this.regectList).then((response) => {
if (response.success) { if (response.success) {
this.$notify({ this.$message({
title: '提示', showClose: true,
message: '执行成功', message: '执行成功',
type: 'success', type: 'success'
duration: 2000
}) })
this.nodeDialogVisible = false this.nodeDialogVisible = false
// //
@ -397,13 +400,6 @@ export default {
code: 1 code: 1
} }
}, '*') }, '*')
} else {
this.$notify({
title: '提示',
message: '执行失败',
type: 'error',
duration: 2000
})
} }
}) })
}, },
@ -412,11 +408,10 @@ export default {
this.stopList.comment = this.dialogList.comment this.stopList.comment = this.dialogList.comment
req.breakTask(this.stopList).then((response) => { req.breakTask(this.stopList).then((response) => {
if (response.success) { if (response.success) {
this.$notify({ this.$message({
title: '提示', showClose: true,
message: '执行成功', message: '执行成功',
type: 'success', type: 'success'
duration: 2000
}) })
this.nodeDialogVisible = false this.nodeDialogVisible = false
// //
@ -427,13 +422,6 @@ export default {
code: 1 code: 1
} }
}, '*') }, '*')
} else {
this.$notify({
title: '提示',
message: '执行失败',
type: 'error',
duration: 2000
})
} }
}) })
}, },

17
anrui-scm/anrui-scm-ui/src/views/workFlow/cunfangdidianbiangengFlow/cunfangdidianbiangengInfo.vue

@ -174,6 +174,7 @@ export default {
// const data = window.location.href.slice(one, two) // urlunescape()web,使 // const data = window.location.href.slice(one, two) // urlunescape()web,使
const data = window.location.href.substr(one) // urlunescape()web,使 const data = window.location.href.substr(one) // urlunescape()web,使
const obj = JSON.parse(decodeURIComponent(data)) const obj = JSON.parse(decodeURIComponent(data))
console.log('obj',obj)
// var a = window.location.href.indexOf('?') + 1 // ? // var a = window.location.href.indexOf('?') + 1 // ?
// var b = window.location.href.indexOf('#data') // #data // var b = window.location.href.indexOf('#data') // #data
// const info = window.location.href.slice(a, b) // const info = window.location.href.slice(a, b)
@ -239,12 +240,11 @@ export default {
// this.revokeList.comment = this.dialogList.comment // this.revokeList.comment = this.dialogList.comment
req.revokeTask(this.revokeList).then((response) => { req.revokeTask(this.revokeList).then((response) => {
if (response.success) { if (response.success) {
this.$notify({ this.$message({
title: '提示', showClose: true,
message: '执行成功', message: '执行成功',
type: 'success', type: 'success'
duration: 2000 });
})
// //
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
@ -253,13 +253,6 @@ export default {
code: 1 code: 1
} }
}, '*') }, '*')
} else {
this.$notify({
title: '提示',
message: '执行失败',
type: 'error',
duration: 2000
})
} }
}) })
}, },

4
anrui-system-ui/src/views/flow/doneList.vue

@ -272,8 +272,8 @@
} }
selectUrl(this.selectUrl_list).then((response) => { selectUrl(this.selectUrl_list).then((response) => {
if (response.code === '200') { if (response.code === '200') {
// this.url = 'http://localhost:9531' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list))) this.url = 'http://localhost:9531' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list)))
this.url = 'http://120.46.131.15' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list))) // this.url = 'http://120.46.131.15' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list)))
} else { } else {
this.$notify({ this.$notify({
title: '提示', title: '提示',

4
anrui-system-ui/src/views/flow/todoList.vue

@ -328,8 +328,8 @@ export default {
} }
selectUrl(this.selectUrl_list).then((response) => { selectUrl(this.selectUrl_list).then((response) => {
if (response.code === '200') { if (response.code === '200') {
// this.url = 'http://localhost:9531' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list))) this.url = 'http://localhost:9531' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list)))
this.url = 'http://120.46.131.15' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list))) // this.url = 'http://120.46.131.15' + response.data.url + '?token=' + getStorage() + '&data=' + encodeURI((JSON.stringify(parameter_list)))
console.log('已办拼接url:',this.url) console.log('已办拼接url:',this.url)
} else { } else {
this.$notify({ this.$notify({

Loading…
Cancel
Save