commit
This commit is contained in:
@@ -70,7 +70,7 @@ export default {
|
|||||||
const prcType = row.prcType
|
const prcType = row.prcType
|
||||||
switch(prcType) {
|
switch(prcType) {
|
||||||
case '1':
|
case '1':
|
||||||
if (row.taskInfo === '标准法规业务经理审批') {
|
if (row.taskInfo === '批准') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'bzrkStep2',
|
name: 'bzrkStep2',
|
||||||
query: {
|
query: {
|
||||||
@@ -81,7 +81,7 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else if (row.taskInfo === '责任人会签'){
|
}else if (row.taskInfo === '会签'){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'bzrkStep3',
|
name: 'bzrkStep3',
|
||||||
query: {
|
query: {
|
||||||
@@ -92,7 +92,7 @@ export default {
|
|||||||
prcType: row.prcType
|
prcType: row.prcType
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else if (row.taskInfo === '申请人修订'){
|
}else if (row.taskInfo === '修订'){
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'bzrkStep4',
|
name: 'bzrkStep4',
|
||||||
query: {
|
query: {
|
||||||
|
|||||||
@@ -1450,6 +1450,7 @@ export default {
|
|||||||
callback()
|
callback()
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
submitType: '',
|
||||||
nodeList3: [],
|
nodeList3: [],
|
||||||
fileList: [],
|
fileList: [],
|
||||||
caFileList: [],
|
caFileList: [],
|
||||||
@@ -2210,6 +2211,7 @@ export default {
|
|||||||
} // 标准信息
|
} // 标准信息
|
||||||
},
|
},
|
||||||
handleProcessStandardNext(status) {
|
handleProcessStandardNext(status) {
|
||||||
|
this.submitType = status
|
||||||
switch (status) {
|
switch (status) {
|
||||||
// 新增
|
// 新增
|
||||||
case 1:
|
case 1:
|
||||||
@@ -3190,58 +3192,133 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['userForm'].validate((valid) => {
|
this.$refs['userForm'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.fileInfoHandle()
|
if (this.submitType === 1) {
|
||||||
this.isSubmit = true
|
let standType
|
||||||
this.form.country = this.countryArr;
|
if (this.form.standInData === '0') {
|
||||||
var json = Object.assign(this.form, this.roleForm)
|
standType = 'INLAND'
|
||||||
json.zrUserId = this.form.zrUserId
|
|
||||||
json.jlUserId = this.form.jlUserId
|
|
||||||
json.commentText = this.commentText
|
|
||||||
json.applyUpdUserId = this.form.applyUpdUserId
|
|
||||||
json.prcCreateUser = this.form.prcCreateUser
|
|
||||||
json.prcCreateUserName = this.form.prcCreateUserName
|
|
||||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
|
||||||
createUserName: this.$store.getters.userInfo.uName,
|
|
||||||
json: JSON.stringify({
|
|
||||||
taskInfo: '申请人发起',
|
|
||||||
form: this.form,
|
|
||||||
roleForm: this.roleForm,
|
|
||||||
commentText: this.commentText
|
|
||||||
}),
|
|
||||||
type: '1',
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.ok) {
|
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
|
||||||
taskIds: res.data,
|
|
||||||
userId: this.$store.getters.userInfo.userId,
|
|
||||||
json: JSON.stringify(json)
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$message.success(res.message)
|
|
||||||
this.isSubmit = false
|
|
||||||
if (this.bpnId !== '') {
|
|
||||||
let taskId = {
|
|
||||||
id: this.bpnId
|
|
||||||
}
|
|
||||||
taskDel(taskId).then(res => {
|
|
||||||
return res
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
|
||||||
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
|
||||||
} else {
|
|
||||||
this.isSubmit = false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.isSubmit = false
|
standType = 'FOREIGN'
|
||||||
}
|
}
|
||||||
})
|
this.$http.get('sarStandardsInfo/sar-standards-info/checkIsOnly', {
|
||||||
|
standType: standType,
|
||||||
|
standSort: this.form.standSort,
|
||||||
|
standNumber: this.form.standNumber,
|
||||||
|
standYear: this.form.standYear,
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.fileInfoHandle()
|
||||||
|
this.isSubmit = true
|
||||||
|
this.form.country = this.countryArr;
|
||||||
|
var json = Object.assign(this.form, this.roleForm)
|
||||||
|
json.zrUserId = this.form.zrUserId
|
||||||
|
json.jlUserId = this.form.jlUserId
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.applyUpdUserId = this.form.applyUpdUserId
|
||||||
|
json.prcCreateUser = this.form.prcCreateUser
|
||||||
|
json.prcCreateUserName = this.form.prcCreateUserName
|
||||||
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
|
createUserName: this.$store.getters.userInfo.uName,
|
||||||
|
json: JSON.stringify({
|
||||||
|
taskInfo: '申请人发起',
|
||||||
|
form: this.form,
|
||||||
|
roleForm: this.roleForm,
|
||||||
|
commentText: this.commentText
|
||||||
|
}),
|
||||||
|
type: '1',
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: res.data,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: JSON.stringify(json)
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.isSubmit = false
|
||||||
|
if (this.bpnId !== '') {
|
||||||
|
let taskId = {
|
||||||
|
id: this.bpnId
|
||||||
|
}
|
||||||
|
taskDel(taskId).then(res => {
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
|
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||||
|
} else {
|
||||||
|
this.isSubmit = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.isSubmit = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('标准号重复')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.fileInfoHandle()
|
||||||
|
this.isSubmit = true
|
||||||
|
this.form.country = this.countryArr;
|
||||||
|
var json = Object.assign(this.form, this.roleForm)
|
||||||
|
json.zrUserId = this.form.zrUserId
|
||||||
|
json.jlUserId = this.form.jlUserId
|
||||||
|
json.commentText = this.commentText
|
||||||
|
json.applyUpdUserId = this.form.applyUpdUserId
|
||||||
|
json.prcCreateUser = this.form.prcCreateUser
|
||||||
|
json.prcCreateUserName = this.form.prcCreateUserName
|
||||||
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
|
createUserName: this.$store.getters.userInfo.uName,
|
||||||
|
json: JSON.stringify({
|
||||||
|
taskInfo: '申请人发起',
|
||||||
|
form: this.form,
|
||||||
|
roleForm: this.roleForm,
|
||||||
|
commentText: this.commentText
|
||||||
|
}),
|
||||||
|
type: '1',
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.ok) {
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: res.data,
|
||||||
|
userId: this.$store.getters.userInfo.userId,
|
||||||
|
json: JSON.stringify(json)
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
this.isSubmit = false
|
||||||
|
if (this.bpnId !== '') {
|
||||||
|
let taskId = {
|
||||||
|
id: this.bpnId
|
||||||
|
}
|
||||||
|
taskDel(taskId).then(res => {
|
||||||
|
return res
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
|
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||||
|
} else {
|
||||||
|
this.isSubmit = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.isSubmit = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('请检查人员信息表单是否填写完整')
|
this.$message.warning('请检查人员信息表单是否填写完整')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user