From 999b0e5ee06311ed5df0bcfc3694589572e45fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 2 Jun 2021 15:41:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=81=E6=B1=82=E6=84=8F=E8=A7=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/details/categoryDetails/index.vue | 1741 ++--------------- .../details/consultationDetails/index.vue | 1307 ++----------- .../pages/details.vue | 40 +- 3 files changed, 326 insertions(+), 2762 deletions(-) diff --git a/src/pages/details/categoryDetails/index.vue b/src/pages/details/categoryDetails/index.vue index c1f272a7b..f6a1d9cfd 100644 --- a/src/pages/details/categoryDetails/index.vue +++ b/src/pages/details/categoryDetails/index.vue @@ -1,725 +1,93 @@ + @@ -728,860 +96,99 @@ export default { name: 'categoryDetails', data () { return { - isAdvancedSearch: false, - twoOptions: [ - { - label: '标准号', - value: 'code', - type: 'INPUT', - disabled: false - }, - { - label: '中文名称', - value: 'resName', - type: 'INPUT', - disabled: false - }, - { - label: '英文名称', - value: 'resEnName', - type: 'INPUT', - disabled: false - }, - { - label: '新车型实施日期(项目)', - value: 'newPutTextTime', - type: 'DATE_PIC_OPTS', - disabled: false - }, - { - label: '在产车实施日期(项目)', - value: 'prodPutTextTime', - type: 'DATE_PIC_OPTS', - disabled: false - }, - { - label: 'EOP实施日期(项目)', - value: 'eopPutTextTime', - type: 'DATE_PIC_OPTS', - disabled: false - }, - { - label: '实施说明', - value: 'perFormInfo', - type: 'INPUT', - disabled: false - }, - { - label: '认证交付物', - value: 'authDelive', - type: 'INPUT', - disabled: false - }, - { - label: '认证对象', - value: 'authObj', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '监管类型', - value: 'askNature', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '适用车辆类型', - value: 'cllx', - type: 'SEL_OPTS', - disabled: false - }, - { - label: '责任部门', - value: 'dutyDepartId', - type: 'SEL_OPTS', - selVal: 'ORGLIST', - disabled: false - }, - { - label: '相关部门', - value: 'xgbm', - type: 'SEL_OPTS', - selVal: 'ORGLIST', - disabled: false - }, - { - label: 'FO', - value: 'foUserId', - type: 'SEL_OPTS', - selVal: 'ROLELIST', - disabled: false - }, - { - label: '项目评估角色', - value: 'proAccUserId', - type: 'SEL_OPTS', - selVal: 'ROLELIST', - disabled: false - }, - { - label: '清单说明', - value: 'synopsis', - type: 'INPUT', - disabled: false - }, - { - label: '标签', - value: 'gxhbq', - type: 'SEL_OPTS', - disabled: false - }, - { - label: '要求类型', - value: 'yqlx', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '流程状态', - value: 'prcState', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '符合性状态', - value: 'sarState', - type: 'SEL_OPTION', - disabled: false - }, - // { - // label: '合规性分级', - // value: 'sarState', - // type: 'SEL_OPTION', - // disabled: false - // }, - ], - threeOptions: [], - relateDialog: false, - relateList: [], - relateNowList: [], + opiniontitle: '新增意见', + exportName:'', + exportModelFlag: false, //导出模态窗状态 heightShow: true, - dataLoading: false, - standardForm: { - codeOrName: '', // 标号、标准名称 - // energyType: '', - depart: '', - departName: '', - page: 1, - pageSize: this.$store.getters.userInfo.configContent, - accessId: this.$route.params.id, - validFlag: 0 + isSubmit: false, + opinionList: { + standardNumber: 'GB 121-12', + standardName: '机动车安全运行条件', + uploadTime: '2002-11-23', + opinionCycle: '2001-02-21到 2012-02-02' }, - page: 1, - // pageSize: this.$store.getters.userInfo.configContent, - total: 0, - stateList: [], // 标准状态列表 - activeName: 'SKILL', // 当前激活 - // 导出文件模态框控制,和文件名称 - saveExportType: '', - exportModelFlag: false, - exportName: '', - standType: 'INLAND', - uploadPath: 'api/att/attFile/upload', - defaultFileList: [], // 默认显示, - standinfoList: [], // 技术要求 - adminInfoList: [], // 行政要求 - loading: false, - accessSarType: '', - selectedList: [], - depNode: [], // 部门树 - sarAccessEO: {}, - fileInfoList: [], - // 改变颜色 - dialogColor: false, - dialogType: '', - colorList:[ - { - name: 'green', - pic: require(`../../../assets/images/ComplianceClassification/green.png`), - title:'符合', - isShow: false - }, - { - name: 'red', - pic: require(`../../../assets/images/ComplianceClassification/red.png`), - title:'高风险', - isShow: false - }, - { - name: 'yellow', - pic: require(`../../../assets/images/ComplianceClassification/yellow.png`), - title:'不满足或待验证', - isShow: false - }, - { - name: 'blue', - pic: require(`../../../assets/images/ComplianceClassification/blue.png`), - title:'待反馈', - isShow: false - }, - { - name: 'grey', - pic: require(`../../../assets/images/ComplianceClassification/white.png`), - title:'不涉及', - isShow: false - } - ], - color:'', - isShow:false + opinionContent: { + number:'', + content: '', + }, + standinfoList: [{ + date: '1.1.2', + name: '文章内容不清晰', + department: '事业部', + proposer: '李兰', + }, { + date: '1.2.3.1', + name: '标准有错误', + department: '事业部', + proposer: '李兰', + }, { + date: '1.21.1', + name: '标准延时', + department: '事业部', + proposer: '李兰', + }, { + date: '1.21.1', + name: '实用性不高', + department: '法规部', + proposer: '王兰', + }, { + date: '1.2.31', + name: '不贴合国家标准', + department: '法规部', + proposer: '李兰', + }, ], + newModelPageConfig: { + page: 1, + total: 0 + } } }, methods: { - // 更新LOG关闭 - relateDialogClose () { - this.relateDialog = false - this.relateNowList = [] - }, - // 更新LOG - relateEvent () { - this.$http.get('lawss/sarUpdLog/getLogList', { - sarId: this.$route.params.id, - sarType: 'ACCESS' - }, { - _this: this - }, res => { - if (res.data.length > 0) { - this.relateDialog = true - this.relateList = res.data - var i - for (i = 0; i < this.relateList.length; i++) { - let obj = {creationUserName: '', creationTime: '', content: ''} - obj.creationUserName = this.relateList[i].creationUserName - obj.creationTime = this.relateList[i].creationTime - obj.content = this.relateList[i].content - this.relateNowList.push(obj) - } - } else { - this.$message({ - message: '暂无数据', - type: 'warning' - }) - } - }, e => { - - }) - }, - // 根据准入id查询标准法规详情 - selectInfobyAccid (advanceSearch) { - // 如为高级检索 advanceSearch 会有数据 - const formData = advanceSearch || this.standardForm - if (advanceSearch) { - this.standardForm.json = advanceSearch.json - } - - this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', formData, { - _this: this, - loading: 'dataLoading' - }, res => { - this.standinfoList = res.data.SKILL - this.adminInfoList = res.data.ADMIN - // this.seeSarAccessInfoList = res.data.list - this.$nextTick(() => { - this.$refs.skillTable.doLayout() - this.$refs.adminTable.doLayout() - }) - }, e => { - }) - }, - // 重置搜索 - resetSelect (search = true) { - // search 字段是为了处理高级查询时清空字段用的 - - this.standardForm.codeOrName = '' - this.standardForm.depart = '' - this.standardForm.departName = '' - this.standardForm.page = 1 - search && this.selectInfobyAccid() - }, - back () { - this.$router.push({ - name: 'standardForComments' - }) - // this.$router.push(this.$store.state.detailMap) - // this.$store.commit('setDetailMap', '') - }, - // 搜索 - selectProductBtn () { - this.page = 1 - this.standardForm.page = 1 - this.selectInfobyAccid() - }, - exportStandard () { - this.exportName = '' + //导出选中的标准 + exportStandard(){ this.exportModelFlag = true - }, - // 导出取消按钮关闭模态、置空 - cancal () { - this.exportModelFlag = false - }, - // 导出确定功能 - exportTestItem () { - var exportNames = this.exportName - let exportList = [] - // 判断导出的全部还是部分数据 - if (this.selectedList.length > 0) { - exportList = this.selectedList - } else { - // 判断导出的是技术要求清单还是行政要求清单 - if (this.activeName === 'SKILL') { - exportList = this.standinfoList - } else { - exportList = this.adminInfoList - } - } - if (exportList != null && exportList.length > 0) { - let accIdAndrestype = [] - for (var accessInfo in exportList) { - accIdAndrestype.push(exportList[accessInfo].id) - } - window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames - this.$message.success('导出信息成功') - } else { - this.$message.warning('当前没有需要导出的数据') - } - this.exportModelFlag = false - }, - // tab页切换 - handleClick (tab, event) { - this.activeName = tab.name - this.page = 1 - this.standardForm.page = 1 - this.selectedList = [] - this.selectInfobyAccid() - }, - // 修改成表格样式后,选择项勾选改变 - standSelectChange (selected) { - this.selectedList = selected - }, - pageChangeLaws (page) { - this.standardForm.page = page - this.selectInfobyAccid() - }, - pageSizeChangeLaws (pageSize) { - this.standardForm.pageSize = pageSize - this.selectInfobyAccid() - }, - // 请求部门结构树 - getOrgTreeSource () { - this.$http.get('sys/org/getTree', {}, {_this: this}, - res => { - if (res.ok) { - let treeNode = [] - res.data.map((item, index) => { - let treeItem = {} - for (let key in item) { - if (key === 'orgName') { - treeItem.name = item[key] - } else { - treeItem[key] = item[key] - } - } - treeNode[index] = treeItem - }) - this.depNode = treeNode - } - }) - }, - // 责任部门 树点击 - treeDblAuthDepartClick (treeId, treeNode) { - this.standardForm.departName = treeNode.name - this.standardForm.depart = treeNode.id - $('#depBtnsAuth').click() - }, - // 请求上传的文件信息 - getFileInfo () { - this.$http.get('att/attFile/getMultiFileInfos', { - fileIds: this.sarAccessEO.relateFile - }, { - _this: this - }, res => { - this.$nextTick(() => { - res.data.map(item => { - // 赋值要回显的上传文件内容 - this.fileInfoList.push({ - name: item.oldFileName, - uid: item.uid, - status: item.status, - id: item.id - }) - }) - }) - }, e => { - }) - }, - // 附件下载事件 - fileDownLoad (attId) { - window.location.href = '/api/att/attFile/downloadFile?fileId=' + attId - }, - // 点击查看 - handlePreview (item) { - let routeUrl = this.$router.resolve({ - name: 'OtherStandardDetails', - params: { - id: item.resId, - pageType: item.sarType - } - }) - window.open(routeUrl.href, '_blank') - }, - /** - * @Description: 点击在线查看 - * @author zmf - * @date 2021/3/16 - */ - openFileInPdf (attId, oldFileName) { - // 缺少文件 - // if (this.$route.params.pageType === 'INLAND_STAND') { - if (this.$hasPermission('BFCWGPL9WADF2KSQZVYU')) { - this.$http.get('lawss/sarStandFile/queryConvertAtt', { - attId: attId - }, { - _this: this - }, res => { - if (res.data) { - let fileObj = {} - fileObj.fileId = res.data.attId - fileObj.fileName = oldFileName - let fileList = [] - let repeatData = 0 - if (sessionStorage.getItem('fileInfo')) { - fileList = JSON.parse(sessionStorage.getItem('fileInfo')) - if (fileList != null && fileList.length > 0) { - for (let i = 0; i < fileList.length; i++) { - if (fileList[i].fileId === res.data.attId) { - repeatData = 1 - break - } - } - if (repeatData === 0) { - fileList.push(fileObj) - fileList = JSON.stringify(fileList) - sessionStorage.setItem('fileInfo', fileList) - } - } - } else { - fileList.push(fileObj) - fileList = JSON.stringify(fileList) - sessionStorage.setItem('fileInfo', fileList) - } - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId)) - } else { - this.$message.error('文档未转换成功或本地读取不到该文档') - } - }, e => { - this.$message.error('文档未转换成功或本地读取不到该文档') - }) - } else { - this.$message.error('没有在线预览文档权限!') - } - // } - // else { - // // 国外在线预览权限 - // if (this.$hasPermission('YfS94QodMK')) { - // this.$http.get('lawss/sarStandFile/queryConvertAtt', { - // attId: attId - // }, { - // _this: this - // }, res => { - // if (res.data) { - // let fileObj = {} - // fileObj.fileId = res.data.attId - // fileObj.fileName = oldFileName - // let fileList = [] - // let repeatData = 0 - // if (sessionStorage.getItem('fileInfo')) { - // fileList = JSON.parse(sessionStorage.getItem('fileInfo')) - // if (fileList != null && fileList.length > 0) { - // for (let i = 0; i < fileList.length; i++) { - // if (fileList[i].fileId === res.data.attId) { - // repeatData = 1 - // break - // } - // } - // if (repeatData === 0) { - // fileList.push(fileObj) - // fileList = JSON.stringify(fileList) - // sessionStorage.setItem('fileInfo', fileList) - // } - // } - // } else { - // fileList.push(fileObj) - // fileList = JSON.stringify(fileList) - // sessionStorage.setItem('fileInfo', fileList) - // } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId)) - // } else { - // this.$message.error('文档未转换成功或本地读取不到该文档') - // } - // }, e => { - // this.$message.error('文档未转换成功或本地读取不到该文档') - // }) - // } else { - // this.$message.error('没有在线预览文档权限!') - // } - // } - }, - /** - * @Description: 点击下载 - * @author zmf - * @date 2021/3/16 - */ - downloadFile (attId) { - if (attId != null && attId !== '') { - window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId - } else { - this.$message.error('请选择要下载的文件') - } - }, - downloadFileByWater (attId, fileSuffix) { - let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf('.') + 1); - if (fileExtension !== 'pdf' && fileExtension !== 'PDF') { - this.$message.error('水印下载仅支持PDF,pdf格式文件') - } else { - if (attId != null && attId !== '') { - window.location.href = '/api/att/attFile/downloadFileForSarWaterMark?fileId=' + attId - } else { - this.$message.error('请选择要下载的文件') - } - } - }, - // - changeState (row) { - let routeUrl = this.$router.resolve({ - name: 'ComplianceDetails', - query: { - sarId: row.resId, - sarType: row.sarState - } - }) - window.open(routeUrl.href, '_blank') - }, - typeColor (row, type1, type2) { - // if (this.$_has('KJJ6U32LFL4PAK5C6P55')) { - // return - // } - this.$confirm('确定修改此标准分级?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning', - confirmButtonClass: 'common-button-primary', - roundButton: true - }).then(() => { - var color = '' - if (type1 === 1) { - if (row.color === '#f00') { - color = '#ff0' - } else { - color = '#f00' - } - } else { - color = '#f00' - } - this.$http.putData('lawss/sarSarAccessInfo/updateStatusInfo', - { - sarId: row.resId, - color: color - }, { - _this: this - }, res => { - if (res.ok) { - this.selectInfobyAccid() - if (type2 === 2) { - if (type1 === 1) { - if (row.color === '#f00') { - row.color = '#ff0' - } else { - row.color = '#f00' - } - } else { - row.color = '#f00' - } - } - this.$message({ - type: 'success', - message: '修改成功!' - }) - } else { - this.$message({ - type: 'error', - message: '修改失败!' - }) - } - }) - }).catch(() => { - this.$message({ - type: 'info', - message: '已取消修改' - }); - }); - }, - /** - * 高级检索 - */ - selectMoreBtn () { - this.isAdvancedSearch = true - this.threeOptions = [] - }, - /** - * 高级检索 - * 检索项修改时为了匹配对应的下拉菜单的 - */ - twoSelectChange (val, obj) { - if (val === 'authObj') { - this.threeOptions = [ - { - label: '整车', - value: '整车' - }, - { - label: '零部件', - value: '零部件' - }, - { - label: '整车+零部件', - value: '整车+零部件' - }, - { - label: 'TBD', - value: 'TBD' - } - ] - } else if (val === 'askNature') { - // 监管类型 - this.threeOptions = this.askNatureOptions - } else if (val === 'cllx') { - // 适用车辆类型 - this.threeOptions = this.applyArcticOptions - } else if (val === 'gxhbq') { - // 标签 - this.threeOptions = this.GXHBQOptions - } else if (val === 'yqlx') { - // 要求类型 - this.threeOptions = this.accessSarTypeOptions - } else if (val === 'prcState') { - // 流程状态 - this.threeOptions = [ - { - label: '评估中', - value: '1' - }, - { - label: '整改中', - value: '2' - }, - { - label: '已评估', - value: '3' - }, - { - label: '已整改', - value: '4' - }, - { - label: '未评估', - value: '5' - }, - { - label: 'N/A', - value: ' ' - }, - ] - } else if (val === 'sarState') { - // 符合性状态 - this.threeOptions = [ - /* { - label: '部分符合', - value: '0' - }, */ - { - label: '待验证', - value: '1' - }, - { - label: '符合', - value: '2' - }, - { - label: '不符合', - value: '3' - }, - { - label: '部分符合', - value: '4' - }, - { - label: '不涉及', - value: '5' - }, - { - label: '未评估', - value: '8' - }, - ] - } - }, - // 获取工作组信息下拉框信息 - getGzzOption () { - this.$http.get('lawss/sarGroupMenu/queryGroup', '', { - _this: this - }, res => { - if (res.ok) { - let gzzxxOptions = [] - res.data.map(item => { - gzzxxOptions.push({ - value: item.id, - label: item.menuName - }) - }) - this.allSelectOptions.GZZXX = gzzxxOptions - } - }) - }, - // 高级检索搜索 - getDomesticStandardTableBtn (advancedSearch) { - let formData = {} - formData.page = 1 - formData.advanceSearchStr = '' - formData.json = JSON.stringify(advancedSearch) || '' - formData.pageSize = this.$store.getters.userInfo.configContent - formData.accessId = this.$route.params.id - formData.validFlag = 0 - // 重置页码 - this.resetSelect(false) - this.selectInfobyAccid(formData) - }, - /** - * @Description: 选择颜色 - * @author zmf - * @date 2021/3/10 - */ - chooseColor(item, num){ - // if (this.$_has('KJJ6U32LFL4PAK5C6P55')) { - // return - // } - this.dialogColor = true - this.colorRow = item - this.dialogType = num - }, - /** - * @Description: 给图标添加边框 - * @author zmf - * @date 2021/3/10 - */ - addBorder(item,index){ - this.colorList.forEach((list,i)=>{ - if(i === index){ - this.colorList[index].isShow = true - }else{ - this.colorList[i].isShow = false - } - }) - this.color = item.name - }, - /** - * @Description: 确定改变合规性分级 - * @author zmf - * @date 2021/3/10 - */ - changeColor(){ - // if(num==='2'){ - this.$http.putData('lawss/sarSarAccessInfo/updateStatusInfo', - { - id: this.colorRow.id, - color: this.color - }, { - _this: this - }, res => { - if (res.ok) { - this.selectInfobyAccid() - this.$message({ - type: 'success', - message: '修改成功!' - }); - this.dialogColor = false - } else { - this.$message({ - type: 'error', - message: '修改失败!' - }); - } - }) - // }else{ - // this.$http.putData('lawss/sarProductSarState/updateProductSarState', - // { - // id: this.colorRow.id, - // color: this.color - // }, { - // _this: this - // }, res => { - // if (res.ok) { - // this.queryItemsBySar() - // // this.querySarProStateFirst() - // this.$message({ - // type: 'success', - // message: '修改成功!' - // }); - // this.dialogColor = false - // } else { - // this.$message({ - // type: 'error', - // message: '修改失败!' - // }); - // } - // }) - // } - }, - doLayout() { - this.$refs.adminTable && this.$refs.adminTable.doLayout() - this.$refs.skillTable && this.$refs.skillTable.doLayout() - } - }, - mounted () { - this.$nextTick(() => { - this.selectInfobyAccid() - this.getOrgTreeSource() - let accessRow = JSON.parse(sessionStorage.getItem('accessRow')) - this.sarAccessEO = accessRow - this.getFileInfo() - }) - // 从数据库中查询各下拉框数据 - this.$http.get('sys/dictype/getDicTypeListCode', '', { - _this: this - }, res => { - this.allSelectOptions = res.data || {} - this.regionOptions = res.data.REGION // 基础信息 区域list - this.applyArcticOptions = res.data.ENERGYTYPES || [] // 基础车型 适用车型list - this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list - this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list - this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质 - this.accessSarTypeOptions = res.data.REQUESTTYPE // 数据搜索 要求类型 - this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 - this.standStateOptions = res.data.STANDSTATE // 标准状态 - this.ROLELIST = res.data.ROLELIST - this.GXHBQOptions = res.data.GXHBQXX - this.askNatureOptions = res.data.ACCESSTYPE - this.getGzzOption() - }, e => { - }) - } + }, + //分页数据改变 + handlePageChange(field, page) { + switch (field) { + case "newModel": + break; + case "": + break; + } + }, + handlePageSizeChange(field, pageSize) { + switch (field) { + case "newModel": + break; + case "": + break; + } + }, + back (){ + this.$router.push({ + name:'standardForComments' + }) + }, + //取消导出 + cancal(){ + this.exportModelFlag = false + }, + //提交导出 + exportTestItem() { + this.exportModelFlag = false + } + + }, + mounted () {} } diff --git a/src/pages/details/consultationDetails/index.vue b/src/pages/details/consultationDetails/index.vue index 4aa580a4d..4ef9706ea 100644 --- a/src/pages/details/consultationDetails/index.vue +++ b/src/pages/details/consultationDetails/index.vue @@ -1,6 +1,6 @@ @@ -367,778 +106,114 @@ export default { name: 'consultationDetails', data () { return { - isAdvancedSearch: false, - twoOptions: [ - { - label: '标准号', - value: 'code', - type: 'INPUT', - disabled: false - }, - { - label: '中文名称', - value: 'resName', - type: 'INPUT', - disabled: false - }, - { - label: '英文名称', - value: 'resEnName', - type: 'INPUT', - disabled: false - }, - { - label: '新车型实施日期(项目)', - value: 'newPutTextTime', - type: 'DATE_PIC_OPTS', - disabled: false - }, - { - label: '在产车实施日期(项目)', - value: 'prodPutTextTime', - type: 'DATE_PIC_OPTS', - disabled: false - }, - { - label: 'EOP实施日期(项目)', - value: 'eopPutTextTime', - type: 'DATE_PIC_OPTS', - disabled: false - }, - { - label: '实施说明', - value: 'perFormInfo', - type: 'INPUT', - disabled: false - }, - { - label: '认证交付物', - value: 'authDelive', - type: 'INPUT', - disabled: false - }, - { - label: '认证对象', - value: 'authObj', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '监管类型', - value: 'askNature', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '适用车辆类型', - value: 'cllx', - type: 'SEL_OPTS', - disabled: false - }, - { - label: '责任部门', - value: 'dutyDepartId', - type: 'SEL_OPTS', - selVal: 'ORGLIST', - disabled: false - }, - { - label: '相关部门', - value: 'xgbm', - type: 'SEL_OPTS', - selVal: 'ORGLIST', - disabled: false - }, - { - label: 'FO', - value: 'foUserId', - type: 'SEL_OPTS', - selVal: 'ROLELIST', - disabled: false - }, - { - label: '项目评估角色', - value: 'proAccUserId', - type: 'SEL_OPTS', - selVal: 'ROLELIST', - disabled: false - }, - { - label: '清单说明', - value: 'synopsis', - type: 'INPUT', - disabled: false - }, - { - label: '标签', - value: 'gxhbq', - type: 'SEL_OPTS', - disabled: false - }, - { - label: '要求类型', - value: 'yqlx', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '流程状态', - value: 'prcState', - type: 'SEL_OPTION', - disabled: false - }, - { - label: '符合性状态', - value: 'sarState', - type: 'SEL_OPTION', - disabled: false - }, - // { - // label: '合规性分级', - // value: 'sarState', - // type: 'SEL_OPTION', - // disabled: false - // }, - ], - threeOptions: [], - relateDialog: false, - relateList: [], - relateNowList: [], + opiniontitle: '新增意见', + isDialog: false, //新增抽屉状态 heightShow: true, - dataLoading: false, - standardForm: { - codeOrName: '', // 标号、标准名称 - // energyType: '', - depart: '', - departName: '', - page: 1, - pageSize: this.$store.getters.userInfo.configContent, - accessId: this.$route.params.id, - validFlag: 0 + isSubmit: false, + opinionList: { + standardNumber: 'GB 121-12', + standardName: '机动车安全运行条件', + uploadTime: '2002-11-23', + opinionCycle: '2001-02-21到 2012-02-02' }, - page: 1, - // pageSize: this.$store.getters.userInfo.configContent, - total: 0, - stateList: [], // 标准状态列表 - activeName: 'SKILL', // 当前激活 - // 导出文件模态框控制,和文件名称 - saveExportType: '', - exportModelFlag: false, - exportName: '', - standType: 'INLAND', - uploadPath: 'api/att/attFile/upload', - defaultFileList: [], // 默认显示, - standinfoList: [], // 技术要求 - adminInfoList: [], // 行政要求 - loading: false, - accessSarType: '', - selectedList: [], - depNode: [], // 部门树 - sarAccessEO: {}, - fileInfoList: [], - // 改变颜色 - dialogColor: false, - dialogType: '', - colorList:[ - ], - color:'', - isShow:false + opinionContent: { + number:'', + content: '', + }, + standinfoList: [{ + date: '1.1.2', + name: '文章内容不清晰', + }, { + date: '1.2.3.1', + name: '标准有错误', + }, { + date: '1.21.1', + name: '标准延时', + }, { + date: '1.21.1', + name: '实用性不高', + }, { + date: '1.2.31', + name: '不贴合国家标准', + }, ], + newModelPageConfig: { + page: 1, + total: 0 + } } }, - // methods: { - // // 更新LOG关闭 - // relateDialogClose () { - // this.relateDialog = false - // this.relateNowList = [] - // }, - // // 更新LOG - // relateEvent () { - // this.$http.get('lawss/sarUpdLog/getLogList', { - // sarId: this.$route.params.id, - // sarType: 'ACCESS' - // }, { - // _this: this - // }, res => { - // if (res.data.length > 0) { - // this.relateDialog = true - // this.relateList = res.data - // var i - // for (i = 0; i < this.relateList.length; i++) { - // let obj = {creationUserName: '', creationTime: '', content: ''} - // obj.creationUserName = this.relateList[i].creationUserName - // obj.creationTime = this.relateList[i].creationTime - // obj.content = this.relateList[i].content - // this.relateNowList.push(obj) - // } - // } else { - // this.$message({ - // message: '暂无数据', - // type: 'warning' - // }) - // } - // }, e => { - // - // }) - // }, - // // 根据准入id查询标准法规详情 - // selectInfobyAccid (advanceSearch) { - // // 如为高级检索 advanceSearch 会有数据 - // const formData = advanceSearch || this.standardForm - // if (advanceSearch) { - // this.standardForm.json = advanceSearch.json - // } - // - // this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', formData, { - // _this: this, - // loading: 'dataLoading' - // }, res => { - // this.standinfoList = res.data.SKILL - // this.adminInfoList = res.data.ADMIN - // // this.seeSarAccessInfoList = res.data.list - // this.$nextTick(() => { - // this.$refs.skillTable.doLayout() - // this.$refs.adminTable.doLayout() - // }) - // }, e => { - // }) - // }, - // // 重置搜索 - // resetSelect (search = true) { - // // search 字段是为了处理高级查询时清空字段用的 - // - // this.standardForm.codeOrName = '' - // this.standardForm.depart = '' - // this.standardForm.departName = '' - // this.standardForm.page = 1 - // search && this.selectInfobyAccid() - // }, - // back () { - // this.$router.push({ - // name: 'standardForComments' - // }) - // // this.$router.push(this.$store.state.detailMap) - // // this.$store.commit('setDetailMap', '') - // }, - // // 搜索 - // selectProductBtn () { - // this.page = 1 - // this.standardForm.page = 1 - // this.selectInfobyAccid() - // }, - // exportStandard () { - // this.exportName = '' - // this.exportModelFlag = true - // }, - // // 导出取消按钮关闭模态、置空 - // cancal () { - // this.exportModelFlag = false - // }, - // // 导出确定功能 - // exportTestItem () { - // var exportNames = this.exportName - // let exportList = [] - // // 判断导出的全部还是部分数据 - // if (this.selectedList.length > 0) { - // exportList = this.selectedList - // } else { - // // 判断导出的是技术要求清单还是行政要求清单 - // if (this.activeName === 'SKILL') { - // exportList = this.standinfoList - // } else { - // exportList = this.adminInfoList - // } - // } - // if (exportList != null && exportList.length > 0) { - // let accIdAndrestype = [] - // for (var accessInfo in exportList) { - // accIdAndrestype.push(exportList[accessInfo].id) - // } - // window.location.href = '/api/lawss/sarSarAccessInfo/exportSarSarAccessInfo?idAndSartypeList=' + accIdAndrestype.join(',') + '&exportType=apart' + '&exportName=' + exportNames - // this.$message.success('导出信息成功') - // } else { - // this.$message.warning('当前没有需要导出的数据') - // } - // this.exportModelFlag = false - // }, - // // tab页切换 - // handleClick (tab, event) { - // this.activeName = tab.name - // this.page = 1 - // this.standardForm.page = 1 - // this.selectedList = [] - // this.selectInfobyAccid() - // }, - // // 修改成表格样式后,选择项勾选改变 - // standSelectChange (selected) { - // this.selectedList = selected - // }, - // pageChangeLaws (page) { - // this.standardForm.page = page - // this.selectInfobyAccid() - // }, - // pageSizeChangeLaws (pageSize) { - // this.standardForm.pageSize = pageSize - // this.selectInfobyAccid() - // }, - // // 请求部门结构树 - // getOrgTreeSource () { - // this.$http.get('sys/org/getTree', {}, {_this: this}, - // res => { - // if (res.ok) { - // let treeNode = [] - // res.data.map((item, index) => { - // let treeItem = {} - // for (let key in item) { - // if (key === 'orgName') { - // treeItem.name = item[key] - // } else { - // treeItem[key] = item[key] - // } - // } - // treeNode[index] = treeItem - // }) - // this.depNode = treeNode - // } - // }) - // }, - // // 责任部门 树点击 - // treeDblAuthDepartClick (treeId, treeNode) { - // this.standardForm.departName = treeNode.name - // this.standardForm.depart = treeNode.id - // $('#depBtnsAuth').click() - // }, - // // 请求上传的文件信息 - // // getFileInfo () { - // // this.$http.get('att/attFile/getMultiFileInfos', { - // // fileIds: this.sarAccessEO.relateFile - // // }, { - // // _this: this - // // }, res => { - // // this.$nextTick(() => { - // // res.data.map(item => { - // // // 赋值要回显的上传文件内容 - // // this.fileInfoList.push({ - // // name: item.oldFileName, - // // uid: item.uid, - // // status: item.status, - // // id: item.id - // // }) - // // }) - // // }) - // // }, e => { - // // }) - // // }, - // // 附件下载事件 - // fileDownLoad (attId) { - // window.location.href = '/api/att/attFile/downloadFile?fileId=' + attId - // }, - // // 点击查看 - // handlePreview (item) { - // let routeUrl = this.$router.resolve({ - // name: 'OtherStandardDetails', - // params: { - // id: item.resId, - // pageType: item.sarType - // } - // }) - // window.open(routeUrl.href, '_blank') - // }, - // /** - // * @Description: 点击在线查看 - // * @author zmf - // * @date 2021/3/16 - // */ - // openFileInPdf (attId, oldFileName) { - // // 缺少文件 - // // if (this.$route.params.pageType === 'INLAND_STAND') { - // if (this.$hasPermission('BFCWGPL9WADF2KSQZVYU')) { - // this.$http.get('lawss/sarStandFile/queryConvertAtt', { - // attId: attId - // }, { - // _this: this - // }, res => { - // if (res.data) { - // let fileObj = {} - // fileObj.fileId = res.data.attId - // fileObj.fileName = oldFileName - // let fileList = [] - // let repeatData = 0 - // if (sessionStorage.getItem('fileInfo')) { - // fileList = JSON.parse(sessionStorage.getItem('fileInfo')) - // if (fileList != null && fileList.length > 0) { - // for (let i = 0; i < fileList.length; i++) { - // if (fileList[i].fileId === res.data.attId) { - // repeatData = 1 - // break - // } - // } - // if (repeatData === 0) { - // fileList.push(fileObj) - // fileList = JSON.stringify(fileList) - // sessionStorage.setItem('fileInfo', fileList) - // } - // } - // } else { - // fileList.push(fileObj) - // fileList = JSON.stringify(fileList) - // sessionStorage.setItem('fileInfo', fileList) - // } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + res.data.attId)) - // } else { - // this.$message.error('文档未转换成功或本地读取不到该文档') - // } - // }, e => { - // this.$message.error('文档未转换成功或本地读取不到该文档') - // }) - // } else { - // this.$message.error('没有在线预览文档权限!') - // } - // }, - // /** - // * @Description: 点击下载 - // * @author zmf - // * @date 2021/3/16 - // */ - // downloadFile (attId) { - // if (attId != null && attId !== '') { - // window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId - // } else { - // this.$message.error('请选择要下载的文件') - // } - // }, - // downloadFileByWater (attId, fileSuffix) { - // let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf('.') + 1); - // if (fileExtension !== 'pdf' && fileExtension !== 'PDF') { - // this.$message.error('水印下载仅支持PDF,pdf格式文件') - // } else { - // if (attId != null && attId !== '') { - // window.location.href = '/api/att/attFile/downloadFileForSarWaterMark?fileId=' + attId - // } else { - // this.$message.error('请选择要下载的文件') - // } - // } - // }, - // // - // changeState (row) { - // let routeUrl = this.$router.resolve({ - // name: 'ComplianceDetails', - // query: { - // sarId: row.resId, - // sarType: row.sarState - // } - // }) - // window.open(routeUrl.href, '_blank') - // }, - // typeColor (row, type1, type2) { - // // if (this.$_has('KJJ6U32LFL4PAK5C6P55')) { - // // return - // // } - // this.$confirm('确定修改此标准分级?', '提示', { - // confirmButtonText: '确定', - // cancelButtonText: '取消', - // type: 'warning', - // confirmButtonClass: 'common-button-primary', - // roundButton: true - // }).then(() => { - // var color = '' - // if (type1 === 1) { - // if (row.color === '#f00') { - // color = '#ff0' - // } else { - // color = '#f00' - // } - // } else { - // color = '#f00' - // } - // this.$http.putData('lawss/sarSarAccessInfo/updateStatusInfo', - // { - // sarId: row.resId, - // color: color - // }, { - // _this: this - // }, res => { - // if (res.ok) { - // this.selectInfobyAccid() - // if (type2 === 2) { - // if (type1 === 1) { - // if (row.color === '#f00') { - // row.color = '#ff0' - // } else { - // row.color = '#f00' - // } - // } else { - // row.color = '#f00' - // } - // } - // this.$message({ - // type: 'success', - // message: '修改成功!' - // }) - // } else { - // this.$message({ - // type: 'error', - // message: '修改失败!' - // }) - // } - // }) - // }).catch(() => { - // this.$message({ - // type: 'info', - // message: '已取消修改' - // }); - // }); - // }, - // /** - // * 高级检索 - // */ - // selectMoreBtn () { - // this.isAdvancedSearch = true - // this.threeOptions = [] - // }, - // /** - // * 高级检索 - // * 检索项修改时为了匹配对应的下拉菜单的 - // */ - // twoSelectChange (val, obj) { - // if (val === 'authObj') { - // this.threeOptions = [ - // { - // label: '整车', - // value: '整车' - // }, - // { - // label: '零部件', - // value: '零部件' - // }, - // { - // label: '整车+零部件', - // value: '整车+零部件' - // }, - // { - // label: 'TBD', - // value: 'TBD' - // } - // ] - // } else if (val === 'askNature') { - // // 监管类型 - // this.threeOptions = this.askNatureOptions - // } else if (val === 'cllx') { - // // 适用车辆类型 - // this.threeOptions = this.applyArcticOptions - // } else if (val === 'gxhbq') { - // // 标签 - // this.threeOptions = this.GXHBQOptions - // } else if (val === 'yqlx') { - // // 要求类型 - // this.threeOptions = this.accessSarTypeOptions - // } else if (val === 'prcState') { - // // 流程状态 - // this.threeOptions = [ - // { - // label: '评估中', - // value: '1' - // }, - // { - // label: '整改中', - // value: '2' - // }, - // { - // label: '已评估', - // value: '3' - // }, - // { - // label: '已整改', - // value: '4' - // }, - // { - // label: '未评估', - // value: '5' - // }, - // { - // label: 'N/A', - // value: ' ' - // }, - // ] - // } else if (val === 'sarState') { - // // 符合性状态 - // this.threeOptions = [ - // /* { - // label: '部分符合', - // value: '0' - // }, */ - // { - // label: '待验证', - // value: '1' - // }, - // { - // label: '符合', - // value: '2' - // }, - // { - // label: '不符合', - // value: '3' - // }, - // { - // label: '部分符合', - // value: '4' - // }, - // { - // label: '不涉及', - // value: '5' - // }, - // { - // label: '未评估', - // value: '8' - // }, - // ] - // } - // }, - // // 获取工作组信息下拉框信息 - // getGzzOption () { - // this.$http.get('lawss/sarGroupMenu/queryGroup', '', { - // _this: this - // }, res => { - // if (res.ok) { - // let gzzxxOptions = [] - // res.data.map(item => { - // gzzxxOptions.push({ - // value: item.id, - // label: item.menuName - // }) - // }) - // this.allSelectOptions.GZZXX = gzzxxOptions - // } - // }) - // }, - // // 高级检索搜索 - // getDomesticStandardTableBtn (advancedSearch) { - // let formData = {} - // formData.page = 1 - // formData.advanceSearchStr = '' - // formData.json = JSON.stringify(advancedSearch) || '' - // formData.pageSize = this.$store.getters.userInfo.configContent - // formData.accessId = this.$route.params.id - // formData.validFlag = 0 - // // 重置页码 - // this.resetSelect(false) - // this.selectInfobyAccid(formData) - // }, - // /** - // * @Description: 选择颜色 - // * @author zmf - // * @date 2021/3/10 - // */ - // chooseColor(item, num){ - // // if (this.$_has('KJJ6U32LFL4PAK5C6P55')) { - // // return - // // } - // this.dialogColor = true - // this.colorRow = item - // this.dialogType = num - // }, - // /** - // * @Description: 给图标添加边框 - // * @author zmf - // * @date 2021/3/10 - // */ - // addBorder(item,index){ - // this.colorList.forEach((list,i)=>{ - // if(i === index){ - // this.colorList[index].isShow = true - // }else{ - // this.colorList[i].isShow = false - // } - // }) - // this.color = item.name - // }, - // /** - // * @Description: 确定改变合规性分级 - // * @author zmf - // * @date 2021/3/10 - // */ - // changeColor(){ - // // if(num==='2'){ - // this.$http.putData('lawss/sarSarAccessInfo/updateStatusInfo', - // { - // id: this.colorRow.id, - // color: this.color - // }, { - // _this: this - // }, res => { - // if (res.ok) { - // this.selectInfobyAccid() - // this.$message({ - // type: 'success', - // message: '修改成功!' - // }); - // this.dialogColor = false - // } else { - // this.$message({ - // type: 'error', - // message: '修改失败!' - // }); - // } - // }) - // // }else{ - // // this.$http.putData('lawss/sarProductSarState/updateProductSarState', - // // { - // // id: this.colorRow.id, - // // color: this.color - // // }, { - // // _this: this - // // }, res => { - // // if (res.ok) { - // // this.queryItemsBySar() - // // // this.querySarProStateFirst() - // // this.$message({ - // // type: 'success', - // // message: '修改成功!' - // // }); - // // this.dialogColor = false - // // } else { - // // this.$message({ - // // type: 'error', - // // message: '修改失败!' - // // }); - // // } - // // }) - // // } - // }, - // doLayout() { - // this.$refs.adminTable && this.$refs.adminTable.doLayout() - // this.$refs.skillTable && this.$refs.skillTable.doLayout() - // } - // }, - methods: {}, - // mounted () { - // this.$nextTick(() => { - // this.selectInfobyAccid() - // this.getOrgTreeSource() - // let accessRow = JSON.parse(sessionStorage.getItem('accessRow')) - // this.sarAccessEO = accessRow - // this.getFileInfo() - // }) - // - // // 从数据库中查询各下拉框数据 - // this.$http.get('sys/dictype/getDicTypeListCode', '', { - // _this: this - // }, res => { - // this.allSelectOptions = res.data || {} - // this.regionOptions = res.data.REGION // 基础信息 区域list - // this.applyArcticOptions = res.data.ENERGYTYPES || [] // 基础车型 适用车型list - // this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list - // this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list - // this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质 - // this.accessSarTypeOptions = res.data.REQUESTTYPE // 数据搜索 要求类型 - // this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 - // this.standStateOptions = res.data.STANDSTATE // 标准状态 - // this.ROLELIST = res.data.ROLELIST - // this.GXHBQOptions = res.data.GXHBQXX - // this.askNatureOptions = res.data.ACCESSTYPE - // this.getGzzOption() - // }, e => { - // }) - // } + methods: { + //分页数据改变 + handlePageChange(field, page) { + switch (field) { + case "newModel": + break; + case "": + break; + } + }, + handlePageSizeChange(field, pageSize) { + switch (field) { + case "newModel": + break; + case "": + break; + } + }, + back (){ + this.$router.push({ + name:'standardForComments' + }) + }, + // 更多 + handleCommand (command) { + switch (command[1]) { + case '编辑': + this.selectStandardPro(command[0], 'edit') + break + case '删除': + this.deleteStand(1, command[0].id) + break + } + }, + //编辑 + selectStandardPro(){ + this.opiniontitle = '编辑意见内容' + this.isDialog = true + }, + //删除 + deleteStand(flag,itemid){ + if(flag === 1){ + ( + this.$confirm('确认删除这些意见?', '提示', { + confirmButtonText: '确定', + confirmButtonClass: 'common-button-primary', + cancelButtonText: '取消', + type: 'warning', + roundButton: false + }).then(() => { + //确认事件 + }).catch(() => { + //取消事件 + }) + ) + } + }, + //新增意见模态窗 + addModel() { + this.opiniontitle = '新增意见' + this.isDialog = true + }, + //点击抽屉按钮提交事件 + saveUserInfo() { + this.isDialog = false + }, + //点击抽屉按钮取消事件 + closeDrawer() { + this.isDialog = false + }, + + }, mounted () {} } @@ -1146,7 +221,7 @@ export default { diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue index dc168a0f7..6412cd36d 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue @@ -11,10 +11,6 @@
- - - -

{{ sarAccessEO.countryShow }} @@ -36,7 +32,6 @@ class="icon-download" v-btn-permission="'E5QPKLR9CFVXTV64N32C'" /> -

- - - - - - -
- @@ -179,33 +167,6 @@ sortable > - - - - - - - - - - - - - - - - - - - - - - - - - - -