[update] 修改bug87892
This commit is contained in:
+7
-2
@@ -24,7 +24,7 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- 清单编号英文缩写 -->
|
||||
<a-col :span="12" v-if="model.id">
|
||||
<a-col :span="12" v-if="isShowManifestNo">
|
||||
<a-form-item :label="$t('standardRegulationLibrary.marketRegulationsList.listNumberEnglishPart')"
|
||||
:labelCol="labelCol"
|
||||
:wrapperCol="wrapperCol">
|
||||
@@ -477,7 +477,8 @@ export default {
|
||||
},
|
||||
disableMixinCreated: true,
|
||||
importData: {},
|
||||
historyVersions: [] // 历史版本
|
||||
historyVersions: [], // 历史版本
|
||||
isShowManifestNo: false // 是否显示清单编号英文缩写字段
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
@@ -510,6 +511,8 @@ export default {
|
||||
const result = {
|
||||
manifestNo: res.message
|
||||
}
|
||||
// 显示清单编号英文名称缩写
|
||||
this.isShowManifestNo = true
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(result, 'manifestNo'))
|
||||
})
|
||||
@@ -533,6 +536,8 @@ export default {
|
||||
}
|
||||
// 从清单编号截取英文缩写
|
||||
this.model.manifestNo = this.model.manifestNo.split('-')[1]
|
||||
// 显示清单编号英文名称缩写
|
||||
this.isShowManifestNo = true
|
||||
this.$nextTick(() => {
|
||||
this.form.setFieldsValue(pick(this.model, 'country', 'manifestNo', 'customColumnName', 'drivePosition', 'securityLevel', 'manifestDesc', 'file'))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user