张同海 2 years ago
parent bc0f8830ef
commit fee16684ef

@ -76,6 +76,17 @@ export function GetVessellist(parameter) {
params: parameter
})
}
/**
* 获取场站
* @params CnName
*/
export function GetYardlist(parameter) {
return axios({
url: '/commondb/yardlist',
method: 'get',
params: parameter
})
}
/**
* 分页查询用户

@ -71,7 +71,6 @@
"children": [
{ "name": "签单方式", "code": "issuetype" },
{ "name": "签单日期", "code": "issuedate" },
{ "name": "签单地点", "code": "issueplace" },
{ "name": "签单地代码", "code": "issueplaceid" },
{ "name": "提单份数", "code": "nobill" },
{ "name": "副本份数", "code": "copynobilll" },

@ -172,11 +172,26 @@
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="默认码头" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-input
placeholder="请输入默认码头"
v-decorator="['wharf', { rules: [{ required: true, message: '请输入默认码头!' }] }]"
/>
<a-form-item label="默认场站" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<!-- <a-input
placeholder="请输入默认场站"
v-decorator="['wharf', { rules: [{ required: true, message: '请输入默认场站!' }] }]"
/> -->
<a-select
placeholder="请选择默认场站"
v-decorator="['wharf', { rules: [{ required: true, message: '请选择默认场站!' }] }]"
show-search
@focus="wharfSearch"
@search="wharfSearch"
: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.code" :value="item.name">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :span="12">
@ -203,7 +218,8 @@ import {
GetPortloadlist,
GetPortlist,
GetCarrierlist,
GetVessellist
GetVessellist,
GetYardlist
} from '@/api/modular/main/vesselinfo'
export default {
data() {
@ -233,7 +249,8 @@ export default {
portTransitData: [],
portDischargeData: [],
carrierData: [],
vesselData: []
vesselData: [],
wharfData: []
}
},
mounted() {},
@ -272,6 +289,11 @@ export default {
this.vesselData = res.data
})
},
wharfSearch(data) {
GetYardlist({ KeyWord: data }).then(res => {
this.wharfData = res.data
})
},
/**
* 提交表单

@ -172,11 +172,22 @@
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="默认码头" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-input
placeholder="请输入默认码头"
v-decorator="['wharf', { rules: [{ required: true, message: '请输入默认码头!' }] }]"
/>
<a-form-item label="默认场站" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
<a-select
placeholder="请选择默认场站"
v-decorator="['wharf', { rules: [{ required: true, message: '请选择默认场站!' }] }]"
show-search
@focus="wharfSearch"
@search="wharfSearch"
: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">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :span="12">
@ -203,7 +214,8 @@ import {
GetPortloadlist,
GetPortlist,
GetCarrierlist,
GetVessellist
GetVessellist,
GetYardlist
} from '@/api/modular/main/vesselinfo'
export default {
data() {
@ -233,7 +245,8 @@ export default {
portTransitData: [],
portDischargeData: [],
carrierData: [],
vesselData: []
vesselData: [],
wharfData: []
}
},
mounted() {},
@ -295,6 +308,11 @@ export default {
this.vesselData = res.data
})
},
wharfSearch(data) {
GetYardlist({ KeyWord: data }).then(res => {
this.wharfData = res.data
})
},
handleSubmit() {
const {
form: { validateFields }

Loading…
Cancel
Save