[update 标准解读流程] 解读
This commit is contained in:
@@ -79,7 +79,43 @@ module.exports = {
|
||||
pleaseAddStandard: 'Please add a standard',
|
||||
mainInterpreter: 'Main Interpreter',
|
||||
interpretingTasksIsDistribute: 'Is the interpretation task issued',
|
||||
departInterpretingPeople: 'Interpreters from various departments involved'
|
||||
departInterpretingPeople: 'Interpreters from various departments involved',
|
||||
batchSelectionUser: 'Batch selection of personnel',
|
||||
pleaseSelectTheNextStep: 'Please select the next step',
|
||||
translation: 'Translation',
|
||||
sameAsPreviousVersion: 'Is it the same as the previous version',
|
||||
explanationOfChangePoints: 'Explanation of changes compared to the previous version',
|
||||
professionalField: 'Professional field',
|
||||
newCertificationImplementationDate: 'Implementation date of new certified vehicle',
|
||||
newProduceImplementationDate: 'Implementation date of new production vehicles',
|
||||
registrationDate: 'Registration date',
|
||||
regulatoryAnnotations: 'Regulatory Annotations',
|
||||
involvingSystemsComponents: 'Involving systems/components',
|
||||
keyController: 'Key controller',
|
||||
responsibleDepartment: 'Responsible department',
|
||||
responsibleDepartmentModule: 'Responsible department professional module',
|
||||
relatedDepartments: 'Related departments',
|
||||
relatedDepartmentsModule: 'Related department professional module',
|
||||
applications: 'Applications',
|
||||
powerType: 'Power Type',
|
||||
enterpriseStandards: 'Enterprise standards',
|
||||
technicalSpecificationsDesignGuidelines: 'Technical specifications/design guidelines',
|
||||
drawingTemplate: 'Drawing template',
|
||||
technicalAgreementTemplate: 'Technical Agreement Template',
|
||||
verificationReportTemplate: 'Verification report template/checklist',
|
||||
dvpTemplate: 'DVP template',
|
||||
dfema: 'DFEMA',
|
||||
specialListTemplate: 'Special List Template',
|
||||
otherFilesOrTemplates: 'Other files or templates',
|
||||
investigationStage: 'Investigation stage',
|
||||
pThree: 'P3 Name of deliverables proving compliance',
|
||||
pFive: 'P5 Name of deliverables proving compliance',
|
||||
notes: 'notes',
|
||||
configurationRequirements: 'Configuration requirements',
|
||||
countersigningPerson: 'Countersigning personnel',
|
||||
reviewersPerson: 'Reviewer',
|
||||
approvedPerson: 'Approved personnel',
|
||||
batchEdit: 'Bulk edit'
|
||||
},
|
||||
// 流程配置
|
||||
processConfig: {
|
||||
|
||||
@@ -82,7 +82,40 @@ module.exports = {
|
||||
departInterpretingPeople: '各涉及部门解读人',
|
||||
batchSelectionUser: '批量选择人员',
|
||||
pleaseSelectTheNextStep: '请选择下一步',
|
||||
|
||||
translation: '译文',
|
||||
sameAsPreviousVersion: '是否与上一版相同',
|
||||
explanationOfChangePoints: '相对上一版变化点说明',
|
||||
professionalField: '专业领域',
|
||||
newCertificationImplementationDate: '新认证车实施日期',
|
||||
newProduceImplementationDate: '新生产车实施日期',
|
||||
registrationDate: '注册日期',
|
||||
regulatoryAnnotations: '法规注解',
|
||||
involvingSystemsComponents: '涉及系统/部件',
|
||||
keyController: '关键控制器',
|
||||
responsibleDepartment: '责任部门',
|
||||
responsibleDepartmentModule: '责任部门专业模块',
|
||||
relatedDepartments: '关联部门',
|
||||
relatedDepartmentsModule: '关联部门专业模块',
|
||||
applications: '适用车型',
|
||||
powerType: '动力类型',
|
||||
enterpriseStandards: '企业标准',
|
||||
technicalSpecificationsDesignGuidelines: '技术规范/设计指南',
|
||||
drawingTemplate: '图纸模板',
|
||||
technicalAgreementTemplate: '技术协议模板',
|
||||
verificationReportTemplate: '校核报告模板/checklist',
|
||||
dvpTemplate: 'DVP模板',
|
||||
dfema: 'DFEMA',
|
||||
specialListTemplate: '特殊性清单模板',
|
||||
otherFilesOrTemplates: '其他文件或模板',
|
||||
investigationStage: '排查阶段',
|
||||
pThree: 'P3证明符合性的交付物名称',
|
||||
pFive: 'P5证明符合性的交付物名称',
|
||||
notes: '备注',
|
||||
configurationRequirements: '配置需求',
|
||||
countersigningPerson: '会签人员',
|
||||
reviewersPerson: '审核人员',
|
||||
approvedPerson: '批准人员',
|
||||
batchEdit: '批量编辑'
|
||||
},
|
||||
// 流程配置
|
||||
processConfig: {
|
||||
|
||||
@@ -199,7 +199,7 @@ export const StandardInterpretationNodes = new EsEnums({
|
||||
initiated: { text: '法规工程师发起', value: 'regulatory_engineer_start', btn: ['save', 'submit'] },
|
||||
controlDepartLiaisonDistribution: { text: '主控部门联络人分发', value: 'contact_person_distribute', btn: ['transfer', 'save', 'submit'] },
|
||||
standardInterpreterDistribution: { text: '标准主解读人分发', value: 'master_interpret_distribute', btn: ['reject', 'transfer', 'save', 'submit'] },
|
||||
interpreterFillInfo: { text: '解读人填写信息', value: 'master_interpret_fillout', btn: ['reject', 'transfer', 'save', 'submit'] },
|
||||
interpreterFillInfo: { text: '解读人填写信息', value: 'interpreting_people_fillout', btn: ['reject', 'transfer', 'save', 'submit'] },
|
||||
standardInterpreterSummary: { text: '标准主解读人汇总', value: 'master_interpret_summary', btn: ['transfer', 'save', 'submit'] },
|
||||
countersignOne: { text: '会签', value: 'jointly_sign_1', btn: ['reject', 'transfer', 'save', 'submit'] },
|
||||
countersignTwo: { text: '会签', value: 'jointly_sign_2', btn: ['reject', 'transfer', 'save', 'submit'] },
|
||||
|
||||
+14
-2
@@ -70,7 +70,9 @@
|
||||
<!-- 主解读人分发 -->
|
||||
<interpretation-main-interpreter-distribute v-if="currentNodeId === StandardInterpretationNodes.standardInterpreterDistribution.value"
|
||||
:disabled="disabled" ref="businessComp"/>
|
||||
|
||||
<!-- 解读人填写解读信息 -->
|
||||
<interpretation-interpreter-fill-info v-if="currentNodeId === StandardInterpretationNodes.interpreterFillInfo.value"
|
||||
:disabled="disabled" ref="businessComp"/>
|
||||
<!-- 流程审批信息 -->
|
||||
<div class="process-part-title">{{ $t('processApprovalInformation') }}</div>
|
||||
<a-form :form="approvalInfoForm">
|
||||
@@ -134,11 +136,13 @@ import InterpretationLiaisonDistribute
|
||||
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute'
|
||||
import InterpretationMainInterpreterDistribute
|
||||
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute'
|
||||
import InterpretationInterpreterFillInfo
|
||||
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationInterpreterFillInfo'
|
||||
|
||||
const tabList = ['base', 'user']
|
||||
export default {
|
||||
name: 'StandardInterpretationProcess',
|
||||
components: { InterpretationMainInterpreterDistribute, InterpretationLiaisonDistribute, UserSelectModal, InterpretationInitiate, PersonnelInfo, InternalDetailPage, ProcessDetailList },
|
||||
components: { InterpretationInterpreterFillInfo, InterpretationMainInterpreterDistribute, InterpretationLiaisonDistribute, UserSelectModal, InterpretationInitiate, PersonnelInfo, InternalDetailPage, ProcessDetailList },
|
||||
mixins: [WorkCenterMixin],
|
||||
data () {
|
||||
return {
|
||||
@@ -388,6 +392,14 @@ export default {
|
||||
})
|
||||
// 条款列表
|
||||
params.data.processStandardInterpretClauseList = compData.clauseData
|
||||
} else if (this.currentNodeId === StandardInterpretationNodes.interpreterFillInfo.value) {
|
||||
// 解读人填写节点
|
||||
params.data.processStandardInterpret = Object.assign({}, this.info.data.processStandardInterpret, compData.formData, {
|
||||
projectId: this.projectId
|
||||
})
|
||||
// 条款列表
|
||||
params.data.processStandardInterpretClauseList = []
|
||||
params.data.processStandardInterpretClauseSublistList = compData.clauseInterpretData
|
||||
}
|
||||
// 如果有校验失败的,那就报错
|
||||
if (flag) {
|
||||
|
||||
+390
@@ -0,0 +1,390 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-spin :spinning="loading">
|
||||
<div class="process-part-title">{{ $t('dispatchInformation') }}</div>
|
||||
<div v-if="!disabled" class="table-operator">
|
||||
<!-- 批量编辑 -->
|
||||
<a-button type="primary" ghost @click="handleBatchEdit">
|
||||
{{$t('workCenter.standardInterpretationProcess.batchEdit')}}
|
||||
</a-button>
|
||||
</div>
|
||||
<div class="table-container mb-20">
|
||||
<j-table
|
||||
:can-drag="true"
|
||||
:scroll="{x: '100%'}"
|
||||
ref="table"
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
@change="handleTableChange">
|
||||
<!--条文内容-->
|
||||
<template slot="item_content" slot-scope="{text, record}">
|
||||
<div class="table-text" style="cursor: pointer" v-if="text || text === 0" @click="showContent('item_content', text,record)">
|
||||
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
||||
</div>
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
<template v-slot:action="{text, record}">
|
||||
<a @click="handleEdit(record)" class="table-ope-btn">{{ $t('edit') }}</a>
|
||||
</template>
|
||||
</j-table>
|
||||
</div>
|
||||
</a-spin>
|
||||
<!-- 条款解读表单 -->
|
||||
<terms-interpret-modal ref="termsInterpretModal" @ok="handleEditCallback"/>
|
||||
<!--条文内容-->
|
||||
<split-clause-detail ref="splitClauseDetail" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import TermsInterpretModal from '@views/workCenter/standardInterpretationProcess/modules/TermsInterpretModal'
|
||||
import UserSelection from '@comp/selection/UserSelection'
|
||||
import SplitClauseDetail from '@views/documentTool/documentSplit/modules/SplitClauseDetail'
|
||||
import { filterObj } from '@/utils/util'
|
||||
export default {
|
||||
name: 'InterpretationInterpreterFillInfo',
|
||||
components: { SplitClauseDetail, UserSelection, TermsInterpretModal },
|
||||
props: {
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
// 条款解读表格
|
||||
columns: [
|
||||
{ // 标准编号/条款号
|
||||
title: this.$t('standardNumber') + '/' + this.$t('clauseNo'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'itemNum',
|
||||
fixed: 'left',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 标准名称/条款标题
|
||||
title: this.$t('standardName') + '/' + this.$t('clauseTitle'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'itemTitle',
|
||||
fixed: 'left',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 条款内容
|
||||
title: this.$t('clauseContent'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'itemContent',
|
||||
scopedSlots: { customRender: 'item_content' }
|
||||
},
|
||||
{ // 译文
|
||||
title: this.$t('workCenter.standardInterpretationProcess.translation'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'translation',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 是否与上一版相同
|
||||
title: this.$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'isSameAsPrevVersion_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 相对上一版变化点说明
|
||||
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: 'keywords',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 关键控制器
|
||||
title: this.$t('workCenter.standardInterpretationProcess.keyController'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'keyController',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 责任部门
|
||||
title: this.$t('workCenter.standardInterpretationProcess.responsibleDepartment'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'responsibleDepartment',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 责任部门专业模块
|
||||
title: this.$t('workCenter.standardInterpretationProcess.responsibleDepartmentModule'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'responsibleModule',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 关联部门
|
||||
title: this.$t('workCenter.standardInterpretationProcess.relatedDepartments'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'relatedDepartment',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 关联部门专业模块
|
||||
title: this.$t('workCenter.standardInterpretationProcess.relatedDepartmentsModule'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'relatedModule',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 适用车型
|
||||
title: this.$t('workCenter.standardInterpretationProcess.applications'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'applications',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 动力类型
|
||||
title: this.$t('workCenter.standardInterpretationProcess.powerType'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'powerType',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 专业领域
|
||||
title: this.$t('workCenter.standardInterpretationProcess.professionalField'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'domainArea',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 配置需求
|
||||
title: this.$t('workCenter.standardInterpretationProcess.configurationRequirements'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'configurationRequirements',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 新认证车实施日期
|
||||
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',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 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' }
|
||||
},
|
||||
{ // 操作
|
||||
title: this.$t('operation'),
|
||||
fixed: 'right',
|
||||
width: 150,
|
||||
scopedSlots: { customRender: 'action' }
|
||||
}
|
||||
],
|
||||
dataSource: [],
|
||||
/* 分页参数 */
|
||||
ipagination: {
|
||||
current: 1,
|
||||
pageSize: 50,
|
||||
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||
showTotal: (total, range) => {
|
||||
return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip')
|
||||
},
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
total: 0
|
||||
},
|
||||
selectedRowKeys: [],
|
||||
selectedRows: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 获取组件内的数据
|
||||
* @param isValidate - 是否需要校验
|
||||
*/
|
||||
getData (isValidate) {
|
||||
const obj = {}
|
||||
if (isValidate) {
|
||||
}
|
||||
obj.clauseInterpretData = this.dataSource
|
||||
return obj
|
||||
},
|
||||
// 更新组件内的数据
|
||||
setData (data) {
|
||||
console.log(data)
|
||||
this.dataSource = data.data.processStandardInterpretClauseSublistList || []
|
||||
},
|
||||
handleEdit (record) {
|
||||
this.$refs.termsInterpretModal.title = this.$t('workCenter.standardInterpretationProcess.batchEdit')
|
||||
this.$refs.termsInterpretModal.edit(record)
|
||||
},
|
||||
// 批量编辑
|
||||
handleBatchEdit () {
|
||||
// 至少勾选一条数据
|
||||
if (!this.selectedRowKeys.length) {
|
||||
this.$message.warning(this.$t('selectARecord'))
|
||||
return
|
||||
}
|
||||
this.$refs.termsInterpretModal.add()
|
||||
},
|
||||
// 表格编辑的回调函数
|
||||
handleEditCallback (formData) {
|
||||
console.log('编辑', formData)
|
||||
// 如果有id就是编辑,否则是批量编辑
|
||||
if (formData.id) {
|
||||
const row = this.dataSource.find(item => item.id === formData.id)
|
||||
Object.assign(row, filterObj(formData))
|
||||
} else {
|
||||
this.selectedRows.forEach(item => {
|
||||
Object.assign(item, filterObj(formData))
|
||||
})
|
||||
}
|
||||
},
|
||||
handleTableChange (pagination) {
|
||||
this.ipagination = pagination
|
||||
},
|
||||
/**
|
||||
* 显示条款内容、条文解读弹框
|
||||
* @param fieldName
|
||||
* @param val
|
||||
*/
|
||||
showContent (fieldName, val) {
|
||||
const title = (this.columns.find(tt => tt.dbFieldName === fieldName) || {}).dbFieldTxt
|
||||
if (title) {
|
||||
this.$refs.splitClauseDetail.title = title
|
||||
}
|
||||
this.$refs.splitClauseDetail.open(val)
|
||||
},
|
||||
// 表格选择改变
|
||||
onSelectChange (value, row) {
|
||||
this.selectedRowKeys = value
|
||||
this.selectedRows = row
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.mb-20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,198 @@
|
||||
<template>
|
||||
<a-drawer
|
||||
:title="title"
|
||||
:width="width"
|
||||
placement="right"
|
||||
:closable="true"
|
||||
@close="handleCancel"
|
||||
:visible="visible"
|
||||
:maskClosable="false"
|
||||
destroyOnClose
|
||||
class="custom-drawer-style"
|
||||
>
|
||||
<div class="custom-drawer-style-scroll">
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<a-form :form="form" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<!--译文-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.translation')" :colon="false">
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.translation')"
|
||||
:maxLength="500"
|
||||
:rows="4"
|
||||
:disabled="disabled"
|
||||
v-decorator="['translation']" />
|
||||
</a-form-item>
|
||||
<!--是否与上一版相同-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion')" :colon="false">
|
||||
<j-dict-select-tag dict-code="yn"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.sameAsPreviousVersion')"
|
||||
v-decorator="['isSameAsPrevVersion']"/>
|
||||
</a-form-item>
|
||||
<!--相对上一版变化点说明-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.explanationOfChangePoints')" :colon="false">
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.explanationOfChangePoints')"
|
||||
:maxLength="500"
|
||||
:rows="4"
|
||||
:disabled="disabled"
|
||||
v-decorator="['changeDescription']" />
|
||||
</a-form-item>
|
||||
<!--法规注解-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['regulatoryNotes']"/>
|
||||
</a-form-item>
|
||||
<!--图纸模板-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.drawingTemplate')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['drawingTemplate']"/>
|
||||
</a-form-item>
|
||||
<!--技术协议模板-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.technicalAgreementTemplate')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['technicalAgreementTemplate']"/>
|
||||
</a-form-item>
|
||||
<!--校核报告模板/checklist-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.verificationReportTemplate')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['verificationReportTemplateChecklist']"/>
|
||||
</a-form-item>
|
||||
<!--DVP模板-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.dvpTemplate')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['dvpTemplate']"/>
|
||||
</a-form-item>
|
||||
<!--DFEMA-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.dfema')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['dfema']"/>
|
||||
</a-form-item>
|
||||
<!--特殊性清单模板-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.specialListTemplate')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['keyTechnologyDecompositionTable']"/>
|
||||
</a-form-item>
|
||||
<!--其他文件或模板-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.otherFilesOrTemplates')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['otherDocumentsTemplates']"/>
|
||||
</a-form-item>
|
||||
<!--排查阶段-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.investigationStage')" :colon="false">
|
||||
<j-dict-select-tag dict-code="investigation_stage"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseSelect')+$t('workCenter.standardInterpretationProcess.investigationStage')"
|
||||
v-decorator="['investigationStage']"/>
|
||||
</a-form-item>
|
||||
<!--P3证明符合性的交付物名称-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.pThree')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['p3']"/>
|
||||
</a-form-item>
|
||||
<!--P5证明符合性的交付物名称-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.pFive')" :colon="false">
|
||||
<a-input :max-length="50"
|
||||
:disabled="disabled"
|
||||
:placeholder="$t('pleaseEnter')+$t('workCenter.standardInterpretationProcess.regulatoryAnnotations')"
|
||||
v-decorator="['p5']"/>
|
||||
</a-form-item>
|
||||
<!--备注-->
|
||||
<a-form-item :label="$t('workCenter.standardInterpretationProcess.notes')" :colon="false">
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('workCenter.standardInterpretationProcess.notes')"
|
||||
:maxLength="500"
|
||||
:rows="4"
|
||||
:disabled="disabled"
|
||||
v-decorator="['remarks']" />
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-spin>
|
||||
</div>
|
||||
|
||||
<div class="custom-drawer-style-bottom-btn">
|
||||
<a-button @click="handleCancel">{{ $t('cancel') }}</a-button>
|
||||
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{ $t('submit') }}</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'TermsInterpretModal',
|
||||
data () {
|
||||
return {
|
||||
title: this.$t('close'),
|
||||
width: 900,
|
||||
disabled: false,
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
form: this.$form.createForm(this),
|
||||
model: {},
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 4 }
|
||||
},
|
||||
wrapperCol: {
|
||||
xs: { span: 24 },
|
||||
sm: { span: 20 }
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
add () {
|
||||
this.edit()
|
||||
},
|
||||
edit (record) {
|
||||
this.form.resetFields()
|
||||
this.model = Object.assign({}, record)
|
||||
this.visible = true
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(this.model)
|
||||
})
|
||||
},
|
||||
close () {
|
||||
this.visible = false
|
||||
},
|
||||
handleSubmit () {
|
||||
this.form.validateFields((err, values) => {
|
||||
if (!err) {
|
||||
const formData = Object.assign(this.model, values)
|
||||
this.$emit('ok', formData)
|
||||
this.close()
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCancel () {
|
||||
this.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@import '~@assets/less/common.less';
|
||||
.custom-drawer-style-scroll {
|
||||
/deep/ .ant-form-item-label {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding-right: 8px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user