[update] 国内标准新车型实施日期备注和在产车实施日期备注,修改新车型实施日期和在产车实施日期时同步更新这两个字段
This commit is contained in:
@@ -94,6 +94,13 @@ const warningColumns = [
|
||||
dataIndex: 'newModelImplementationDate',
|
||||
width: 100,
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: '新车型实施日期备注',
|
||||
align: 'left',
|
||||
dataIndex: 'newModelImplementationDateRemarks',
|
||||
width: 140,
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}
|
||||
]
|
||||
|
||||
@@ -182,6 +189,13 @@ export default {
|
||||
dataIndex: 'newModelImplementationDate',
|
||||
width: 100,
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{
|
||||
title: '新车型实施日期备注',
|
||||
align: 'left',
|
||||
dataIndex: 'newModelImplementationDateRemarks',
|
||||
width: 140,
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}
|
||||
],
|
||||
dataSource: [],
|
||||
@@ -257,10 +271,14 @@ export default {
|
||||
this.columns.splice(1, this.columns.length - 1, ...warningColumns)
|
||||
this.columns[4].title = '新车型实施日期'
|
||||
this.columns[4].dataIndex = 'newModelImplementationDate'
|
||||
this.columns[5].title = '新车型实施日期备注'
|
||||
this.columns[5].dataIndex = 'newModelImplementationDateRemarks'
|
||||
} else if (value === 'carInProduction') {
|
||||
this.columns.splice(1, this.columns.length - 1, ...warningColumns)
|
||||
this.columns[4].title = '在产车实施日期'
|
||||
this.columns[4].dataIndex = 'onTheProductionDate'
|
||||
this.columns[5].title = '在产车实施日期备注'
|
||||
this.columns[5].dataIndex = 'onTheProductionDateRemarks'
|
||||
} else {
|
||||
// 是企标实施预警或企标发布预警
|
||||
this.columns.splice(1, this.columns.length - 1, ...enStandardColumns)
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
:exclude-standard-fields="excludeStandardFields"
|
||||
domestic-special-check
|
||||
:flag-by-field="{associated_foreign_standards: StandardSource.OVERSEAS.value}"
|
||||
:needSyncRemarksDataField="['new_model_implementation_date', 'on_the_production_date']"
|
||||
:process-is-allow-upload-doc="false"
|
||||
@submitFormData="submitFormData" />
|
||||
</a-spin>
|
||||
|
||||
Reference in New Issue
Block a user