|
@@ -86,23 +86,65 @@
|
|
|
<button style="width: 400px;height: 0;border: none;padding: 0;"></button>
|
|
|
</div>
|
|
|
<div v-if="selection === '4'">
|
|
|
- <el-input placeholder="请输入起运港口">
|
|
|
- <template slot="prepend">起运港口</template>
|
|
|
- </el-input>
|
|
|
- <el-input placeholder="请输入目的港口">
|
|
|
- <template slot="prepend">目的港口</template>
|
|
|
- </el-input>
|
|
|
+ <div style="width: 400px;align-items: center;display: flex;">
|
|
|
+ <el-button disabled style="border: 1px solid #DCDFE6;color:#95989d;background-color: #f5f7fa;border-top-right-radius:0;border-bottom-right-radius:0">起运港口</el-button>
|
|
|
+ <el-select
|
|
|
+ v-model="portToPort.fPortofloadid"
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ @change="handleQuery"
|
|
|
+ style="width: 100%;"
|
|
|
+ class="elSelect"
|
|
|
+ :remote-method="handleQuery"
|
|
|
+ placeholder="请输入模糊查找起运港口"
|
|
|
+ >
|
|
|
+ <el-scrollbar>
|
|
|
+ <el-option
|
|
|
+ v-for="(dict, index) in fMblnoOptions"
|
|
|
+ :key="dict.fId"
|
|
|
+ :label="dict.fName"
|
|
|
+ :value="dict.fId"
|
|
|
+ ></el-option>
|
|
|
+ </el-scrollbar>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="width: 400px;align-items: center;display: flex;">
|
|
|
+ <el-button disabled style="border: 1px solid #DCDFE6;color:#95989d;background-color: #f5f7fa;border-top-right-radius:0;border-bottom-right-radius:0">目的港口</el-button>
|
|
|
+ <el-select
|
|
|
+ v-model="portToPort.fPortofloadid"
|
|
|
+ filterable
|
|
|
+ remote
|
|
|
+ @change="handleQuery"
|
|
|
+ style="width: 100%;"
|
|
|
+ class="elSelect"
|
|
|
+ :remote-method="handleQuery"
|
|
|
+ placeholder="请输入模糊查找目的港口"
|
|
|
+ >
|
|
|
+ <el-scrollbar>
|
|
|
+ <el-option
|
|
|
+ v-for="(dict, index) in fMblnoOptions"
|
|
|
+ :key="dict.fId"
|
|
|
+ :label="dict.fName"
|
|
|
+ :value="dict.fId"
|
|
|
+ ></el-option>
|
|
|
+ </el-scrollbar>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+<!-- <el-input placeholder="请输入目的港口" v-model="portToPort.fDistinationid">-->
|
|
|
+<!-- <template slot="prepend">目的港口</template>-->
|
|
|
+<!-- </el-input>-->
|
|
|
<el-input placeholder="请输入货物名称">
|
|
|
<template slot="prepend">货物名称</template>
|
|
|
</el-input>
|
|
|
- <el-input placeholder="请输入预计装货时间">
|
|
|
+ <el-input placeholder="请输入预计装货时间" v-model="portToPort.fEta">
|
|
|
<template slot="prepend">预计装货时间</template>
|
|
|
</el-input>
|
|
|
<button class="stealthbutton"></button>
|
|
|
<button class="stealthbutton"></button>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-button type="primary">船期查询</el-button>
|
|
|
+ <el-button type="primary" @click="schedule">船期查询</el-button>
|
|
|
</div>
|
|
|
<el-divider>查询船期</el-divider>
|
|
|
<div
|
|
@@ -216,10 +258,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { request } from '../../request/request';
|
|
|
+import Cookies from 'js-cookie';
|
|
|
+
|
|
|
export default {
|
|
|
name: 'inquiryAndOrder',
|
|
|
data() {
|
|
|
return {
|
|
|
+ fMblnoOptions:[],
|
|
|
+ portToPort:{
|
|
|
+ fPortofloadid:'',
|
|
|
+ fDistinationid:'',
|
|
|
+ fEta:'',
|
|
|
+ portofloadidName:''
|
|
|
+ },
|
|
|
value1: '',
|
|
|
selection: '1',
|
|
|
whether: false,
|
|
@@ -256,6 +308,46 @@ export default {
|
|
|
console.log(key, keyPath);
|
|
|
this.selection = key;
|
|
|
},
|
|
|
+ schedule(){
|
|
|
+ // v-if="selection === '1'"
|
|
|
+ // switch (this.selection){
|
|
|
+ // case '1':
|
|
|
+ // break
|
|
|
+ // case '2':
|
|
|
+ // break
|
|
|
+ // case '3':
|
|
|
+ // break
|
|
|
+ // case '4':
|
|
|
+ // break
|
|
|
+ // default:
|
|
|
+ // break
|
|
|
+ // }
|
|
|
+ request({
|
|
|
+ url: '/shipping/voyage/freightList',
|
|
|
+ method: 'get',
|
|
|
+ params: this.portToPort
|
|
|
+ }).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleQuery(){
|
|
|
+ // this.fMblnoOptions
|
|
|
+ request({
|
|
|
+ url: '/shipping/address/selectPortName',
|
|
|
+ method: 'get',
|
|
|
+ params: {
|
|
|
+ fName:this.portToPort.fPortofloadid
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.fMblnoOptions = res.data.rows
|
|
|
+ console.log(this.fMblnoOptions);
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err);
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|