Merge branch 'master' into addTitleTranslation

This commit is contained in:
danshihao
2024-09-06 16:52:40 +08:00
32 changed files with 238 additions and 165 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
9.新法规导入流程 —— src/views/workCenter/newRegulationIntroductionProcess/NewRegulationIntroductionProcess.vue 9.新法规导入流程 —— src/views/workCenter/newRegulationIntroductionProcess/NewRegulationIntroductionProcess.vue
10.标准解读流程 —— src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue 10.标准解读流程 —— src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue
11.法规符合性排查流程 —— src/views/workCenter/regulatoryComplianceCheckProcess/RegulatoryComplianceCheckProcess.vue 11.法规符合性排查流程 —— src/views/workCenter/regulatoryComplianceCheckProcess/RegulatoryComplianceCheckProcess.vue
12.市场清单发布流程 —— src/views/workCenter/marketListReleaseProcess/MarketListReleaseProcess.vue 12.市场法规清单发布流程 —— src/views/workCenter/marketListReleaseProcess/MarketListReleaseProcess.vue
六、资料中心 —— src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue 六、资料中心 —— src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue
+3 -3
View File
@@ -308,10 +308,10 @@
`工作中心` `工作中心`
------workCenter ------workCenter
--------NewProcess.vue ————新建流程 --------NewProcess.vue ————新建流程
--------marketListReleaseProcess ————市场清单发布流程 --------marketListReleaseProcess ————市场法规清单发布流程
----------MarketListReleaseProcess.vue ————市场清单发布流程页面 ----------MarketListReleaseProcess.vue ————市场法规清单发布流程页面
----------modules ----------modules
------------BaseInfoForm.vue ————市场清单发布流程业务基本信息部分 ------------BaseInfoForm.vue ————市场法规清单发布流程业务基本信息部分
--------newRegulationIntroductionProcess ————新法规导入流程 --------newRegulationIntroductionProcess ————新法规导入流程
----------NewRegulationIntroductionProcess.vue ————新法规导入流程页面 ----------NewRegulationIntroductionProcess.vue ————新法规导入流程页面
----------modules ----------modules
+1 -1
View File
@@ -50,7 +50,7 @@ const selectStandardFromSplit = (params) => getAction('', params)
// 生成 // 生成
const regulatoryComplianceCheckGenerate = (params) => postAction('/process/standardComplianceCheck/generate', params) const regulatoryComplianceCheckGenerate = (params) => postAction('/process/standardComplianceCheck/generate', params)
// 市场清单发布流程 // 市场法规清单发布流程
// 保存 // 保存
const marketListReleaseSave = (params) => postAction('/process/marketStandardRelease/save', params) const marketListReleaseSave = (params) => postAction('/process/marketStandardRelease/save', params)
// 发起 // 发起
+3 -1
View File
@@ -172,6 +172,7 @@ module.exports = {
mergeStandardInformation: 'Merge standard information', mergeStandardInformation: 'Merge standard information',
pleaseEnterPersonnelInfo: 'Please fill in the personnel information completely', pleaseEnterPersonnelInfo: 'Please fill in the personnel information completely',
pleaseEnterRemarks: 'Please fill in remarks', pleaseEnterRemarks: 'Please fill in remarks',
pleaseHandlingSuggestions: 'Please fill in the handling suggestion',
lookDetail: 'View Details', lookDetail: 'View Details',
batchReject: 'Batch Rejection', batchReject: 'Batch Rejection',
pleaseSelectDistributeData: 'Select the data you want to distribute', pleaseSelectDistributeData: 'Select the data you want to distribute',
@@ -254,13 +255,14 @@ module.exports = {
dataInfo: 'Data Information', dataInfo: 'Data Information',
updatePerson: 'Regenerator', updatePerson: 'Regenerator',
updateTime: 'Update Time', updateTime: 'Update Time',
handlingSuggestions: 'Handling Suggestions',
// 标准字段 // 标准字段
standardField: { standardField: {
standardEnglishName: 'Regulation English Name', standardEnglishName: 'Regulation English Name',
newProductionVehicleImplementationDate: 'New Certified Vehicle Implementation Date', newProductionVehicleImplementationDate: 'New Certified Vehicle Implementation Date',
newCertifiedVehicleImplementationDate: 'New Production Vehicle Implementation Date', newCertifiedVehicleImplementationDate: 'New Production Vehicle Implementation Date',
dateOfRegistration: 'Registration Date', dateOfRegistration: 'Registration Date',
applicableCountryRegion: 'Country/Region', applicableCountryRegion: 'Applicable Market',
applicableVehicleType: 'Vehicle Catagory' applicableVehicleType: 'Vehicle Catagory'
}, },
// 树右键 // 树右键
@@ -87,7 +87,7 @@ module.exports = {
newProductionVehicleImplementationDate: 'New Production Vehicle Implementation Date', newProductionVehicleImplementationDate: 'New Production Vehicle Implementation Date',
newCertifiedVehicleImplementationDate: 'New Certified Vehicle Implementation Date', newCertifiedVehicleImplementationDate: 'New Certified Vehicle Implementation Date',
dateOfRegistration: 'Registration Date', dateOfRegistration: 'Registration Date',
applicableCountryRegion: 'Country/Region', applicableCountryRegion: 'Applicable Market',
applicableVehicleType: 'Vehicle Catagory', applicableVehicleType: 'Vehicle Catagory',
authenticationObject: 'Certification Item', authenticationObject: 'Certification Item',
certifiedDeliverables: 'Verification', certifiedDeliverables: 'Verification',
@@ -87,7 +87,7 @@ module.exports = {
newProductionVehicleImplementationDate: '新生产车实施日期', newProductionVehicleImplementationDate: '新生产车实施日期',
newCertifiedVehicleImplementationDate: '新认证车实施日期', newCertifiedVehicleImplementationDate: '新认证车实施日期',
dateOfRegistration: '注册日期', dateOfRegistration: '注册日期',
applicableCountryRegion: '适用国家/地区', applicableCountryRegion: '适用市场',
applicableVehicleType: '适用车型', applicableVehicleType: '适用车型',
authenticationObject: '认证对象', authenticationObject: '认证对象',
certifiedDeliverables: '认证交付物', certifiedDeliverables: '认证交付物',
+3 -3
View File
@@ -59,12 +59,12 @@ module.exports = {
pleaseSelectDesignEngineer: 'Please select Design Engineer', pleaseSelectDesignEngineer: 'Please select Design Engineer',
atLeastSelectOneDesignEngineer: 'Please select at least one design engineer' atLeastSelectOneDesignEngineer: 'Please select at least one design engineer'
}, },
// 市场清单发布流程 // 市场法规清单发布流程
marketListReleaseProcess: { marketListReleaseProcess: {
englishName: 'English Name', englishName: 'English Name',
newProductionVehicleImplementationDate: 'New Certified Vehicle Implementation Date', newProductionVehicleImplementationDate: 'New Certified Vehicle Implementation Date',
newCertifiedVehicleImplementationDate: 'New Production Vehicle Implementation Date', newCertifiedVehicleImplementationDate: 'New Production Vehicle Implementation Date',
applicableCountryRegion: 'Country/Region', applicableCountryRegion: 'Applicable Market',
applicableVehicleType: 'Vehicle Catagory', applicableVehicleType: 'Vehicle Catagory',
authenticationObject: 'Certification Item', authenticationObject: 'Certification Item',
certifiedDeliverables: 'Verification', certifiedDeliverables: 'Verification',
@@ -111,7 +111,7 @@ module.exports = {
technicalAgreementTemplate: 'Technical Agreement Template(s)', technicalAgreementTemplate: 'Technical Agreement Template(s)',
verificationReportTemplate: 'Checklist Template(s)', verificationReportTemplate: 'Checklist Template(s)',
dvpTemplate: 'DVP Template(s)', dvpTemplate: 'DVP Template(s)',
dfema: 'DFEMA', dfema: 'DEFMA',
specialListTemplate: 'Key Technology Breakdown Table', specialListTemplate: 'Key Technology Breakdown Table',
otherFilesOrTemplates: 'Other Files or Template(s)', otherFilesOrTemplates: 'Other Files or Template(s)',
investigationStage: 'Applicable Gate', investigationStage: 'Applicable Gate',
+4 -4
View File
@@ -9,7 +9,7 @@ module.exports = {
newRegulationIntroductionProcess: '新法规导入流程', newRegulationIntroductionProcess: '新法规导入流程',
standardInterpretationProcess: '标准解读流程', standardInterpretationProcess: '标准解读流程',
regulatoryComplianceCheckProcess: '法规符合性排查流程', regulatoryComplianceCheckProcess: '法规符合性排查流程',
marketListReleaseProcess: '市场清单发布流程' marketListReleaseProcess: '市场法规清单发布流程'
}, },
// 新法规导入流程 // 新法规导入流程
newRegulationImportProcess: { newRegulationImportProcess: {
@@ -59,12 +59,12 @@ module.exports = {
pleaseSelectDesignEngineer: '请选择设计工程师', pleaseSelectDesignEngineer: '请选择设计工程师',
atLeastSelectOneDesignEngineer: '请至少选择一条数据的设计工程师' atLeastSelectOneDesignEngineer: '请至少选择一条数据的设计工程师'
}, },
// 市场清单发布流程 // 市场法规清单发布流程
marketListReleaseProcess: { marketListReleaseProcess: {
englishName: '英文名称', englishName: '英文名称',
newProductionVehicleImplementationDate: '新生产车实施日期', newProductionVehicleImplementationDate: '新生产车实施日期',
newCertifiedVehicleImplementationDate: '新认证车实施日期', newCertifiedVehicleImplementationDate: '新认证车实施日期',
applicableCountryRegion: '适用国家/地区', applicableCountryRegion: '适用市场',
applicableVehicleType: '适用车型', applicableVehicleType: '适用车型',
authenticationObject: '认证对象', authenticationObject: '认证对象',
certifiedDeliverables: '认证交付物', certifiedDeliverables: '认证交付物',
@@ -111,7 +111,7 @@ module.exports = {
technicalAgreementTemplate: '技术协议模板', technicalAgreementTemplate: '技术协议模板',
verificationReportTemplate: '校核报告模板/checklist', verificationReportTemplate: '校核报告模板/checklist',
dvpTemplate: 'DVP模板', dvpTemplate: 'DVP模板',
dfema: 'DFEMA', dfema: 'DEFMA',
specialListTemplate: '关键技术分解表', specialListTemplate: '关键技术分解表',
otherFilesOrTemplates: '其它文件或模板', otherFilesOrTemplates: '其它文件或模板',
investigationStage: '排查阶段', investigationStage: '排查阶段',
+3 -1
View File
@@ -172,6 +172,7 @@ module.exports = {
mergeStandardInformation: '合并标准信息', mergeStandardInformation: '合并标准信息',
pleaseEnterPersonnelInfo: '请完整填写人员信息', pleaseEnterPersonnelInfo: '请完整填写人员信息',
pleaseEnterRemarks: '请填写备注', pleaseEnterRemarks: '请填写备注',
pleaseHandlingSuggestions: '请填写处理意见',
lookDetail: '查看详情', lookDetail: '查看详情',
batchReject: '批量驳回', batchReject: '批量驳回',
pleaseSelectDistributeData: '请选择要分发的数据', pleaseSelectDistributeData: '请选择要分发的数据',
@@ -254,13 +255,14 @@ module.exports = {
dataInfo: '数据信息', dataInfo: '数据信息',
updatePerson: '更新人', updatePerson: '更新人',
updateTime: '更新时间', updateTime: '更新时间',
handlingSuggestions: '处理意见',
// 标准字段 // 标准字段
standardField: { standardField: {
standardEnglishName: '标准英文名称', standardEnglishName: '标准英文名称',
newProductionVehicleImplementationDate: '新生产车实施日期', newProductionVehicleImplementationDate: '新生产车实施日期',
newCertifiedVehicleImplementationDate: '新认证车实施日期', newCertifiedVehicleImplementationDate: '新认证车实施日期',
dateOfRegistration: '注册日期', dateOfRegistration: '注册日期',
applicableCountryRegion: '适用国家/地区', applicableCountryRegion: '适用市场',
applicableVehicleType: '适用车型' applicableVehicleType: '适用车型'
}, },
// 树右键 // 树右键
+1 -1
View File
@@ -422,7 +422,7 @@ export default {
case ProcessKey.REGULATORY_COMPLIANCE_CHECK.value: case ProcessKey.REGULATORY_COMPLIANCE_CHECK.value:
path = '/workCenter/RegulatoryComplianceCheckProcess' path = '/workCenter/RegulatoryComplianceCheckProcess'
break break
// 市场清单发布流程 // 市场法规清单发布流程
case ProcessKey.MARKET_LIST_RELEASE.value: case ProcessKey.MARKET_LIST_RELEASE.value:
path = '/workCenter/MarketListReleaseProcess' path = '/workCenter/MarketListReleaseProcess'
break break
+1 -1
View File
@@ -223,7 +223,7 @@
<!--查看上传文件--> <!--查看上传文件-->
<upload-file ref="uploadFile" :return-url="false" disabled /> <upload-file ref="uploadFile" :return-url="false" disabled />
<div id="images"> <div id="images">
<div class="image" v-viewer="{movable: false}"> <div class="image" v-viewer>
<img v-show="false" :src="imageUrl" alt=""> <img v-show="false" :src="imageUrl" alt="">
</div> </div>
</div> </div>
+4 -4
View File
@@ -138,7 +138,7 @@ export const ProcessKey = {
STANDARD_INTERPRETATION_PROCESS: { text: 'standard_interpret', value: 'standard_interpret' }, STANDARD_INTERPRETATION_PROCESS: { text: 'standard_interpret', value: 'standard_interpret' },
// 法规符合性排查流程 // 法规符合性排查流程
REGULATORY_COMPLIANCE_CHECK: { text: 'laws-evaluation-main', value: 'laws-evaluation-main' }, REGULATORY_COMPLIANCE_CHECK: { text: 'laws-evaluation-main', value: 'laws-evaluation-main' },
// 市场清单发布流程 // 市场法规清单发布流程
MARKET_LIST_RELEASE: { text: 'market_standard_publish', value: 'market_standard_publish' } MARKET_LIST_RELEASE: { text: 'market_standard_publish', value: 'market_standard_publish' }
} }
@@ -150,8 +150,8 @@ export const ProcessType = {
STANDARD_INTERPRETATION_PROCESS: { text: '标准解读流程', value: '2' }, STANDARD_INTERPRETATION_PROCESS: { text: '标准解读流程', value: '2' },
// 法规符合性排查流程 // 法规符合性排查流程
REGULATORY_COMPLIANCE_CHECK: { text: '法规符合性排查流程', value: '3' }, REGULATORY_COMPLIANCE_CHECK: { text: '法规符合性排查流程', value: '3' },
// 市场清单发布流程 // 市场法规清单发布流程
MARKET_LIST_RELEASE: { text: '市场清单发布流程', value: '4' } MARKET_LIST_RELEASE: { text: '市场法规清单发布流程', value: '4' }
} }
// 新法规导入流程节点 // 新法规导入流程节点
@@ -177,7 +177,7 @@ export const RegulatoryComplianceCheckNodes = new EsEnums({
mainFinderTwiceDistributes: { text: '主排查人分批下发(二次分发)', value: 'sid-3D1BFC0F-9074-4868-891F-2F76D00A21C7' } mainFinderTwiceDistributes: { text: '主排查人分批下发(二次分发)', value: 'sid-3D1BFC0F-9074-4868-891F-2F76D00A21C7' }
}) })
// 市场清单发布流程节点 // 市场法规清单发布流程节点
export const MarketListReleaseNodes = new EsEnums({ export const MarketListReleaseNodes = new EsEnums({
initiated: { text: '法规工程师发起', value: 'SID-8B22BF1A-383D-48E0-B9C4-24DFFEA1C9D0' }, initiated: { text: '法规工程师发起', value: 'SID-8B22BF1A-383D-48E0-B9C4-24DFFEA1C9D0' },
countersign: { text: '会签', value: 'SID-3CBC410D-D866-4DCA-ACBC-5F667BC376E6' }, countersign: { text: '会签', value: 'SID-3CBC410D-D866-4DCA-ACBC-5F667BC376E6' },
+1 -1
View File
@@ -67,7 +67,7 @@ export default {
case '3': case '3':
path = '/workCenter/RegulatoryComplianceCheckProcess' path = '/workCenter/RegulatoryComplianceCheckProcess'
break break
// 市场清单发布流程 // 市场法规清单发布流程
case '4': case '4':
path = '/workCenter/MarketListReleaseProcess' path = '/workCenter/MarketListReleaseProcess'
break break
@@ -1,55 +1,60 @@
<template> <template>
<a-card :bordered="false" class="page-left-right-layout"> <a-card :bordered="false" class="page-left-right-layout">
<div class="page-left-box"> <div class="page-left-box" :style="isLeftExpand ? {width: '0px', padding: '0px', borderRight: 'none'} : {}">
<a-input-search v-model="treeInput" <template v-if="!isLeftExpand">
class="tree-search" <a-input-search v-model="treeInput"
:placeholder="$t('pleaseEnterTreeSystem')" class="tree-search"
@search="handleTreeSearch" /> :placeholder="$t('pleaseEnterTreeSystem')"
<div class="page-tree-box page-tree-box-has-search"> @search="handleTreeSearch" />
<a-spin :spinning="treeLoading"> <div class="page-tree-box page-tree-box-has-search">
<a-tree <a-spin :spinning="treeLoading">
v-if="treeData.length > 0" <a-tree
:show-line="true" v-if="treeData.length > 0"
:show-icon="true" :show-line="true"
:tree-data="treeData" :show-icon="true"
:expanded-keys.sync="expandedKeys" :tree-data="treeData"
:selectedKeys="currentTreeNode" :expanded-keys.sync="expandedKeys"
:default-expand-all="defaultExpandAll" :selectedKeys="currentTreeNode"
draggable :default-expand-all="defaultExpandAll"
@drop="onDropCataSort"> draggable
<template #title="record"> @drop="onDropCataSort">
<div class="tree-operate-node" <template #title="record">
@mouseenter="handleTreeMouseover(record.key)" <div class="tree-operate-node"
@mouseleave="handleTreeMouseout(record.key)" @mouseenter="handleTreeMouseover(record.key)"
@click="treeSelect(record)"> @mouseleave="handleTreeMouseout(record.key)"
<a-icon class="parent-node-icon" type="folder" v-if="record.dataRef.children && record.dataRef.children.length > 0" /> @click="treeSelect(record)">
<a-tooltip placement="topLeft"> <a-icon class="parent-node-icon" type="folder" v-if="record.dataRef.children && record.dataRef.children.length > 0" />
<template #title> <a-tooltip placement="topLeft">
{{ record.title }} <template #title>
</template> {{ record.title }}
<span class="tree-node-custom-title">{{ record.title }}</span> </template>
</a-tooltip> <span class="tree-node-custom-title">{{ record.title }}</span>
<div class="tree-operate-node-btn-box" :class="{'tree-operate-node-btn-box-hide': record.key !== mouseInNodeKey || record.key === 'myCollect'}"> </a-tooltip>
<!-- 新增 --> <div class="tree-operate-node-btn-box" :class="{'tree-operate-node-btn-box-hide': record.key !== mouseInNodeKey || record.key === 'myCollect'}">
<a-button icon="plus" class="tree-operate-node-btn" v-has="'enterpriseStandard:tree:add'" <!-- 新增 -->
@click="handleTreeAdd(record)"></a-button> <a-button icon="plus" class="tree-operate-node-btn" v-has="'enterpriseStandard:tree:add'"
<!-- 编辑 --> @click="handleTreeAdd(record)"></a-button>
<a-button v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value" <!-- 编辑 -->
v-has="'enterpriseStandard:tree:edit'" <a-button v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value"
class="tree-operate-node-btn" @click="handleTreeEdit(record)"> v-has="'enterpriseStandard:tree:edit'"
<i class="iconfont icon-bianji"></i> class="tree-operate-node-btn" @click="handleTreeEdit(record)">
</a-button> <i class="iconfont icon-bianji"></i>
<!-- 删除 --> </a-button>
<a-button v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value" <!-- 删除 -->
v-has="'enterpriseStandard:tree:delete'" <a-button v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value"
class="tree-operate-node-btn" @click="handleTreeDelete(record.id)"> v-has="'enterpriseStandard:tree:delete'"
<i class="iconfont icon-shanchu_"></i> class="tree-operate-node-btn" @click="handleTreeDelete(record.id)">
</a-button> <i class="iconfont icon-shanchu_"></i>
</a-button>
</div>
</div> </div>
</div> </template>
</template> </a-tree>
</a-tree> </a-spin>
</a-spin> </div>
</template>
<div class="control-standard-left-expand" @click="expandLeft">
<a-icon :type="isLeftExpand ? 'right' : 'left'" />
</div> </div>
</div> </div>
<div class="page-right-box"> <div class="page-right-box">
@@ -265,7 +270,8 @@ export default {
defaultSearchParams: { // 默认查询条件 defaultSearchParams: { // 默认查询条件
standard_state: `${EnterpriseStandardStatus.CURRENTLY_EFFECTIVE.value}` standard_state: `${EnterpriseStandardStatus.CURRENTLY_EFFECTIVE.value}`
}, },
disabledMixinsCreate: true disabledMixinsCreate: true,
isLeftExpand: false // 是否左侧收齐
} }
}, },
computed: { computed: {
@@ -305,6 +311,10 @@ export default {
this.initTreeData() this.initTreeData()
}, },
methods: { methods: {
// 左侧树收起展开
expandLeft () {
this.isLeftExpand = !this.isLeftExpand
},
// 获取左侧树数据 // 获取左侧树数据
initTreeData (params, isPackUpExpand = true) { initTreeData (params, isPackUpExpand = true) {
this.treeLoading = true this.treeLoading = true
@@ -845,4 +855,27 @@ export default {
.icon-star { .icon-star {
color: rgba(243, 129, 65, 0.50); color: rgba(243, 129, 65, 0.50);
} }
.page-left-box {
position: relative;
}
.control-standard-left-expand {
width: 12px;
height: 24px;
border-radius: 0 12px 12px 0;
background-color: @primary-color;
color: white;
position: absolute;
z-index: 3;
left: 100%;
top: calc(50% - 52px);
.anticon {
position: absolute;
top: 50%;
left: -2px;
transform: translateY(-50%);
cursor: pointer;
}
}
</style> </style>
@@ -1,59 +1,64 @@
<template> <template>
<a-card :bordered="false" class="page-left-right-layout"> <a-card :bordered="false" class="page-left-right-layout">
<!-- 树部分--> <!-- 树部分-->
<div class="page-left-box"> <div class="page-left-box" :style="isLeftExpand ? {width: '0px', padding: '0px', borderRight: 'none'} : {}">
<a-input-search v-model="treeInput" class="tree-search" <template v-if="!isLeftExpand">
:placeholder="$t('standardRegulationLibrary.foreignStandard.treeSearchPlaceholder')" <a-input-search v-model="treeInput" class="tree-search"
@search="handleTreeSearch" /> :placeholder="$t('standardRegulationLibrary.foreignStandard.treeSearchPlaceholder')"
<div class="page-tree-box page-tree-box-has-search"> @search="handleTreeSearch" />
<a-spin :spinning="treeLoading"> <div class="page-tree-box page-tree-box-has-search">
<a-tree :show-line="true" <a-spin :spinning="treeLoading">
:show-icon="true" <a-tree :show-line="true"
:tree-data="treeData" :show-icon="true"
:expanded-keys.sync="expandedKeys" :tree-data="treeData"
:selected-keys="selectedTreeKeys" :expanded-keys.sync="expandedKeys"
draggable :selected-keys="selectedTreeKeys"
@drop="onDropCataSort"> draggable
<template #title="record"> @drop="onDropCataSort">
<div class="tree-operate-node" <template #title="record">
@mouseenter="handleTreeMouseover(record.key)" <div class="tree-operate-node"
@mouseleave="handleTreeMouseout(record.key)" @mouseenter="handleTreeMouseover(record.key)"
@click="handleSelectTreeNode(record)"> @mouseleave="handleTreeMouseout(record.key)"
<a-icon class="parent-node-icon" @click="handleSelectTreeNode(record)">
type="folder" <a-icon class="parent-node-icon"
v-if="record.dataRef.children && record.dataRef.children.length > 0" /> type="folder"
<a-tooltip placement="topLeft"> v-if="record.dataRef.children && record.dataRef.children.length > 0" />
<template #title> <a-tooltip placement="topLeft">
{{ record.title }} <template #title>
</template> {{ record.title }}
<span class="tree-node-custom-title">{{ record.title }}</span> </template>
</a-tooltip> <span class="tree-node-custom-title">{{ record.title }}</span>
<div class="tree-operate-node-btn-box" :class="{'tree-operate-node-btn-box-hide': record.key !== mouseInNodeKey}"> </a-tooltip>
<!-- 新增--> <div class="tree-operate-node-btn-box" :class="{'tree-operate-node-btn-box-hide': record.key !== mouseInNodeKey}">
<a-button icon="plus" <!-- 新增-->
class="tree-operate-node-btn" <a-button icon="plus"
@click.stop="handleAddTreeNode(record)" class="tree-operate-node-btn"
v-if="record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value" @click.stop="handleAddTreeNode(record)"
v-has="'domesticStandard:tree:add'"></a-button> v-if="record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value"
<!-- 编辑,根节点不能编辑--> v-has="'domesticStandard:tree:add'"></a-button>
<a-button class="tree-operate-node-btn" <!-- 编辑,根节点不能编辑-->
@click.stop="handleEditTreeNode(record)" <a-button class="tree-operate-node-btn"
v-has="'domesticStandard:tree:edit'" @click.stop="handleEditTreeNode(record)"
v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value"> v-has="'domesticStandard:tree:edit'"
<i class="iconfont icon-bianji" /> v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value">
</a-button> <i class="iconfont icon-bianji" />
<!-- 删除,根节点不能删除--> </a-button>
<a-button class="tree-operate-node-btn" <!-- 删除,根节点不能删除-->
v-has="'domesticStandard:tree:delete'" <a-button class="tree-operate-node-btn"
v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value" v-has="'domesticStandard:tree:delete'"
@click.stop="handleDelTreeNode(record)"> v-if="record.nodeType !== StandardSystemTreeNodeType.ROOT_NODE.value && record.nodeType !== StandardSystemTreeNodeType.NOT_OPERATE_NODE.value"
<i class="iconfont icon-shanchu_" /> @click.stop="handleDelTreeNode(record)">
</a-button> <i class="iconfont icon-shanchu_" />
</a-button>
</div>
</div> </div>
</div> </template>
</template> </a-tree>
</a-tree> </a-spin>
</a-spin> </div>
</template>
<div class="control-standard-left-expand" @click="expandLeft">
<a-icon :type="isLeftExpand ? 'right' : 'left'" />
</div> </div>
</div> </div>
<!-- 表格部分--> <!-- 表格部分-->
@@ -313,7 +318,8 @@ export default {
treeLoading: false, treeLoading: false,
isCollection: false, isCollection: false,
expandedKeys: [], // 展开的节点 expandedKeys: [], // 展开的节点
needFilterTableBtn: true needFilterTableBtn: true,
isLeftExpand: false // 是否左侧收齐
} }
}, },
computed: { computed: {
@@ -326,6 +332,10 @@ export default {
this.initTreeData() this.initTreeData()
}, },
methods: { methods: {
// 左侧树收起展开
expandLeft () {
this.isLeftExpand = !this.isLeftExpand
},
/** /**
* 获取树数据 * 获取树数据
*/ */
@@ -828,4 +838,27 @@ export default {
.icon-star { .icon-star {
color: rgba(243, 129, 65, 0.50); color: rgba(243, 129, 65, 0.50);
} }
.page-left-box {
position: relative;
}
.control-standard-left-expand {
width: 12px;
height: 24px;
border-radius: 0 12px 12px 0;
background-color: @primary-color;
color: white;
position: absolute;
z-index: 3;
left: 100%;
top: calc(50% - 52px);
.anticon {
position: absolute;
top: 50%;
left: -2px;
transform: translateY(-50%);
cursor: pointer;
}
}
</style> </style>
@@ -278,7 +278,7 @@ export default {
} }
// scopedSlots: { customRender: 'text' } // scopedSlots: { customRender: 'text' }
}, },
{ // 适用国家/地区 { // 适用市场
title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'), title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'),
align: 'center', align: 'center',
width: 180, width: 180,
@@ -652,7 +652,7 @@ export default {
newAuthImplDateCol: item.id === newAuthImplDateArr[0].id ? newAuthImplDateArr.length : 0, newAuthImplDateCol: item.id === newAuthImplDateArr[0].id ? newAuthImplDateArr.length : 0,
// 注册日期行合并 // 注册日期行合并
registrationDateCol: item.id === registrationDateArr[0].id ? registrationDateArr.length : 0, registrationDateCol: item.id === registrationDateArr[0].id ? registrationDateArr.length : 0,
// 适用国家/地区行合并 // 适用市场行合并
countryCol: item.id === countryArr[0].id ? countryArr.length : 0, countryCol: item.id === countryArr[0].id ? countryArr.length : 0,
// 适用车型行合并 // 适用车型行合并
applicableVehicleCol: item.id === applicableVehicleArr[0].id ? applicableVehicleArr.length : 0, applicableVehicleCol: item.id === applicableVehicleArr[0].id ? applicableVehicleArr.length : 0,
@@ -362,7 +362,7 @@ export default {
dataIndex: 'registrationDate', dataIndex: 'registrationDate',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 适用国家/地区 { // 适用市场
title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'), title: this.$t('standardRegulationLibrary.marketListField.applicableCountryRegion'),
align: 'center', align: 'center',
width: 180, width: 180,
@@ -626,7 +626,7 @@ export default {
form.newProductImplDate = result.new_product_impl_date // 新生产车实施日期 form.newProductImplDate = result.new_product_impl_date // 新生产车实施日期
form.newAuthImplDate = result.new_auth_impl_date // 新认证车实施日期 form.newAuthImplDate = result.new_auth_impl_date // 新认证车实施日期
form.registrationDate = result.registration_date // 注册日期 form.registrationDate = result.registration_date // 注册日期
form.country = this.model.country.map(item => item.value).join(',') // 适用国家/地区,带入清单基本信息的国家/地区 form.country = this.model.country.map(item => item.value).join(',') // 适用市场,带入清单基本信息的国家/地区
form.mainDept = result.main_dept // 主控部门 form.mainDept = result.main_dept // 主控部门
form.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块 form.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块
form.associateDept = result.associate_dept // 关联部门 form.associateDept = result.associate_dept // 关联部门
@@ -300,7 +300,7 @@ export default {
} }
marketRegulationDetailPublish({ id: this.selectedRowKeys[0] }).then(res => { marketRegulationDetailPublish({ id: this.selectedRowKeys[0] }).then(res => {
if (res.success) { if (res.success) {
// 跳转市场清单发布流程 // 跳转市场法规清单发布流程
this.$router.push({ this.$router.push({
path: '/workCenter/MarketListReleaseProcess', path: '/workCenter/MarketListReleaseProcess',
query: { query: {
@@ -345,7 +345,7 @@ export default {
handlePublish (record) { handlePublish (record) {
marketRegulationDetailPublish({ id: record.id }).then(res => { marketRegulationDetailPublish({ id: record.id }).then(res => {
if (res.success) { if (res.success) {
// 跳转市场清单发布流程 // 跳转市场法规清单发布流程
this.$router.push({ this.$router.push({
path: '/workCenter/MarketListReleaseProcess', path: '/workCenter/MarketListReleaseProcess',
query: { query: {
@@ -59,7 +59,7 @@
field-name="registrationDate" field-name="registrationDate"
v-decorator.trim="[ 'registrationDate', validatorRules.registrationDate ]" /> v-decorator.trim="[ 'registrationDate', validatorRules.registrationDate ]" />
</a-form-item> </a-form-item>
<!-- 适用国家/地区 --> <!-- 适用市场 -->
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardRegulationLibrary.marketListField.applicableCountryRegion')"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('standardRegulationLibrary.marketListField.applicableCountryRegion')">
<s-tree-select <s-tree-select
v-decorator.trim="[ 'country', validatorRules.country ]" v-decorator.trim="[ 'country', validatorRules.country ]"
@@ -178,7 +178,7 @@ export default {
confirmLoading: false, confirmLoading: false,
form: this.$form.createForm(this), form: this.$form.createForm(this),
model: {}, model: {},
countryOptions: [], // 适用国家/地区下拉框 countryOptions: [], // 适用市场下拉框
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
sm: { span: 6 } sm: { span: 6 }
@@ -228,7 +228,7 @@ export default {
}], }],
validateTrigger: 'change' validateTrigger: 'change'
}, },
// 适用国家/地区 // 适用市场
country: { country: {
rules: [{ rules: [{
required: true, required: true,
@@ -292,7 +292,7 @@ export default {
this.visible = true this.visible = true
this.manifestId = manifestId this.manifestId = manifestId
this.model = Object.assign({}, record) this.model = Object.assign({}, record)
// 处理适用国家/地区格式 // 处理适用市场格式
if (this.model.country) { if (this.model.country) {
this.model.country = this.model.country.split(',').map(item => { this.model.country = this.model.country.split(',').map(item => {
return { value: item } return { value: item }
@@ -332,7 +332,7 @@ export default {
form.registrationDate = result.registration_date // 注册日期 form.registrationDate = result.registration_date // 注册日期
form.country = result.applicable_market ? (result.applicable_market.split(',').map(item => { form.country = result.applicable_market ? (result.applicable_market.split(',').map(item => {
return { value: item } return { value: item }
})) : [] // 适用国家/地区 })) : [] // 适用市场
form.mainDept = result.main_dept // 主控部门 form.mainDept = result.main_dept // 主控部门
form.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块 form.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块
form.associateDept = result.associate_dept // 关联部门 form.associateDept = result.associate_dept // 关联部门
@@ -359,7 +359,7 @@ export default {
form.newProductImplDate = '' // 新生产车实施日期 form.newProductImplDate = '' // 新生产车实施日期
form.newAuthImplDate = '' // 新认证车实施日期 form.newAuthImplDate = '' // 新认证车实施日期
form.registrationDate = '' // 注册日期 form.registrationDate = '' // 注册日期
form.country = [] // 适用国家/地区 form.country = [] // 适用市场
form.mainDept = '' // 主控部门 form.mainDept = '' // 主控部门
form.mainDeptProfMode = undefined // 主控部门专业模块 form.mainDeptProfMode = undefined // 主控部门专业模块
form.associateDept = '' // 关联部门 form.associateDept = '' // 关联部门
@@ -382,7 +382,7 @@ export default {
if (!err) { if (!err) {
this.confirmLoading = true this.confirmLoading = true
const param = Object.assign({}, values) const param = Object.assign({}, values)
// 处理适用国家/地区格式 // 处理适用市场格式
param.country = param.country.map(item => item.value).join(',') param.country = param.country.map(item => item.value).join(',')
// 基础信息id // 基础信息id
param.manifestId = this.manifestId param.manifestId = this.manifestId
@@ -918,7 +918,7 @@ export default {
case ProcessType.REGULATORY_COMPLIANCE_CHECK.value: case ProcessType.REGULATORY_COMPLIANCE_CHECK.value:
processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value
break break
// 市场清单发布流程 // 市场法规清单发布流程
case ProcessType.MARKET_LIST_RELEASE.value: case ProcessType.MARKET_LIST_RELEASE.value:
processKey = ProcessKey.MARKET_LIST_RELEASE.value processKey = ProcessKey.MARKET_LIST_RELEASE.value
break break
+1 -1
View File
@@ -37,7 +37,7 @@ export default {
path: '/workCenter/RegulatoryComplianceCheckProcess', path: '/workCenter/RegulatoryComplianceCheckProcess',
permission: 'workCenter:newProcess:regulatoryComplianceCheckProcess' permission: 'workCenter:newProcess:regulatoryComplianceCheckProcess'
}, },
{ // 市场清单发布流程 { // 市场法规清单发布流程
title: this.$t('workCenter.newProcess.marketListReleaseProcess'), title: this.$t('workCenter.newProcess.marketListReleaseProcess'),
path: '/workCenter/MarketListReleaseProcess', path: '/workCenter/MarketListReleaseProcess',
permission: 'workCenter:newProcess:marketListReleaseProcess' permission: 'workCenter:newProcess:marketListReleaseProcess'
@@ -130,8 +130,8 @@
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div> <div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
<a-form :form="approvalInfoForm"> <a-form :form="approvalInfoForm">
<!--备注--> <!--备注-->
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('remarks')" :colon="formItemColon"> <a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('handlingSuggestions')" :colon="formItemColon">
<a-textarea :placeholder="isLook ? '' : $t('pleaseEnter') + $t('remarks')" <a-textarea :placeholder="isLook ? '' : $t('pleaseEnter') + $t('handlingSuggestions')"
:maxLength="500" :maxLength="500"
:rows="4" :rows="4"
:disabled="isLook" :disabled="isLook"
@@ -342,7 +342,7 @@ export default {
}, },
handleText: { handleText: {
rules: [ rules: [
{ required: false, message: this.$t('pleaseEnter') + this.$t('remarks') } { required: false, message: this.$t('pleaseEnter') + this.$t('handlingSuggestions') }
], ],
validateTrigger: 'blur' validateTrigger: 'blur'
} }
@@ -659,7 +659,7 @@ export default {
if (this.loading) return if (this.loading) return
this.validatorRules.handleText.rules[0].required = true this.validatorRules.handleText.rules[0].required = true
if (!this.approvalInfoForm.getFieldValue('handleText')) { if (!this.approvalInfoForm.getFieldValue('handleText')) {
this.$message.warning(this.$t('pleaseEnterRemarks')) this.$message.warning(this.$t('pleaseHandlingSuggestions'))
this.switchValue = 'base' this.switchValue = 'base'
} }
this.$nextTick(() => { this.$nextTick(() => {
@@ -225,7 +225,7 @@ export default {
dataIndex: 'newAuthImplDate', dataIndex: 'newAuthImplDate',
scopedSlots: { customRender: 'text' } scopedSlots: { customRender: 'text' }
}, },
{ // 适用国家/地区 { // 适用市场
title: this.$t('workCenter.marketListReleaseProcess.applicableCountryRegion'), title: this.$t('workCenter.marketListReleaseProcess.applicableCountryRegion'),
align: 'center', align: 'center',
width: 180, width: 180,
@@ -75,8 +75,8 @@
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div> <div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
<a-form :form="approvalInfoForm"> <a-form :form="approvalInfoForm">
<!--备注--> <!--备注-->
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('remarks')" :colon="formItemColon"> <a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('handlingSuggestions')" :colon="formItemColon">
<a-textarea :placeholder="isLook ? '' : $t('pleaseEnter') + $t('remarks')" <a-textarea :placeholder="isLook ? '' : $t('pleaseEnter') + $t('handlingSuggestions')"
:maxLength="500" :maxLength="500"
:rows="4" :rows="4"
:disabled="isLook" :disabled="isLook"
@@ -281,7 +281,7 @@ export default {
}, },
handleText: { handleText: {
rules: [ rules: [
{ required: false, message: this.$t('pleaseEnter') + this.$t('remarks') } { required: false, message: this.$t('pleaseEnter') + this.$t('handlingSuggestions') }
], ],
validateTrigger: 'blur' validateTrigger: 'blur'
} }
@@ -559,7 +559,7 @@ export default {
if (this.loading) return if (this.loading) return
this.validatorRules.handleText.rules[0].required = true this.validatorRules.handleText.rules[0].required = true
if (!this.approvalInfoForm.getFieldValue('handleText')) { if (!this.approvalInfoForm.getFieldValue('handleText')) {
this.$message.warning(this.$t('pleaseEnterRemarks')) this.$message.warning(this.$t('pleaseHandlingSuggestions'))
this.switchValue = 'base' this.switchValue = 'base'
} }
this.$nextTick(() => { this.$nextTick(() => {
@@ -215,7 +215,7 @@ export default {
case ProcessType.REGULATORY_COMPLIANCE_CHECK.value: case ProcessType.REGULATORY_COMPLIANCE_CHECK.value:
processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value
break break
// 市场清单发布流程 // 市场法规清单发布流程
case ProcessType.MARKET_LIST_RELEASE.value: case ProcessType.MARKET_LIST_RELEASE.value:
processKey = ProcessKey.MARKET_LIST_RELEASE.value processKey = ProcessKey.MARKET_LIST_RELEASE.value
break break
@@ -158,7 +158,7 @@ export default {
case '3': case '3':
path = '/workCenter/RegulatoryComplianceCheckProcess' path = '/workCenter/RegulatoryComplianceCheckProcess'
break break
// 市场清单发布流程 // 市场法规清单发布流程
case '4': case '4':
path = '/workCenter/MarketListReleaseProcess' path = '/workCenter/MarketListReleaseProcess'
break break
@@ -195,7 +195,7 @@ export default {
case ProcessType.REGULATORY_COMPLIANCE_CHECK.value: case ProcessType.REGULATORY_COMPLIANCE_CHECK.value:
processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value
break break
// 市场清单发布流程 // 市场法规清单发布流程
case ProcessType.MARKET_LIST_RELEASE.value: case ProcessType.MARKET_LIST_RELEASE.value:
processKey = ProcessKey.MARKET_LIST_RELEASE.value processKey = ProcessKey.MARKET_LIST_RELEASE.value
break break
@@ -202,7 +202,7 @@ export default {
case ProcessType.REGULATORY_COMPLIANCE_CHECK.value: case ProcessType.REGULATORY_COMPLIANCE_CHECK.value:
processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value processKey = ProcessKey.REGULATORY_COMPLIANCE_CHECK.value
break break
// 市场清单发布流程 // 市场法规清单发布流程
case ProcessType.MARKET_LIST_RELEASE.value: case ProcessType.MARKET_LIST_RELEASE.value:
processKey = ProcessKey.MARKET_LIST_RELEASE.value processKey = ProcessKey.MARKET_LIST_RELEASE.value
break break
@@ -165,7 +165,7 @@ export default {
], ],
// 法规符合性排查流程 // 法规符合性排查流程
[ProcessType.REGULATORY_COMPLIANCE_CHECK.value]: [RegulatoryComplianceCheckNodes.initiated.value], [ProcessType.REGULATORY_COMPLIANCE_CHECK.value]: [RegulatoryComplianceCheckNodes.initiated.value],
// 市场清单发布流程 // 市场法规清单发布流程
[ProcessType.MARKET_LIST_RELEASE.value]: [MarketListReleaseNodes.initiated.value] [ProcessType.MARKET_LIST_RELEASE.value]: [MarketListReleaseNodes.initiated.value]
}, },
disableMixinCreated: true disableMixinCreated: true
@@ -239,7 +239,7 @@ export default {
case '3': case '3':
path = '/workCenter/RegulatoryComplianceCheckProcess' path = '/workCenter/RegulatoryComplianceCheckProcess'
break break
// 市场清单发布流程 // 市场法规清单发布流程
case '4': case '4':
path = '/workCenter/MarketListReleaseProcess' path = '/workCenter/MarketListReleaseProcess'
break break
@@ -106,8 +106,8 @@
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div> <div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
<a-form :form="approvalInfoForm"> <a-form :form="approvalInfoForm">
<!--备注--> <!--备注-->
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('remarks')" :colon="formItemColon"> <a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('handlingSuggestions')" :colon="formItemColon">
<a-textarea :placeholder="isLook ? '' : $t('pleaseEnter') + $t('remarks')" <a-textarea :placeholder="isLook ? '' : $t('pleaseEnter') + $t('handlingSuggestions')"
:maxLength="500" :maxLength="500"
:rows="4" :rows="4"
:disabled="isLook" :disabled="isLook"
@@ -391,7 +391,7 @@ export default {
}, },
handleText: { handleText: {
rules: [ rules: [
{ required: false, message: this.$t('pleaseEnter') + this.$t('remarks') } { required: false, message: this.$t('pleaseEnter') + this.$t('handlingSuggestions') }
], ],
validateTrigger: 'blur' validateTrigger: 'blur'
} }
@@ -748,7 +748,7 @@ export default {
if (this.loading) return if (this.loading) return
this.validatorRules.handleText.rules[0].required = true this.validatorRules.handleText.rules[0].required = true
if (!this.approvalInfoForm.getFieldValue('handleText')) { if (!this.approvalInfoForm.getFieldValue('handleText')) {
this.$message.warning(this.$t('pleaseEnterRemarks')) this.$message.warning(this.$t('pleaseHandlingSuggestions'))
this.switchValue = 'base' this.switchValue = 'base'
} }
this.$nextTick(() => { this.$nextTick(() => {
@@ -7,7 +7,7 @@
<div class="form-flex-box"> <div class="form-flex-box">
<!-- 排查任务是否下发 --> <!-- 排查任务是否下发 -->
<div class="box-title-text form-flex-item"> <div class="box-title-text form-flex-item">
<div class="title-text"> <div class="title-text title-text-long">
<span class="required">*</span> <span class="required">*</span>
<span class="title-text-text" :title="$t('workCenter.regulatoryComplianceCheckProcess.checkWhetherTheTaskIsDelivered')"> <span class="title-text-text" :title="$t('workCenter.regulatoryComplianceCheckProcess.checkWhetherTheTaskIsDelivered')">
{{ $t('workCenter.regulatoryComplianceCheckProcess.checkWhetherTheTaskIsDelivered') }} {{ $t('workCenter.regulatoryComplianceCheckProcess.checkWhetherTheTaskIsDelivered') }}
@@ -893,4 +893,7 @@ export default {
.form-add { .form-add {
margin-top: 20px; margin-top: 20px;
} }
.title-text-long {
width: 140px !important;
}
</style> </style>
@@ -90,8 +90,8 @@
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div> <div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
<a-form :form="approvalInfoForm"> <a-form :form="approvalInfoForm">
<!--备注--> <!--备注-->
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('remarks')" :colon="formItemColon"> <a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('handlingSuggestions')" :colon="formItemColon">
<a-textarea :placeholder="(disabled) ? '' : ($t('pleaseEnter') + $t('remarks'))" <a-textarea :placeholder="(disabled) ? '' : ($t('pleaseEnter') + $t('handlingSuggestions'))"
:maxLength="500" :maxLength="500"
:rows="4" :rows="4"
:disabled="disabled" :disabled="disabled"
@@ -231,7 +231,7 @@ export default {
validateTrigger: 'blur' validateTrigger: 'blur'
}, },
commitText: { commitText: {
rules: [{ required: false, message: this.$t('pleaseEnter') + this.$t('remarks') }], rules: [{ required: false, message: this.$t('pleaseEnter') + this.$t('handlingSuggestions') }],
validateTrigger: 'blur' validateTrigger: 'blur'
} }
}, },
@@ -740,7 +740,7 @@ export default {
}) })
// 驳回需要填写备注 // 驳回需要填写备注
if (!this.approvalInfoForm.getFieldValue('commitText')) { if (!this.approvalInfoForm.getFieldValue('commitText')) {
this.$message.warn(this.$t('pleaseEnterRemarks')) this.$message.warn(this.$t('pleaseHandlingSuggestions'))
return return
} }
this.loading = true this.loading = true