diff --git a/package-lock.json b/package-lock.json index ed1880871..c672b1df7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3596,23 +3596,6 @@ "upath": "^1.1.1" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "optional": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "optional": true - }, "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -13784,6 +13767,94 @@ "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.22.4.tgz", "integrity": "sha512-XLI5s0AdqMP2Lf4I4CmdmOq8kjb5DDFGR77wAuxCfpEuYSfhTRyyx6MetgZMiL6Lxa0DasjBOiOcciU3NkL3/Q==" }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.8.3", + "resolved": "https://registry.npmmirror.com/vue-loader/download/vue-loader-16.8.3.tgz", + "integrity": "sha1-1D5nXe9bqTRdbH8FkUwT2GGZcIc=", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995651629&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz", + "integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=", + "dev": true, + "optional": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.nlark.com/chalk/download/chalk-4.1.2.tgz?cache=0&sync_timestamp=1627646697260&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.2.tgz", + "integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE=", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz", + "integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=", + "dev": true, + "optional": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.nlark.com/color-name/download/color-name-1.1.4.tgz", + "integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=", + "dev": true, + "optional": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.nlark.com/has-flag/download/has-flag-4.0.0.tgz?cache=0&sync_timestamp=1626715907927&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fhas-flag%2Fdownload%2Fhas-flag-4.0.0.tgz", + "integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=", + "dev": true, + "optional": true + }, + "hash-sum": { + "version": "2.0.0", + "resolved": "https://registry.npm.taobao.org/hash-sum/download/hash-sum-2.0.0.tgz", + "integrity": "sha1-gdAbtd6OpKIUrV1urRtSNGCwtFo=", + "dev": true, + "optional": true + }, + "loader-utils": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/loader-utils/download/loader-utils-2.0.2.tgz?cache=0&sync_timestamp=1636687952028&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Floader-utils%2Fdownload%2Floader-utils-2.0.2.tgz", + "integrity": "sha1-1uO0+4GHByGuTghoqxHdY4NowSk=", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmmirror.com/supports-color/download/supports-color-7.2.0.tgz", + "integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=", + "dev": true, + "optional": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "vue-router": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.0.tgz", diff --git a/public/static/onlyOffice/editor.html b/public/static/onlyOffice/editor.html index 3de05e8c2..4ff974662 100644 --- a/public/static/onlyOffice/editor.html +++ b/public/static/onlyOffice/editor.html @@ -1,6 +1,8 @@ + + @@ -8,7 +10,7 @@ 在线编辑 - + @@ -36,7 +38,7 @@ var filePath = GetQueryValue('filePath') var fileName = GetQueryValue('fileName') var fileUrl = GetQueryValue('fileUrl') - var standNo = GetQueryValue('standNo') + var oldFileName = GetQueryValue('oldFileName') var key = GetQueryValue('key') // var attId = GetQueryValue('attId') var fileSuffix = GetQueryValue('fileType') @@ -100,7 +102,7 @@ "download":true,//是否可以下载 "print":true //是否可以打印 }, - "fileType": 'pptx', + "fileType": fileSuffix, "key": key, "title": oldFileName, "url": fileUrl @@ -108,7 +110,7 @@ "documentType": documentType, // 文档类word-text、表格类excel-spreadsheet、ppt类-presentation "editorConfig": { // 此处配置回调地址 - "callbackUrl": `127.0.0.1:8080/api/att/attFile/recieveFile?fileNm=${fileName}&standNo=${filePath}`, + "callbackUrl": `http://10.100.5.116:4202/api/att/attFile/recieveFile?fileNm=${fileName}&standNo=${filePath}`, "mode":"edit", "lang":"zh-CN", // "customization": { diff --git a/public/static/onlyOffice/onlinePreview.html b/public/static/onlyOffice/onlinePreview.html index 619506812..013abf4a9 100644 --- a/public/static/onlyOffice/onlinePreview.html +++ b/public/static/onlyOffice/onlinePreview.html @@ -1,6 +1,7 @@ + @@ -8,7 +9,7 @@ 在线预览 - + @@ -34,7 +35,7 @@ var fileName = GetQueryValue('fileName') var filePath = GetQueryValue('filePath') var fileUrl = GetQueryValue('fileUrl') - var standNo = GetQueryValue('standNo') + var oldFileName = GetQueryValue('oldFileName') var key = GetQueryValue('key') // var attId = GetQueryValue('attId') var fileSuffix = GetQueryValue('fileType') @@ -100,13 +101,13 @@ }, "fileType": fileSuffix, "key": key, - "title": fileName, + "title": oldFileName, "url": fileUrl }, "documentType": documentType, "editorConfig": { // 此处配置回调地址 - "callbackUrl": `127.0.0.1:8080/api/att/attFile/recieveFile?fileNm=${fileName}&standNo=${filePath}`, + "callbackUrl": `http://10.100.5.116:4202/api/att/attFile/recieveFile?fileNm=${fileName}&standNo=${filePath}`, "mode":"edit", "lang":"zh-CN", // "customization": { diff --git a/src/components/CustomFormComponents/File.vue b/src/components/CustomFormComponents/File.vue index 1f76cfce2..bd1f90762 100644 --- a/src/components/CustomFormComponents/File.vue +++ b/src/components/CustomFormComponents/File.vue @@ -346,26 +346,26 @@ export default { handlePreview(file) { const attId = file.response.data.id if (this.preview) { - if (attId) { - window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId - } else { - this.$message.warning('文件不存在,下载失败') - } + if (attId) { + window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId + } else { + this.$message.warning('文件不存在,下载失败') + } } else { - this.getBusStandFileByAttId(attId) - .then(res => { + this.getBusStandFileByAttId(attId) + .then(res => { console.log(res) if(res){ - const editFileInfo = res - console.log(editFileInfo) - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) + const editFileInfo = res + console.log(editFileInfo) + if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ + window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) + }else { + const nowTime = new Date().getTime() + // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); + window.open('/static/onlyOffice/onlinePreview.html?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) + } + // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) } // switch (res.convertState) { // case 'ERROR': @@ -379,10 +379,10 @@ export default { // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + convertFileInfo.id)) // break // } - }).catch(e => { - console.log(e) - this.$message.warning('文件不存在,预览失败') - }) + }).catch(e => { + console.log(e) + this.$message.warning('文件不存在,预览失败') + }) } }, diff --git a/src/components/navMenu/index.vue b/src/components/navMenu/index.vue index ff93290ba..09c1e0610 100644 --- a/src/components/navMenu/index.vue +++ b/src/components/navMenu/index.vue @@ -1,34 +1,34 @@ @@ -310,6 +312,17 @@ export default { props: ['message'], data(){ return { + QCDWmodal: false, + QCDWValue: [], + QCDWList: [], + drawerTitle2: '', + drawerTitle: '', + type: '', + modalshowflag2: false, + modalshowflag: false, + nodeList2: [], + nodeList: [], + qcdwOptions: [], standShow: false, standShow2: false, ListModel: false, @@ -319,7 +332,44 @@ export default { total: 0, pageSize: this.$store.getters.userInfo.configContent, selectList: [], - formRules: {}, + qbfsFormRules: { + esName1: [ + {required: true, message: '请选择合并计划企标名称', trigger: 'blur'}, + ], + esName2: [ + {required: true, message: '请选择合并计划企标名称', trigger: 'blur'}, + ], + unit: [ + {required: true, message: '请输入单位', trigger: 'blur'}, + ], + esName: [ + {required: true, message: '请输入企标名称', trigger: 'blur'}, + ], + planStatus: [ + {required: true, message: '请选择计划状态', trigger: 'change'}, + ], + reviseStatus: [ + {required: true, message: '请选择制修订状态', trigger: 'change'}, + ], + resPersonName: [ + {required: true, message: '请输入评审责任人', trigger: 'blur'}, + ], + wgLeaderName: [ + {required: true, message: '请输入工作组组长', trigger: 'blur'}, + ], + draftTime: [ + {required: true, message: '请输入计划标准初稿完成时间', trigger: 'blur'}, + ], + releaseTime: [ + {required: true, message: '请输入计划标准发布时间', trigger: 'blur'}, + ], + drafterName: [ + {required: true, message: '请输入起草人', trigger: 'blur'}, + ], + mergeReason: [ + {required: true, message: '请输入合并原因', trigger: 'blur'}, + ], + }, standinfoList: [], standardSearch: { reviseStatus: "", @@ -334,6 +384,9 @@ export default { isSubTime: "", mergeReason: "", company: "", + resPersonName: '', + drafterName: '', + wgLeaderName:'', groupLeader: "", drafterPeople: "", formulateStatus: "", @@ -357,21 +410,16 @@ export default { reviewDate: '', abolishCause:'', }, - qbzxdForm2: { - standCode: "", - standName: "", - enName: '', - entCategory: '', - replaceNumber: '', - replacedNumber: '', - releaseDate: '', - implementDate: '', - reviewDate: '', - abolishCause:'', - }, } }, mounted() { + //查询下拉框数据 + this.$http.get('sys/dictype/getDicTypeListCode', '',{ + _this: this + }, res => { + console.log(res); + this.qcdwOptions = res.data.QCDW // 起草单位 + }) this.getStandDataBtn() }, @@ -385,6 +433,66 @@ export default { } }, methods: { + QCDWOK () { + let arr1 = [] + if (this.qbfsForm.unit !== undefined) { + let str = this.qbfsForm.unit.replace(/,/g, ',') + arr1 = str.split(',') + } + let arr2 = arr1.concat(this.QCDWValue) + this.qbfsForm.unit = Array.from(new Set(arr2)).join(',') + this.QCDWmodal = false + }, + QCDWClick () { + this.QCDWValue = [] + this.QCDWmodal = true + }, + choiceZRR() { + this.nodeList = []; + this.drawerTitle = '请选择工作组组长'; + this.modalshowflag = true; + }, + checkedRole(data) { + this.qbfsForm.wgLeader = data[0].id; + this.qbfsForm.wgLeaderName = data[0].name; + this.modalshowflag = false; + }, + choiceZRRS(type) { + this.type = type + if(type === '1' ){ + this.drawerTitle2 = '请选择起草人' + this.nodeList2 = []; + if (this.qbfsForm.drafter !== undefined) { + this.nodeList2 = this.qbfsForm.drafter.split(","); + } + }else if(type === '2'){ + this.drawerTitle2 = '请选择评审责任人' + this.nodeList2 = []; + if (this.qbfsForm.resPerson !== undefined) { + this.nodeList2 = this.qbfsForm.resPerson.split(","); + } + } + this.modalshowflag2 = true; + }, + checkedRole2(data) { + var idList = ""; + var nameList = ""; + data.forEach(item => { + if (nameList.length > 0) { + nameList += ","; + idList += ","; + } + idList += item.id; + nameList += item.name; + }); + if(this.type === '1'){ + this.qbfsForm.drafter = idList; + this.qbfsForm.drafterName = nameList; + }else if(this.type === '2'){ + this.qbfsForm.resPerson = idList; + this.qbfsForm.resPersonName = nameList; + } + }, validateForm () { let flag = null this.$refs['qbfsForm'].validate((valid) => { @@ -418,14 +526,16 @@ export default { this.$message.warning('请至少选择一条数据进行带入') }else{ if(this.showType === 'one'){ - this.qbzxdForm.esName = this.selectList[0].esName || '--' - this.qbzxdForm.planStatus = this.selectList[0].planStatus || '--' - this.qbzxdForm.reviseStatus = this.selectList[0].reviseStatus || '--' + this.qbfsForm.esId1 = this.selectList[0].id || '--' + this.qbfsForm.esName1 = this.selectList[0].esName || '--' + this.qbfsForm.planStatus1 = this.selectList[0].planStatus || '--' + this.qbfsForm.reviseStatus1 = this.selectList[0].reviseStatus || '--' this.standShow = true }else{ - this.qbzxdForm2.esName = this.selectList[0].esName || '--' - this.qbzxdForm2.planStatus = this.selectList[0].planStatus || '--' - this.qbzxdForm2.reviseStatus = this.selectList[0].reviseStatus || '--' + this.qbfsForm.esId2 = this.selectList[0].id || '--' + this.qbfsForm.esName2 = this.selectList[0].esName || '--' + this.qbfsForm.planStatus2 = this.selectList[0].planStatus || '--' + this.qbfsForm.reviseStatus2= this.selectList[0].reviseStatus || '--' this.standShow2 = true } this.ListModel = false @@ -434,7 +544,7 @@ export default { //企业标准查询 getStandDataBtn(){ this.$http.post('esRevisePlan/es-revise-plan/queryAllPlans',{ - reviseStatus: this.standardSearch.reviseStatus, + reviseStatus: this.standardSearch.reviseStatus || '', esName: this.standardSearch.standName, page: this.page, pageSize: this.pageSize, diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue index cfb23dd2a..f26e7448b 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/component/rename.vue @@ -37,10 +37,10 @@ - + @@ -69,18 +69,18 @@ - + - + @@ -188,17 +188,17 @@ label="制修订状态"> @@ -315,7 +315,7 @@ export default { //企业标准查询 getStandDataBtn(){ this.$http.post('esRevisePlan/es-revise-plan/queryAllPlans',{ - reviseStatus: this.standardSearch.reviseStatus, + reviseStatus: this.standardSearch.reviseStatus || '', esName: this.standardSearch.standName, page: this.page, pageSize: this.pageSize, @@ -346,15 +346,16 @@ export default { }else if(this.selectList.length < 1){ this.$message.warning('请至少选择一条数据进行带入') }else{ + this.qbfsForm.esId = this.selectList[0].id this.qbfsForm.esName = this.selectList[0].esName this.qbfsForm.draftTime = this.selectList[0].draftTime - this.qbfsForm.drafter = this.selectList[0].drafter + this.qbfsForm.drafterName = this.selectList[0].drafterName this.qbfsForm.planStatus = this.selectList[0].planStatus this.qbfsForm.releaseTime = this.selectList[0].releaseTime - this.qbfsForm.resPerson = this.selectList[0].resPerson + this.qbfsForm.resPersonName = this.selectList[0].resPersonName this.qbfsForm.reviseStatus = this.selectList[0].reviseStatus this.qbfsForm.unit = this.selectList[0].unit - this.qbfsForm.wgLeader = this.selectList[0].wgLeader + this.qbfsForm.wgLeaderName = this.selectList[0].wgLeaderName this.ListModel = false } }, diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue index 2df447bac..b3503075a 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step1.vue @@ -268,6 +268,7 @@ export default { }, data() { return { + comFlag: 0, active: "1", commentText: "", comName: "merge", @@ -380,7 +381,7 @@ export default { toggleComName(name) { this.comName = name; if(this.comName === 'merge'){ - this.$refs["childForm"].qbfsForm = '1' + this.$refs["childForm"].qbfsForm.type = '1' }else if(this.comName === 'delay'){ this.$refs["childForm"].qbfsForm.type = '2' }else if(this.comName === 'cancel'){ @@ -390,7 +391,6 @@ export default { }else if(this.comName === 'establish'){ this.$refs["childForm"].qbfsForm.type = '5' } - }, //流程保存 handleSave() { @@ -414,22 +414,71 @@ export default { this.saveLoading = false }) }, + repeatName(){ + let qbzxdFrom = this.$refs["childForm"].qbfsForm; + this.$http.get('esRevisePlan/es-revise-plan/getDataByName', {esName: qbzxdFrom.esName, id : qbzxdFrom.esId}, { + _this: this + }, res => { + let dataList = res.data + dataList.forEach(item => { + if(item.esName === qbzxdFrom.esName1 || item.esName === qbzxdFrom.esName2){ + this.comFlag++ + }else{ + this.comFlag = 0 + } + }) + }) + }, //流程提交 handleSubmit() { - if (this.$route.query.prcNum === undefined) { - let flag = this.$refs["childForm"].validateForm(); - let qbzxdFrom = this.$refs["childForm"].qbfsForm; - if (flag) { - this.$refs["roleForm"].validate((valid) => { - if (valid) { - this.isSubmit = true; - var json = Object.assign(qbzxdFrom, this.roleForm); - this.$http.get("lawss/activiti/startProcess", { type: "25" }, { - _this: this - }, res => { - if (res.ok) { + this.repeatName() + if(this.comFlag === '0'){ + this.$message.warning('请更改企标名称') + }else { + if (this.$route.query.prcNum === undefined) { + let flag = this.$refs["childForm"].validateForm(); + let qbzxdFrom = this.$refs["childForm"].qbfsForm; + if (flag) { + this.$refs["roleForm"].validate((valid) => { + if (valid) { + this.isSubmit = true; + var json = Object.assign(qbzxdFrom, this.roleForm); + this.$http.get("lawss/activiti/startProcess", { type: "25" }, { + _this: this + }, res => { + if (res.ok) { + this.$http.post("lawss/activiti/completeTask", { + taskIds: res.data, + userId: this.$store.getters.userInfo.userId, + json: JSON.stringify(json) + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message); + this.isSubmit = false; + this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" }); + } + }); + } + }); + } else { + this.$message.warning("请完善人员信息"); + } + }); + } else { + this.$message.warning("请完善基础信息"); + } + } else { + let flag = this.$refs["childForm"].validateForm(); + let qbzxdFrom = this.$refs["childForm"].qbfsForm; + if (flag) { + this.$refs["roleForm"].validate((valid) => { + if (valid) { + this.isSubmit = true; + var json = Object.assign(qbzxdFrom, this.roleForm); this.$http.post("lawss/activiti/completeTask", { - taskIds: res.data, + taskIds: this.$route.query.taskIds, userId: this.$store.getters.userInfo.userId, json: JSON.stringify(json) }, { @@ -441,46 +490,15 @@ export default { this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" }); } }); + } else { + this.$message.warning("请完善人员信息"); } }); } else { - this.$message.warning("请完善人员信息"); + this.$message.warning("请完善基础信息"); } - }); - } else { - this.$message.warning("请完善基础信息"); + } } - } else { - let flag = this.$refs["childForm"].validateForm(); - let qbzxdFrom = this.$refs["childForm"].qbfsForm; - if (flag) { - this.$refs["roleForm"].validate((valid) => { - if (valid) { - this.isSubmit = true; - var json = Object.assign(qbzxdFrom, this.roleForm); - this.$http.post("lawss/activiti/completeTask", { - taskIds: this.$route.query.taskIds, - userId: this.$store.getters.userInfo.userId, - json: JSON.stringify(json) - }, { - _this: this - }, res => { - if (res.success) { - this.$message.success(res.message); - this.isSubmit = false; - this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" }); - } - }); - } else { - this.$message.warning("请完善人员信息"); - } - }); - } else { - this.$message.warning("请完善基础信息"); - } - } - - }, // 流程阶段负责人选择 choiceZRR(type, title, id) { diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue index 9309fe961..e479a69a8 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step2.vue @@ -36,21 +36,21 @@ - + - + - +
- +
{ - if (res.success) { - this.$message.success(res.message) - this.$router.push('/processCenter') - } - this.isSubmit = false - }, e => { - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + this.isSubmit = true + this.qbfsForm.passFlag = '1' + this.qbfsForm.commentText = this.commentText + let json = JSON.stringify(this.qbfsForm); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.$route.query.taskIds, + userId: this.$store.getters.userInfo.userId, + json: json, + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message) + this.$router.push('/processCenter') + } + this.isSubmit = false + }, e => { + }); + } }, - }, }; diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue index 1ecb8b369..57e57c3f0 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step3.vue @@ -148,7 +148,7 @@
- +
{ - if (res.success) { - this.$message.success(res.message) - this.$router.push('/processCenter') - } - this.isSubmit = false - }, e => { - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + this.isSubmit = true + this.qbfsForm.deptCenterFlag = '1' + this.qbfsForm.commentText = this.commentText + let json = JSON.stringify(this.qbfsForm); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.$route.query.taskIds, + userId: this.$store.getters.userInfo.userId, + json: json, + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message) + this.$router.push('/processCenter') + } + this.isSubmit = false + }, e => { + }); + } }, - }, }; diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue index 9a3df7276..7fd695344 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step4.vue @@ -148,7 +148,7 @@
- +
{ - if (res.success) { - this.$message.success(res.message) - this.$router.push('/processCenter') - } - this.isSubmit = false - }, e => { - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + this.isSubmit = true + this.qbfsForm.bzFlag = '1' + this.qbfsForm.commentText = this.commentText + let json = JSON.stringify(this.qbfsForm); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.$route.query.taskIds, + userId: this.$store.getters.userInfo.userId, + json: json, + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message) + this.$router.push('/processCenter') + } + this.isSubmit = false + }, e => { + }); + } }, }, diff --git a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue index d23f72d5a..903dbd509 100644 --- a/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/qbzxdjhgk/step5.vue @@ -148,7 +148,7 @@
- +
{ - if (res.success) { - this.$message.success(res.message) - this.$router.push('/processCenter') - } - this.isSubmit = false - }, e => { - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ + this.isSubmit = true + this.qbfsForm.bzfgbzFlag = '1' + this.qbfsForm.commentText = this.commentText + let json = JSON.stringify(this.qbfsForm); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.$route.query.taskIds, + userId: this.$store.getters.userInfo.userId, + json: json, + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message) + this.$router.push('/processCenter') + } + this.isSubmit = false + }, e => { + }); + } }, }, diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue index e846129cd..bcf5d217c 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue @@ -239,7 +239,7 @@ @pageSizeChange="pageSizeChange"/> -
{ - if (item.passInfo !== undefined) { + if (item.passInfo !== 0) { this.passInfo = JSON.parse(JSON.stringify(item)).passInfo - } - let fileData = JSON.parse(JSON.stringify(item)).dockUserList - for (let i = 0; i - -
@@ -616,7 +615,6 @@
-
{ this.dataList = res.data.records; @@ -1094,6 +1095,7 @@ export default { }, //添加标准的查询按钮 searchLawBtn(){ + console.log(this.handleSelectForm); this.lawInfoTableLoading = true if (this.handleSelectForm.dataSource === 'INLAND'){ this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{ diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue index 0072b8b4c..f86e24020 100644 --- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue @@ -60,7 +60,7 @@ :data="dataList" border ref="selection" - height="59%" + height="65%" @selection-change="selectStandChange" style="width: 100%; border:1px solid #ccc" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', @@ -85,8 +85,8 @@