diff --git a/src/pages/config/pages/mechanismManage/index.vue b/src/pages/config/pages/mechanismManage/index.vue index a5be0b950..beb4d7667 100644 --- a/src/pages/config/pages/mechanismManage/index.vue +++ b/src/pages/config/pages/mechanismManage/index.vue @@ -264,6 +264,7 @@ export default { item.NameList = NameList }) this.data = res.data + this.total = res.data.length }) }, pageChange (page) { diff --git a/src/pages/config/pages/roleManage/index.vue b/src/pages/config/pages/roleManage/index.vue index fb7287909..ffe6f3326 100644 --- a/src/pages/config/pages/roleManage/index.vue +++ b/src/pages/config/pages/roleManage/index.vue @@ -71,6 +71,9 @@ prop="useFlag" label="角色状态" width="170px"> + + + + + + +
@@ -243,7 +257,8 @@ export default { SuperiorRoleModel: false, addFormRules: { name: [ - { required: true, message: '请输入角色名称', trigger: 'blur' } + { required: true, message: '请输入角色名称', trigger: 'blur' }, + {type: 'string', max: 100, message: '角色名称不能超过100个字符', trigger: 'blur'} ] }, addForm: { @@ -251,8 +266,19 @@ export default { parentId: '', // 上级ID remarks: '', // 角色描述 parent: '', + useFlag: '', id: '' }, + options: [ + { + value: "0", + label: "禁用", + }, + { + value: "1", + label: "启用", + } + ], addModel: false, treeData3: [], defaultProps3: { diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 97452ae8a..e94477eb5 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -246,7 +246,7 @@ v-for="(file, fileIndex) in child.value" :key="fileIndex" > - |{{file.id}}| + |{{file.id}}| + + + + diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue index c6005f448..be0700a43 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue @@ -96,7 +96,7 @@ - +

责任部门对接人

@@ -159,8 +159,20 @@ :visible.sync="modalshowflag2" :wrapperClosable="false" size="800px"> + + + + + + + + 导入中... + + + + + + + + 导入中... { + this.treeData1 = res.data + this.treeLoading = false + }) + } else { + this.open1 = true + } + }, + filterText2 (val) { + if (val.length) { + this.open2 = false + this.treeLoading = true + this.$http.get('SarInstitution/institution/institutionAndUser', { + userName: val + }, {}, res => { + this.treeData2 = res.data + this.treeLoading = false + }) + } else { + this.open2 = true + } + }, + }, methods: { + loadNode(node, resolve) { + if (node.level === 0) { + return resolve(this.treeData); + } + this.getChildren(node, resolve) + }, + getChildren (node, resolve) { + this.$http.get('SarInstitution/institution/getNext', { + institutionId: node.key + }, {}, res => { + resolve(res) + }) + }, choiceZRRS () { this.nodeList2 = [] if ( this.roleForm.dockUserList.length > 0) { this.nodeList2 = this.roleForm.dockUserList.split(',') } + this.filterText2 = '' this.modalshowflag2 = true }, saveUserInfo2 () { @@ -409,17 +520,39 @@ export default { this.nodeList.push(id) this.type = type this.drawerTitle = title + this.filterText1 = '' this.modalshowflag = true }, getTree () { - this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { - this.treeData = res.data + this.treeLoading = true + this.$http.get('SarInstitution/institution/getFirstInstitution', {}, {}, res=> { + this.treeData = res + this.treeLoading = false }) }, handleTabs(name) { this.active = name }, - handleSave() {}, + handleSave() { + this.saveLoading = true + let _formData = new FormData() + _formData.append('id', this.bpnId || '') + _formData.append('createUser', this.$store.getters.userInfo.userId) + _formData.append('createUserName', this.$store.getters.userInfo.userName) + _formData.append('prcType', '2') + _formData.append('json', JSON.stringify({ + form: this.form, + roleForm: this.roleForm, + commentText: this.commentText + })) + saveTaskFirst(_formData).then(res => { + this.saveLoading = false + this.$message.success('保存成功') + this.bpnId = res.result + }).catch(e => { + this.saveLoading = false + }) + }, handleSubmit() { this.$refs['qbkwForm'].validate((valid) => { if (valid) { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue index 13e9b5058..1169ad9bf 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue @@ -75,7 +75,6 @@
- - -
- {{ listForm.modelName }} -
-
- - 点击上传 - -
-
- - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - + + + + + 点击上传 + + + + @@ -833,6 +833,7 @@ export default { sarAccessListDatas: [], //国家地区清单表格 uploadFileListPath: "api/att/attFile/upload", // 上传的地址 fileInfoList: [], // 上传的附件 + fileListName: [], //上传的附件名称 standardData: [], //添加标准数据 standardData1: [], //添加标准数据 ListModel: false, //选择清单抽屉状态 @@ -1063,6 +1064,8 @@ export default { //提交事件 handleSubmit() { let json = this.listForm; + this.listForm.fileId = this.fileInfoList.join(',') + this.listForm.fileName = this.fileListName.join(',') // let json = Object.assign(this.listForm, this.roleForm) json.zrUserId = this.roleForm.dockUser; //会签人 json.jlUserId = this.roleForm.directorUser; //业务经理 @@ -1107,10 +1110,54 @@ export default { // 删除上传的文件 delFileInfo(file, fileList) { this.fileInfoList = fileList + fileList.forEach(item => { + this.fileListName = item.name + }) }, fileUpload () { this.fileMadel = true }, + // 上传文件成功回调 + uploadBackSuccess (res, file, fileList) { + if (res.ok) { + fileList.forEach(item => { + this.fileListName = item.name + }) + this.fileInfoList = fileList + this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id + this.$message.success('上传成功') + } else { + this.$message.error(res.message) + fileList.pop() + } + }, + // 相关附件 上传之前钩子 + beforeUpload (file) { + var filename = file.name + var index1 = filename.lastIndexOf('.') + var index2 = filename.length + var fileSuffix = filename.substring(index1, index2) + // const fileSuffix = file.name.split('.')[1] // 后缀名 + //把后缀转大写 + if(fileSuffix !== undefined && fileSuffix !== null){ + fileSuffix = fileSuffix.toUpperCase() + } + // 判断上传文件格式 + if (fileSuffix === '.PDF' || fileSuffix === '.DOC' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' + || fileSuffix === '.PPTX'|| fileSuffix === '.XLS'|| fileSuffix === '.XLSX' + || fileSuffix === '.PNG'|| fileSuffix === '.JPG'|| fileSuffix === '.JPEG') { + return true + } else { + this.$message.error('文件' + file.name + '格式不正确,请上传pdf、doc、docx、ppt、pptx、xls、xlsx、png、jpg、jpeg等文件') + return false + } + // 判断文件上传大小 + if (file.size / 1024 / 1024 > 300) { + this.$message.warning('文件' + file.name + '大小不能超过300M') + return false + } + return true + }, // 点击查看 handlePreview (item) { let routeUrl = this.$router.resolve({ diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue index 3ed3e478d..8a50ed5d3 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue @@ -373,6 +373,28 @@ export default { }, selectThree() { + }, + // 请求上传的文件信息 + getFileInfo() { + // this.$http.get("att/attFile/getMultiFileInfos", { + // fileIds: this.sarAccessEO.fileIds + // }, { + // _this: this + // }, res => { + // console.log(res); + // this.$nextTick(() => { + // res.data.map(item => { + // // 赋值要回显的上传文件内容 + // this.fileInfoList.push({ + // name: item.oldFileName, + // uid: item.uid, + // status: item.status, + // id: item.id + // }); + // }); + // }); + // }, e => { + // }); }, pageChange(page) { this.page = page; @@ -391,6 +413,7 @@ export default { mounted() { this.processTable() this.getData() + this.getFileInfo() // console.log(this.$store.getters.getHandleInfo); } }; diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index e7dbc3d63..aa58f9b7b 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -1497,14 +1497,14 @@ console.log(bringData) const json = Object.assign(bringData, bringData.attrInfoCaseMap); this.form = JSON.parse(JSON.stringify(json)) - this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw.split(',') - this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr.split(',') - this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs.split(',') - this.form.zrbm = JSON.parse(JSON.stringify(json)).zrbm.split(',') - this.form.syrz = JSON.parse(JSON.stringify(json)).syrz.split(',') - this.form.sycpx = JSON.parse(JSON.stringify(json)).sycpx.split(',') - this.form.nylx = JSON.parse(JSON.stringify(json)).nylx.split(',') - this.form.cllx = JSON.parse(JSON.stringify(json)).cllx.split(',') + this.form.qcdw = JSON.parse(JSON.stringify(json)).qcdw ? JSON.parse(JSON.stringify(json)).qcdw.split(',') : [] + this.form.wssmr = JSON.parse(JSON.stringify(json)).wssmr ? JSON.parse(JSON.stringify(json)).wssmr.split(',') : [] + this.form.zrgcs = JSON.parse(JSON.stringify(json)).zrgcs ? JSON.parse(JSON.stringify(json)).zrgcs.split(',') : [] + this.form.zrbm = JSON.parse(JSON.stringify(json)).zrbm ? JSON.parse(JSON.stringify(json)).zrbm.split(',') : [] + this.form.syrz = JSON.parse(JSON.stringify(json)).syrz ? JSON.parse(JSON.stringify(json)).syrz.split(',') : [] + this.form.sycpx = JSON.parse(JSON.stringify(json)).sycpx ? JSON.parse(JSON.stringify(json)).sycpx.split(',') : [] + this.form.nylx = JSON.parse(JSON.stringify(json)).nylx ? JSON.parse(JSON.stringify(json)).nylx.split(',') : [] + this.form.cllx = JSON.parse(JSON.stringify(json)).cllx ? JSON.parse(JSON.stringify(json)).cllx.split(',') : [] this.defaultCheckedKeys = [this.form.standSystem]; this.defaultCheckedKeys1 = [this.form.cycvppsbm]; this.defaultCheckedKeys2 = [this.form.kccvppsbm]; @@ -1949,7 +1949,8 @@ saveTaskFirst(_formData).then(res => { this.saveLoading = false this.$message.success('保存成功') - // this.$router.push('/processCenter') + // 流程保存之后,应该流转至草稿页面 + this.$router.push({path:'/processCenter?tabsName=TaskDraft'}) // this.bpnId = res.result }).catch(e => { this.saveLoading = false @@ -1982,6 +1983,8 @@ if (res.success) { this.$message.success(res.message) this.isSubmit = false + // 流程提交之后,应该流转至待办任务页面 + this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) } }) } diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue index 29007b56f..4e6defe76 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue @@ -679,6 +679,7 @@ diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue index 70e1d284e..284d243f7 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step6.vue @@ -35,16 +35,16 @@ clearable > - + - + @@ -296,7 +296,6 @@ { - console.log(res.mesg); if (res) { const processForm = JSON.parse(res.mesg) this.getFormFieldList(processForm) @@ -432,17 +430,16 @@ export default { * @description: 动态表单读取 */ getFormFieldList (item) { - console.log(item); this.$nextTick(() => { this.listForm = JSON.parse(JSON.stringify(item)) this.listForm.prcNum = this.prcNum this.listForm.prcName = this.prcName this.listForm['id'] = item.id - this.dataList = item.step3DTOS + this.dataList = item.dataList this.listForm.standName = item.step3DTOS[0].standName this.listForm.standNumber = item.step3DTOS[0].standNumber - this.listForm.qualityEngineer = item.step3DTOS[0].qualityEngineer - this.listForm.certifiedEngineer = item.step3DTOS[0].certifiedEngineer + this.listForm.qualityEngineerName = item.step3DTOS[0].qualityEngineerName + this.listForm.certifiedEngineerName = item.step3DTOS[0].certifiedEngineerName }) }, //驳回事件 @@ -503,7 +500,6 @@ export default { mounted() { this.processTable() this.getData() - // console.log(this.$store.getters.getHandleInfo); } }; diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue index cb0061ad1..67779eb12 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step7.vue @@ -35,16 +35,16 @@ clearable > - + - + @@ -296,7 +296,6 @@ { - console.log(res.mesg); if (res) { const processForm = JSON.parse(res.mesg) this.getFormFieldList(processForm) @@ -432,7 +430,6 @@ export default { * @description: 动态表单读取 */ getFormFieldList (item) { - console.log(item.dataList); this.$nextTick(() => { this.listForm = JSON.parse(JSON.stringify(item)) this.listForm.prcNum = this.prcNum @@ -501,7 +498,6 @@ export default { mounted() { this.processTable() this.getData() - // console.log(this.$store.getters.getHandleInfo); } }; diff --git a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue index b6842a975..25fccf741 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue @@ -82,6 +82,9 @@ align="center" width="180" > +
+ { + this.$set(this.countryAreaMap, item.value, item.label) + }) } }, mounted() { @@ -358,6 +372,7 @@ export default { _this: this }, res => { this.countryOptions = res.data.COUNTRY; + this.setMap(this.countryOptions) }, e => { }); } diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue index f168e45d8..a2ca95cd1 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOther.vue @@ -352,7 +352,8 @@ export default { this.$router.push({ name: "OtherAddEit", query: { - id: item.id + id: item.id, + fileIds: item.fileIds } }); } diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue index 6c669dccf..505201a52 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue @@ -355,7 +355,8 @@ export default { this.$router.push({ name: "ProjectAddEit", query: { - id: item.id + id: item.id, + fileIds: item.fileIds } }); } diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index b077e7fbe..9a8810380 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -70,6 +70,7 @@ :on-remove="delFileInfo" :on-success="uploadBackSuccess" :before-upload="beforeUpload" + :on-preview="handleOnPreview" > 点击上传 @@ -225,23 +226,35 @@ prop="issueTime" sortable label="发布日期"> + + + + + + + + + + + + - +