|
|
|
@ -175,16 +175,16 @@
|
|
|
|
|
<a-form-item label="默认场站" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
|
|
|
|
|
<a-select
|
|
|
|
|
placeholder="请选择默认场站"
|
|
|
|
|
v-decorator="['wharf', { rules: [{ required: true, message: '请选择默认场站!' }] }]"
|
|
|
|
|
v-decorator="['yardCode', { rules: [{ required: true, message: '请选择默认场站!' }] }]"
|
|
|
|
|
show-search
|
|
|
|
|
@focus="wharfSearch"
|
|
|
|
|
@search="wharfSearch"
|
|
|
|
|
@focus="yardSearch"
|
|
|
|
|
@search="yardSearch"
|
|
|
|
|
:default-active-first-option="false"
|
|
|
|
|
:show-arrow="false"
|
|
|
|
|
:filter-option="false"
|
|
|
|
|
:not-found-content="null"
|
|
|
|
|
>
|
|
|
|
|
<a-select-option v-for="item in wharfData" :key="item.name" :value="item.name">
|
|
|
|
|
<a-select-option v-for="item in yardData" :key="item.code" :value="item.code">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
@ -246,7 +246,7 @@ export default {
|
|
|
|
|
portDischargeData: [],
|
|
|
|
|
carrierData: [],
|
|
|
|
|
vesselData: [],
|
|
|
|
|
wharfData: []
|
|
|
|
|
yardData: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
@ -270,7 +270,8 @@ export default {
|
|
|
|
|
etd: record.etd,
|
|
|
|
|
closingDate: record.closingDate,
|
|
|
|
|
eta: record.eta,
|
|
|
|
|
wharf: record.wharf,
|
|
|
|
|
yard: record.yard,
|
|
|
|
|
yardCode: record.yardCode,
|
|
|
|
|
atd: record.atd,
|
|
|
|
|
carrierid: record.carrierid,
|
|
|
|
|
voynoInside: record.voynoInside
|
|
|
|
@ -308,9 +309,9 @@ export default {
|
|
|
|
|
this.vesselData = res.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
wharfSearch(data) {
|
|
|
|
|
yardSearch(data) {
|
|
|
|
|
GetYardlist({ KeyWord: data }).then(res => {
|
|
|
|
|
this.wharfData = res.data
|
|
|
|
|
this.yardData = res.data
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleSubmit() {
|
|
|
|
@ -356,6 +357,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (this.yardData.length) {
|
|
|
|
|
this.yardData.forEach(item => {
|
|
|
|
|
if (item.code == values.yardCode) {
|
|
|
|
|
values.yard = item.name
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
DjyVesselInfoServiceAddOrUpdate(values)
|
|
|
|
|
.then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|