From 19327d6fd4c79deb905ac3b84fe474e63c6f4b6c Mon Sep 17 00:00:00 2001 From: shen_yan_pu <1975145892@qq.com> Date: Fri, 13 Aug 2021 15:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=B8=85=E5=8D=95=E8=BD=A6?= =?UTF-8?q?=E5=9E=8B=E7=B1=BB=E5=88=AB=E6=B8=85=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accessStandardsAndRegulations/index.vue | 2 +- .../page/listProject.vue | 88 +++- .../pages/projectAddEit.vue | 450 +++++++----------- 3 files changed, 244 insertions(+), 296 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue index 686e52b43..bdcf60207 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue @@ -64,7 +64,7 @@ export default { continue; } else if (entity.id === "63e05705d0c8013162caa34f9fe52865") { list.push({ - label: "项目类清单", + label: "车辆类型清单", name: "listProject" }); continue; diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue index d45f42401..50f1509bf 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue @@ -4,11 +4,20 @@
- - + + + + - diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index 31fa260f8..202d2da13 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -10,8 +10,20 @@ - - + + + +

@@ -88,11 +100,7 @@ @click="clearSearchLaws">清空 - - - 高级查询 - - + 高级查询 @@ -118,6 +126,36 @@ size="small" clearable/> + + + + + + + + + + 查询 @@ -176,6 +214,16 @@ {{ scope.row.standName }}
+ + + + { - this.sarAccessInfoSearchList = res.data.list - this.sarAccessInfoSearchList.forEach(item => { - if (item.standYear === null) { - item.standNumber = item.standSortShow + ' ' + item.standNumber - } else { - item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear - } - if (item.attrInfoMap === null) { - this.$set(item, 'zccssrqgj', '') - this.$set(item, 'xcxssrqgj', '') - this.$set(item, 'ssrq', '') - this.$set(item, 'sycpx', '') - this.$set(item, 'typeApplicable', '') - this.$set(item, 'nylx', '') - this.$set(item, 'zrbm', '') - this.$set(item, 'cycvppsbm', '') - this.$set(item, 'cycvppscn', '') - this.$set(item, 'kccvppsbm', '') - this.$set(item, 'kccvppscn', '') - }else { - this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) - this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) - this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) - this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) - this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) - this.$set(item, 'nylx', item.attrInfoMap.NYLX) - this.$set(item, 'zrbm', item.attrInfoMap.ZRBM) - this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM) - this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN) - this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM) - this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN) - } - }) - this.drawerTotal = res.data.count - }, e => { - }) - }, - selectLawsStands () { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.standType = 'INLAND' - this.pageInfo() - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - this.pageInfo() - } - }, - /** 高级查询查询按钮*/ - selectPage() { - StandardsInfoPage(this.sarAccessInfo).then(res =>{ - this.sarAccessInfoSearchList = res.data.list - this.sarAccessInfoSearchList.forEach(item => { - if (item.standYear === null) { - item.standNumber = item.standSortShow + ' ' + item.standNumber - } else { - item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear - } - if (item.attrInfoMap === null) { - this.$set(item, 'zccssrqgj', '') - this.$set(item, 'xcxssrqgj', '') - this.$set(item, 'ssrq', '') - this.$set(item, 'sycpx', '') - this.$set(item, 'typeApplicable', '') - this.$set(item, 'nylx', '') - this.$set(item, 'zrbm', '') - this.$set(item, 'cycvppsbm', '') - this.$set(item, 'cycvppscn', '') - this.$set(item, 'kccvppsbm', '') - this.$set(item, 'kccvppscn', '') - }else { - this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) - this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) - this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) - this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) - this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) - this.$set(item, 'nylx', item.attrInfoMap.NYLX) - this.$set(item, 'zrbm', item.attrInfoMap.ZRBM) - this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM) - this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN) - this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM) - this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN) - } - }) - this.drawerTotal = res.data.list.length - }, e => { - }) - }, - selectBtn() { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.standType = 'INLAND' - this.selectPage() - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - this.selectPage() - } - }, - // 数据搜索table判断checked状态 - selectable (row) { - return row.isRelateAccess === '1' - }, - // 数据搜索 table select事件 - sarAccessInfoSearchSelect (val) { - this.selectedAccInfoSearchList = val - this.selectedAccInfoSearchList.forEach(item => { - if (item.attrInfoMap === null) { - this.$set(item, 'zccssrqgj', '') - this.$set(item, 'xcxssrqgj', '') - this.$set(item, 'ssrq', '') - this.$set(item, 'sycpx', '') - this.$set(item, 'typeApplicable', '') - this.$set(item, 'nylx', '') - this.$set(item, 'zrbm', '') - this.$set(item, 'cycvppsbm', '') - this.$set(item, 'cycvppscn', '') - this.$set(item, 'kccvppsbm', '') - this.$set(item, 'kccvppscn', '') - }else { - this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) - this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) - this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) - this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) - this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) - this.$set(item, 'nylx', item.attrInfoMap.NYLX) - this.$set(item, 'zrbm', item.attrInfoMap.ZRBM) - this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM) - this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN) - this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM) - this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN) - } - }) - this.selectedAccInfoSearchList.forEach(item => { + // 字段转化 + changeText(val) { + val.forEach(item => { // 责任部门转换 if (item.zrbm !== null || item.zrbm !== "") { let k = (item.zrbm || "").split(',') @@ -1473,8 +1315,114 @@ export default { } } } + // 适用认证转换 + if (item.syrz !== null) { + let k = (item.syrz || "").split(',') + for (let i in this.syrzOptions) { + for (let m = 0; m< k.length; m++) { + if (this.syrzOptions[i].value === k[m]) { + k[m] = this.syrzOptions[i].label + } + item.syrz = k.join(',') + } + } + } }) }, + // 字段添加 + addWord(item) { + if (item.attrInfoMap === null) { + this.$set(item, 'zccssrqgj', '') + this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') + this.$set(item, 'syrz', '') + this.$set(item, 'sycpx', '') + this.$set(item, 'typeApplicable', '') + this.$set(item, 'nylx', '') + this.$set(item, 'zrbm', '') + this.$set(item, 'cycvppsbm', '') + this.$set(item, 'cycvppscn', '') + this.$set(item, 'kccvppsbm', '') + this.$set(item, 'kccvppscn', '') + }else { + this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) + this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) + this.$set(item, 'syrz', item.attrInfoMap.SYRZ) + this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) + this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) + this.$set(item, 'nylx', item.attrInfoMap.NYLX) + this.$set(item, 'zrbm', item.attrInfoMap.ZRBM) + this.$set(item, 'cycvppsbm', item.attrInfoMap.CYCVPPSBM) + this.$set(item, 'cycvppscn', item.attrInfoMap.CYCVPPSCN) + this.$set(item, 'kccvppsbm', item.attrInfoMap.KCCVPPSBM) + this.$set(item, 'kccvppscn', item.attrInfoMap.KCCVPPSCN) + } + }, + // 查询数据搜索 table 数据 + pageInfo() { + StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{ + this.sarAccessInfoSearchList = res.data.list + this.sarAccessInfoSearchList.forEach(item => { + if (item.standYear === null) { + item.standNumber = item.standSortShow + ' ' + item.standNumber + } else { + item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear + } + this.addWord(item) + }) + this.changeText(this.sarAccessInfoSearchList) + this.drawerTotal = res.data.count + }, e => { + }) + }, + selectLawsStands () { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.pageInfo() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.pageInfo() + } + }, + /** 高级查询查询按钮*/ + selectPage() { + StandardsInfoPage(this.sarAccessInfo).then(res =>{ + this.sarAccessInfoSearchList = res.data.list + this.sarAccessInfoSearchList.forEach(item => { + if (item.standYear === null) { + item.standNumber = item.standSortShow + ' ' + item.standNumber + } else { + item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear + } + this.addWord(item) + }) + this.changeText(this.sarAccessInfoSearchList) + this.drawerTotal = res.data.list.length + }, e => { + }) + }, + selectBtn() { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.selectPage() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.selectPage() + } + }, + // 数据搜索table判断checked状态 + selectable (row) { + return row.isRelateAccess === '1' + }, + // 数据搜索 table select事件 + sarAccessInfoSearchSelect (val) { + this.selectedAccInfoSearchList = val + this.selectedAccInfoSearchList.forEach(item => { + this.addWord(item) + }) + this.changeText(this.selectedAccInfoSearchList) + }, // 数据搜索 清单类型 table select事件 accessSarTypeSelect (selectData) { this.accessSarTypeList = selectData @@ -1721,46 +1669,6 @@ export default { this.isSubmit = false this.$refs['addEntryForm'].resetFields() }, - /** - * 赋值内容到入库标准抽屉内 - * item 清单行数据 - */ - copyStandDrawer (item) { - this.sarStandardsInfoEO.accessType = item.accessType - this.sarStandardsInfoEO.standNumber = item.code // 标准编号 - this.sarStandardsInfoEO.standName = item.name // 中文名称 - this.sarStandardsInfoEO.standEnName = item.enName // 英文名称 - this.sarStandardsInfoEO.lawsNumber = item.code // 标准编号 - this.sarStandardsInfoEO.lawsName = item.name // 中文名称 - this.sarStandardsInfoEO.lawsEnName = item.enName // 英文名称 - this.sarStandardsInfoEO.synopsis = item.synopsis - this.sarStandardsInfoEO.XCXSSRQ = item.newPutTime // 新车型实施日期(文本) - this.sarStandardsInfoEO.XCXSSRQXM = item.newPutTextTime // 新车型实施日期(项目) - this.sarStandardsInfoEO.ZCCSSRQ = item.prodPutTime // 在产车实施日期(文本) - this.sarStandardsInfoEO.ZCCSSRQXM = item.prodPutTextTime // 在产车实施日期(项目) - this.sarStandardsInfoEO.EOPSSRQ = item.eopPutTime // EOP实施日期(文本) - this.sarStandardsInfoEO.EOPSSRQXM = item.eopPutTextTime // EOP实施日期(项目) - this.sarStandardsInfoEO.ZRBMName = item.ZRBMName || item.zrbmname // 责任部门 - this.sarStandardsInfoEO.ZRBM = item.ZRBM || item.zrbm // 责任部门 - this.sarStandardsInfoEO.XGBMName = item.XGBMName || item.xgbmname // 相关部门 - this.sarStandardsInfoEO.XGBM = item.XGBM || item.xgbm // 相关部门 - this.sarStandardsInfoEO.FOName = item.FOName || item.foname // FO - this.sarStandardsInfoEO.FO = item.FO || item.fo // FO - this.sarStandardsInfoEO.XMPGJS = item.proEssessUserId // 项目评估人员 - this.sarStandardsInfoEO.XMPGJSName = item.proEssessUser // 项目评估人员 - this.sarStandardsInfoEO.standNature = item.natureId // 标准性质 - this.sarStandardsInfoEO.NRDBZFGQD = this.sarAccessEO.countryArea // 国家地区 - this.sarStandardsInfoEO.CLLX = item.applyArctic ? item.applyArctic.split(',') : [] - this.sarStandardsInfoEO.YQLX = item.askType - this.sarStandardsInfoEO.GXHBQ = item.GXHBQ ? item.GXHBQ.split(',') : [] - this.sarStandardsInfoEO.ZRLX = item.askNature ? item.askNature.split(',') : [] - if (this.sarStandardsInfoEO.accessType === 'INLAND_STAND') { - this.sarStandardsInfoEO.countryArea = 'CN' - } else { - this.sarStandardsInfoEO.countryArea = '' - } - this.uuid = item.uuid - }, /** * 获取新增弹框的表单 */ @@ -1972,10 +1880,6 @@ export default { setMap(data){ data.forEach(item => { this.$set(this.textStatusMap, item.value, item.label) - this.$set(this.typeApplicableMap, item.value, item.label) - this.$set(this.nylxMap, item.value, item.label) - this.$set(this.zrbmMap, item.value, item.label) - this.$set(this.sycpxMap, item.value, item.label) }) }, // 点击上传的文件进行下载 @@ -2027,10 +1931,6 @@ export default { this.textStatusOptions = res.data.WBZTCLASS this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 this.setMap(this.textStatusOptions) - this.setMap(this.zrbmOptions) - this.setMap(this.categoryOptions) - this.setMap(this.sycpxOptions) - this.setMap(this.energyKindOptions) this.getGzzOption() }, e => { })