|
|
@ -27,6 +27,15 @@
|
|
|
|
<text class="icon iconfont icon-daoda"></text>
|
|
|
|
<text class="icon iconfont icon-daoda"></text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="choice-btn" @click="openInputSerch('webCode')">
|
|
|
|
|
|
|
|
<view class="left"><text class="iconfont icon-a-jizhuangxiang1"></text><text class="tip">船公司</text></view>
|
|
|
|
|
|
|
|
<view class="right">
|
|
|
|
|
|
|
|
<text class="gk" v-if="fromData.webCode">{{fromData.webCodeName }}</text>
|
|
|
|
|
|
|
|
<text class="gk" v-else>请选择船公司</text>
|
|
|
|
|
|
|
|
<text class="icon iconfont icon-daoda"></text>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="choice-btn">
|
|
|
|
<view class="choice-btn">
|
|
|
|
<view class="left"><text class="iconfont icon-shijian"></text><text class="tip">开始时间</text></view>
|
|
|
|
<view class="left"><text class="iconfont icon-shijian"></text><text class="tip">开始时间</text></view>
|
|
|
@ -138,6 +147,8 @@
|
|
|
|
portArrival: '',
|
|
|
|
portArrival: '',
|
|
|
|
portArrivalCode: '',
|
|
|
|
portArrivalCode: '',
|
|
|
|
boxType: '',
|
|
|
|
boxType: '',
|
|
|
|
|
|
|
|
webCode: '',
|
|
|
|
|
|
|
|
webCodeName: '',
|
|
|
|
// portArrival: 'GDANSK, POLAND',
|
|
|
|
// portArrival: 'GDANSK, POLAND',
|
|
|
|
// portArrivalCode: 'PLGDN',
|
|
|
|
// portArrivalCode: 'PLGDN',
|
|
|
|
// boxType: '22G1',
|
|
|
|
// boxType: '22G1',
|
|
|
@ -154,6 +165,43 @@
|
|
|
|
history: null,
|
|
|
|
history: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
inputSearchRes: {},
|
|
|
|
inputSearchRes: {},
|
|
|
|
|
|
|
|
webCodeData:[
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '马士基',
|
|
|
|
|
|
|
|
code: 'MSK',
|
|
|
|
|
|
|
|
image: '../../../static/image/logo/msk.png',
|
|
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
status: 'loading',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: 'MCC',
|
|
|
|
|
|
|
|
code: 'MCC',
|
|
|
|
|
|
|
|
image: '../../../static/image/logo/MCC.png',
|
|
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
status: 'loading',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '法国达飞',
|
|
|
|
|
|
|
|
code: 'CMA',
|
|
|
|
|
|
|
|
image: '../../../static/image/logo/cma.png',
|
|
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
status: 'loading',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '中远',
|
|
|
|
|
|
|
|
code: 'COSCO',
|
|
|
|
|
|
|
|
image: '../../../static/image/logo/cosco.png',
|
|
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
status: 'loading',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: 'OOCL',
|
|
|
|
|
|
|
|
code: 'OOCL',
|
|
|
|
|
|
|
|
image: '../../../static/image/logo/oocl.png',
|
|
|
|
|
|
|
|
list: [],
|
|
|
|
|
|
|
|
status: 'loading',
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
@ -279,6 +327,19 @@
|
|
|
|
} : null,
|
|
|
|
} : null,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$set(this, 'inputSearchData' , data)
|
|
|
|
this.$set(this, 'inputSearchData' , data)
|
|
|
|
|
|
|
|
}else if(type == 'webCode'){
|
|
|
|
|
|
|
|
let data = {
|
|
|
|
|
|
|
|
placeholder: '请输入船公司',
|
|
|
|
|
|
|
|
dataList: [],
|
|
|
|
|
|
|
|
showName: 'name',
|
|
|
|
|
|
|
|
type: 'webCode',
|
|
|
|
|
|
|
|
history: this.fromData.webCode ? {
|
|
|
|
|
|
|
|
name: this.fromData.webCodeName,
|
|
|
|
|
|
|
|
code: this.fromData.webCode,
|
|
|
|
|
|
|
|
} : null,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$set(this, 'inputSearchData' , data)
|
|
|
|
|
|
|
|
this.$set(this.inputSearchData, 'dataList', this.webCodeData);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -302,7 +363,7 @@
|
|
|
|
this.$set(this.inputSearchData, 'dataList', []);
|
|
|
|
this.$set(this.inputSearchData, 'dataList', []);
|
|
|
|
this.$refs.inputView.$data.inLoading = false;
|
|
|
|
this.$refs.inputView.$data.inLoading = false;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}else{
|
|
|
|
}else if(this.inputSearchData.type == 'boxType'){
|
|
|
|
realBox({
|
|
|
|
realBox({
|
|
|
|
name: key,
|
|
|
|
name: key,
|
|
|
|
}).then(res =>{
|
|
|
|
}).then(res =>{
|
|
|
@ -319,6 +380,27 @@
|
|
|
|
this.$set(this.inputSearchData, 'dataList', []);
|
|
|
|
this.$set(this.inputSearchData, 'dataList', []);
|
|
|
|
this.$refs.inputView.$data.inLoading = false;
|
|
|
|
this.$refs.inputView.$data.inLoading = false;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}else if(this.inputSearchData.type == 'webCode'){
|
|
|
|
|
|
|
|
let newData = [];
|
|
|
|
|
|
|
|
this.webCodeData.map((item,index)=>{
|
|
|
|
|
|
|
|
if(item.name.includes(key)){
|
|
|
|
|
|
|
|
newData.push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log(newData)
|
|
|
|
|
|
|
|
if(newData.length > 0){
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
|
|
this.$set(this.inputSearchData, 'dataList', newData);
|
|
|
|
|
|
|
|
this.$refs.inputView.$data.inLoading = false;
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
|
|
|
},300)
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
|
|
|
this.$set(this.inputSearchData, 'dataList', []);
|
|
|
|
|
|
|
|
this.$refs.inputView.$data.inLoading = false;
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
|
|
|
|
|
|
},300)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -332,6 +414,9 @@
|
|
|
|
this.fromData.portArrivalCode = data.code;
|
|
|
|
this.fromData.portArrivalCode = data.code;
|
|
|
|
}else if(this.inputSearchData.type == 'boxType'){
|
|
|
|
}else if(this.inputSearchData.type == 'boxType'){
|
|
|
|
this.fromData.boxType = data.Code;
|
|
|
|
this.fromData.boxType = data.Code;
|
|
|
|
|
|
|
|
}else if(this.inputSearchData.type == 'webCode'){
|
|
|
|
|
|
|
|
this.fromData.webCode = data.code;
|
|
|
|
|
|
|
|
this.fromData.webCodeName = data.name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.inputSearchShow = false;
|
|
|
|
this.inputSearchShow = false;
|
|
|
|
this.inputSearchData = {
|
|
|
|
this.inputSearchData = {
|
|
|
|