diff --git a/src/common/lang/standardRegulationLibrary/en-us.js b/src/common/lang/standardRegulationLibrary/en-us.js
index c58fb05..4f0f5ba 100644
--- a/src/common/lang/standardRegulationLibrary/en-us.js
+++ b/src/common/lang/standardRegulationLibrary/en-us.js
@@ -71,6 +71,7 @@ module.exports = {
releaseTime: 'Published Date',
listState: 'Status',
customName: 'Custom Name',
+ customNameLastText: '车型需满足标准法规清单',
securityClass: 'Confidential Level',
listDeclaration: 'Manifest Declaration',
templateName: 'Market regulation list import template',
diff --git a/src/common/lang/standardRegulationLibrary/zh-cn.js b/src/common/lang/standardRegulationLibrary/zh-cn.js
index 634a48c..176e62d 100644
--- a/src/common/lang/standardRegulationLibrary/zh-cn.js
+++ b/src/common/lang/standardRegulationLibrary/zh-cn.js
@@ -71,6 +71,7 @@ module.exports = {
releaseTime: '发布时间',
listState: '清单状态',
customName: '自定义名称',
+ customNameLastText: '车型需满足标准法规清单',
securityClass: '密级',
listDeclaration: '清单说明',
templateName: '市场法规清单导入模板',
diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue
index 45e3ebf..a01f680 100644
--- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue
+++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue
@@ -25,25 +25,32 @@
-
-
-
-
-
+
+
+
+ BZFG-
+
+
+ -{{model.columnNo}}
+
+
-
-
-
-
-
+
+
+
+ {{model.countryName}}
+
+ {{ $t('standardRegulationLibrary.marketRegulationsList.customNameLastText') }}
+
+
0 ? value.map(item => item.value).join(',') : ''
+ if (value && value.length > 0) {
+ param.country = value.map(item => item.value).join(',')
+ this.model.countryName = value.map(item => item.label).join('')
+ } else {
+ param.country = ''
+ this.model.countryName = ''
+ }
+
marketRegulationGetListNumber(param).then(res => {
if (res.success) {
+ const noText = res.message ? res.message.split(',')[0] : ''
const result = {
- manifestNo: res.message
+ manifestNo: noText
}
// 显示清单编号英文名称缩写
this.isShowManifestNo = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(result, 'manifestNo'))
})
+
+ } else {
+ const result = {
+ manifestNo: ''
+ }
+ this.$nextTick(() => {
+ this.form.setFieldsValue(pick(result, 'manifestNo'))
+ })
}
})
},
@@ -540,14 +563,22 @@ export default {
this.model.country = this.model.country.split(',').map(item => {
return { value: item }
})
+ // 清单名称
+ this.model.countryName = this.model.country_dictText.split(',').join('')
}
+ // 清单编号的转换
+ const manifestNoAll = this.model.manifestNo
// 从清单编号截取英文缩写
- this.model.manifestNo = this.model.manifestNo.split('-')[1]
+ this.model.manifestNo = manifestNoAll.split('-')[1]
+ // 清单标号 里面的序号
+ this.model.columnNo = manifestNoAll.split('-')[2]
+
// 显示清单编号英文名称缩写
this.isShowManifestNo = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'country', 'manifestNo', 'customColumnName', 'drivePosition', 'securityLevel', 'manifestDesc', 'file'))
})
+ this.$forceUpdate()
}
}).finally(() => {
this.pageLoading = false
@@ -715,4 +746,16 @@ export default {
z-index: 999;
}
}
+
+/deep/.block-form-item{
+ clear: both;
+ .ant-form-item-children {
+ display: flex;
+ align-items: center;
+ input {
+ flex: 1;
+ margin: 0 10px;
+ }
+ }
+}