重点流程 第一步 限制必须调取标准/政策

This commit is contained in:
yanyizhou
2021-11-19 10:56:42 +08:00
parent c20ac19ca7
commit 821c4ddb2d
@@ -708,50 +708,55 @@ export default {
},
//提交事件
handleSubmit() {
this.$refs['zdrzbzORzchgxxmscForm'].validate((valid) => {
if (valid) {
this.$refs['Form'].validate((valid) => {
if (valid) {
this.isSubmit = true
let infoTableDatas = []
infoTableDatas = JSON.stringify(this.infoTableDatas)
localStorage.setItem('infoTableDatas', JSON.stringify(this.infoTableDatas))
this.$http.get('lawss/activiti/startProcess', {
type: 'laws3',
}, {_this: this}, res => {
if (res.ok) {
var json = Object.assign(this.form, this.roleForm)
json.commentText = this.commentText
// json.filesId = this.addFjList
// json.filesName = this.form.fjListName
json.infoTableDatas = infoTableDatas
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,
userId: this.$store.getters.userInfo.userId
}, {_this: this}, res => {
if (res.success) {
this.$message.success('流程发起成功')
this.$router.push('/processCenter')
this.isSubmit = false
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else {
return this.$message.warning('请完善人员信息')
}
})
} else {
return this.$message.warning('请完善基础信息')
}
})
if (this.infoTableDatas.length>0){
this.$refs['zdrzbzORzchgxxmscForm'].validate((valid) => {
if (valid) {
this.$refs['Form'].validate((valid) => {
if (valid) {
this.isSubmit = true
let infoTableDatas = []
infoTableDatas = JSON.stringify(this.infoTableDatas)
localStorage.setItem('infoTableDatas', JSON.stringify(this.infoTableDatas))
this.$http.get('lawss/activiti/startProcess', {
type: 'laws3',
}, {_this: this}, res => {
if (res.ok) {
var json = Object.assign(this.form, this.roleForm)
json.commentText = this.commentText
// json.filesId = this.addFjList
// json.filesName = this.form.fjListName
json.infoTableDatas = infoTableDatas
this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: res.data,
userId: this.$store.getters.userInfo.userId
}, {_this: this}, res => {
if (res.success) {
this.$message.success('流程发起成功')
this.$router.push('/processCenter')
this.isSubmit = false
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else {
this.$message.warning('流程启动失败')
this.isSubmit = false
}
})
} else {
return this.$message.warning('请完善人员信息')
}
})
} else {
return this.$message.warning('请完善基础信息')
}
})
}else {
this.$message.warning('请完善基础信息')
}
},
}
}