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