52749 标准调研流程 流程发起 在选人的界面 保存数据 未跳出页面 点击提交 流程丢失
This commit is contained in:
@@ -269,7 +269,7 @@
|
|||||||
import ProcessHeader from '../../components/ProcessHeader'
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import { saveTaskFirst } from 'api/process'
|
import { queryTaskFirst, saveTaskFirst } from "api/process";
|
||||||
import { taskDel } from 'api/process'
|
import { taskDel } from 'api/process'
|
||||||
export default {
|
export default {
|
||||||
name: "bzdyStep1",
|
name: "bzdyStep1",
|
||||||
@@ -559,14 +559,13 @@ export default {
|
|||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSubmit(username) {
|
handleSubmit() {
|
||||||
this.$refs['qbkwForm'].validate((valid) => {
|
this.$refs['qbkwForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['Form'].validate((valid) => {
|
this.$refs['Form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
id: this.bpnId || '',
|
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
createUserName: this.$store.getters.userInfo.userName,
|
createUserName: this.$store.getters.userInfo.userName,
|
||||||
type: '2',
|
type: '2',
|
||||||
@@ -586,14 +585,12 @@ export default {
|
|||||||
}, {}, res => {
|
}, {}, res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success('流程发起成功')
|
this.$message.success('流程发起成功')
|
||||||
if (this.bpnId !== '') {
|
let taskId = {
|
||||||
let taskId = {
|
id: this.$route.query.bpnId
|
||||||
id: this.bpnId
|
|
||||||
}
|
|
||||||
taskDel(taskId).then(res=>{
|
|
||||||
return res
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
taskDel(taskId).then(res=>{
|
||||||
|
return res
|
||||||
|
})
|
||||||
this.$router.push('/processCenter')
|
this.$router.push('/processCenter')
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
@@ -612,12 +609,28 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
aa () {
|
getData () {
|
||||||
return 11111
|
queryTaskFirst({
|
||||||
}
|
bpnId: this.bpnId
|
||||||
|
}).then(res => {
|
||||||
|
this.bpnId = this.$route.query.bpnId
|
||||||
|
let mes = JSON.parse(res.mes)
|
||||||
|
if (mes.form.date) {
|
||||||
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
|
} else {
|
||||||
|
mes.form.date = ''
|
||||||
|
}
|
||||||
|
this.form = mes.form
|
||||||
|
this.roleForm = mes.roleForm
|
||||||
|
this.commentText1 = mes.commentText1 || ''
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.bpnId = this.$route.query.bpnId
|
this.bpnId = this.$route.query.bpnId
|
||||||
|
if (this.bpnId !== undefined) {
|
||||||
|
this.getData()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -621,7 +621,7 @@ export default {
|
|||||||
// 法规入库及评估流程
|
// 法规入库及评估流程
|
||||||
case '2':
|
case '2':
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'bzdyStep1-1',
|
name: 'bzdyStep1',
|
||||||
query: {
|
query: {
|
||||||
type: '2',
|
type: '2',
|
||||||
processName: '标准调研流程',
|
processName: '标准调研流程',
|
||||||
|
|||||||
Reference in New Issue
Block a user