修改流程
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
<ProcessHeader toggle>
|
<ProcessHeader toggle>
|
||||||
<template slot="proName">企标复审流程</template>
|
<template slot="proName">企标复审流程</template>
|
||||||
<template slot="proNode">技术标准起草</template>
|
<template slot="proNode">技术标准起草</template>
|
||||||
|
|
||||||
</ProcessHeader>
|
</ProcessHeader>
|
||||||
<div class="headerTabs">
|
<div class="headerTabs">
|
||||||
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
@@ -1571,31 +1572,31 @@ export default {
|
|||||||
},
|
},
|
||||||
roleRules:{
|
roleRules:{
|
||||||
qcUserName: [
|
qcUserName: [
|
||||||
{ required: true, message: '选择其他起草人', trigger: 'blur' },
|
{ required: true, message: '选择其他起草人', trigger: 'change' },
|
||||||
],
|
],
|
||||||
bzhUserName: [
|
bzhUserName: [
|
||||||
{ required: true, message: '选择总院各中心兼职标准化员/各事业部标准化员', trigger: 'blur' },
|
{ required: true, message: '选择总院各中心兼职标准化员/各事业部标准化员', trigger: 'change' },
|
||||||
],
|
],
|
||||||
hqUserName: [
|
hqUserName: [
|
||||||
{ required: true, message: '选择张建芳、蒋敏、吴娟、李中立、尧燕、耿红静、赵淑珍、符清萍、杨卫利、技术委员会相关成员、总院相关中心总工及四五级工程师', trigger: 'blur' },
|
{ required: true, message: '选择张建芳、蒋敏、吴娟、李中立、尧燕、耿红静、赵淑珍、符清萍、杨卫利、技术委员会相关成员、总院相关中心总工及四五级工程师', trigger: 'change' },
|
||||||
],
|
],
|
||||||
fggcsUserName: [
|
fggcsUserName: [
|
||||||
{ required: true, message: '选择标准法规工程师', trigger: 'blur' },
|
{ required: true, message: '选择标准法规工程师', trigger: 'change' },
|
||||||
],
|
],
|
||||||
jsfzrUserName: [
|
jsfzrUserName: [
|
||||||
{ required: true, message: '选择起草单位高级经理', trigger: 'blur' },
|
{ required: true, message: '选择起草单位高级经理', trigger: 'change' },
|
||||||
],
|
],
|
||||||
bzUserName: [
|
bzUserName: [
|
||||||
{ required: true, message: '选择标准法规部高级经理', trigger: 'blur' },
|
{ required: true, message: '选择标准法规部高级经理', trigger: 'change' },
|
||||||
],
|
],
|
||||||
fzrUserName: [
|
fzrUserName: [
|
||||||
{ required: true, message: '选择起草单位中心主任', trigger: 'blur' },
|
{ required: true, message: '选择起草单位中心主任', trigger: 'change' },
|
||||||
],
|
],
|
||||||
zhrUserName: [
|
zhrUserName: [
|
||||||
{ required: true, message: '选择总院技术委员会覆盖领域企业标准:专委会主任;总院技术委员会未覆盖领域企业标准:总院院长或总院主管副院长', trigger: 'blur' },
|
{ required: true, message: '选择总院技术委员会覆盖领域企业标准:专委会主任;总院技术委员会未覆盖领域企业标准:总院院长或总院主管副院长', trigger: 'change' },
|
||||||
],
|
],
|
||||||
fbUserName: [
|
fbUserName: [
|
||||||
{ required: true, message: '选择标准法规工程师', trigger: 'blur' },
|
{ required: true, message: '选择标准法规工程师', trigger: 'change' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
rules:{
|
rules:{
|
||||||
@@ -1975,14 +1976,14 @@ export default {
|
|||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
this.verifySarStandard = this.$route.query.verifySarStandard
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
// 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.form = mes.form
|
// this.form = mes.qbfsForm
|
||||||
// this.form.XCSJBUSS = this.dateFormatter()
|
// this.form.XCSJBUSS = this.dateFormatter()
|
||||||
// this.FBGBUSSFileList=this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName);
|
// this.FBGBUSSFileList=this.assemble(this.form.FBGBUSS,this.form.FBGBUSSName);
|
||||||
// this.BZSMBUSSFileList=this.assemble(this.form.BZSMBUSS,this.form.BZSMBUSSName);
|
// this.BZSMBUSSFileList=this.assemble(this.form.BZSMBUSS,this.form.BZSMBUSSName);
|
||||||
// this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName);
|
// this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName);
|
||||||
// this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName);
|
// this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName);
|
||||||
// this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
|
// this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName);
|
||||||
this.roleForm = mes.roleForm
|
// this.roleForm = mes.roleForm
|
||||||
this.commentText = mes.commentText
|
this.commentText = mes.commentText
|
||||||
this.ccc = false
|
this.ccc = false
|
||||||
})
|
})
|
||||||
@@ -1991,9 +1992,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
|
let id = ids.substring(0, ids.lastIndexOf(','))
|
||||||
let list= new Array();
|
let list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(id && id !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
let idArray=id.split(',');
|
||||||
let nameArray=names.split(',');
|
let nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
@@ -3111,9 +3113,9 @@ export default {
|
|||||||
// this.$message.warning('请检查模块信息责任人是否填写完整')
|
// this.$message.warning('请检查模块信息责任人是否填写完整')
|
||||||
// }else {
|
// }else {
|
||||||
// }
|
// }
|
||||||
this.$refs['userForm'].validate((valid) => {
|
this.roleForm = {...this.roleForm}
|
||||||
if (valid) {
|
this.$refs['userForm'].validate((v) => {
|
||||||
this.fileInfoHandle()
|
if (v) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
this.form.country=this.countryArr;
|
this.form.country=this.countryArr;
|
||||||
@@ -3121,19 +3123,9 @@ export default {
|
|||||||
json.zrUserId = this.form.zrUserId
|
json.zrUserId = this.form.zrUserId
|
||||||
json.jlUserId = this.form.jlUserId
|
json.jlUserId = this.form.jlUserId
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
json.type = this.taskType
|
|
||||||
if(this.taskType == '1'){
|
|
||||||
json.esId1 = this.esId1
|
|
||||||
json.esId2 = this.esId2
|
|
||||||
}
|
|
||||||
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
|
||||||
if(this.form.reviseStatus == '1' || this.form.reviseStatus == '2'){
|
|
||||||
json.nowEsId = this.nowEsId
|
|
||||||
}else if(this.form.reviseStatus == '3'){
|
|
||||||
json.standCode = this.tableData.standardData[0].standCode
|
|
||||||
}
|
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
userId : this.$store.getters.userInfo.userId,
|
userId : this.$store.getters.userInfo.userId,
|
||||||
@@ -3183,7 +3175,8 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) } else {
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
|
} else {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.data)
|
this.$message.warning(res.data)
|
||||||
@@ -3240,29 +3233,48 @@ export default {
|
|||||||
pId: this.$route.query.prcId
|
pId: this.$route.query.prcId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
this.$http.get('lawss/activiti/getEsByWk', {
|
||||||
this.todoId = res.id
|
prcId: this.$route.query.prcId
|
||||||
if(processForm.reviseStatus == '制定'){
|
}, {
|
||||||
processForm.reviseStatus = '1'
|
_this: this
|
||||||
} else if(processForm.reviseStatus == '修订'){
|
}, val => {
|
||||||
processForm.reviseStatus = '2'
|
const processForm = JSON.parse(res.mesg)
|
||||||
}
|
console.log(processForm);
|
||||||
this.form.standSort = processForm.bussSort
|
this.todoId = res.id
|
||||||
this.form.planId = processForm.esPlanId
|
if(processForm.reviseStatus == '制定'){
|
||||||
|
processForm.reviseStatus = '1'
|
||||||
this.nowEsId = processForm.nowEsId
|
} else if(processForm.reviseStatus == '修订'){
|
||||||
this.form.reviseStatus = processForm.reviseStatus
|
processForm.reviseStatus = '2'
|
||||||
this.form.standName = processForm.esName
|
}
|
||||||
this.form.QCDW = processForm.QCDW
|
this.form.standSort = processForm.standSort
|
||||||
this.form.QCDWID = processForm.QCDWID
|
this.form.planId = val
|
||||||
this.form.QCRBUSSID = processForm.QCRBUSSID
|
this.form.reviseStatus = '2'
|
||||||
this.form.QCRBUSS = processForm.QCRBUSS
|
this.form.standName = processForm.standName
|
||||||
this.form.SYCXCLASS = processForm.area
|
this.form.standEnName = processForm.standEnName
|
||||||
if(processForm.type == '1'){
|
this.form.putTime = processForm.putTime
|
||||||
this.esId1 = processForm.esId1
|
this.form.QCDW = processForm.QCDW
|
||||||
this.esId2 = processForm.esId2
|
this.form.QCDWID = processForm.QCDWID
|
||||||
}
|
this.form.QCRBUSSID = processForm.QCRBUSSID
|
||||||
this.taskType = processForm.type
|
this.form.QCRBUSS = processForm.QCRBUSS
|
||||||
|
this.form.SYCXCLASS = processForm.SYCXCLASS
|
||||||
|
this.form.NYLXCLASS = processForm.NYLXCLASS
|
||||||
|
this.form.CYCVPPSBMBUSS = processForm.CYCVPPSBMBUSS
|
||||||
|
this.form.KCVPPSBMBUSS = processForm.KCVPPSBMBUSS
|
||||||
|
this.form.TXLBBUSS = processForm.TXLBBUSS
|
||||||
|
this.form.SYCXCLASS = processForm.SYCXCLASS
|
||||||
|
this.form.SYCPXCLASS = processForm.SYCPXCLASS
|
||||||
|
this.form.CYCVPPSCNBUSS = processForm.CYCVPPSCNBUSS
|
||||||
|
this.form.KCVPPSCNBUSS = processForm.KCVPPSCNBUSS
|
||||||
|
this.form.DTQBBHBUSS = processForm.DTQBBHBUSS
|
||||||
|
this.form.CYBZ = processForm.CYBZ
|
||||||
|
this.form.YYBZ = processForm.YYBZ
|
||||||
|
this.form.XCSJBUSS = processForm.XCSJBUSS
|
||||||
|
this.FBGBUSSFileList=this.assemble(processForm.attrInfoCaseMap.fbgbuss,processForm.attrInfoCaseMap.fbgbussName);
|
||||||
|
this.BZSMBUSSFileList=this.assemble(processForm.attrInfoCaseMap.bzsmbuss,processForm.attrInfoCaseMap.bzsmbussName);
|
||||||
|
this.LSBBBUSSFileList=this.assemble(processForm.attrInfoCaseMap.lsbbbuss,processForm.attrInfoCaseMap.lsbbbussName);
|
||||||
|
this.QTWJBUSSFileList=this.assemble(processForm.attrInfoCaseMap.qtwjbuss,processForm.attrInfoCaseMap.qtwjbussName);
|
||||||
|
this.GLWJBUSSFileList=this.assemble(processForm.attrInfoCaseMap.glwjbuss,processForm.attrInfoCaseMap.glwjbussName);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1991,9 +1991,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
|
let id = ids.substring(0, ids.lastIndexOf(','))
|
||||||
let list= new Array();
|
let list= new Array();
|
||||||
if(ids && ids !== '' && names && names !== ''){
|
if(id && id !== '' && names && names !== ''){
|
||||||
let idArray=ids.split(',');
|
let idArray=id.split(',');
|
||||||
let nameArray=names.split(',');
|
let nameArray=names.split(',');
|
||||||
for(let i=0; i<idArray.length; i++){
|
for(let i=0; i<idArray.length; i++){
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
|
|||||||
Reference in New Issue
Block a user