From c0b222781953c24b16ab321c6174fb52b1654ea9 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 17 Jun 2024 14:24:49 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E5=B8=82=E5=9C=BA=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 5 + .../lang/standardRegulationLibrary/zh-cn.js | 23 +- src/common/lang/zh-cn.js | 25 +- .../MarketRegulationsListSelection.vue | 134 +++++++ .../MarketRegulationsListSelectionModal.vue | 369 ++++++++++++++++++ .../MarketRegulationsDetailPage.vue | 281 +++++++++++++ .../MarketRegulationsFormPage.vue | 84 ++-- .../modules/MarketRegulationsModal.vue | 275 +++++++++++++ 8 files changed, 1151 insertions(+), 45 deletions(-) create mode 100644 src/components/selection/MarketRegulationsListSelection.vue create mode 100644 src/components/selection/MarketRegulationsListSelectionModal.vue create mode 100644 src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue create mode 100644 src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue diff --git a/src/api/api.js b/src/api/api.js index c801ede..2a8615f 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -132,6 +132,9 @@ const getFileInfo = (params) => getAction('/sys/oss/file/queryById', params) // 标准选择框,分页查询标准数据 const getStandardList = (params) => getAction('/laws/standard/common/getManyStandardSelectionBox', params) +// 市场法规清单选择框,分页查询数据(无权限) +const getMarketRegulationsList = (params) => getAction('', params) + // 内部工作组,左侧树查询 const getWorkGroupTreeList = (params) => getAction('/sys/lawsWorkingGroup/list', params) @@ -232,6 +235,8 @@ export { getStandardList, + getMarketRegulationsList, + getWorkGroupTreeList, getEnterpriseLevelMapList, diff --git a/src/common/lang/standardRegulationLibrary/zh-cn.js b/src/common/lang/standardRegulationLibrary/zh-cn.js index a137476..fee9ee3 100644 --- a/src/common/lang/standardRegulationLibrary/zh-cn.js +++ b/src/common/lang/standardRegulationLibrary/zh-cn.js @@ -106,5 +106,26 @@ module.exports = { rectifyFinishingDate: '整改完成日期', viewMarketList: '查看市场清单', viewTroubleshootingResults: '查看排查结果' - } + }, + // 市场清单详情列表字段 + marketListField: { + standardEnglishName: '标准英文名称', + newProductionVehicleImplementationDate: '新生产车实施日期', + newCertifiedVehicleImplementationDate: '新认证车实施日期', + dateOfRegistration: '注册日期', + applicableCountryRegion: '适用国家/地区', + applicableVehicleType: '适用车型', + authenticationObject: '认证对象', + certifiedDeliverables: '认证交付物', + type: '类型', + dynamicType: '动力类型', + mainControlDepartment: '主控部门', + masterControlDepartmentProfessionalModule: '主控部门专业模块', + relatedDepartment: '关联部门', + associateDepartmentSpecializedModules: '关联部门专业模块', + batchRestriction: '批量限制', + automaticDrivingLevel: '自动驾驶等级', + requirementType: '要求类型', + + }, } diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js index c5e18c8..6947af1 100644 --- a/src/common/lang/zh-cn.js +++ b/src/common/lang/zh-cn.js @@ -201,27 +201,6 @@ module.exports = { applicableCountryRegion: '适用国家/地区', applicableVehicleType: '适用车型' }, - // 市场清单详情列表字段 - marketListField: { - standardEnglishName: '标准英文名称', - newProductionVehicleImplementationDate: '新生产车实施日期', - newCertifiedVehicleImplementationDate: '新认证车实施日期', - dateOfRegistration: '注册日期', - applicableCountryRegion: '适用国家/地区', - applicableVehicleType: '适用车型', - authenticationObject: '认证对象', - certifiedDeliverables: '认证交付物', - type: '类型', - dynamicType: '动力类型', - mainControlDepartment: '主控部门', - masterControlDepartmentProfessionalModule: '主控部门专业模块', - relatedDepartment: '关联部门', - associateDepartmentSpecializedModules: '关联部门专业模块', - batchRestriction: '批量限制', - automaticDrivingLevel: '自动驾驶等级', - requirementType: '要求类型', - - }, // 树右键 treeRight: { addFolder: '新增文件夹', @@ -625,6 +604,10 @@ module.exports = { textState: '标准状态', evaluationState: '评估状态' }, + // 市场法规清单选择器 + marketRegulationsListSelect: { + marketRegulationsListSelection: '市场法规清单选择' + }, // 条款选择器 clauseSelect: { selectClause: '选择条款', diff --git a/src/components/selection/MarketRegulationsListSelection.vue b/src/components/selection/MarketRegulationsListSelection.vue new file mode 100644 index 0000000..809b2d9 --- /dev/null +++ b/src/components/selection/MarketRegulationsListSelection.vue @@ -0,0 +1,134 @@ + + + + + diff --git a/src/components/selection/MarketRegulationsListSelectionModal.vue b/src/components/selection/MarketRegulationsListSelectionModal.vue new file mode 100644 index 0000000..60cc3f3 --- /dev/null +++ b/src/components/selection/MarketRegulationsListSelectionModal.vue @@ -0,0 +1,369 @@ + + + + + diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue new file mode 100644 index 0000000..0b83ada --- /dev/null +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsDetailPage.vue @@ -0,0 +1,281 @@ + + + + + diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue index a993ee4..90e15d2 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue @@ -124,9 +124,8 @@ {{ $t('batchDelete') }} - - {{ $t('import') }} + + {{ $t('import') }} {{ $t('submit') }} + + + + + + + @@ -182,10 +188,13 @@ import InternalDetailPage from '@/components/InternalDetailPage' import JTable from '@/components/jero/JTable' import { JeroListMixin } from '../../../mixins/JeroListMixin' +import MarketRegulationsModal from './modules/MarketRegulationsModal' +import StandardSelectionModal from '../../../components/selection/StandardSelectionModal' +import MarketRegulationsListSelectionModal from '../../../components/selection/MarketRegulationsListSelectionModal' export default { name: 'MarketRegulationsFormPage', - components: { InternalDetailPage, JTable }, + components: { MarketRegulationsListSelectionModal, StandardSelectionModal, InternalDetailPage, JTable, MarketRegulationsModal }, mixins: [JeroListMixin], data () { return { @@ -260,119 +269,119 @@ export default { scopedSlots: { customRender: 'toDetail' } }, { // 标准英文名称 - title: this.$t('marketListField.standardEnglishName'), + title: this.$t('standardRegulationLibrary.marketListField.standardEnglishName'), align: 'center', width: 180, dataIndex: 'standardEnglishName', scopedSlots: { customRender: 'text' } }, { // 新生产车实施日期 - title: this.$t('marketListField.newProductionVehicleImplementationDate'), + title: this.$t('standardRegulationLibrary.marketListField.newProductionVehicleImplementationDate'), align: 'center', width: 180, dataIndex: 'newProductionVehicleImplementationDate', scopedSlots: { customRender: 'text' } }, { // 新认证车实施日期 - title: this.$t('marketListField.newCertifiedVehicleImplementationDate'), + title: this.$t('standardRegulationLibrary.marketListField.newCertifiedVehicleImplementationDate'), align: 'center', width: 180, dataIndex: 'newCertifiedVehicleImplementationDate', scopedSlots: { customRender: 'text' } }, { // 注册日期 - title: this.$t('marketListField.dateOfRegistration'), + title: this.$t('standardRegulationLibrary.marketListField.dateOfRegistration'), align: 'center', width: 180, dataIndex: 'dateOfRegistration', scopedSlots: { customRender: 'text' } }, { // 适用国家/地区 - title: this.$t('marketListField.applicableCountryRegion'), + title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'), align: 'center', width: 180, dataIndex: 'applicableCountryRegion', scopedSlots: { customRender: 'text' } }, { // 适用车型 - title: this.$t('marketListField.applicableVehicleType'), + title: this.$t('standardRegulationLibrary.marketListField.applicableVehicleType'), align: 'center', width: 180, dataIndex: 'applicableVehicleType', scopedSlots: { customRender: 'text' } }, { // 认证对象 - title: this.$t('marketListField.authenticationObject'), + title: this.$t('standardRegulationLibrary.marketListField.authenticationObject'), align: 'center', width: 180, dataIndex: 'authenticationObject', scopedSlots: { customRender: 'text' } }, { // 认证交付物 - title: this.$t('marketListField.certifiedDeliverables'), + title: this.$t('standardRegulationLibrary.marketListField.certifiedDeliverables'), align: 'center', width: 180, dataIndex: 'certifiedDeliverables', scopedSlots: { customRender: 'text' } }, { // 类型 - title: this.$t('marketListField.type'), + title: this.$t('standardRegulationLibrary.marketListField.type'), align: 'center', width: 180, dataIndex: 'type', scopedSlots: { customRender: 'text' } }, { // 动力类型 - title: this.$t('marketListField.dynamicType'), + title: this.$t('standardRegulationLibrary.marketListField.dynamicType'), align: 'center', width: 180, dataIndex: 'dynamicType', scopedSlots: { customRender: 'text' } }, { // 主控部门 - title: this.$t('marketListField.mainControlDepartment'), + title: this.$t('standardRegulationLibrary.marketListField.mainControlDepartment'), align: 'center', width: 180, dataIndex: 'mainControlDepartment', scopedSlots: { customRender: 'text' } }, { // 主控部门专业模块 - title: this.$t('marketListField.masterControlDepartmentProfessionalModule'), + title: this.$t('standardRegulationLibrary.marketListField.masterControlDepartmentProfessionalModule'), align: 'center', width: 180, dataIndex: 'masterControlDepartmentProfessionalModule', scopedSlots: { customRender: 'text' } }, { // 关联部门 - title: this.$t('marketListField.relatedDepartment'), + title: this.$t('standardRegulationLibrary.marketListField.relatedDepartment'), align: 'center', width: 180, dataIndex: 'relatedDepartment', scopedSlots: { customRender: 'text' } }, { // 关联部门专业模块 - title: this.$t('marketListField.associateDepartmentSpecializedModules'), + title: this.$t('standardRegulationLibrary.marketListField.associateDepartmentSpecializedModules'), align: 'center', width: 180, dataIndex: 'associateDepartmentSpecializedModules', scopedSlots: { customRender: 'text' } }, { // 批量限制 - title: this.$t('marketListField.batchRestriction'), + title: this.$t('standardRegulationLibrary.marketListField.batchRestriction'), align: 'center', width: 180, dataIndex: 'batchRestriction', scopedSlots: { customRender: 'text' } }, { // 自动驾驶等级 - title: this.$t('marketListField.automaticDrivingLevel'), + title: this.$t('standardRegulationLibrary.marketListField.automaticDrivingLevel'), align: 'center', width: 180, dataIndex: 'automaticDrivingLevel', scopedSlots: { customRender: 'text' } }, { // 要求类型 - title: this.$t('marketListField.requirementType'), + title: this.$t('standardRegulationLibrary.marketListField.requirementType'), align: 'center', width: 180, dataIndex: 'requirementType', @@ -388,8 +397,9 @@ export default { ], showList: false, // 是否展示清单 url: { - list: '' - } + importExcelUrl: '' + }, + disableMixinCreated: true } }, methods: { @@ -397,9 +407,33 @@ export default { handleNext () { this.showList = true }, + // 新增 + handleAdd () { + this.$refs.marketRegulationsModal.add() + }, + // 调取 + handleTransfer () { + this.$refs.transferModal.open() + }, + // 复制 + handleCopy () { + this.$refs.copyModal.open() + }, + // 新增完成 + modalFormOk (value) { + this.dataSource.unshift(value) + }, // 取消 handleCancel () { + }, + // 调取完成 + transferOk () { + + }, + // 复制完成 + copyOk () { + }, // 提交 handleSubmit () { @@ -427,4 +461,8 @@ export default { overflow: auto; padding: 32px 20px; } + +.center-operate-box { + text-align: right; +} diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue b/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue new file mode 100644 index 0000000..e62751e --- /dev/null +++ b/src/views/standardRegulationLibrary/marketRegulationsList/modules/MarketRegulationsModal.vue @@ -0,0 +1,275 @@ + + + + +