|
@@ -4,48 +4,45 @@
|
|
|
<Navs :navname.sync="navname" @fall="fall" :index='index'></Navs>
|
|
|
<view class="content">
|
|
|
<view class="content_top">
|
|
|
- <view class="craid" v-if="flightDetail">
|
|
|
+ <view class="craid" v-if="flightDetail&&flightDetail.carrierFlights">
|
|
|
<view class="craid_data">
|
|
|
<p>{{flightDetail.carrierFlights}}</p>
|
|
|
<span>{{flightDetail.carrierFlightsDate}}</span>
|
|
|
</view>
|
|
|
<view class="craid_data">
|
|
|
<p>{{flightDetail.outAirport}}</p>
|
|
|
- <span>{{flightDetail.scheduleTakeOffTime}}</span>
|
|
|
+ <span>{{flightDetail.scheduleTakeOffTime?flightDetail.scheduleTakeOffTime:"-"}}</span>
|
|
|
</view>
|
|
|
<view class="aircraft"></view>
|
|
|
<view class="craid_data">
|
|
|
<p>{{flightDetail.landAirport}}</p>
|
|
|
- <span>{{flightDetail.scheduleLandInTime}}</span>
|
|
|
+ <span>{{flightDetail.scheduleLandInTime?flightDetail.scheduleLandInTime:"-"}}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="craids" v-if="!flightDetail">
|
|
|
+ <view class="craids" v-if="!flightDetail.carrierFlights">
|
|
|
<p>暂无航班信息</p>
|
|
|
</view>
|
|
|
<view class="scanning">
|
|
|
<view :class="getFooterClass">
|
|
|
<input class="input" v-model.trim="stratvalue" type="text"
|
|
|
- value=""
|
|
|
placeholder-style="font-size:.8125rem;color:rgb(189, 214, 231);display:flex;justify-content: start;"
|
|
|
placeholder="请输入操作位置" />
|
|
|
<view class="log_l"></view>
|
|
|
- <view class="log"></view>
|
|
|
+ <view class="log" @tap="scan('1')"></view>
|
|
|
</view>
|
|
|
<view :class="getFooterClasser" v-if="navname == '装车'">
|
|
|
<input class="input" v-model.trim="container_ID" type="text"
|
|
|
- value=""
|
|
|
placeholder-style="font-size:.8125rem;color:rgb(189, 214, 231);display:flex;justify-content: start;"
|
|
|
placeholder="请输入容器编号" />
|
|
|
<view class="log_l"></view>
|
|
|
- <view class="log"></view>
|
|
|
+ <view class="log" @tap="scan('2')"></view>
|
|
|
</view>
|
|
|
<view :class="getlooterClass">
|
|
|
<input class="input" v-model.trim="currentLuggageNum" disabled="true" @tap="baggageEntry" type="text"
|
|
|
- value=""
|
|
|
placeholder-style="font-size:.8125rem;color:rgb(189, 214, 231);display:flex;justify-content: start;"
|
|
|
placeholder="请输入行李号" />
|
|
|
<view class="log_l"></view>
|
|
|
- <view class="log"></view>
|
|
|
+ <view class="log" @tap="scan('3')"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -70,7 +67,7 @@
|
|
|
<!-- <view class="down_up" @tap="up"></view> -->
|
|
|
</view>
|
|
|
</scroll-view>
|
|
|
- <view class="but" v-if="!action" @tap="clickOrder">一键处理</view>
|
|
|
+ <view class="but" v-if="!action&&listdate2.length>0" @tap="clickOrder">一键处理</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 提示信息和下拉弹窗 -->
|
|
@@ -122,6 +119,8 @@
|
|
|
typeShow: true,
|
|
|
headername: '提示信息',
|
|
|
flightNO:null,
|
|
|
+ flightDate:null,
|
|
|
+ onFlightDate:null,
|
|
|
flightDetail:{},
|
|
|
index:0,
|
|
|
currentLuggageNum:null,
|
|
@@ -160,6 +159,7 @@
|
|
|
onLoad(option) {
|
|
|
this.pagename = option.item
|
|
|
this.flightNO = option.flightNO
|
|
|
+ this.flightDate = option.date
|
|
|
this.getNode()
|
|
|
switch (this.pagename){
|
|
|
case "SORT":
|
|
@@ -180,7 +180,7 @@
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
- if(this.flightNO){
|
|
|
+ if(this.flightNO!="null"&&this.flightNO){
|
|
|
this.getFlightData()
|
|
|
this.getluggageList()
|
|
|
}
|
|
@@ -191,7 +191,7 @@
|
|
|
onShow() {
|
|
|
uni.$on("scancodemsg", (data) => {
|
|
|
if (data.msg.length > 9) {
|
|
|
- this.currentLuggageNum = data.msg
|
|
|
+ this.currentLuggageNum = Number(data.msg)
|
|
|
this.getluggage(this.currentLuggageNum,true)
|
|
|
}
|
|
|
});
|
|
@@ -222,6 +222,24 @@
|
|
|
maskModel: maskModel,
|
|
|
},
|
|
|
methods: {
|
|
|
+ scan(type){
|
|
|
+ let that = this
|
|
|
+ uni.scanCode({
|
|
|
+ onlyFromCamera: true,
|
|
|
+ success: function (res) {
|
|
|
+ if(type=="1"){
|
|
|
+ that.stratvalue = res.result;
|
|
|
+ }
|
|
|
+ else if(type=="2"){
|
|
|
+ that.container_ID = res.result;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ that.currentLuggageNum = res.result
|
|
|
+ that.getluggage(that.currentLuggageNum,true)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
async getNode() {
|
|
|
let data = {
|
|
|
"serviceId": 3003,
|
|
@@ -240,6 +258,7 @@
|
|
|
},
|
|
|
next(data){
|
|
|
this.flightNO = this.currentLuggage.flightNo;
|
|
|
+ this.flightDate = this.currentLuggage.flightDate;
|
|
|
this.getFlightData()
|
|
|
this.getluggageList()
|
|
|
this.$refs.showMask.hide();
|
|
@@ -261,11 +280,38 @@
|
|
|
"event": "0"
|
|
|
}
|
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
|
- if (res.code == "0") {
|
|
|
- this.flightDetail = res.returnData[0]
|
|
|
+ if (res.code == "0"&&res.returnData.length>0) {
|
|
|
+ this.flightDetail = []
|
|
|
+ if(this.flightDate&&this.flightDate!="null"){
|
|
|
+ res.returnData.map(item =>{
|
|
|
+ if(this.flightDate == item.carrierFlightsDate){
|
|
|
+ this.flightDetail = item
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.flightDetail = res.returnData[0]
|
|
|
+ }
|
|
|
+ if(this.flightDetail.scheduleTakeOffTime){
|
|
|
+ this.flightDetail.scheduleTakeOffTime = this.flightDetail.scheduleTakeOffTime.split("T")[1]
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ item.scheduleTakeOffTime = "-"
|
|
|
+ }
|
|
|
+ if(this.flightDetail.scheduleLandInTime){
|
|
|
+ this.flightDetail.scheduleLandInTime = this.flightDetail.scheduleLandInTime.split("T")[1]
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ item.scheduleLandInTime = "-"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ uni.showToast({
|
|
|
+ icon:'none',
|
|
|
+ title: "未查询到"+this.flightNO+"航班信息",
|
|
|
+ duration: 5000
|
|
|
+ });
|
|
|
}
|
|
|
- this.flightDetail.scheduleTakeOffTime = this.flightDetail.scheduleTakeOffTime.split("T")[1]
|
|
|
- this.flightDetail.scheduleLandInTime = this.flightDetail.scheduleLandInTime.split("T")[1]
|
|
|
})
|
|
|
},
|
|
|
async getluggageList(){
|
|
@@ -353,20 +399,20 @@
|
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
|
if(res.code == "0"&&res.returnData.length>0){
|
|
|
this.currentLuggage = res.returnData[0];
|
|
|
- if(this.flightNO&&this.flightNO == res.returnData[0].flightNo&&isSend==true){
|
|
|
+ console.log(this.flightNO)
|
|
|
+ if(this.flightNO !="null"&&this.flightNO&&this.flightNO == res.returnData[0].flightNo&&isSend==true){
|
|
|
this.setLuggage()
|
|
|
}
|
|
|
- else if(this.flightNO&&this.flightNO != res.returnData[0].flightNo){
|
|
|
+ else if(this.flightNO !="null"&&this.flightNO&&this.flightNO != res.returnData[0].flightNo){
|
|
|
this.tabname = res.returnData[0].flightNo
|
|
|
+ this.typeShow = true
|
|
|
this.$refs.showMask.show();
|
|
|
}
|
|
|
- else{
|
|
|
- this.currentIndex = index
|
|
|
+ else if(this.flightNO =="null"){
|
|
|
this.typeShow = false
|
|
|
this.maskTitle3 = '是否对航班:'+ res.returnData[0].flightNo + "行李进行"+this.navname+"操作?"
|
|
|
this.headername = '提示'
|
|
|
- this.$refs.showMask.show();
|
|
|
- this.flightNO = res.returnData[0].flightNo;
|
|
|
+ this.$refs.showMask3.show();
|
|
|
}
|
|
|
}
|
|
|
else{
|
|
@@ -496,15 +542,19 @@
|
|
|
this.listdate1 = arr;
|
|
|
this.sendData()
|
|
|
},
|
|
|
- confirm2: function(e) { //确定按钮
|
|
|
+ confirm2: function(e) { //确定一键操作按钮
|
|
|
+ this.cancel()
|
|
|
this.listdate2.map((item,index) =>{
|
|
|
this.currentLuggage = item;
|
|
|
+ this.currentLuggageNum = item.luggageNum;
|
|
|
this.setLuggage();
|
|
|
this.listdate1.unshift(item)
|
|
|
})
|
|
|
this.listdate2 = [];
|
|
|
},
|
|
|
confirm3: function(e) { //确定按钮
|
|
|
+ this.flightNO = this.currentLuggage.flightNo
|
|
|
+ this.flightDate = this.currentLuggage.flightDate
|
|
|
this.getFlightData();
|
|
|
this.getluggageList();
|
|
|
},
|