diff --git a/src/pages/home2/components/todoList/index.vue b/src/pages/home2/components/todoList/index.vue index 96979893b..8ec8b9542 100644 --- a/src/pages/home2/components/todoList/index.vue +++ b/src/pages/home2/components/todoList/index.vue @@ -230,7 +230,7 @@ export default { prcType: row.prcType } }) - }else if (row.taskInfo === '标准法规部标准化工程师发布'){ + }else if (row.taskInfo === '主起草人培训'){ this.$router.push({ name: 'bussLibrary12', query: { @@ -241,6 +241,17 @@ export default { prcType: row.prcType } }) + }else if (row.taskInfo === '标准法规部标准化工程师发布'){ + this.$router.push({ + name: 'bussLibrary13', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) } break case 'buss2': diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue index b749585a1..585acfb85 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formEditList.vue @@ -17,6 +17,11 @@ > + + + - - - @@ -75,6 +73,19 @@ + + + + + +
{{ item.name }} - +
@@ -142,7 +153,7 @@
{{ item.name }} - +
@@ -172,7 +183,7 @@
{{ item.name }} - +
@@ -200,7 +211,7 @@
{{ item.name }} - +
@@ -405,7 +416,7 @@
{{ item.name }} - +
@@ -425,6 +436,184 @@
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {{ item.name }} + + + +
+
+
+
+
+ + + +
+ + + + +
+
+
+ {{ item.name }} + + + +
+
+
+ + + +
+
+
+
+
+
@@ -463,6 +652,14 @@ export default { type: Array, required: true }, + summaryFileListSub: { + type: Array, + required: false + }, + madelSubListSub: { + type: Array, + required: false + }, disabledState: { type: Boolean, default: false @@ -471,10 +668,18 @@ export default { type: Boolean, default: false }, + fbNode: { + type: Boolean, + default: false + }, fileMadelSub: { type: Boolean, default: false }, + opinionsShow: { + type: Boolean, + default: false + }, fbgDown: { type: Boolean, default: false @@ -516,6 +721,8 @@ export default { LSBBBUSSFileList: [], QTWJBUSSFileList: [], GLWJBUSSFileList: [], + summaryFileList: [], + madelSubList: [], countryOptions:[],//国家地区 standSortOptions: [], // 标准类别 standNatureOptions: [], // 标准性质 @@ -554,6 +761,16 @@ export default { ...mapGetters(['userInfo']) }, methods: { + filterOp(data){ + if(!data){ + return "" + } + const map = new Map(); + map.set("1","采纳"); + map.set("2","部分采纳"); + map.set("3","不采纳"); + return map.get(data) + }, choiceZRR1(type, title, id) { this.$emit('formChoiceZRR1',type,title,id) }, @@ -627,10 +844,14 @@ export default { case 'GLWJBUSS': this.fileList=this.GLWJBUSSFileList break; + case 'madelSub': + this.fileList=this.madelSubList + break; default : ; } this.fileMadel = true; - this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,fileType); + console.log(this.madelSubList) + this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,fileType,this.madelSubList); }, filePreview(){ this.$preview(this.fileId) @@ -687,11 +908,14 @@ export default { }, mounted () { this.form = this.formSub, + console.log(this.form) this.FBGBUSSFileList= this.FBGBUSSFileListSub, this.BZSMBUSSFileList= this.BZSMBUSSFileListSub, this.LSBBBUSSFileList= this.LSBBBUSSFileListSub, this.QTWJBUSSFileList= this.QTWJBUSSFileListSub, this.GLWJBUSSFileList= this.GLWJBUSSFileListSub, + this.summaryFileList= this.summaryFileListSub, + this.madelSubList= this.madelSubListSub, this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this }, res => { @@ -730,7 +954,7 @@ export default { form: { handler: function (val) { if(val){ - this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel); + this.$emit('formCancel', this.form, this.FBGBUSSFileList,this.LSBBBUSSFileList,this.BZSMBUSSFileList,this.QTWJBUSSFileList,this.GLWJBUSSFileList,this.fileMadel,this.fileList,'',this.madelSubList); } }, deep: true //对象的深度验证 diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue b/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue index 1bd37e3f7..086f743d5 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/common/formList.vue @@ -94,9 +94,9 @@ -
+
{{ item.name }} - +
@@ -106,9 +106,9 @@ -
+
{{ item.name }} - +
@@ -120,9 +120,9 @@ -
+
{{ item.name }} - +
@@ -132,9 +132,9 @@ -
+
{{ item.name }} - +
@@ -271,9 +271,9 @@ -
+
{{ item.name }} - +
@@ -299,75 +299,129 @@ :data="form.infoList" border default-expand-all> - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
- - {{value.name}} -
-
- - - -
+
+ {{ item.name }} + + + +
@@ -442,9 +496,10 @@ export default { }, data () { return { - opinionsAdoptedOptions:[ - {value: '1',label: '采纳'}, - {value: '2',label: '不采纳'}, + opinionsAdoptedOptions:[ + {value: '1',label: '采纳'}, + {value: '2',label: '部分采纳'}, + {value: '3',label: '不采纳'}, ], countryOptions:[],//国家地区 standSortOptions: [], // 标准类别 @@ -484,6 +539,16 @@ export default { ...mapGetters(['userInfo']) }, methods: { + filterOp(data){ + if(!data){ + return "" + } + const map = new Map(); + map.set("1","采纳"); + map.set("2","部分采纳"); + map.set("3","不采纳"); + return map.get(data) + }, // 文件预览及下载 handleFilePreview(file,type) { let attId = "" @@ -530,6 +595,8 @@ export default { }, }, mounted () { + console.log(this.form.infoList) + console.log(this.form) this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this }, res => { diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue index a65fd2c8d..15247bb0c 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue @@ -1927,10 +1927,16 @@ this.form.SYCXCLASS = this.filterDate(this.standardCheckedList[0].area) // 采标程度 this.form.CBCD = this.filterDate(this.standardCheckedList[0].useLevel) - // 采用标准 + // 采用标准drafter this.form.CYBZ = this.filterDate(this.standardCheckedList[0].esStandRelations) // 引用标准 this.form.YYBZ = this.filterDate(this.standardCheckedList[0].esMatingRelations) + // 起草人带入 + this.form.QCRBUSS = this.filterDate(this.standardCheckedList[0].drafterName) + this.form.QCRBUSSID = this.filterDate(this.standardCheckedList[0].drafter) + // 起草部门带入 + this.form.QCDW = this.filterDate(this.standardCheckedList[0].unitName) + this.form.QCDWID = this.filterDate(this.standardCheckedList[0].unit) this.standardDrawer = false this.verifySarStandard = true this.planDisabled = false diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step12.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step12.vue index 3915e44b1..207baf1d3 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step12.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step12.vue @@ -26,10 +26,13 @@ :BZSMBUSSFileListSub = "BZSMBUSSFileList" :QTWJBUSSFileListSub = "QTWJBUSSFileList" :GLWJBUSSFileListSub = "GLWJBUSSFileList" + :summaryFileListSub = "summaryFileList" + :madelSubListSub = "madelSubList" :disabledState = "disabledState" :verifySarStandard = "verifySarStandard" :fileMadelSub = "fileMadel" :fbgDown = "false" + :opinionsShow = "true" @formCancel="formCancel" @formSelectLawsCancel = "formSelectLawsCancel" @formChoiceZRRListCancel = "formChoiceZRRListCancel" @@ -665,6 +668,7 @@ QTWJBUSSFileList: [], GLWJBUSSFileList: [], summaryFileList: [], + madelSubList: [], caFileList: [], FBGBJBDFileList: [], xgdFileList: [], @@ -807,6 +811,8 @@ modelData:[], modelDataNameVerify:[], modelDataZrUserVerify:[], + madelSub:'', + madelSubName:'', summaryFile:'', summaryFileName:'', country:[], @@ -1123,13 +1129,14 @@ this.replaceLawType = replaceLawType this.getReplaceLawsNumRow() }, - formCancel (form, list1,list2,list3,list4,list5,fileMadel,fileList,fileType) { + formCancel (form, list1,list2,list3,list4,list5,fileMadel,fileList,fileType,list6) { this.form = form this.FBGBUSSFileList = list1 this.LSBBBUSSFileList = list2 this.BZSMBUSSFileList = list3 this.QTWJBUSSFileList = list4 this.GLWJBUSSFileList = list5 + this.madelSubList = list6 if(fileMadel){ this.fileType = fileType this.fileUpload(fileType) @@ -1343,6 +1350,8 @@ this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName); this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName); this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName); + this.summaryFileList=this.assemble(this.form.summaryFile,this.form.summaryFileName); + this.madelSubList=this.assemble(this.form.madelSub,this.form.madelSubName); this.roleForm = mes.roleForm this.commentText = mes.commentText this.formKey++ @@ -1944,6 +1953,23 @@ }) }) }, + handleFilePreview2(file,type) { + let attId = "" + if(file && file.id){ + attId = file.id + }else { + attId = file.response.data.id + } + if (type === 'down') { + if (attId) { + window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId + } else { + this.$message.warning('文件不存在,下载失败') + } + } else { + this.$preview(attId) + } + }, // 文件预览及下载 handleFilePreview(file) { const attId = file.response.data.id @@ -1979,25 +2005,41 @@ // this.fileList = fileList.splice(0, 1) // } if (response.ok) { - + const fileObj = {} + fileObj.id = file.response.data.id + fileObj.name = file.response.data.name switch (this.fileType){ case 'FBGBUSS': - this.FBGBUSSFileList = fileList + this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined); + this.FBGBUSSFileList.push(fileObj) break; case 'BZSMBUSS' : - this.BZSMBUSSFileList = fileList + this.BZSMBUSSFileList = this.BZSMBUSSFileList.filter ( item => item.response === undefined); + this.BZSMBUSSFileList.push(fileObj) break; case 'LSBBBUSS': - this.LSBBBUSSFileList = fileList + this.LSBBBUSSFileList = this.LSBBBUSSFileList.filter ( item => item.response === undefined); + this.LSBBBUSSFileList.push(fileObj) break; case 'GLWJLAWS': - this.QTWJBUSSFileList = fileList + this.GLWJLAWSFileList = this.GLWJLAWSFileList.filter ( item => item.response === undefined); + this.GLWJLAWSFileList.push(fileObj) break; case 'GLWJBUSS': - this.GLWJBUSSFileList = fileList + this.GLWJBUSSFileList = this.GLWJBUSSFileList.filter ( item => item.response === undefined); + this.GLWJBUSSFileList.push(fileObj) + break; + case 'summaryFile': + this.summaryFileList = this.summaryFileList.filter ( item => item.response === undefined); + this.summaryFileList.push(fileObj) + break; + case 'madelSub': + this.madelSubList = this.madelSubList.filter ( item => item.response === undefined); + this.madelSubList.push(fileObj) break; default : ; } + this.formKey++ this.$message({ showClose: true, message: response.message, @@ -2031,6 +2073,12 @@ case 'GLWJBUSS': this.fileList=this.GLWJBUSSFileList break; + case 'summaryFile': + this.fileList=this.summaryFileList + break; + case 'madelSub': + this.fileList=this.madelSubList + break; default : ; } this.fileMadel = true; @@ -2054,6 +2102,12 @@ case 'GLWJBUSS': this.GLWJBUSSFileList = fileList break; + case 'summaryFile': + this.summaryFileList = fileList + break; + case 'madelSub': + this.madelSubList = fileList + break; default : ; } }, @@ -2186,21 +2240,27 @@ fileInfoHandle(){ //拼接文件名和id 提交到流程Activity - this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",") + this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.id).join(",") this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",") - this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",") + this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.id).join(",") this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",") - this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",") + this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.id).join(",") this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",") - this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",") + this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.id).join(",") this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",") - this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",") + this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.id).join(",") this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",") + this.form.summaryFile=this.summaryFileList.map(item => item.id).join(",") + this.form.summaryFileName=this.summaryFileList.map(item => item.name).join(",") + + this.form.madelSub=this.madelSubList.map(item => item.id).join(",") + this.form.madelSubName=this.madelSubList.map(item => item.name).join(",") + }, // 删除方法 deletedId(data, ids) { @@ -2287,6 +2347,7 @@ // } else if (val === '') { // this.form.country = [] // } + this.fileInfoHandle() this.$refs['formTongGuo'].validate((valid) => { if (valid) { this.isSubmit = true @@ -2305,7 +2366,9 @@ // this.$message.success(res.message) // 流程提交之后,应该流转至待办任务页面 this.isSubmit = false - this.processCreateBuss(json) + this.submitLoading = false + this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + // this.processCreateBuss(json) // if(this.formTongGuo.approvalOpinion === '1'){ // this.$message.warning("驳回成功") // this.isSubmit = false @@ -2375,12 +2438,14 @@ getFormFieldList (item) { this.$nextTick(() => { this.form = JSON.parse(JSON.stringify(item)) + console.log(this.form) this.form.topId = this.pId this.form.prcNum = this.prcNum this.form.prcName = this.prcName this.form.issueTime = this.dateFormatter() this.form['id'] = item.id - this.getStandInfoByReviseStatus() + this.formKey++ + // this.getStandInfoByReviseStatus() }) }, assemble(ids,names){ @@ -2416,6 +2481,7 @@ this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName); this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName); this.summaryFileList=this.assemble(processForm.summaryFile,processForm.summaryFileName); + this.madelSubList=this.assemble(processForm.madelSub,processForm.madelSubName); this.formKey++ } }).catch(e => { diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue index 18b46c0b5..34e7df7ab 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step13.vue @@ -26,10 +26,14 @@ :BZSMBUSSFileListSub = "BZSMBUSSFileList" :QTWJBUSSFileListSub = "QTWJBUSSFileList" :GLWJBUSSFileListSub = "GLWJBUSSFileList" + :summaryFileListSub = "summaryFileList" + :madelSubListSub = "madelSubList" :disabledState = "disabledState" :verifySarStandard = "verifySarStandard" :fileMadelSub = "fileMadel" :fbgDown = "false" + :opinionsShow = "true" + :fbNode = "true" @formCancel="formCancel" @formSelectLawsCancel = "formSelectLawsCancel" @formChoiceZRRListCancel = "formChoiceZRRListCancel" @@ -665,6 +669,7 @@ QTWJBUSSFileList: [], GLWJBUSSFileList: [], summaryFileList: [], + madelSubList: [], caFileList: [], FBGBJBDFileList: [], xgdFileList: [], @@ -809,6 +814,8 @@ modelDataZrUserVerify:[], summaryFile:'', summaryFileName:'', + madelSub:'', + madelSubName:'', country:[], // 基础信息 standSort: '', @@ -1123,13 +1130,14 @@ this.replaceLawType = replaceLawType this.getReplaceLawsNumRow() }, - formCancel (form, list1,list2,list3,list4,list5,fileMadel,fileList,fileType) { + formCancel (form, list1,list2,list3,list4,list5,fileMadel,fileList,fileType,list6) { this.form = form this.FBGBUSSFileList = list1 this.LSBBBUSSFileList = list2 this.BZSMBUSSFileList = list3 this.QTWJBUSSFileList = list4 this.GLWJBUSSFileList = list5 + this.madelSubList = list6 if(fileMadel){ this.fileType = fileType this.fileUpload(fileType) @@ -1343,6 +1351,8 @@ this.LSBBBUSSFileList=this.assemble(this.form.LSBBBUSS,this.form.LSBBBUSSName); this.QTWJBUSSFileList=this.assemble(this.form.QTWJBUSS,this.form.QTWJBUSSName); this.GLWJBUSSFileList=this.assemble(this.form.GLWJBUSS,this.form.GLWJBUSSName); + this.summaryFileList=this.assemble(this.form.summaryFile,this.form.summaryFileName); + this.madelSubList=this.assemble(this.form.madelSub,this.form.madelSubName); this.roleForm = mes.roleForm this.commentText = mes.commentText this.formKey++ @@ -1979,25 +1989,41 @@ // this.fileList = fileList.splice(0, 1) // } if (response.ok) { - + const fileObj = {} + fileObj.id = file.response.data.id + fileObj.name = file.response.data.name switch (this.fileType){ case 'FBGBUSS': - this.FBGBUSSFileList = fileList + this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined); + this.FBGBUSSFileList.push(fileObj) break; case 'BZSMBUSS' : - this.BZSMBUSSFileList = fileList + this.BZSMBUSSFileList = this.BZSMBUSSFileList.filter ( item => item.response === undefined); + this.BZSMBUSSFileList.push(fileObj) break; case 'LSBBBUSS': - this.LSBBBUSSFileList = fileList + this.LSBBBUSSFileList = this.LSBBBUSSFileList.filter ( item => item.response === undefined); + this.LSBBBUSSFileList.push(fileObj) break; case 'GLWJLAWS': - this.QTWJBUSSFileList = fileList + this.GLWJLAWSFileList = this.GLWJLAWSFileList.filter ( item => item.response === undefined); + this.GLWJLAWSFileList.push(fileObj) break; case 'GLWJBUSS': - this.GLWJBUSSFileList = fileList + this.GLWJBUSSFileList = this.GLWJBUSSFileList.filter ( item => item.response === undefined); + this.GLWJBUSSFileList.push(fileObj) + break; + case 'summaryFile': + this.summaryFileList = this.summaryFileList.filter ( item => item.response === undefined); + this.summaryFileList.push(fileObj) + break; + case 'madelSub': + this.madelSubList = this.madelSubList.filter ( item => item.response === undefined); + this.madelSubList.push(fileObj) break; default : ; } + this.formKey++ this.$message({ showClose: true, message: response.message, @@ -2031,10 +2057,15 @@ case 'GLWJBUSS': this.fileList=this.GLWJBUSSFileList break; + case 'summaryFile': + this.fileList=this.summaryFileList + break; + case 'madelSub': + this.fileList=this.madelSubList + break; default : ; } this.fileMadel = true; - }, removeOneFile(file, fileList) { @@ -2054,6 +2085,12 @@ case 'GLWJBUSS': this.GLWJBUSSFileList = fileList break; + case 'summaryFile': + this.summaryFileList = fileList + break; + case 'madelSub': + this.madelSubList = fileList + break; default : ; } }, @@ -2186,21 +2223,27 @@ fileInfoHandle(){ //拼接文件名和id 提交到流程Activity - this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.response.data.id).join(",") + this.form.FBGBUSS=this.FBGBUSSFileList.map(item => item.id).join(",") this.form.FBGBUSSName=this.FBGBUSSFileList.map(item => item.name).join(",") - this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.response.data.id).join(",") + this.form.BZSMBUSS=this.BZSMBUSSFileList.map(item => item.id).join(",") this.form.BZSMBUSSName=this.BZSMBUSSFileList.map(item => item.name).join(",") - this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.response.data.id).join(",") + this.form.LSBBBUSS=this.LSBBBUSSFileList.map(item => item.id).join(",") this.form.LSBBBUSSName=this.LSBBBUSSFileList.map(item => item.name).join(",") - this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.response.data.id).join(",") + this.form.QTWJBUSS=this.QTWJBUSSFileList.map(item => item.id).join(",") this.form.QTWJBUSSName=this.QTWJBUSSFileList.map(item => item.name).join(",") - this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.response.data.id).join(",") + this.form.GLWJBUSS=this.GLWJBUSSFileList.map(item => item.id).join(",") this.form.GLWJBUSSName=this.GLWJBUSSFileList.map(item => item.name).join(",") + this.form.summaryFile=this.summaryFileList.map(item => item.id).join(",") + this.form.summaryFileName=this.summaryFileList.map(item => item.name).join(",") + + this.form.madelSub=this.madelSubList.map(item => item.id).join(",") + this.form.madelSubName=this.madelSubList.map(item => item.name).join(",") + }, // 删除方法 deletedId(data, ids) { @@ -2287,6 +2330,7 @@ // } else if (val === '') { // this.form.country = [] // } + this.fileInfoHandle() this.$refs['formTongGuo'].validate((valid) => { if (valid) { this.isSubmit = true @@ -2381,6 +2425,7 @@ this.form.issueTime = this.dateFormatter() this.form['id'] = item.id this.getStandInfoByReviseStatus() + this.formKey++ }) }, assemble(ids,names){ @@ -2416,6 +2461,7 @@ this.QTWJBUSSFileList=this.assemble(processForm.QTWJBUSS,processForm.QTWJBUSSName); this.GLWJBUSSFileList=this.assemble(processForm.GLWJBUSS,processForm.GLWJBUSSName); this.summaryFileList=this.assemble(processForm.summaryFile,processForm.summaryFileName); + this.madelSubList=this.assemble(processForm.madelSub,processForm.madelSubName); this.formKey++ } }).catch(e => { diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue index bfc3831b0..c038eb5d8 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step5.vue @@ -187,7 +187,7 @@
- + @@ -248,7 +252,7 @@ - + @@ -260,42 +264,44 @@ - + - - - - - - + min-width="15%"> - + - + + + + + + + + + +
-
基础信息
+
评审评分
+
基础信息
审批历史
@@ -17,7 +18,135 @@ class="label-input-form" label-width="210px" > -
+
+ +
+ + +
+ + + + + + + + + + + + + + +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + @@ -148,38 +322,6 @@
-
- - -
- - - - - - - - - - - - - - -
-
-
-
@@ -696,6 +838,7 @@ import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,inboundLiaisonDetail,processModelHisOneCount} from "api/process"; import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; + import {getEvaluationIndex} from "api/businessApi"; let Base64 = require('js-base64').Base64; export default { @@ -718,6 +861,25 @@ } }, data () { + const numberCodeNot = (rule, value, callback) => { + let pattern = /^[1]*$/ + if (!pattern.test(value)) { + return callback(new Error('评分分值只可为1分')) + } else { + callback() + } + }; + const numberCode = (rule, value, callback) => { + if(value === undefined || value === ''){ + return callback(new Error('评分分值不可为空')) + } + let pattern = /^[0-9]*$/ + if (!pattern.test(value)) { + return callback(new Error('只能输入数字')) + } else { + callback() + } + }; const validateZrUserIdName = (rule, value, callback) => { if(this.FBGBUSSFileList.length === 0){ callback(new Error('请上传发布稿文件!')) @@ -925,6 +1087,7 @@ countryArr:'', commentCycleDate:'', form: { + evaluationData:[], planId:'', planStatus:'', reviseStatus:'', @@ -995,6 +1158,8 @@ xdUserName: this.$store.getters.userInfo.userName, pxUserId: this.$store.getters.userInfo.userId, pxUserName: this.$store.getters.userInfo.userName, + fbUserId: '', + fbUserName: '', qcUserId: '', // 多实例 qcUserName:'', // 多实例 bzhUserId:'', @@ -1055,6 +1220,15 @@ ], }, rules:{ + scoreNot:[ + {required: false, validator: numberCodeNot, trigger: 'blur'}, + ], + score: [ + {required: true, validator: numberCode, trigger: 'blur'}, + { type: 'number',min: 0, max: 10, message: '分值 0 ~ 10 分 ', trigger: 'blur' }, + ], + reason: [{ required: true, message: '请填写扣分理由', trigger: 'blur' }], + reasonNot:[], commentText: [{ required: true, message: '请输入意见', trigger: 'blur' }], approvalOpinion: [{ required: true, message: '请选择审批意见', trigger: 'change' }], zrUserIdName: [ @@ -1094,7 +1268,7 @@ { required: false, message: '请选择企标发布日期', trigger: 'change'} ], putTime: [ - { required: false, message: '请选择企标实施日期', trigger: 'change' } + { required: true, message: '请选择企标实施日期', trigger: 'change' } ], FBGBUSSName: [ { required: true, message: '请上传发布稿',validator: validateFBGBUSS, trigger: 'blur' } @@ -1113,7 +1287,8 @@ userType:'', // 选择用户ID判断 opinionsAdoptedOptions:[ {value: '1',label: '采纳'}, - {value: '2',label: '不采纳'}, + {value: '2',label: '部分采纳'}, + {value: '3',label: '不采纳'}, ], countryOptions:[],//国家地区 standSortOptions: [], // 标准类别 @@ -1195,6 +1370,92 @@ }, }, methods: { + filterData(data){ + if(data && data.length > 0){ + data.forEach((item,index) =>{ + item.xh = index + }) + } + return data + }, + filterData2(){ + let spanOneArr = [] + let concatOne = 0 + this.form.evaluationData.forEach((item,index)=>{//循环后端查询出来的数据(orderdata) + if(index === 0){ + spanOneArr.push(1) + }else{ + //name 修改 + if(item.twoIndexTitle === this.form.evaluationData[index - 1].twoIndexTitle){ //第一列需合并相同内容的字段 + spanOneArr[concatOne] += 1 + spanOneArr.push(0) + }else{ + spanOneArr.push(1) + concatOne = index + } + } + }) + return { + one: spanOneArr, + } + }, + setScoreMin(row){ + return row.scoreMin = ((row.score === undefined || row.score === '') ? '' : row.valueType === 'add' ? row.score : (row.score / 10).toFixed(1)) + + }, + getSummaries(param) { + const { columns, data } = param; + const sums = []; + columns.forEach((column, index) => { + if (index === 3) { + sums[index] = '合计:'; + return; + }else if(index === 6){ + sums[index] = ''; + return; + } + const values = data.map(item => Number(item[column.property])); + if (!values.every(value => isNaN(value))) { + sums[index] = values.reduce((prev, curr) => { + const value = Number(curr); + if (!isNaN(value)) { + return prev + curr; + } else { + return prev; + } + }, 0); + sums[index] += ' '; + } else { + sums[index] = ''; + } + if(sums[index] !== '' && sums[index].indexOf(".") !== -1){ + sums[index] = parseFloat(sums[index]).toFixed(1); + } + }); + return sums; + }, + objectSpanMethod({ row, column, rowIndex, columnIndex },value) { + if (columnIndex === 0) { + if (rowIndex === 0) { + return { + rowspan: value.length, + colspan: 1 + }; + } else { + return { + rowspan: 0, + colspan: 0 + }; + } + }else if(columnIndex === 1 ) { + const _row = (this.filterData2(this.form.evaluationData).one)[rowIndex] + const _col = _row > 0 ? 1 : 0 + return { + rowspan: _row, + colspan: _col + } + } + }, drawerCheckZRBM(data) { let idList = '' let nameList = '' @@ -2055,11 +2316,11 @@ var fileSuffix = filename.substring(index1, index2) // const fileSuffix = file.name.split('.')[1] // 后缀名 // 判断上传文件格式 - this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined && item.raw === undefined); - if(this.fileType === 'FBGBUSS' && this.FBGBUSSFileList && this.FBGBUSSFileList.length === 1){ - this.$message.error('文件限制只可上传一个') - return false - } + // this.FBGBUSSFileList = this.FBGBUSSFileList.filter ( item => item.response === undefined && item.raw === undefined); + // if(this.fileType === 'FBGBUSS' && this.FBGBUSSFileList && this.FBGBUSSFileList.length === 1){ + // this.$message.error('文件限制只可上传一个') + // return false + // } if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') { return true } else { @@ -2587,6 +2848,8 @@ getFormFieldList (item) { this.$nextTick(() => { this.form = JSON.parse(JSON.stringify(item)) + this.form.evaluationData = [] + this.getEvaluation() this.form.prcNum = this.prcNum this.form.prcName = this.prcName this.form['id'] = item.id @@ -2604,6 +2867,28 @@ } return list; }, + getEvaluation() { + return new Promise((resolve, reject) => { + getEvaluationIndex({ + indexType: 'quality' + }).then(res => { + if (res) { + const evalList = [] + res.data.forEach(item =>{ + item.score = '' + item.scoreMin = '' + item.reason = '' + item.userId = this.userId + item.processNode = this.taskInfo + evalList.push(item) + }) + this.form.evaluationData = evalList + this.$forceUpdate() + } + }).catch(e => { + }) + }) + }, getData() { if(this.taskIds && this.pId){ return new Promise((resolve, reject) => { @@ -2713,6 +2998,9 @@ /deep/ .el-input__suffix{ display: none !important; } + /deep/ #active1 .el-form-item__content{ + margin-left: 0px !important; + } /deep/ #active2 .el-form-item__content{ margin-left: 0px !important; } diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue index c11ae9fa3..83bbc173c 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue @@ -451,7 +451,7 @@ export default { prcType: row.prcType } }) - }else if (row.taskInfo === '标准法规部标准化工程师发布'){ + }else if (row.taskInfo === '主起草人培训'){ this.$router.push({ name: 'bussLibrary12', query: { @@ -462,6 +462,17 @@ export default { prcType: row.prcType } }) + }else if (row.taskInfo === '标准法规部标准化工程师发布'){ + this.$router.push({ + name: 'bussLibrary13', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) } break case 'laws1': diff --git a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue index 632d6f950..d577ad099 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue @@ -418,14 +418,26 @@ export default { verifySarStandard: true, } }) - }else if (mes.taskInfo === '标准法规部标准化工程师发布'){ + }else if (row.taskInfo === '主起草人培训'){ this.$router.push({ name: 'bussLibrary12', query: { - type: 'buss1', - processName: mes.taskInfo, - bpnId: id, - verifySarStandard: true, + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '标准法规部标准化工程师发布'){ + this.$router.push({ + name: 'bussLibrary13', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType } }) }