|
|
|
@ -12,10 +12,18 @@
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="航线代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input
|
|
|
|
|
<!-- <a-input
|
|
|
|
|
placeholder="请输入航线代码"
|
|
|
|
|
v-decorator="['laneCode', { rules: [{ required: true, message: '请输入航线代码!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
/> -->
|
|
|
|
|
<a-select
|
|
|
|
|
placeholder="请选择航线代码"
|
|
|
|
|
v-decorator="['laneCode', { rules: [{ required: true, message: '请选择航线代码!' }] }]"
|
|
|
|
|
>
|
|
|
|
|
<a-select-option v-for="item in laneCodeData" :key="item.code" :value="item.code">
|
|
|
|
|
{{ item.cnName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
@ -23,7 +31,7 @@
|
|
|
|
|
<a-select
|
|
|
|
|
show-search
|
|
|
|
|
placeholder="请选择船公司"
|
|
|
|
|
v-decorator="['carrierCode', { rules: [{ required: true, message: '请选择船公司!' }] }]"
|
|
|
|
|
v-decorator="['carrierCode']"
|
|
|
|
|
@search="CarrierHandleSearch"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
@ -38,13 +46,21 @@
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<a-form-item label="港口代码" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-input
|
|
|
|
|
<!-- <a-input
|
|
|
|
|
placeholder="请输入港口代码"
|
|
|
|
|
v-decorator="['portCode', { rules: [{ required: true, message: '请输入港口代码!' }] }]"
|
|
|
|
|
/>
|
|
|
|
|
/> -->
|
|
|
|
|
<a-select
|
|
|
|
|
placeholder="请选择港口代码"
|
|
|
|
|
v-decorator="['portCode', { rules: [{ required: true, message: '请选择港口代码!' }] }]"
|
|
|
|
|
>
|
|
|
|
|
<a-select-option v-for="item in portCodeData" :key="item.code" :value="item.code">
|
|
|
|
|
{{ item.cnName }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="12">
|
|
|
|
|
<!-- <a-col :span="12">
|
|
|
|
|
<a-form-item label="模块" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
<a-select
|
|
|
|
|
placeholder="请选择模块"
|
|
|
|
@ -55,7 +71,7 @@
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
</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="['remark']" />
|
|
|
|
@ -68,6 +84,8 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { CommondbList } from '@/api/modular/main/CommondbPort'
|
|
|
|
|
import { CommondbCodeLaneList } from '@/api/modular/main/CommondbCodeLane'
|
|
|
|
|
import { commondbCarrierlist } from '@/api/modular/main/CommondbFrtlist'
|
|
|
|
|
import { CommondbSaveRelaPortCarrierLaneDto } from '@/api/modular/main/CommondbRelaPortCarrierLaneDto'
|
|
|
|
|
import { commondbModules } from '@/api/modular/main/ShippingCompanyMapping'
|
|
|
|
@ -94,6 +112,8 @@ export default {
|
|
|
|
|
visible: false,
|
|
|
|
|
confirmLoading: false,
|
|
|
|
|
ModulesData: [],
|
|
|
|
|
portCodeData: [],
|
|
|
|
|
laneCodeData: [],
|
|
|
|
|
carrierCodeData: [],
|
|
|
|
|
form: this.$form.createForm(this)
|
|
|
|
|
}
|
|
|
|
@ -111,6 +131,12 @@ export default {
|
|
|
|
|
commondbModules().then(res => {
|
|
|
|
|
this.ModulesData = res.data
|
|
|
|
|
})
|
|
|
|
|
CommondbList().then(res => {
|
|
|
|
|
this.portCodeData = res.data
|
|
|
|
|
})
|
|
|
|
|
CommondbCodeLaneList().then(res => {
|
|
|
|
|
this.laneCodeData = res.data
|
|
|
|
|
})
|
|
|
|
|
commondbCarrierlist().then(res => {
|
|
|
|
|
this.carrierCodeData = res.data
|
|
|
|
|
})
|
|
|
|
|