commit
This commit is contained in:
@@ -2094,6 +2094,7 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
this.verifySarStandard = this.$route.query.verifySarStandard
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
|
this.submitType = mes.submitType
|
||||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
this.commentText = mes.commentText
|
this.commentText = mes.commentText
|
||||||
@@ -3136,7 +3137,7 @@ export default {
|
|||||||
// id: this.id
|
// id: this.id
|
||||||
taskInfo: '申请人发起',
|
taskInfo: '申请人发起',
|
||||||
form: this.form,
|
form: this.form,
|
||||||
|
submitType: this.submitType,
|
||||||
roleForm: this.roleForm,
|
roleForm: this.roleForm,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}))
|
}))
|
||||||
@@ -3218,6 +3219,7 @@ export default {
|
|||||||
json.applyUpdUserId = this.form.applyUpdUserId
|
json.applyUpdUserId = this.form.applyUpdUserId
|
||||||
json.prcCreateUser = this.form.prcCreateUser
|
json.prcCreateUser = this.form.prcCreateUser
|
||||||
json.prcCreateUserName = this.form.prcCreateUserName
|
json.prcCreateUserName = this.form.prcCreateUserName
|
||||||
|
json.submitType = this.submitType
|
||||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
createUserName: this.$store.getters.userInfo.uName,
|
createUserName: this.$store.getters.userInfo.uName,
|
||||||
@@ -3276,6 +3278,7 @@ export default {
|
|||||||
json.applyUpdUserId = this.form.applyUpdUserId
|
json.applyUpdUserId = this.form.applyUpdUserId
|
||||||
json.prcCreateUser = this.form.prcCreateUser
|
json.prcCreateUser = this.form.prcCreateUser
|
||||||
json.prcCreateUserName = this.form.prcCreateUserName
|
json.prcCreateUserName = this.form.prcCreateUserName
|
||||||
|
json.submitType = this.submitType
|
||||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
createUser: this.$store.getters.userInfo.userId,
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
createUserName: this.$store.getters.userInfo.uName,
|
createUserName: this.$store.getters.userInfo.uName,
|
||||||
|
|||||||
@@ -775,6 +775,7 @@ export default {
|
|||||||
name: "bzrkStep3",
|
name: "bzrkStep3",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
submitType: '',
|
||||||
xgdFileMap: [],
|
xgdFileMap: [],
|
||||||
fbgbjbdFileMap: [],
|
fbgbjbdFileMap: [],
|
||||||
bpgFileMap: [],
|
bpgFileMap: [],
|
||||||
@@ -1072,6 +1073,7 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
this.submitType = processForm.submitType
|
||||||
this.xgdFileId = processForm.xgd
|
this.xgdFileId = processForm.xgd
|
||||||
this.fbgbjbdFileId = processForm.fbgbjbd
|
this.fbgbjbdFileId = processForm.fbgbjbd
|
||||||
this.bpgFileId = processForm.bpg
|
this.bpgFileId = processForm.bpg
|
||||||
@@ -1121,7 +1123,6 @@ export default {
|
|||||||
getFormFieldList (item) {
|
getFormFieldList (item) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form = JSON.parse(JSON.stringify(item))
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
console.log("this.form",this.form);
|
|
||||||
this.defaultCheckedKeys = [this.form.standSystem]
|
this.defaultCheckedKeys = [this.form.standSystem]
|
||||||
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
|
||||||
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
|
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
|
||||||
@@ -1172,7 +1173,8 @@ export default {
|
|||||||
sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
|
sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
|
||||||
bzqdForm: this.bzqdForm,
|
bzqdForm: this.bzqdForm,
|
||||||
listInfo: this.listInfo,
|
listInfo: this.listInfo,
|
||||||
id: this.id
|
id: this.id,
|
||||||
|
submitType: this.submitType
|
||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
@@ -1187,6 +1189,7 @@ export default {
|
|||||||
this.form.commentText = this.commentText
|
this.form.commentText = this.commentText
|
||||||
this.form.approvalOpinion = this.approvalOpinion
|
this.form.approvalOpinion = this.approvalOpinion
|
||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
|
json.submitType = this.submitType
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
userId : this.userId,
|
userId : this.userId,
|
||||||
|
|||||||
@@ -1568,6 +1568,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
submitType: '',
|
||||||
modalShowRoleFlag: false,
|
modalShowRoleFlag: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
caFileList: [],
|
caFileList: [],
|
||||||
@@ -2584,14 +2585,12 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
console.log(processForm);
|
this.submitType = processForm.submitType
|
||||||
console.log(this.form);
|
|
||||||
// this.commentText = processForm.commentText
|
// this.commentText = processForm.commentText
|
||||||
if (processForm.form === undefined) {
|
if (processForm.form === undefined) {
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
} else {
|
} else {
|
||||||
//表单文件处理
|
//表单文件处理
|
||||||
console.log(2);
|
|
||||||
this.getFormFieldList(processForm.form)
|
this.getFormFieldList(processForm.form)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2731,6 +2730,7 @@ export default {
|
|||||||
form: this.form,
|
form: this.form,
|
||||||
roleForm: this.roleForm,
|
roleForm: this.roleForm,
|
||||||
commentText: this.commentText,
|
commentText: this.commentText,
|
||||||
|
submitType: this.submitType,
|
||||||
// taskInfo: '申请人修订',
|
// taskInfo: '申请人修订',
|
||||||
// taskIds:this.taskIds
|
// taskIds:this.taskIds
|
||||||
}))
|
}))
|
||||||
@@ -2782,27 +2782,73 @@ export default {
|
|||||||
this.form.country = this.countryArr;
|
this.form.country = this.countryArr;
|
||||||
this.$refs['form'].validate((valid) => {
|
this.$refs['form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.fileInfoHandle();
|
if (this.submitType === 1) {
|
||||||
this.isSubmit = true
|
let standType
|
||||||
this.form.commentText = this.commentText
|
if (this.form.standInData === '0') {
|
||||||
this.form.approvalOpinion = this.approvalOpinion
|
standType = 'INLAND'
|
||||||
const json = JSON.stringify(this.form);
|
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
|
||||||
taskIds: this.taskIds,
|
|
||||||
userId: this.userId,
|
|
||||||
json: json
|
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$message.success(res.message)
|
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
|
||||||
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.success(res.message)
|
standType = 'FOREIGN'
|
||||||
}
|
}
|
||||||
this.isSubmit = false
|
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.commentText = this.commentText
|
||||||
|
this.form.approvalOpinion = this.approvalOpinion
|
||||||
|
const json = JSON.stringify(this.form);
|
||||||
|
json.submitType = this.submitType
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
userId: this.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
|
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||||
|
} else {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('标准号重复')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.fileInfoHandle();
|
||||||
|
this.isSubmit = true
|
||||||
|
this.form.commentText = this.commentText
|
||||||
|
this.form.approvalOpinion = this.approvalOpinion
|
||||||
|
const json = JSON.stringify(this.form);
|
||||||
|
json.submitType = this.submitType
|
||||||
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
userId: this.userId,
|
||||||
|
json: json
|
||||||
|
}, {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
|
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||||
|
} else {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user