diff --git a/src/pages/processCenter/pages/creatProcess/qbfs/step5.vue b/src/pages/processCenter/pages/creatProcess/qbfs/step5.vue index 5b5bc4ef0..205b292b7 100644 --- a/src/pages/processCenter/pages/creatProcess/qbfs/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbfs/step5.vue @@ -244,8 +244,103 @@ export default { bussFsSubUser2:'', bussFsSubUser2Name:'', }, - roleForm: { - jgUser: "" + formBuss: { + selListRep2:[], + id:'', + standNum:'', + standStatus:'', // 标准状态 + planId:'', + planStatus:'', + reviseStatus:'', + standSn:'', + modelData:[], + modelDataNameVerify:[], + modelDataZrUserVerify:[], + BARQ: '', + XGD: '', + XGDName: '', + // 基础信息 + country:[], + // 基础信息 + standSort: '', + standCode: '', + standYear: '', + standName: '', + standEnName: '', + textStatusBuss: '', + issueTime: '', + expirationDate: '', + putTime: '', + FZRQBUSS: '', + FSRQBUSS: '', + // 过程稿件 + FBGBUSS: '', + FBGBUSSName: '', + BZSMBUSS: '', + BZSMBUSSName: '', + LSBBBUSS: '', + LSBBBUSSName: '', + QTWJBUSS: '', + QTWJBUSSName: '', + // 适用范围 + QCDW: '', + QCDWID: '', + QCRBUSS: '', + QCRBUSSID: '', + WJSCRYBUSS: this.$store.getters.userInfo.userId, + WJSCRYBUSSName: this.$store.getters.userInfo.userName, + SYCXCLASS: '', + NYLXCLASS: '', + SYCPXCLASS: '', + TXLBBUSS: '', + VPPSBMBUSS: '', + VPPSCNBUSS: '', + KCVPPSBMBUSS: '', + KCVPPSCNBUSS: '', + CYCVPPSBMBUSS: '', + CYCVPPSCNBUSS: '', + DYBXHBUSS: '', + DYMCBUSS: '', + // 关联信息 + DTQBBHBUSS: '', + BDTQBBHBUSS: '', + XGJLBUSS: '', + XGLC: '', + GLWJBUSS: '', + GLWJBUSSName: '', + XCSJBUSS: '', + }, // 标准信息 + roleForm:{ + bussUser3: '', + bussUser3Name: '', + bussUser6: '', + bussUser6Name: '', + bussUser2: '', // 多实例 + bussUser2Name:'', // 多实例 + bussUser5:'', // 多实例 + bussUser5Name:'', // 多实例 + bussUser4:'', + bussUser4Name:'', + bussUser7:'', + bussUser7Name:'', + bussUser8:'', + bussUser8Name:'', + bussUser9:'', + bussUser9Name:'', + bussUser10:'', + bussUser10Name:'', + bussUser11:'', + bussUser11Name:'', + bussUser12:'', + bussUser12Name:'', + bussUser13:'', + bussUser13Name:'', + bussUser14:'', + bussUser14Name:'', + applyUpdUserId: '', + applyUpdUserName: '', + prcCreateUser: '', + prcCreateUserName: '', }, formRules: { commentText: [{ required: true, message: '请输入意见', trigger: 'blur' }], @@ -490,7 +585,9 @@ export default { _formData.append('infoJson', json) processCreateFsBuss(_formData).then(res => { if (res.result === '操作成功' || res.data === '入库成功') { - this.$message.success(res.data) + if(this.qbfsForm.standSort && this.qbfsForm.standSort.indexOf("Q/QCBFC") !== -1){ + this.routerBussProStand() + } if (this.$route.query.bpnId !== '') { let taskId = { id: this.$route.query.bpnId @@ -502,13 +599,42 @@ export default { this.submitLoading = false this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) } else { - this.$message.warning(res.message) this.isSubmit = false } }) }, async routerBussProStand(){ - + this.roleForm.bussUser3 = this.qbfsForm.QCRBUSSID + this.roleForm.bussUser3Name = this.qbfsForm.QCRBUSS + this.roleForm.bussUser6 = this.qbfsForm.QCRBUSSID + this.roleForm.bussUser6Name = this.qbfsForm.QCRBUSS + this.roleForm.applyUpdUserId = this.qbfsForm.QCRBUSSID + this.roleForm.applyUpdUserName = this.qbfsForm.QCRBUSS + this.roleForm.prcCreateUser = this.qbfsForm.QCRBUSSID + this.roleForm.prcCreateUserName = this.qbfsForm.QCRBUSS + this.formBuss.expirationDate = this.qbfsForm.expirationDate + this.formBuss.QCRBUSS = this.qbfsForm.QCRBUSS + this.formBuss.QCRBUSSID = this.qbfsForm.QCRBUSSID + this.formBuss.QCDW = this.qbfsForm.QCDW + this.formBuss.QCDWID = this.qbfsForm.QCDWID + let _formData = new FormData() + _formData.append('id', this.bpnId || '') + _formData.append('createUser', this.qbfsForm.QCRBUSSID) + _formData.append('createUserName', this.qbfsForm.QCRBUSS) + _formData.append('prcType', 'buss2') + _formData.append('prcName', '企标制修订-产品标准') + _formData.append('json', JSON.stringify({ + taskInfo: '发起企标制修订流程', + form: this.formBuss, + roleForm: this.roleForm, + commentText: this.commentText + })) + saveTaskFirst(_formData).then(res => { + this.saveLoading = false + this.$message.success('自动创建企标制修订-产品标准流程,跳转至主起草人流程中心草稿') + this.bpnId = res.result + }).catch(e => { + }) }, //流程提交 handleSubmit(){