[update] 市场法规清单
This commit is contained in:
+31
-30
@@ -742,36 +742,37 @@ export default {
|
|||||||
await getForeignStandardDocumentInfo({ id: item.id, type: '2' }).then(res => {
|
await getForeignStandardDocumentInfo({ id: item.id, type: '2' }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
const result = res.result
|
const result = res.result
|
||||||
result.standardId = result.id
|
const form = {}
|
||||||
result.standardNumber = result.standard_number // 标准编号
|
form.standardId = result.id
|
||||||
result.standardName = result.standard_name // 标准名称
|
form.standardNumber = result.standard_number // 标准编号
|
||||||
result.standardEnglishName = result.standard_english_name // 标准英文名称
|
form.standardName = result.standard_name // 标准名称
|
||||||
result.stanardClass = result.standard_class // 标准类型
|
form.standardEnglishName = result.standard_english_name // 标准英文名称
|
||||||
result.stanardClass_dictText = result.standard_class_dictText // 标准类型
|
form.stanardClass = result.standard_class // 标准类型
|
||||||
result.newProductImplDate = result.new_product_impl_date // 新生产车实施日期
|
form.stanardClass_dictText = result.standard_class_dictText // 标准类型
|
||||||
result.newAuthImplDate = result.new_auth_impl_date // 新认证车实施日期
|
form.newProductImplDate = result.new_product_impl_date // 新生产车实施日期
|
||||||
result.registrationDate = result.registration_date // 注册日期
|
form.newAuthImplDate = result.new_auth_impl_date // 新认证车实施日期
|
||||||
result.applicableCountryRegion = result.applicable_market // 适用国家/地区
|
form.registrationDate = result.registration_date // 注册日期
|
||||||
result.applicableCountryRegion_dictText = result.applicable_market_dictText // 适用国家/地区
|
form.applicableCountryRegion = result.applicable_market // 适用国家/地区
|
||||||
result.mainDept = result.main_dept // 主控部门
|
form.applicableCountryRegion_dictText = result.applicable_market_dictText // 适用国家/地区
|
||||||
result.mainDept_dictText = result.main_dept_dictText // 主控部门
|
form.mainDept = result.main_dept // 主控部门
|
||||||
result.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块
|
form.mainDept_dictText = result.main_dept_dictText // 主控部门
|
||||||
result.mainDeptProfMode_dictText = result.main_dept_prof_mode_dictText // 主控部门专业模块
|
form.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块
|
||||||
result.associateDept = result.associate_dept // 关联部门
|
form.mainDeptProfMode_dictText = result.main_dept_prof_mode_dictText // 主控部门专业模块
|
||||||
result.associateDept_dictText = result.associate_dept_dictText // 关联部门
|
form.associateDept = result.associate_dept // 关联部门
|
||||||
result.associateDeptProfMode = result.associate_dept_prof_mode || undefined // 关联部门专业模块
|
form.associateDept_dictText = result.associate_dept_dictText // 关联部门
|
||||||
result.associateDeptProfMode_dictText = result.associate_dept_prof_mode_dictText // 关联部门专业模块
|
form.associateDeptProfMode = result.associate_dept_prof_mode || undefined // 关联部门专业模块
|
||||||
result.applicableVehicle = result.applicable_vehicle // 适用车型
|
form.associateDeptProfMode_dictText = result.associate_dept_prof_mode_dictText // 关联部门专业模块
|
||||||
result.applicableVehicle_dictText = result.applicable_vehicle_dictText // 适用车型
|
form.applicableVehicle = result.applicable_vehicle // 适用车型
|
||||||
result.dynamicType = result.dynamic_type // 动力类型
|
form.applicableVehicle_dictText = result.applicable_vehicle_dictText // 适用车型
|
||||||
result.dynamicType_dictText = result.dynamic_type_dictText // 动力类型
|
form.dynamicType = result.dynamic_type // 动力类型
|
||||||
|
form.dynamicType_dictText = result.dynamic_type_dictText // 动力类型
|
||||||
const uid = uidGenerator()
|
const uid = uidGenerator()
|
||||||
this.dataSource.unshift({
|
this.dataSource.unshift({
|
||||||
...result,
|
...form,
|
||||||
uid
|
uid
|
||||||
})
|
})
|
||||||
this.dataList.unshift({
|
this.dataList.unshift({
|
||||||
...result,
|
...form,
|
||||||
uid
|
uid
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -793,14 +794,14 @@ export default {
|
|||||||
const idArr = ids.split(',')
|
const idArr = ids.split(',')
|
||||||
let repeatNum = 0
|
let repeatNum = 0
|
||||||
for (const id of idArr) {
|
for (const id of idArr) {
|
||||||
await getMarketRegulationListById({ manifestId: id }).then(res => {
|
await marketRegulationDetailListById({ manifestId: id }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
for (const item of res.result.lists) {
|
for (const item of res.result) {
|
||||||
if (!this.dataList.find(i => i.standardNumber === item.standardNumber)) {
|
if (!this.dataList.find(i => i.standardNumber === item.standardNumber)) {
|
||||||
const uid = uidGenerator()
|
const uid = uidGenerator()
|
||||||
// 列表中还没有该标准
|
// 列表中还没有该标准
|
||||||
this.dataSource.unshift({ ...item, uid })
|
this.dataSource.unshift({ ...item, uid, id: undefined })
|
||||||
this.dataList.unshift({ ...item, uid })
|
this.dataList.unshift({ ...item, uid, id: undefined })
|
||||||
} else {
|
} else {
|
||||||
repeatNum++
|
repeatNum++
|
||||||
}
|
}
|
||||||
@@ -893,7 +894,7 @@ export default {
|
|||||||
// 国家/地区是树选择,需要处理格式
|
// 国家/地区是树选择,需要处理格式
|
||||||
param.manifest.country = param.manifest.country.map(item => item.value).join(',')
|
param.manifest.country = param.manifest.country.map(item => item.value).join(',')
|
||||||
let func
|
let func
|
||||||
if (this.model.manifest.id) {
|
if (this.model && this.model.manifest.id) {
|
||||||
param.manifest.id = this.model.manifest.id
|
param.manifest.id = this.model.manifest.id
|
||||||
func = marketRegulationListEdit
|
func = marketRegulationListEdit
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
+25
-24
@@ -314,33 +314,34 @@ export default {
|
|||||||
getForeignStandardDocumentInfo({ id: value[0].id, type: '2' }).then(res => {
|
getForeignStandardDocumentInfo({ id: value[0].id, type: '2' }).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
const result = res.result
|
const result = res.result
|
||||||
result.standardId = result.id
|
const form = {}
|
||||||
result.standardName = result.standard_name // 标准名称
|
form.standardId = result.id
|
||||||
result.standardEnglishName = result.standard_english_name // 标准英文名称
|
form.standardName = result.standard_name // 标准名称
|
||||||
result.stanardClass = result.standard_class // 标准类型
|
form.standardEnglishName = result.standard_english_name // 标准英文名称
|
||||||
result.stanardClass_dictText = result.standard_class_dictText // 标准类型
|
form.stanardClass = result.standard_class // 标准类型
|
||||||
result.newProductImplDate = result.new_product_impl_date // 新生产车实施日期
|
form.stanardClass_dictText = result.standard_class_dictText // 标准类型
|
||||||
result.newAuthImplDate = result.new_auth_impl_date // 新认证车实施日期
|
form.newProductImplDate = result.new_product_impl_date // 新生产车实施日期
|
||||||
result.registrationDate = result.registration_date // 注册日期
|
form.newAuthImplDate = result.new_auth_impl_date // 新认证车实施日期
|
||||||
result.applicableCountryRegion = result.applicable_market ? (result.applicable_market.split(',').map(item => {
|
form.registrationDate = result.registration_date // 注册日期
|
||||||
|
form.applicableCountryRegion = result.applicable_market ? (result.applicable_market.split(',').map(item => {
|
||||||
return { value: item }
|
return { value: item }
|
||||||
})) : [] // 适用国家/地区
|
})) : [] // 适用国家/地区
|
||||||
result.applicableCountryRegion_dictText = result.applicable_market_dictText // 适用国家/地区
|
form.applicableCountryRegion_dictText = result.applicable_market_dictText // 适用国家/地区
|
||||||
result.mainDept = result.main_dept // 主控部门
|
form.mainDept = result.main_dept // 主控部门
|
||||||
result.mainDept_dictText = result.main_dept_dictText // 主控部门
|
form.mainDept_dictText = result.main_dept_dictText // 主控部门
|
||||||
result.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块
|
form.mainDeptProfMode = result.main_dept_prof_mode || undefined // 主控部门专业模块
|
||||||
result.mainDeptProfMode_dictText = result.main_dept_prof_mode_dictText // 主控部门专业模块
|
form.mainDeptProfMode_dictText = result.main_dept_prof_mode_dictText // 主控部门专业模块
|
||||||
result.associateDept = result.associate_dept // 关联部门
|
form.associateDept = result.associate_dept // 关联部门
|
||||||
result.associateDept_dictText = result.associate_dept_dictText // 关联部门
|
form.associateDept_dictText = result.associate_dept_dictText // 关联部门
|
||||||
result.associateDeptProfMode = result.associate_dept_prof_mode || undefined // 关联部门专业模块
|
form.associateDeptProfMode = result.associate_dept_prof_mode || undefined // 关联部门专业模块
|
||||||
result.associateDeptProfMode_dictText = result.associate_dept_prof_mode_dictText // 关联部门专业模块
|
form.associateDeptProfMode_dictText = result.associate_dept_prof_mode_dictText // 关联部门专业模块
|
||||||
result.applicableVehicle = result.applicable_vehicle // 适用车型
|
form.applicableVehicle = result.applicable_vehicle // 适用车型
|
||||||
result.applicableVehicle_dictText = result.applicable_vehicle_dictText // 适用车型
|
form.applicableVehicle_dictText = result.applicable_vehicle_dictText // 适用车型
|
||||||
result.dynamicType = result.dynamic_type // 动力类型
|
form.dynamicType = result.dynamic_type // 动力类型
|
||||||
result.dynamicType_dictText = result.dynamic_type_dictText // 动力类型
|
form.dynamicType_dictText = result.dynamic_type_dictText // 动力类型
|
||||||
this.model = Object.assign({}, result)
|
this.model = Object.assign({}, form)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(result, 'standardName', 'standardEnglishName',
|
this.form.setFieldsValue(pick(form, 'standardName', 'standardEnglishName',
|
||||||
'stanardClass', 'newProductImplDate', 'newAuthImplDate', 'registrationDate', 'applicableCountryRegion',
|
'stanardClass', 'newProductImplDate', 'newAuthImplDate', 'registrationDate', 'applicableCountryRegion',
|
||||||
'mainDept', 'mainDeptProfMode', 'associateDept', 'associateDeptProfMode', 'applicableVehicle', 'dynamicType'))
|
'mainDept', 'mainDeptProfMode', 'associateDept', 'associateDeptProfMode', 'applicableVehicle', 'dynamicType'))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user