Compare commits
10
Commits
d35dbdcbc3
...
6ef75a6245
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ef75a6245 | ||
|
|
5ebf71f02d | ||
|
|
741badb834 | ||
|
|
1422f3189b | ||
|
|
2324ea597a | ||
|
|
2c203ed478 | ||
|
|
14b14cb5d8 | ||
|
|
da934d6be0 | ||
|
|
ed84d4f5be | ||
|
|
8d7e1b25a6 |
Binary file not shown.
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -64,7 +64,7 @@ module.exports = {
|
||||
listNumber: 'Regulation List No.',
|
||||
listName: 'Regulation List Name',
|
||||
countryRegion: 'Country/Region',
|
||||
drivingPosition: 'Driving Position',
|
||||
drivingPosition: 'Port/Starboard',
|
||||
author: 'Author',
|
||||
exportName: 'List of market regulations',
|
||||
listVersion: 'Version',
|
||||
|
||||
@@ -64,7 +64,7 @@ module.exports = {
|
||||
listNumber: '清单编号',
|
||||
listName: '清单名称',
|
||||
countryRegion: '适用市场',
|
||||
drivingPosition: '驾驶位置',
|
||||
drivingPosition: '左/右舵',
|
||||
author: '作者',
|
||||
exportName: '市场法规清单表',
|
||||
listVersion: '清单版本',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<a-spin :spinning="loading" v-copy-limit>
|
||||
<a-spin :spinning="loading">
|
||||
<!-- 搜索条件 -->
|
||||
<div class="table-page-search-wrapper">
|
||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
@ok="handleOk"
|
||||
@cancel="handleCancel"
|
||||
destroyOnClose
|
||||
:maskClosable="false"
|
||||
>
|
||||
|
||||
<slot></slot>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
@ok="handleOk"
|
||||
@cancel="handleCancel"
|
||||
destroyOnClose
|
||||
:maskClosable="false"
|
||||
>
|
||||
|
||||
<slot></slot>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<!-- 驾驶位置 -->
|
||||
<!-- 左/右舵 -->
|
||||
<a-col :md="8" :sm="12">
|
||||
<a-form-item :label="$t('standardRegulationLibrary.marketRegulationsList.drivingPosition')">
|
||||
<j-dict-select-tag
|
||||
@@ -222,7 +222,7 @@ export default {
|
||||
dataIndex: 'manifestName',
|
||||
scopedSlots: { customRender: 'toDetail' }
|
||||
},
|
||||
{ // 驾驶位置
|
||||
{ // 左/右舵
|
||||
title: this.$t('standardRegulationLibrary.marketRegulationsList.drivingPosition'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
:closable="false"
|
||||
@close="onClose"
|
||||
:visible="visible"
|
||||
:maskClosable="false"
|
||||
style="height: 100%;overflow: auto;"
|
||||
>
|
||||
<div class="setting-drawer-index-content">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="800"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
@@ -41,11 +41,11 @@ export default {
|
||||
height: calc(100vh - 60px - 8px - 20px - 20px);
|
||||
grid-gap: 20px;
|
||||
grid-template-columns: 0.4fr 0.6fr;
|
||||
grid-template-rows: 56px 180px minmax(200px, auto) 180px;
|
||||
grid-template-rows: 56px minmax(200px, auto) 180px 180px;
|
||||
grid-template-areas: 'Search Search'
|
||||
'QuickEntrance QuickEntrance'
|
||||
'Todo Table'
|
||||
'Link Table';
|
||||
'Link Table'
|
||||
'QuickEntrance QuickEntrance';
|
||||
|
||||
.home-search,
|
||||
.home-quick-entrance,
|
||||
@@ -113,7 +113,7 @@ export default {
|
||||
margin-bottom: 8px;
|
||||
height: calc(100vh - 60px - 8px - 20px + 200px);
|
||||
// 友情链接部分减少了12像素
|
||||
grid-template-rows: 48px 180px minmax(200px, auto) 168px;
|
||||
grid-template-rows: 48px minmax(200px, auto) 168px 180px;
|
||||
}
|
||||
/deep/ .top-wrapper {
|
||||
.left-p {
|
||||
|
||||
@@ -289,7 +289,7 @@ export default {
|
||||
].includes(this.warningTab)
|
||||
}
|
||||
},
|
||||
{ // 驾驶位置
|
||||
{ // 左/右舵
|
||||
title: this.$t('standardRegulationLibrary.marketRegulationsList.drivingPosition'),
|
||||
align: 'left',
|
||||
dataIndex: 'drivePosition_dictText',
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
@close="handleCancel"
|
||||
width="1100"
|
||||
destroyOnClose
|
||||
:maskClosable="false"
|
||||
class="custom-drawer-style">
|
||||
|
||||
<div class="custom-drawer-style-scroll">
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
@close="handleCancel"
|
||||
width="900"
|
||||
destroyOnClose
|
||||
:maskClosable="false"
|
||||
class="custom-drawer-style">
|
||||
|
||||
<div class="custom-drawer-style-scroll">
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:visible="visible"
|
||||
@close="onClose"
|
||||
width="1100"
|
||||
:maskClosable="false"
|
||||
class="custom-drawer-style">
|
||||
<div class="custom-drawer-style-scroll">
|
||||
<div class="table-page-search-wrapper">
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
:visible="visible"
|
||||
@close="onClose"
|
||||
width="1100"
|
||||
:maskClosable="false"
|
||||
class="custom-drawer-style">
|
||||
<div class="custom-drawer-style-scroll">
|
||||
<div class="table-page-search-wrapper">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="800"
|
||||
:closable="true"
|
||||
@cancel="handleCancel"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="500"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
width=650
|
||||
placement="right"
|
||||
:closable="true"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="800"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="800"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="1200"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="detail-page" v-copy-limit>
|
||||
<div class="detail-page">
|
||||
<a-spin :spinning="loading">
|
||||
<!-- 展示已有新版本或者废止,废止状态并且被代替标准编号存在则显示已有新版本,不存在被代替标准显示废止 -->
|
||||
<div class="detail-page-title">{{ pageTitle }}{{ $t('details') }}<span class="title-red-span">{{ haveNewVersion }}</span></div>
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@
|
||||
<label>{{ $t('standardRegulationLibrary.marketRegulationsList.listName') }}</label>
|
||||
<span>{{ model.manifestName || global.emptyLine }}</span>
|
||||
</a-col>
|
||||
<!-- 驾驶位置 -->
|
||||
<!-- 左/右舵 -->
|
||||
<a-col :span="12">
|
||||
<label>{{ $t('standardRegulationLibrary.marketRegulationsList.drivingPosition') }}</label>
|
||||
<span>{{ (isChinese() ? model.drivePosition_dictText : model.drivePosition_dictTextEn) || global.emptyLine }}</span>
|
||||
|
||||
+2
-2
@@ -51,7 +51,7 @@
|
||||
<span>{{ $t('standardRegulationLibrary.marketRegulationsList.customNameLastText') }}</span>
|
||||
</a-form-item>
|
||||
<!--</a-col>-->
|
||||
<!-- 驾驶位置 -->
|
||||
<!-- 左/右舵 -->
|
||||
<a-col :span="12">
|
||||
<a-form-item :labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol"
|
||||
@@ -310,7 +310,7 @@ export default {
|
||||
}],
|
||||
validateTrigger: 'blur'
|
||||
},
|
||||
// 驾驶位置
|
||||
// 左/右舵
|
||||
drivePosition: {
|
||||
rules: [{
|
||||
required: true,
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</a-col>
|
||||
|
||||
<template v-if="toggleSearchStatus">
|
||||
<!-- 驾驶位置 -->
|
||||
<!-- 左/右舵 -->
|
||||
<a-col :md="6" :sm="8">
|
||||
<a-form-item :label="$t('standardRegulationLibrary.marketRegulationsList.drivingPosition')">
|
||||
<j-dict-select-tag
|
||||
@@ -181,7 +181,7 @@ export default {
|
||||
dataIndex: 'manifestName',
|
||||
scopedSlots: { customRender: 'toDetail' }
|
||||
},
|
||||
{ // 驾驶位置
|
||||
{ // 左/右舵
|
||||
title: this.$t('standardRegulationLibrary.marketRegulationsList.drivingPosition'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="400"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
width="800"
|
||||
@close="onClose"
|
||||
:visible="visible"
|
||||
:maskClosable="false"
|
||||
>
|
||||
<!-- 抽屉内容的border -->
|
||||
<div
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
title="数据权限规则"
|
||||
:width="drawerWidth"
|
||||
@close="onClose"
|
||||
:maskClosable="false"
|
||||
:visible="visible">
|
||||
|
||||
<!-- 抽屉内容的border -->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="500"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<j-modal
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="500"
|
||||
:closable="true"
|
||||
switchFullscreen
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
width="365"
|
||||
:closable="false"
|
||||
@close="onClose"
|
||||
:maskClosable="false"
|
||||
:visible="visible"
|
||||
>
|
||||
<a-tabs defaultActiveKey="1">
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
:width="drawerWidth"
|
||||
@close="handleCancel"
|
||||
:visible="visible"
|
||||
:maskClosable="false"
|
||||
:confirmLoading="confirmLoading">
|
||||
|
||||
<div :style="{width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}">
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
width="365"
|
||||
:closable="false"
|
||||
@close="onClose"
|
||||
:maskClosable="false"
|
||||
:visible="visible"
|
||||
>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
:width="drawerWidth"
|
||||
placement="right"
|
||||
:closable="true"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:title="title"
|
||||
:maskClosable="true"
|
||||
:maskClosable="false"
|
||||
width=650
|
||||
placement="right"
|
||||
:closable="true"
|
||||
|
||||
+71
-207
@@ -76,10 +76,27 @@ import InterpretationClauseTableModal
|
||||
import { randomUUID } from '@/utils/util'
|
||||
import UserSelectModal from '@comp/selection/UserSelectModal'
|
||||
import { downFile } from '@api/manage'
|
||||
import { StandardInterpretationNodes } from '@/enums/commonEnums'
|
||||
import { FieldType, StandardInterpretationNodes } from '@/enums/commonEnums'
|
||||
import UserSelection from '@comp/selection/UserSelection'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN, TENANT_ID } from '@/store/mutation-types'
|
||||
import { getDocSplitTableHeader } from '@api/documentToolApi'
|
||||
|
||||
// 需要数据字段翻译的属性类型
|
||||
const NEED_DICT_FIELD_TYPE = [
|
||||
FieldType.USER_SINGLE.value,
|
||||
FieldType.ORGAN_SINGLE.value,
|
||||
FieldType.ORGAN_MORE.value,
|
||||
FieldType.FILE_UP.value,
|
||||
FieldType.OPTION_SINGLE.value,
|
||||
FieldType.OPTION_MORE.value,
|
||||
FieldType.TREE.value,
|
||||
FieldType.TREE_SINGLE.value,
|
||||
FieldType.TREE_MODAL_SELECT.value,
|
||||
FieldType.TREE_MODAL_SELECT_SEARCH_DIFF.value,
|
||||
FieldType.TREE_MODAL_SELECT_SEARCH_CHILD.value,
|
||||
FieldType.USER_MORE.value
|
||||
]
|
||||
|
||||
// 导入数据没有id,用该标记标记数据是否前端生成id
|
||||
const uuidFlag = '__uuid__'
|
||||
@@ -181,6 +198,7 @@ export default {
|
||||
actionColumn: { // 操作
|
||||
title: this.$t('operation'),
|
||||
fixed: 'right',
|
||||
dataIndex: 'action',
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'action' }
|
||||
},
|
||||
@@ -201,211 +219,7 @@ export default {
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
// 解读的其他字段(拆分表的字段)
|
||||
columnsExtend: [
|
||||
{ // 是否与上一版相同
|
||||
title: this.$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'isSameAsPrevVersion_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 相对上一版变化点说明
|
||||
title: this.$t('workCenter.standardInterpretationProcess.explanationOfChangePoints'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'changeDescription',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 法规注解
|
||||
title: this.$t('workCenter.standardInterpretationProcess.regulatoryAnnotations'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'regulatoryNotes',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 涉及系统/部件
|
||||
title: this.$t('workCenter.standardInterpretationProcess.involvingSystemsComponents'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'partName_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 关键控制器
|
||||
title: this.$t('workCenter.standardInterpretationProcess.keyController'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'keyController_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 责任部门
|
||||
title: this.$t('workCenter.standardInterpretationProcess.responsibleDepartment'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'responsibleDepartment_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 责任部门专业模块
|
||||
title: this.$t('workCenter.standardInterpretationProcess.responsibleDepartmentModule'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'responsibleModule_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 关联部门
|
||||
title: this.$t('workCenter.standardInterpretationProcess.relatedDepartments'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'relatedDepartment_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 关联部门专业模块
|
||||
title: this.$t('workCenter.standardInterpretationProcess.relatedDepartmentsModule'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'relatedModule_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 适用车型
|
||||
title: this.$t('workCenter.standardInterpretationProcess.applications'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'applications_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 动力类型
|
||||
title: this.$t('workCenter.standardInterpretationProcess.powerType'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'powerType_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 专业领域
|
||||
title: this.$t('workCenter.standardInterpretationProcess.professionalField'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'domainArea_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 配置需求
|
||||
title: this.$t('workCenter.standardInterpretationProcess.configurationRequirements'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'configurationRequirements_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // 新认证车实施日期
|
||||
title: this.$t('workCenter.standardInterpretationProcess.newCertificationImplementationDate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'newCerImplementDate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 新生产车实施日期
|
||||
title: this.$t('workCenter.standardInterpretationProcess.newProduceImplementationDate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'newProductionImplementation',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 注册日期
|
||||
title: this.$t('workCenter.standardInterpretationProcess.registrationDate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'registrationDate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 企业标准
|
||||
title: this.$t('workCenter.standardInterpretationProcess.enterpriseStandards'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'enterpriseStandard',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 技术规范/设计指南
|
||||
title: this.$t('workCenter.standardInterpretationProcess.technicalSpecificationsDesignGuidelines'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'technicalSpecificationDesignGuide',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 图纸模板
|
||||
title: this.$t('workCenter.standardInterpretationProcess.drawingTemplate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'drawingTemplate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 技术协议模板
|
||||
title: this.$t('workCenter.standardInterpretationProcess.technicalAgreementTemplate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'technicalAgreementTemplate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 校核报告模板/checklist
|
||||
title: this.$t('workCenter.standardInterpretationProcess.verificationReportTemplate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'verificationReportTemplateChecklist',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // DVP模板
|
||||
title: this.$t('workCenter.standardInterpretationProcess.dvpTemplate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'dvpTemplate',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // DFEMA
|
||||
title: this.$t('workCenter.standardInterpretationProcess.dfema'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'dfema',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 关键技术分解表
|
||||
title: this.$t('workCenter.standardInterpretationProcess.specialListTemplate'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'keyTechnologyDecompositionTable',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 其他文件或模板
|
||||
title: this.$t('workCenter.standardInterpretationProcess.otherFilesOrTemplates'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'otherDocumentsTemplates',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 排查阶段
|
||||
title: this.$t('workCenter.standardInterpretationProcess.investigationStage'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'investigationStage_dictText',
|
||||
scopedSlots: { customRender: 'dictText' }
|
||||
},
|
||||
{ // P3证明符合性的交付物名称
|
||||
title: this.$t('workCenter.standardInterpretationProcess.pThree'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'p3',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // P5证明符合性的交付物名称
|
||||
title: this.$t('workCenter.standardInterpretationProcess.pFive'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'p5',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 备注
|
||||
title: this.$t('workCenter.standardInterpretationProcess.notes'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'remarks',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}
|
||||
],
|
||||
columnsExtend: [],
|
||||
dataSource: [],
|
||||
ipagination: {
|
||||
current: 1,
|
||||
@@ -434,7 +248,7 @@ export default {
|
||||
computed: {
|
||||
// 最终显示的表格
|
||||
showColumns () {
|
||||
const columns = this.baseColumns
|
||||
const columns = [...this.baseColumns]
|
||||
// 不显示操作列的节点
|
||||
const noActionCoumnsNodes = [
|
||||
StandardInterpretationNodes.mainInterpreterSingleLineReview.value, // 标准主解读人单线审核
|
||||
@@ -552,7 +366,57 @@ export default {
|
||||
return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}`
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
// 加载表头
|
||||
this.getTableHeader()
|
||||
},
|
||||
methods: {
|
||||
// 下划线转换成小驼峰
|
||||
toCamelCase (str) {
|
||||
return str.replace(/_([a-z])/g, (match, letter) => letter.toUpperCase())
|
||||
},
|
||||
getTableHeader () {
|
||||
this.loading = true
|
||||
getDocSplitTableHeader({ module: '4' }).then(res => {
|
||||
if (res.success) {
|
||||
this.columnsExtend = this.dealColumns(res.result || [])
|
||||
console.log(this.columnsExtend)
|
||||
this.isTrue = false
|
||||
this.$nextTick(() => {
|
||||
this.isTrue = true
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 处理表头数据
|
||||
* @param columns
|
||||
* @returns {*[]}
|
||||
*/
|
||||
dealColumns (columns) {
|
||||
const tempColumns = []
|
||||
columns.forEach(item => {
|
||||
let key = this.toCamelCase(item.dbFieldName)
|
||||
if (key === 'remarkss') {
|
||||
key = 'remarks'
|
||||
}
|
||||
// 如果是默认的基础列,就不需要动态获取
|
||||
if (this.baseColumns.find(col => col.dataIndex === key)) {
|
||||
return
|
||||
}
|
||||
item.width = 215
|
||||
item.title = this.isChinese() ? item.dbFieldTxt : item.dbFieldEnName
|
||||
if (NEED_DICT_FIELD_TYPE.includes(item.fieldShowType)) {
|
||||
item.dataIndex = this.isChinese() ? key + '_dictText' : key + '_dictTextEn'
|
||||
} else {
|
||||
item.dataIndex = key
|
||||
}
|
||||
tempColumns.push(item)
|
||||
})
|
||||
return tempColumns
|
||||
},
|
||||
// 设置组件内数据
|
||||
setData (data = []) {
|
||||
this.dataSource = data.map(item => {
|
||||
|
||||
+57
-57
@@ -107,63 +107,6 @@
|
||||
@dictChange="(name) => dictChange(name, 'relatedModule')"
|
||||
v-decorator="['relatedModule']"/>
|
||||
</a-form-item>
|
||||
<!--适用车型-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.applications')" :colon="false">
|
||||
<j-multi-select-tag dict-code="applicable_vehicle_type"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.applications')"
|
||||
@dictChange="(name) => dictChange(name, 'applications')"
|
||||
v-decorator="['applications']"/>
|
||||
</a-form-item>
|
||||
<!--动力类型-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.powerType')" :colon="false">
|
||||
<j-multi-select-tag dict-code="dynamic_type"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.powerType')"
|
||||
@dictChange="(name) => dictChange(name, 'powerType')"
|
||||
v-decorator="['powerType']"/>
|
||||
</a-form-item>
|
||||
<!--专业领域-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.professionalField')" :colon="false">
|
||||
<s-tree-select
|
||||
v-decorator="['domainArea']"
|
||||
:disabled="disabled"
|
||||
:tree-data="professionalFieldTreeList"
|
||||
tree-checkable
|
||||
treeCheckStrictly
|
||||
@change="treeNameChange($event, 'domainArea')"
|
||||
:replaceFields="{title: isChinese() ? 'title' : 'enTitle'}"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.professionalField')"/>
|
||||
</a-form-item>
|
||||
<!--配置需求-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.configurationRequirements')" :colon="false">
|
||||
<j-multi-select-tag dict-code="configuration_requirements"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.configurationRequirements')"
|
||||
@dictChange="(name) => dictChange(name, 'configurationRequirements')"
|
||||
v-decorator="['configurationRequirements']"/>
|
||||
</a-form-item>
|
||||
<!--新认证车实施日期-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.newCertificationImplementationDate')" :colon="false">
|
||||
<j-multiple-date-picker :placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.newCertificationImplementationDate')"
|
||||
fieldName="newCerImplementDate"
|
||||
:disabled="disabled"
|
||||
v-decorator="['newCerImplementDate']" />
|
||||
</a-form-item>
|
||||
<!--新生产车实施日期-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.newProduceImplementationDate')" :colon="false">
|
||||
<j-multiple-date-picker :placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.newProduceImplementationDate')"
|
||||
fieldName="newProductionImplementation"
|
||||
:disabled="disabled"
|
||||
v-decorator="['newProductionImplementation']" />
|
||||
</a-form-item>
|
||||
<!--注册日期-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.registrationDate')" :colon="false">
|
||||
<j-multiple-date-picker :placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.registrationDate')"
|
||||
fieldName="registrationDate"
|
||||
:disabled="disabled"
|
||||
v-decorator="['registrationDate']" />
|
||||
</a-form-item>
|
||||
<!--企业标准-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.enterpriseStandards')" :colon="false">
|
||||
<standard-selection :source="StandardSource.ENTERPRISE.value"
|
||||
@@ -251,6 +194,63 @@
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.pFive')"
|
||||
v-decorator="['p5']"/>
|
||||
</a-form-item>
|
||||
<!--适用车型-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.applications')" :colon="false">
|
||||
<j-multi-select-tag dict-code="applicable_vehicle_type"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.applications')"
|
||||
@dictChange="(name) => dictChange(name, 'applications')"
|
||||
v-decorator="['applications']"/>
|
||||
</a-form-item>
|
||||
<!--动力类型-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.powerType')" :colon="false">
|
||||
<j-multi-select-tag dict-code="dynamic_type"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.powerType')"
|
||||
@dictChange="(name) => dictChange(name, 'powerType')"
|
||||
v-decorator="['powerType']"/>
|
||||
</a-form-item>
|
||||
<!--专业领域-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.professionalField')" :colon="false">
|
||||
<s-tree-select
|
||||
v-decorator="['domainArea']"
|
||||
:disabled="disabled"
|
||||
:tree-data="professionalFieldTreeList"
|
||||
tree-checkable
|
||||
treeCheckStrictly
|
||||
@change="treeNameChange($event, 'domainArea')"
|
||||
:replaceFields="{title: isChinese() ? 'title' : 'enTitle'}"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.professionalField')"/>
|
||||
</a-form-item>
|
||||
<!--配置需求-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.configurationRequirements')" :colon="false">
|
||||
<j-multi-select-tag dict-code="configuration_requirements"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.configurationRequirements')"
|
||||
@dictChange="(name) => dictChange(name, 'configurationRequirements')"
|
||||
v-decorator="['configurationRequirements']"/>
|
||||
</a-form-item>
|
||||
<!--新认证车实施日期-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.newCertificationImplementationDate')" :colon="false">
|
||||
<j-multiple-date-picker :placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.newCertificationImplementationDate')"
|
||||
fieldName="newCerImplementDate"
|
||||
:disabled="disabled"
|
||||
v-decorator="['newCerImplementDate']" />
|
||||
</a-form-item>
|
||||
<!--新生产车实施日期-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.newProduceImplementationDate')" :colon="false">
|
||||
<j-multiple-date-picker :placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.newProduceImplementationDate')"
|
||||
fieldName="newProductionImplementation"
|
||||
:disabled="disabled"
|
||||
v-decorator="['newProductionImplementation']" />
|
||||
</a-form-item>
|
||||
<!--注册日期-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.registrationDate')" :colon="false">
|
||||
<j-multiple-date-picker :placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.registrationDate')"
|
||||
fieldName="registrationDate"
|
||||
:disabled="disabled"
|
||||
v-decorator="['registrationDate']" />
|
||||
</a-form-item>
|
||||
<!--备注-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.notes')" :colon="false">
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.notes')"
|
||||
|
||||
Reference in New Issue
Block a user