Merge branch '2024-09-10' into 20240913
This commit is contained in:
@@ -52,6 +52,7 @@ module.exports = {
|
||||
termNo: 'Article No.',
|
||||
termTitle: 'Article Title',
|
||||
termContent: 'Article Content',
|
||||
translation: 'Translation',
|
||||
applicableComponents: 'Applicable Components',
|
||||
newProduceVehiclesImplementationDate: 'New Certified Vehicle Implementation Date',
|
||||
newAuthVehiclesImplementationDate: 'New Production Vehicle Implementation Date',
|
||||
|
||||
@@ -52,6 +52,7 @@ module.exports = {
|
||||
termNo: '条款号',
|
||||
termTitle: '条款标题',
|
||||
termContent: '条款内容',
|
||||
translation: '译文',
|
||||
applicableComponents: '适用零部件',
|
||||
newProduceVehiclesImplementationDate: '新生产车实施日期',
|
||||
newAuthVehiclesImplementationDate: '新认证车实施日期',
|
||||
|
||||
@@ -13,6 +13,7 @@ module.exports = {
|
||||
clauseContent: 'Article Content',
|
||||
modelStatus: 'Developing Status',
|
||||
theStatusNotMeetRequirements: 'Unsatisfied Description',
|
||||
supplementaryExplanatoryMaterial: 'Supplementary explanatory material',
|
||||
rectificationPlan: 'Rectification Plan',
|
||||
rectificationCycle: 'Rectification Time',
|
||||
rectificationCost: 'Rectification Costs',
|
||||
@@ -32,6 +33,7 @@ module.exports = {
|
||||
problemType: 'Evaluation Results',
|
||||
rectificationCompletionDate: 'Completion Date of Rectification',
|
||||
theStatusNotMeetRequirements: 'Unsatisfied Description',
|
||||
supplementaryExplanatoryMaterial: 'Supplementary explanatory material',
|
||||
rectificationPlan: 'Rectification Plan',
|
||||
rectificationCycle: 'Rectification Time',
|
||||
rectificationCost: 'Rectification Costs',
|
||||
|
||||
@@ -13,6 +13,7 @@ module.exports = {
|
||||
clauseContent: '条款内容',
|
||||
modelStatus: '车型状态',
|
||||
theStatusNotMeetRequirements: '不满足要求的现状',
|
||||
supplementaryExplanatoryMaterial: '辅助说明材料',
|
||||
rectificationPlan: '整改方案',
|
||||
rectificationCycle: '整改周期',
|
||||
rectificationCost: '整改费用',
|
||||
@@ -32,6 +33,7 @@ module.exports = {
|
||||
problemType: '问题类型',
|
||||
rectificationCompletionDate: '整改完成日期',
|
||||
theStatusNotMeetRequirements: '不满足要求的现状',
|
||||
supplementaryExplanatoryMaterial: '辅助说明材料',
|
||||
rectificationPlan: '整改方案',
|
||||
rectificationCycle: '整改周期',
|
||||
rectificationCost: '整改费用',
|
||||
|
||||
@@ -43,6 +43,7 @@ module.exports = {
|
||||
approvingOfficer: 'Approving officer',
|
||||
evaluationResult: 'Evaluation Result',
|
||||
theStatusNotMeetRequirements: 'Unsatisfied Description',
|
||||
supplementaryExplanatoryMaterial: 'Supplementary explanatory material',
|
||||
rectificationPlan: 'Rectification Plan',
|
||||
rectificationCycle: 'Rectification Time',
|
||||
rectificationCost: 'Rectification Costs',
|
||||
|
||||
@@ -43,6 +43,7 @@ module.exports = {
|
||||
approvingOfficer: '批准人员',
|
||||
evaluationResult: '评估结果',
|
||||
theStatusNotMeetRequirements: '不满足要求的现状',
|
||||
supplementaryExplanatoryMaterial: '辅助说明材料',
|
||||
rectificationPlan: '整改方案',
|
||||
rectificationCycle: '整改周期',
|
||||
rectificationCost: '整改费用',
|
||||
|
||||
@@ -211,6 +211,13 @@
|
||||
</div>
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
<!--译文-->
|
||||
<template slot="translation" slot-scope="{text, record}">
|
||||
<div style="cursor: pointer;" class="table-text" v-if="text || text === 0" @click="showContent(text,record)">
|
||||
{{ text && text !== 'null' ? text.replace(/<.*?>/ig, ' ') : '' }}
|
||||
</div>
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
</j-table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -394,6 +401,13 @@ export default {
|
||||
dataIndex: 'item_content',
|
||||
scopedSlots: { customRender: 'item_content' }
|
||||
},
|
||||
{ // 译文
|
||||
title: this.$t('dashboard.advancedSearch.translation'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'translation',
|
||||
scopedSlots: { customRender: 'translation' }
|
||||
},
|
||||
// { // 适用零部件
|
||||
// title: this.$t('dashboard.advancedSearch.applicableComponents'),
|
||||
// align: 'center',
|
||||
|
||||
+6
-1
@@ -18,6 +18,11 @@
|
||||
:placeholder="$t('pleaseEnter')+$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.theStatusNotMeetRequirements')"
|
||||
v-decorator.trim="[ 'unsatisfiedRequire']"/>
|
||||
</a-form-item>
|
||||
<!-- 辅助说明材料 -->
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.supplementaryExplanatoryMaterial')">
|
||||
<j-upload disabled
|
||||
v-decorator.trim="[ 'unsatisfiedRequireAttach']"/>
|
||||
</a-form-item>
|
||||
<!-- 整改方案 -->
|
||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('regulatoryComplianceAssessmentDatabase.nonmatchItem.rectificationPlan')">
|
||||
<a-input :max-length="50"
|
||||
@@ -87,7 +92,7 @@ export default {
|
||||
this.form.resetFields()
|
||||
this.model = Object.assign({}, record)
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(this.model, 'unsatisfiedRequire', 'correctionSolution', 'correctionPeriod',
|
||||
this.form.setFieldsValue(pick(this.model, 'unsatisfiedRequire', 'unsatisfiedRequireAttach', 'correctionSolution', 'correctionPeriod',
|
||||
'correctionCost', 'commonality', 'commonalityCost'))
|
||||
})
|
||||
},
|
||||
|
||||
+17
-3
@@ -111,9 +111,15 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!-- 辅助说明材料 -->
|
||||
<template v-slot:unsatisfiedRequireAttach="text, record">
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'unsatisfiedRequireAttach')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 佐证材料 -->
|
||||
<template v-slot:material="text, record">
|
||||
<a v-if="text" class="link-a" @click="handleMaterialClick(record)">{{ $t('view') }}</a>
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'material')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
</a-table>
|
||||
@@ -208,6 +214,13 @@ export default {
|
||||
dataIndex: 'unsatisfiedRequire',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.supplementaryExplanatoryMaterial'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'unsatisfiedRequireAttach',
|
||||
scopedSlots: { customRender: 'unsatisfiedRequireAttach' }
|
||||
},
|
||||
{ // 整改方案
|
||||
title: this.$t('regulatoryComplianceAssessmentDatabase.assessmentLibrary.rectificationPlan'),
|
||||
align: 'center',
|
||||
@@ -298,8 +311,9 @@ export default {
|
||||
const text = option.componentOptions.propsData.title || option.componentOptions.propsData.label
|
||||
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||
},
|
||||
handleMaterialClick (record) {
|
||||
this.$refs.uploadFile.open(record.material)
|
||||
// 列表中的附件查看
|
||||
handleFileClick (record, fieldName) {
|
||||
this.$refs.uploadFile.open(record[fieldName])
|
||||
},
|
||||
handleCancel () {
|
||||
this.close()
|
||||
|
||||
@@ -113,6 +113,15 @@
|
||||
placeholder=""/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- 附件 -->
|
||||
<a-col :span="24">
|
||||
<a-form-item
|
||||
:labelCol="$i18n.locale === EN ? longLabelColEn : longLabelCol"
|
||||
:wrapperCol="$i18n.locale === EN ? longWrapperColEn : longWrapperCol"
|
||||
:label="$t('attach')" :colon="formItemColon">
|
||||
<j-upload v-decorator="['file']" disabled />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</template>
|
||||
</a-row>
|
||||
</a-form>
|
||||
@@ -202,10 +211,12 @@ import pick from 'lodash.pick'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import { getFormDictTreeList } from '../../../api/api'
|
||||
import STreeSelect from '../../../components/STreeSelect'
|
||||
import FileEcho from '../../../components/FileEcho'
|
||||
|
||||
export default {
|
||||
name: 'MarketListReleaseProcess',
|
||||
components: {
|
||||
FileEcho,
|
||||
BaseInfoForm,
|
||||
InternalDetailPage,
|
||||
ProcessDetailList,
|
||||
@@ -398,7 +409,9 @@ export default {
|
||||
processInfo.country = this.model.businessInfoDTO.country.split(',').map(item => {
|
||||
return { value: item }
|
||||
})
|
||||
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc'))
|
||||
// 附件
|
||||
processInfo.file = this.model.businessInfoDTO.file
|
||||
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc', 'file'))
|
||||
}
|
||||
}
|
||||
// 有草稿json按草稿进来的回显
|
||||
@@ -419,7 +432,9 @@ export default {
|
||||
processInfo.country = this.draftModel.businessInfoDTO.country.split(',').map(item => {
|
||||
return { value: item }
|
||||
})
|
||||
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc'))
|
||||
// 附件
|
||||
processInfo.file = this.draftModel.businessInfoDTO.file
|
||||
this.processInfoForm.setFieldsValue(pick(processInfo, 'processName', 'processDueDate', 'processDescription', 'manifestNo', 'manifestName', 'country', 'manifestDesc', 'file'))
|
||||
}
|
||||
// 初始化流程审批信息
|
||||
this.approvalInfoForm.setFieldsValue(pick(this.draftModel.basicTaskInfoDTO, 'handleText', 'handleFile'))
|
||||
|
||||
@@ -71,6 +71,20 @@
|
||||
:placeholder="disabled ? '' : $t('autoTakeout')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 附件 -->
|
||||
<div class="box-title-text form-flex-item form-flex-item-half form-flex-item-all">
|
||||
<div class="title-text title-text-long">
|
||||
<span class="title-text-text" :title="$t('attach')">
|
||||
{{ $t('attach') }}
|
||||
</span>
|
||||
</div>
|
||||
<a-form-model-item class="item-model" prop="file">
|
||||
<j-upload v-model="formInline.file"
|
||||
return-id
|
||||
multiple
|
||||
disabled/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</div>
|
||||
</a-form-model>
|
||||
|
||||
@@ -347,6 +361,8 @@ export default {
|
||||
formInline.manifestName = result.manifestName
|
||||
// 清单说明
|
||||
formInline.manifestDesc = result.manifestDesc
|
||||
// 附件
|
||||
formInline.file = result.file
|
||||
// 版本号
|
||||
formInline.manifestVersion = result.manifestVersion
|
||||
// 国家/地区
|
||||
@@ -458,6 +474,8 @@ export default {
|
||||
formInline.manifestName = result.manifestName
|
||||
// 清单说明
|
||||
formInline.manifestDesc = result.manifestDesc
|
||||
// 清单说明
|
||||
formInline.file = result.file
|
||||
// 版本号
|
||||
formInline.manifestVersion = result.manifestVersion
|
||||
// 国家/地区
|
||||
|
||||
+61
-36
@@ -50,6 +50,7 @@
|
||||
<script>
|
||||
import JExpandTable from '@/components/JExpandTable'
|
||||
import SplitClauseDetail from '../../../documentTool/documentSplit/modules/SplitClauseDetail'
|
||||
import { EvaluationResult } from '../../../../enums/commonEnums'
|
||||
|
||||
export default {
|
||||
name: 'DesignEngineerEvaluation',
|
||||
@@ -152,12 +153,32 @@ export default {
|
||||
commonalityCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'), trigger: 'blur' },
|
||||
// 不满足要求的现状
|
||||
unsatisfiedRequire: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'), trigger: 'blur' },
|
||||
// 辅助说明材料
|
||||
unsatisfiedRequireAttach: { required: false, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'), trigger: 'change' },
|
||||
// 整改方案
|
||||
correctionSolution: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'), trigger: 'blur' },
|
||||
// 与其他项目共用性
|
||||
commonality: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'), trigger: 'blur' }
|
||||
},
|
||||
formArr: [
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
fieldShowType: 2,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'),
|
||||
fieldMustInput: false,
|
||||
dbFieldName: 'unsatisfiedRequireAttach'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 整改周期
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||
@@ -170,29 +191,17 @@ export default {
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionCost'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
},
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 与其他项目共用性
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonality'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -226,12 +235,32 @@ export default {
|
||||
commonalityCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'), trigger: 'blur' },
|
||||
// 不满足要求的现状
|
||||
unsatisfiedRequire: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'), trigger: 'blur' },
|
||||
// 辅助说明材料
|
||||
unsatisfiedRequireAttach: { required: false, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'), trigger: 'change' },
|
||||
// 整改方案
|
||||
correctionSolution: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'), trigger: 'blur' },
|
||||
// 与其他项目共用性
|
||||
commonality: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'), trigger: 'blur' }
|
||||
},
|
||||
formArr: [
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
fieldShowType: 2,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'),
|
||||
fieldMustInput: false,
|
||||
dbFieldName: 'unsatisfiedRequireAttach'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 整改周期
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||
@@ -244,29 +273,17 @@ export default {
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionCost'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
},
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 与其他项目共用性
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonality'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -318,6 +335,14 @@ export default {
|
||||
},
|
||||
// 评估结果改变,清空备注和佐证材料,不满足要求的现状,整改方案,整改周期,整改费用,与其他项目共用性,共用后本项目所需费用
|
||||
resultChange (record) {
|
||||
if ([EvaluationResult.INCONFORMITY.value, EvaluationResult.TO_BE_VERIFIED.value].includes(record.result)) {
|
||||
// 选中的是不符合或者待验证自动展开扩展区
|
||||
const rowKey = this.$refs.expandTable.rowKey
|
||||
if (!this.$refs.expandTable.expandedRowKeys.includes(record[rowKey])) {
|
||||
// 表格展开中没有该列,加到展开项中
|
||||
this.$refs.expandTable.expandedRowKeys.push(record[rowKey])
|
||||
}
|
||||
}
|
||||
const index = this.dataSource.findIndex(item => item.id === record.id)
|
||||
this.dataSource[index].remark = ''
|
||||
this.dataSource[index].material = ''
|
||||
|
||||
+16
-3
@@ -24,9 +24,15 @@
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 辅助说明材料 -->
|
||||
<template v-slot:unsatisfiedRequireAttach="{text, record}">
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'unsatisfiedRequireAttach')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 佐证材料 -->
|
||||
<template v-slot:material="{text, record}">
|
||||
<a v-if="text" class="link-a" @click="handleMaterialClick(record)">{{ $t('view') }}</a>
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'material')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
@@ -132,6 +138,13 @@ export default {
|
||||
dataIndex: 'unsatisfiedRequire',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'unsatisfiedRequireAttach',
|
||||
scopedSlots: { customRender: 'unsatisfiedRequireAttach' }
|
||||
},
|
||||
{ // 整改方案
|
||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
align: 'center',
|
||||
@@ -209,8 +222,8 @@ export default {
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
return data
|
||||
},
|
||||
handleMaterialClick (record) {
|
||||
this.$refs.uploadFile.open(record.material)
|
||||
handleFileClick (record, fieldName) {
|
||||
this.$refs.uploadFile.open(record[fieldName])
|
||||
},
|
||||
handleTableChange (pagination, filters, sorter) {
|
||||
// 分页、排序、筛选变化时触发
|
||||
|
||||
+16
-3
@@ -31,9 +31,15 @@
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 辅助说明材料 -->
|
||||
<template v-slot:unsatisfiedRequireAttach="{text, record}">
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'unsatisfiedRequireAttach')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 佐证材料 -->
|
||||
<template v-slot:material="{text, record}">
|
||||
<a v-if="text" class="link-a" @click="handleMaterialClick(record)">{{ $t('view') }}</a>
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'material')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
@@ -223,6 +229,13 @@ export default {
|
||||
dataIndex: 'unsatisfiedRequire',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'unsatisfiedRequireAttach',
|
||||
scopedSlots: { customRender: 'unsatisfiedRequireAttach' }
|
||||
},
|
||||
{ // 整改方案
|
||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
align: 'center',
|
||||
@@ -345,8 +358,8 @@ export default {
|
||||
handleTableChange (pagination) {
|
||||
this.ipagination = pagination
|
||||
},
|
||||
handleMaterialClick (record) {
|
||||
this.$refs.uploadFile.open(record.material)
|
||||
handleFileClick (record, fieldName) {
|
||||
this.$refs.uploadFile.open(record[fieldName])
|
||||
},
|
||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||
if (!fileName || typeof fileName !== 'string') {
|
||||
|
||||
+61
-36
@@ -198,6 +198,7 @@ import { ACCESS_TOKEN, TENANT_ID } from '@/store/mutation-types'
|
||||
import store from '@/store'
|
||||
import { downFile } from '../../../../api/manage'
|
||||
import SplitClauseDetail from '../../../documentTool/documentSplit/modules/SplitClauseDetail'
|
||||
import { EvaluationResult } from '../../../../enums/commonEnums'
|
||||
|
||||
// 导入的加载提示
|
||||
let importModalLoading
|
||||
@@ -428,12 +429,32 @@ export default {
|
||||
commonalityCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'), trigger: 'blur' },
|
||||
// 不满足要求的现状
|
||||
unsatisfiedRequire: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'), trigger: 'blur' },
|
||||
// 辅助说明材料
|
||||
unsatisfiedRequireAttach: { required: false, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'), trigger: 'change' },
|
||||
// 整改方案
|
||||
correctionSolution: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'), trigger: 'blur' },
|
||||
// 与其他项目共用性
|
||||
commonality: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'), trigger: 'blur' }
|
||||
},
|
||||
formArr: [
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
fieldShowType: 2,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequireAttach'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 整改周期
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||
@@ -446,29 +467,17 @@ export default {
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionCost'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
},
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 与其他项目共用性
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonality'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -502,12 +511,32 @@ export default {
|
||||
commonalityCost: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'), trigger: 'blur' },
|
||||
// 不满足要求的现状
|
||||
unsatisfiedRequire: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'), trigger: 'blur' },
|
||||
// 辅助说明材料
|
||||
unsatisfiedRequireAttach: { required: false, message: this.$t('pleaseSelect') + this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'), trigger: 'change' },
|
||||
// 整改方案
|
||||
correctionSolution: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'), trigger: 'blur' },
|
||||
// 与其他项目共用性
|
||||
commonality: { required: true, message: this.$t('pleaseEnter') + this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'), trigger: 'blur' }
|
||||
},
|
||||
formArr: [
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
fieldShowType: 2,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'),
|
||||
fieldMustInput: false,
|
||||
dbFieldName: 'unsatisfiedRequireAttach'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 整改周期
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationCycle'),
|
||||
@@ -520,29 +549,17 @@ export default {
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionCost'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
},
|
||||
{ // 不满足要求的现状
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.theStatusNotMeetRequirements'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'unsatisfiedRequire'
|
||||
},
|
||||
{ // 整改方案
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'correctionSolution'
|
||||
},
|
||||
{ // 与其他项目共用性
|
||||
fieldShowType: 1,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.sharedWithOtherProjects'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonality'
|
||||
},
|
||||
{ // 共用后本项目所需费用
|
||||
fieldShowType: 4,
|
||||
dbFieldTxt: this.$t('workCenter.regulatoryComplianceCheckProcess.costOfThisItemAfterSharing'),
|
||||
fieldMustInput: true,
|
||||
dbFieldName: 'commonalityCost'
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -702,6 +719,14 @@ export default {
|
||||
},
|
||||
// 评估结果改变,清空备注和佐证材料,不满足要求的现状,整改方案,整改周期,整改费用,与其他项目共用性,共用后本项目所需费用
|
||||
resultChange (record) {
|
||||
if ([EvaluationResult.INCONFORMITY.value, EvaluationResult.TO_BE_VERIFIED.value].includes(record.result)) {
|
||||
// 选中的是不符合或者待验证自动展开扩展区
|
||||
const rowKey = this.$refs.expandTable.rowKey
|
||||
if (!this.$refs.expandTable.expandedRowKeys.includes(record[rowKey])) {
|
||||
// 表格展开中没有该列,加到展开项中
|
||||
this.$refs.expandTable.expandedRowKeys.push(record[rowKey])
|
||||
}
|
||||
}
|
||||
const index = this.dataSourceEvaluate.findIndex(item => item.id === record.id)
|
||||
this.dataSourceEvaluate[index].remark = ''
|
||||
this.dataSourceEvaluate[index].material = ''
|
||||
|
||||
+16
-3
@@ -24,9 +24,15 @@
|
||||
<div class="table-text" v-else>{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 辅助说明材料 -->
|
||||
<template v-slot:unsatisfiedRequireAttach="{text, record}">
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'unsatisfiedRequireAttach')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
<!-- 佐证材料 -->
|
||||
<template v-slot:material="{text, record}">
|
||||
<a v-if="text" class="link-a" @click="handleMaterialClick(record)">{{ $t('view') }}</a>
|
||||
<a v-if="text" class="link-a" @click="handleFileClick(record, 'material')">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
|
||||
@@ -146,6 +152,13 @@ export default {
|
||||
dataIndex: 'unsatisfiedRequire',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 辅助说明材料
|
||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.supplementaryExplanatoryMaterial'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'unsatisfiedRequireAttach',
|
||||
scopedSlots: { customRender: 'unsatisfiedRequireAttach' }
|
||||
},
|
||||
{ // 整改方案
|
||||
title: this.$t('workCenter.regulatoryComplianceCheckProcess.rectificationPlan'),
|
||||
align: 'center',
|
||||
@@ -226,8 +239,8 @@ export default {
|
||||
handleTableChange (pagination) {
|
||||
this.ipagination = pagination
|
||||
},
|
||||
handleMaterialClick (record) {
|
||||
this.$refs.uploadFile.open(record.material)
|
||||
handleFileClick (record, fieldName) {
|
||||
this.$refs.uploadFile.open(record[fieldName])
|
||||
},
|
||||
// 显示条款内容弹框
|
||||
showContent (val) {
|
||||
|
||||
Reference in New Issue
Block a user