|
|
@ -13,20 +13,68 @@
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-item label="代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input
|
|
|
|
<a-input
|
|
|
|
placeholder="请输入代码"
|
|
|
|
|
|
|
|
:disabled="true"
|
|
|
|
:disabled="true"
|
|
|
|
|
|
|
|
placeholder="请输入代码"
|
|
|
|
v-decorator="['code', { rules: [{ required: true, message: '请输入代码!' }] }]"
|
|
|
|
v-decorator="['code', { rules: [{ required: true, message: '请输入代码!' }] }]"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-item label="名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="英文名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入英文名称"
|
|
|
|
|
|
|
|
v-decorator="['enName', { rules: [{ required: true, message: '请输入英文名称!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
|
|
|
<a-form-item label="中文名称" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入中文名称"
|
|
|
|
|
|
|
|
v-decorator="['cnName', { rules: [{ required: true, message: '请输入中文名称!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
|
|
|
<a-form-item label="航线" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入航线"
|
|
|
|
|
|
|
|
v-decorator="['shippingRoute', { rules: [{ required: true, message: '请输入航线!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
|
|
|
<a-form-item label="国家" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入国家"
|
|
|
|
|
|
|
|
v-decorator="['country', { rules: [{ required: true, message: '请输入国家!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
|
|
|
<a-form-item label="国家代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input
|
|
|
|
<a-input
|
|
|
|
placeholder="请输入名称"
|
|
|
|
placeholder="请输入国家代码"
|
|
|
|
v-decorator="['name', { rules: [{ required: true, message: '请输入名称!' }] }]"
|
|
|
|
v-decorator="['countryCode', { rules: [{ required: true, message: '请输入国家代码!' }] }]"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
|
|
|
<a-form-item label="全名" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入全名"
|
|
|
|
|
|
|
|
v-decorator="['fullName', { rules: [{ required: true, message: '请输入全名!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<!-- <a-col :span="12">
|
|
|
|
|
|
|
|
<a-form-item label="EDI代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
placeholder="请输入EDI代码"
|
|
|
|
|
|
|
|
v-decorator="['ediCode', { rules: [{ required: true, message: '请输入EDI代码!' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col> -->
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input placeholder="请输入备注" v-decorator="['remark']" />
|
|
|
|
<a-input placeholder="请输入备注" v-decorator="['remark']" />
|
|
|
@ -80,8 +128,13 @@ export default {
|
|
|
|
this.visible = true
|
|
|
|
this.visible = true
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
name: record.name,
|
|
|
|
code: record.code,
|
|
|
|
ediCode: record.ediCode,
|
|
|
|
enName: record.enName,
|
|
|
|
|
|
|
|
cnName: record.cnName,
|
|
|
|
|
|
|
|
shippingRoute: record.shippingRoute,
|
|
|
|
|
|
|
|
country: record.country,
|
|
|
|
|
|
|
|
countryCode: record.countryCode,
|
|
|
|
|
|
|
|
fullName: record.fullName,
|
|
|
|
description: record.description,
|
|
|
|
description: record.description,
|
|
|
|
remark: record.remark
|
|
|
|
remark: record.remark
|
|
|
|
})
|
|
|
|
})
|
|
|
|