技术标准/产品标准提交加接口
This commit is contained in:
@@ -2539,6 +2539,55 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ifStandCodebyStandName(standCode,standName){
|
||||||
|
return new Promise((resolve, reject)=>{
|
||||||
|
this.$http._postData('lawss/sarBussionessStand/ifStandCodebyStandName',{standCode,standName})
|
||||||
|
.then(res => resolve(res))
|
||||||
|
.catch(e => {
|
||||||
|
throw new Error(e)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
completeTask(){
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
|
this.form.commentText = this.formTongGuo.commentText
|
||||||
|
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
||||||
|
this.form.topId = this.pId
|
||||||
|
this.form.reviseStatus = 'buss2_'+this.form.standStatus
|
||||||
|
this.form.textStatusBuss = '6jnqba2mby'
|
||||||
|
// 修订时 清空历史版本文件
|
||||||
|
if(this.form.standStatus==='2') {
|
||||||
|
this.form.LSBBBUSSName = ''
|
||||||
|
this.form.LSBBBUSS = ''
|
||||||
|
}
|
||||||
|
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.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
|
this.processCreateBuss(json)
|
||||||
|
// if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
|
// this.$message.warning("驳回成功")
|
||||||
|
// this.isSubmit = false
|
||||||
|
// // 流程提交之后,应该流转至待办任务页面
|
||||||
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
|
// }else{
|
||||||
|
// this.processCreateLaws(json)
|
||||||
|
// }
|
||||||
|
}else {
|
||||||
|
this.$message.success(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// this.getRule()
|
// this.getRule()
|
||||||
// const val= this.form.country;
|
// const val= this.form.country;
|
||||||
@@ -2560,44 +2609,18 @@
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['formTongGuo'].validate((valid) => {
|
this.$refs['formTongGuo'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
if(this.form.standStatus === '1' || this.form.standStatus === '2'){
|
||||||
this.saveLoading = true
|
this.ifStandCodebyStandName(this.form.standCode,this.form.standName)
|
||||||
this.form.commentText = this.formTongGuo.commentText
|
.then((res)=>{
|
||||||
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
if(res.ok){
|
||||||
this.form.topId = this.pId
|
this.completeTask()
|
||||||
this.form.reviseStatus = 'buss2_'+this.form.standStatus
|
}else{
|
||||||
this.form.textStatusBuss = '6jnqba2mby'
|
this.$message.error(res.data)
|
||||||
// 修订时 清空历史版本文件
|
}
|
||||||
if(this.form.standStatus==='2') {
|
})
|
||||||
this.form.LSBBBUSSName = ''
|
}else{
|
||||||
this.form.LSBBBUSS = ''
|
this.completeTask()
|
||||||
}
|
}
|
||||||
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.isSubmit = false
|
|
||||||
this.saveLoading = false
|
|
||||||
this.processCreateBuss(json)
|
|
||||||
// if(this.formTongGuo.approvalOpinion === '1'){
|
|
||||||
// this.$message.warning("驳回成功")
|
|
||||||
// this.isSubmit = false
|
|
||||||
// // 流程提交之后,应该流转至待办任务页面
|
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
|
||||||
// }else{
|
|
||||||
// this.processCreateLaws(json)
|
|
||||||
// }
|
|
||||||
}else {
|
|
||||||
this.$message.success(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}})
|
}})
|
||||||
}else{
|
}else{
|
||||||
this.$message.warning('请检查基础信息表单是否填写完整')
|
this.$message.warning('请检查基础信息表单是否填写完整')
|
||||||
|
|||||||
@@ -2647,6 +2647,52 @@
|
|||||||
this.rules.commentText[0].required = true;
|
this.rules.commentText[0].required = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ifStandCodebyStandName(standCode,standName){
|
||||||
|
return new Promise((resolve, reject)=>{
|
||||||
|
this.$http._postData('lawss/sarBussionessStand/ifStandCodebyStandName',{standCode,standName})
|
||||||
|
.then(res => resolve(res))
|
||||||
|
.catch(e => {
|
||||||
|
throw new Error(e)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
completeTask(){
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
|
this.form.commentText = this.formTongGuo.commentText
|
||||||
|
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
||||||
|
this.form.topId = this.pId
|
||||||
|
this.form.reviseStatus = 'buss1_'+this.form.reviseStatus
|
||||||
|
this.form.textStatusBuss = '6jnqba2mby'
|
||||||
|
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.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
|
this.processCreateBuss(json)
|
||||||
|
// if(this.formTongGuo.approvalOpinion === '1'){
|
||||||
|
// this.$message.warning("驳回成功")
|
||||||
|
// this.isSubmit = false
|
||||||
|
// // 流程提交之后,应该流转至待办任务页面
|
||||||
|
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
|
// }else{
|
||||||
|
// this.processCreateLaws(json)
|
||||||
|
// }
|
||||||
|
}else {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
|
this.$message.success(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// this.getRule()
|
// this.getRule()
|
||||||
// const val= this.form.country;
|
// const val= this.form.country;
|
||||||
@@ -2664,41 +2710,18 @@
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['formTongGuo'].validate((valid) => {
|
this.$refs['formTongGuo'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true
|
if(this.form.reviseStatus === '1' || this.form.reviseStatus === '2'){
|
||||||
this.saveLoading = true
|
this.ifStandCodebyStandName(this.form.standCode,this.form.standName)
|
||||||
this.form.commentText = this.formTongGuo.commentText
|
.then((res)=>{
|
||||||
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
if(res.ok){
|
||||||
this.form.topId = this.pId
|
this.completeTask()
|
||||||
this.form.reviseStatus = 'buss1_'+this.form.reviseStatus
|
}else{
|
||||||
this.form.textStatusBuss = '6jnqba2mby'
|
this.$message.error(res.data)
|
||||||
const json = JSON.stringify(this.form);
|
}
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
})
|
||||||
taskIds: this.taskIds,
|
}else{
|
||||||
userId : this.userId,
|
this.completeTask()
|
||||||
json: json
|
}
|
||||||
}, {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
if (res.success) {
|
|
||||||
// this.$message.success(res.message)
|
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
|
||||||
this.isSubmit = false
|
|
||||||
this.saveLoading = false
|
|
||||||
this.processCreateBuss(json)
|
|
||||||
// if(this.formTongGuo.approvalOpinion === '1'){
|
|
||||||
// this.$message.warning("驳回成功")
|
|
||||||
// this.isSubmit = false
|
|
||||||
// // 流程提交之后,应该流转至待办任务页面
|
|
||||||
// this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
|
||||||
// }else{
|
|
||||||
// this.processCreateLaws(json)
|
|
||||||
// }
|
|
||||||
}else {
|
|
||||||
this.isSubmit = false
|
|
||||||
this.saveLoading = false
|
|
||||||
this.$message.success(res.message)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user