|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view class="app-content">
|
|
<view class="app-content">
|
|
<view class="header">
|
|
<view class="header">
|
|
- <view class="log" @tap="fall"></view>
|
|
|
|
|
|
+ <view class="log" @tap="fall"></view>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="nav">
|
|
<!-- <view class="nav">
|
|
<view :class="action === index ? 'nav_lists': 'nav_list'" v-for="(item, index) in list" :key="index" @tap="lop(index)">{{item.name}}</view>
|
|
<view :class="action === index ? 'nav_lists': 'nav_list'" v-for="(item, index) in list" :key="index" @tap="lop(index)">{{item.name}}</view>
|
|
@@ -22,6 +22,7 @@
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">航班号</view>
|
|
<view class="lable">航班号</view>
|
|
<span>{{luggageData.carrierFlights}}</span>
|
|
<span>{{luggageData.carrierFlights}}</span>
|
|
|
|
+ <button class="nodeList" @tap="toNode()">路径详情</button>
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">航班日期</view>
|
|
<view class="lable">航班日期</view>
|
|
@@ -41,80 +42,106 @@
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">操作节点</view>
|
|
<view class="lable">操作节点</view>
|
|
- <picker @change="bindPickerChange" :placeholderStyle="placeholderStyle" :value="index" :range-key="'nodeName'" :range="nodeList">
|
|
|
|
|
|
+ <picker @change="bindPickerChange" style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :value="index" :range-key="'nodeName'"
|
|
|
|
+ :range="nodeList">
|
|
<view class="uni-input">{{nodeNameList[index]}}</view>
|
|
<view class="uni-input">{{nodeNameList[index]}}</view>
|
|
</picker>
|
|
</picker>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">操作位置</view>
|
|
<view class="lable">操作位置</view>
|
|
- <uni-easyinput :inputBorder="false" :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
|
|
|
|
+ <uni-easyinput :inputBorder="false"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
v-model="luggageData.location_describe" type="text" placeholder="操作位置" />
|
|
v-model="luggageData.location_describe" type="text" placeholder="操作位置" />
|
|
</uni-forms>
|
|
</uni-forms>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">发往节点</view>
|
|
<view class="lable">发往节点</view>
|
|
- <picker @change="bindPickerChange2" :placeholderStyle="placeholderStyle" :value="index2" :range-key="'nodeName'" :range="nodeList">
|
|
|
|
|
|
+ <picker @change="bindPickerChange2"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :value="index2" :range-key="'nodeName'"
|
|
|
|
+ :range="nodeList">
|
|
<view class="uni-input">{{nodeNameList[index2]}}</view>
|
|
<view class="uni-input">{{nodeNameList[index2]}}</view>
|
|
</picker>
|
|
</picker>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">发往位置</view>
|
|
<view class="lable">发往位置</view>
|
|
- <uni-easyinput :inputBorder="false" :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
|
|
|
|
+ <uni-easyinput :inputBorder="false"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
v-model="luggageData.to_location_describe" type="text" placeholder="发往位置" />
|
|
v-model="luggageData.to_location_describe" type="text" placeholder="发往位置" />
|
|
</uni-forms>
|
|
</uni-forms>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">特殊行李类型</view>
|
|
<view class="lable">特殊行李类型</view>
|
|
- <picker @change="bindPickerChange3" :placeholderStyle="placeholderStyle" :value="index3" :range-key="'specialType'" :range="specialTypeList">
|
|
|
|
- <view class="uni-input">{{specialTypeList[index3].specialType?specialTypeList[index3].specialType:"无"}}</view>
|
|
|
|
|
|
+ <picker @change="bindPickerChange3"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :value="index3" :range-key="'specialTypeName'"
|
|
|
|
+ :range="specialTypeList">
|
|
|
|
+ <view class="uni-input">
|
|
|
|
+ {{specialTypeList[index3].specialType?specialTypeList[index3].specialTypeName:"无"}}
|
|
|
|
+ </view>
|
|
</picker>
|
|
</picker>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">异常类型</view>
|
|
<view class="lable">异常类型</view>
|
|
- <picker @change="bindPickerChange4" :placeholderStyle="placeholderStyle" :value="index4" :range-key="'type'" :range="exceptionList">
|
|
|
|
- <view class="uni-input">{{exceptionList[index4].type?exceptionList[index4].type:"无"}}</view>
|
|
|
|
|
|
+ <picker @change="bindPickerChange4"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :value="index4" :range-key="'name'"
|
|
|
|
+ :range="exceptionList">
|
|
|
|
+ <view class="uni-input">{{exceptionList[index4].type?exceptionList[index4].name:"无"}}</view>
|
|
</picker>
|
|
</picker>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">非正常状态码</view>
|
|
<view class="lable">非正常状态码</view>
|
|
- <picker @change="bindPickerChange5" :placeholderStyle="placeholderStyle" :value="index5" :range-key="'type'" :range="abnormalList">
|
|
|
|
- <view class="uni-input">{{abnormalList[index5].type?abnormalList[index5].type:"无"}}</view>
|
|
|
|
|
|
+ <picker @change="bindPickerChange5"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :value="index5" :range-key="'name'"
|
|
|
|
+ :range="abnormalList">
|
|
|
|
+ <view class="uni-input">{{abnormalList[index5].type?abnormalList[index5].name:"无"}}</view>
|
|
</picker>
|
|
</picker>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">装载序号</view>
|
|
<view class="lable">装载序号</view>
|
|
- <uni-easyinput :inputBorder="false" :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
|
|
|
|
+ <uni-easyinput :inputBorder="false"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
v-model="luggageData.loadNumber" type="text" placeholder="装载序号" />
|
|
v-model="luggageData.loadNumber" type="text" placeholder="装载序号" />
|
|
</uni-forms>
|
|
</uni-forms>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">容器编号</view>
|
|
<view class="lable">容器编号</view>
|
|
- <uni-easyinput :inputBorder="false" :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
|
|
|
|
+ <uni-easyinput :inputBorder="false"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
v-model="luggageData.container_ID" type="text" placeholder="容器编号" />
|
|
v-model="luggageData.container_ID" type="text" placeholder="容器编号" />
|
|
</uni-forms>
|
|
</uni-forms>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<view class="list">
|
|
<view class="list">
|
|
<view class="lable">备注</view>
|
|
<view class="lable">备注</view>
|
|
- <uni-easyinput :inputBorder="false" :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
|
|
|
|
+ <uni-easyinput :inputBorder="false"
|
|
|
|
+ style="line-height: 2.375rem;background-color: antiquewhite;"
|
|
|
|
+ :placeholderStyle="placeholderStyle" :clearable="false" :styles="style" :disabled="false"
|
|
v-model="luggageData.luggage_describe" type="text" placeholder="备注" />
|
|
v-model="luggageData.luggage_describe" type="text" placeholder="备注" />
|
|
</uni-forms>
|
|
</uni-forms>
|
|
- <view class="listup"></view>
|
|
|
|
|
|
+ <!-- <view class="listup"><uni-icons type="gear" size="25"></uni-icons></view> -->
|
|
</view>
|
|
</view>
|
|
<mk-upload :imgList="imgList" @onDelete="onDelete" @onChoose="onChoose" />
|
|
<mk-upload :imgList="imgList" @onDelete="onDelete" @onChoose="onChoose" />
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<button type="primary" class="send" size="small" v-if="luggageData" @tap="sendData()">提交</button>
|
|
<button type="primary" class="send" size="small" v-if="luggageData" @tap="sendData()">提交</button>
|
|
<luanqing-date-picker ref="datePickerObj" :isSimple="mode === 'simple'" :isMultiple="mode === 'multiple'"
|
|
<luanqing-date-picker ref="datePickerObj" :isSimple="mode === 'simple'" :isMultiple="mode === 'multiple'"
|
|
@@ -136,7 +163,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- imgList:[],
|
|
|
|
|
|
+ imgList: [],
|
|
ImgObjList: [],
|
|
ImgObjList: [],
|
|
placeholderStyle: "color:000",
|
|
placeholderStyle: "color:000",
|
|
style: {
|
|
style: {
|
|
@@ -147,77 +174,78 @@
|
|
datatime: '2023-06-02',
|
|
datatime: '2023-06-02',
|
|
datacontime: '',
|
|
datacontime: '',
|
|
luggageData: null,
|
|
luggageData: null,
|
|
- luggageDataOld:null,
|
|
|
|
|
|
+ luggageDataOld: null,
|
|
current: 0,
|
|
current: 0,
|
|
mode: 'round',
|
|
mode: 'round',
|
|
show: false,
|
|
show: false,
|
|
value1: Number(new Date()),
|
|
value1: Number(new Date()),
|
|
formatter: 'yy',
|
|
formatter: 'yy',
|
|
- index:0,
|
|
|
|
- index2:0,
|
|
|
|
- index3:0,
|
|
|
|
- index4:0,
|
|
|
|
- index5:0,
|
|
|
|
- nodeList:[],
|
|
|
|
- nodeNameList:[],
|
|
|
|
- nextNode:null,
|
|
|
|
- luggageNum:null,
|
|
|
|
- specialTypeList:[],
|
|
|
|
- specialTypeNameList:[],
|
|
|
|
- exceptionList:[
|
|
|
|
- {
|
|
|
|
- "type":null,
|
|
|
|
- "name":"非异常行李"
|
|
|
|
|
|
+ index: 0,
|
|
|
|
+ index2: 0,
|
|
|
|
+ index3: 0,
|
|
|
|
+ index4: 0,
|
|
|
|
+ index5: 0,
|
|
|
|
+ nodeList: [],
|
|
|
|
+ nodeNameList: [],
|
|
|
|
+ nextNode: null,
|
|
|
|
+ luggageNum: null,
|
|
|
|
+ specialTypeList: [],
|
|
|
|
+ specialTypeNameList: [],
|
|
|
|
+ exceptionList: [{
|
|
|
|
+ "type": null,
|
|
|
|
+ "name": "非异常行李"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"DPR",
|
|
|
|
- "name":"破损"
|
|
|
|
|
|
+ "type": "DPR",
|
|
|
|
+ "name": "破损"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"AHL",
|
|
|
|
- "name":"少收"
|
|
|
|
|
|
+ "type": "AHL",
|
|
|
|
+ "name": "少收"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"OHD",
|
|
|
|
- "name":"多收"
|
|
|
|
|
|
+ "type": "OHD",
|
|
|
|
+ "name": "多收"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- exceptionNameList:["非异常行李","破损","少收","多收"],
|
|
|
|
- abnormalList:[
|
|
|
|
|
|
+ exceptionNameList: ["非异常行李", "破损", "少收", "多收"],
|
|
|
|
+ abnormalList: [{
|
|
|
|
+ "type": null,
|
|
|
|
+ "name": "无"
|
|
|
|
+ },
|
|
{
|
|
{
|
|
- "type":null,
|
|
|
|
- "name":"无"
|
|
|
|
|
|
+ "type": "NAL",
|
|
|
|
+ "name": "未授权装载"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"NAL",
|
|
|
|
- "name":"未被授权的装载"
|
|
|
|
|
|
+ "type": "OFF",
|
|
|
|
+ "name": "已卸载"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"OFF",
|
|
|
|
- "name":"已卸载"
|
|
|
|
|
|
+ "type": "PFF",
|
|
|
|
+ "name": "预卸载"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"UNS",
|
|
|
|
- "name":"未找到"
|
|
|
|
|
|
+ "type": "UNS",
|
|
|
|
+ "name": "未找到"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"OND",
|
|
|
|
- "name":"在场未装载,未被授权"
|
|
|
|
|
|
+ "type": "OND",
|
|
|
|
+ "name": "在场未装载,未授权"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "type":"ONA",
|
|
|
|
- "name":"在场未装载,已授权"
|
|
|
|
|
|
+ "type": "ONA",
|
|
|
|
+ "name": "在场未装载,已授权"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- abnormalNameList:["无","未被授权的装载","已卸载","未找到","在场未装载,未被授权","在场未装载,已授权"],
|
|
|
|
- isShow:true,
|
|
|
|
- sourceData:null
|
|
|
|
|
|
+ abnormalNameList: ["无", "未被授权的装载", "已卸载", "未找到", "在场未装载,未被授权", "在场未装载,已授权"],
|
|
|
|
+ isShow: true,
|
|
|
|
+ sourceData: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created(option) {
|
|
|
|
- },
|
|
|
|
|
|
+ created(option) {},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
- this.luggageNum = option.luggageNum
|
|
|
|
|
|
+ this.luggageNum = option.luggageNum
|
|
this.getNode()
|
|
this.getNode()
|
|
this.getSpecialTypeList()
|
|
this.getSpecialTypeList()
|
|
this.getDetial(this.luggageNum)
|
|
this.getDetial(this.luggageNum)
|
|
@@ -231,7 +259,7 @@
|
|
this.luggageNum = data.msg.trim()
|
|
this.luggageNum = data.msg.trim()
|
|
this.getDetial(this.luggageNum)
|
|
this.getDetial(this.luggageNum)
|
|
}
|
|
}
|
|
- if(data.msg.trim().length < 9){
|
|
|
|
|
|
+ if (data.msg.trim().length < 9) {
|
|
this.luggageData.container_ID = data.msg.trim()
|
|
this.luggageData.container_ID = data.msg.trim()
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -258,7 +286,7 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- async getSpecialTypeList(){
|
|
|
|
|
|
+ async getSpecialTypeList() {
|
|
let data = {
|
|
let data = {
|
|
"serviceId": 16,
|
|
"serviceId": 16,
|
|
"dataContent": {},
|
|
"dataContent": {},
|
|
@@ -267,12 +295,10 @@
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
if (res.code == "0") {
|
|
if (res.code == "0") {
|
|
this.specialTypeList = res.returnData;
|
|
this.specialTypeList = res.returnData;
|
|
- this.specialTypeList.unshift(
|
|
|
|
- {
|
|
|
|
|
|
+ this.specialTypeList.unshift({
|
|
"specialType": null,
|
|
"specialType": null,
|
|
"specialTypeName": "非特殊行李",
|
|
"specialTypeName": "非特殊行李",
|
|
- }
|
|
|
|
- )
|
|
|
|
|
|
+ })
|
|
this.specialTypeList.map(item => {
|
|
this.specialTypeList.map(item => {
|
|
this.specialTypeNameList.push(item.specialTypeName)
|
|
this.specialTypeNameList.push(item.specialTypeName)
|
|
})
|
|
})
|
|
@@ -291,45 +317,48 @@
|
|
}
|
|
}
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
this.luggageData = null
|
|
this.luggageData = null
|
|
- if (res.code == "0" && res.returnData.length>0) {
|
|
|
|
|
|
+ if (res.code == "0" && res.returnData.length > 0) {
|
|
this.luggageData = res.returnData[0]
|
|
this.luggageData = res.returnData[0]
|
|
this.getImgList()
|
|
this.getImgList()
|
|
this.luggageDataOld = JSON.parse(JSON.stringify(res.returnData[0]))
|
|
this.luggageDataOld = JSON.parse(JSON.stringify(res.returnData[0]))
|
|
- this.nodeList.map((item,index)=>{
|
|
|
|
- if(res.returnData[0].nodeCode == item.nodeCode){
|
|
|
|
|
|
+ this.nodeList.map((item, index) => {
|
|
|
|
+ if (res.returnData[0].nodeCode == item.nodeCode) {
|
|
this.index = index
|
|
this.index = index
|
|
this.index2 = index + 1
|
|
this.index2 = index + 1
|
|
|
|
+ if(!this.luggageData.location_describe){
|
|
|
|
+ this.luggageData.location_describe = item.nodeDescribe
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.specialTypeList.map((item,index)=>{
|
|
|
|
- if(res.returnData[0].specialType == item.specialType){
|
|
|
|
|
|
+ this.specialTypeList.map((item, index) => {
|
|
|
|
+ if (res.returnData[0].specialType == item.specialType) {
|
|
this.index3 = index
|
|
this.index3 = index
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.exceptionList.map((item,index)=>{
|
|
|
|
- if(res.returnData[0].exception_type == item.type){
|
|
|
|
|
|
+ this.exceptionList.map((item, index) => {
|
|
|
|
+ if (res.returnData[0].exception_type == item.type) {
|
|
this.index4 = index
|
|
this.index4 = index
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.abnormalList.map((item,index)=>{
|
|
|
|
- if(res.returnData[0].abnormalState == item.type){
|
|
|
|
|
|
+ this.abnormalList.map((item, index) => {
|
|
|
|
+ if (res.returnData[0].abnormalState == item.type) {
|
|
this.index5 = index
|
|
this.index5 = index
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
- else{
|
|
|
|
|
|
+ } else {
|
|
this.$scanAudio.src = "../../static/hqxl.mp3"
|
|
this.$scanAudio.src = "../../static/hqxl.mp3"
|
|
this.$scanAudio.play()
|
|
this.$scanAudio.play()
|
|
this.imgList = []
|
|
this.imgList = []
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- icon:'none',
|
|
|
|
|
|
+ icon: 'none',
|
|
title: "未查询到该行李信息",
|
|
title: "未查询到该行李信息",
|
|
duration: 5000
|
|
duration: 5000
|
|
});
|
|
});
|
|
|
|
+ this.fall()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- async sendData(){
|
|
|
|
|
|
+ async sendData() {
|
|
this.luggageData.sourceAirport = this.$storage.get('airportName');
|
|
this.luggageData.sourceAirport = this.$storage.get('airportName');
|
|
this.luggageData.ID = null;
|
|
this.luggageData.ID = null;
|
|
this.luggageData.dataType = "BPM";
|
|
this.luggageData.dataType = "BPM";
|
|
@@ -345,42 +374,41 @@
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
await this.$http.httpPost('/openApi/query', data).then(res => {
|
|
if (res.code == "0") {
|
|
if (res.code == "0") {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- icon:'none',
|
|
|
|
|
|
+ icon: 'none',
|
|
title: "操作成功",
|
|
title: "操作成功",
|
|
duration: 5000
|
|
duration: 5000
|
|
});
|
|
});
|
|
- }
|
|
|
|
- else{
|
|
|
|
|
|
+ } else {
|
|
this.$scanAudio.src = "../../static/czsb.mp3"
|
|
this.$scanAudio.src = "../../static/czsb.mp3"
|
|
this.$scanAudio.play()
|
|
this.$scanAudio.play()
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- icon:'none',
|
|
|
|
|
|
+ icon: 'none',
|
|
title: "操作失败",
|
|
title: "操作失败",
|
|
duration: 5000
|
|
duration: 5000
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- bindPickerChange(e){
|
|
|
|
|
|
+ bindPickerChange(e) {
|
|
this.index = e.detail.value
|
|
this.index = e.detail.value
|
|
this.luggageData.nodeCode = this.nodeList[this.index].nodeCode;
|
|
this.luggageData.nodeCode = this.nodeList[this.index].nodeCode;
|
|
this.luggageData.location_describe = this.nodeList[this.index].nodeDescribe;
|
|
this.luggageData.location_describe = this.nodeList[this.index].nodeDescribe;
|
|
this.index2 = this.index + 1
|
|
this.index2 = this.index + 1
|
|
this.luggageData.to_location_describe = this.nodeList[this.index2].nodeDescribe;
|
|
this.luggageData.to_location_describe = this.nodeList[this.index2].nodeDescribe;
|
|
},
|
|
},
|
|
- bindPickerChange2(e){
|
|
|
|
|
|
+ bindPickerChange2(e) {
|
|
this.index2 = e.detail.value
|
|
this.index2 = e.detail.value
|
|
this.luggageData.to_location_describe = this.nodeList[this.index2].nodeDescribe;
|
|
this.luggageData.to_location_describe = this.nodeList[this.index2].nodeDescribe;
|
|
},
|
|
},
|
|
- bindPickerChange3(e){
|
|
|
|
|
|
+ bindPickerChange3(e) {
|
|
this.index3 = e.detail.value
|
|
this.index3 = e.detail.value
|
|
this.luggageData.specialType = this.specialTypeList[this.index3].specialType;
|
|
this.luggageData.specialType = this.specialTypeList[this.index3].specialType;
|
|
},
|
|
},
|
|
- bindPickerChange4(e){
|
|
|
|
|
|
+ bindPickerChange4(e) {
|
|
this.index4 = e.detail.value
|
|
this.index4 = e.detail.value
|
|
this.luggageData.exception_type = this.exceptionList[this.index4].type;
|
|
this.luggageData.exception_type = this.exceptionList[this.index4].type;
|
|
},
|
|
},
|
|
- bindPickerChange5(e){
|
|
|
|
|
|
+ bindPickerChange5(e) {
|
|
this.index5 = e.detail.value
|
|
this.index5 = e.detail.value
|
|
this.luggageData.abnormalState = this.abnormalList[this.index5].type;
|
|
this.luggageData.abnormalState = this.abnormalList[this.index5].type;
|
|
},
|
|
},
|
|
@@ -399,7 +427,7 @@
|
|
let GMT = Year + '-' + Moth + '-' + Day + ' ' + Hour + ':' + Minute
|
|
let GMT = Year + '-' + Moth + '-' + Day + ' ' + Hour + ':' + Minute
|
|
this.datacontime = GMT
|
|
this.datacontime = GMT
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
async sendImg(upImgList) {
|
|
async sendImg(upImgList) {
|
|
let data = {
|
|
let data = {
|
|
"serviceId": 30051,
|
|
"serviceId": 30051,
|
|
@@ -445,7 +473,7 @@
|
|
this.imgList.push(item.luggagePic);
|
|
this.imgList.push(item.luggagePic);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -463,7 +491,7 @@
|
|
"left": "(",
|
|
"left": "(",
|
|
"column": "id",
|
|
"column": "id",
|
|
"comparator": "=",
|
|
"comparator": "=",
|
|
- "value": this.ImgObjList[index].id,
|
|
|
|
|
|
+ "value": this.ImgObjList[index].id,
|
|
"right": ")",
|
|
"right": ")",
|
|
"connector": "and"
|
|
"connector": "and"
|
|
}]
|
|
}]
|
|
@@ -511,11 +539,10 @@
|
|
"carrierFlightsDate": this.luggageData.carrierFlightsDate,
|
|
"carrierFlightsDate": this.luggageData.carrierFlightsDate,
|
|
"luggageNum": this.luggageData.luggageNum,
|
|
"luggageNum": this.luggageData.luggageNum,
|
|
"luggagePic": path,
|
|
"luggagePic": path,
|
|
|
|
+ "piclocation":this.luggageData.location_describe
|
|
}
|
|
}
|
|
- // this.newImgList.push(path)
|
|
|
|
upImgList.push(newData)
|
|
upImgList.push(newData)
|
|
this.sendImg(upImgList)
|
|
this.sendImg(upImgList)
|
|
- // upImgList.push(newData)
|
|
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
})
|
|
})
|
|
@@ -534,7 +561,7 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- openImg(index){
|
|
|
|
|
|
+ openImg(index) {
|
|
const imgList = this.imgList;
|
|
const imgList = this.imgList;
|
|
const isReverse = false;
|
|
const isReverse = false;
|
|
const currentIndex = isReverse ? (imgList.length - index) - 1 : index
|
|
const currentIndex = isReverse ? (imgList.length - index) - 1 : index
|
|
@@ -544,8 +571,8 @@
|
|
urls: imgLists
|
|
urls: imgLists
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
finishSelectDate(e) {
|
|
finishSelectDate(e) {
|
|
this.datatime = e[0]
|
|
this.datatime = e[0]
|
|
console.error("选择了日期:", e);
|
|
console.error("选择了日期:", e);
|
|
@@ -559,7 +586,13 @@
|
|
this.dataheight = 3.75 + 'rem'
|
|
this.dataheight = 3.75 + 'rem'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ toNode() {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: "/pages/detailNode/index?luggageNum=" + this.luggageData.luggageNum + "&carrierFlights=" +
|
|
|
|
+ this.luggageData.carrierFlights + "&carrierFlightsDate=" + this.luggageData
|
|
|
|
+ .carrierFlightsDate
|
|
|
|
+ })
|
|
|
|
+ },
|
|
uplist() {
|
|
uplist() {
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
url: "/pages/loadingdetails/index"
|
|
url: "/pages/loadingdetails/index"
|
|
@@ -587,7 +620,7 @@
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.app-content {
|
|
.app-content {
|
|
- >.send{
|
|
|
|
|
|
+ >.send {
|
|
position: fixed;
|
|
position: fixed;
|
|
bottom: 10px;
|
|
bottom: 10px;
|
|
left: calc((100% - 20.5625rem) / 2);
|
|
left: calc((100% - 20.5625rem) / 2);
|
|
@@ -603,6 +636,7 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
+
|
|
>.header {
|
|
>.header {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 4.375rem;
|
|
height: 4.375rem;
|
|
@@ -627,7 +661,7 @@
|
|
background: url('../../static/ico@1x.png') no-repeat;
|
|
background: url('../../static/ico@1x.png') no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
>.up {
|
|
>.up {
|
|
width: .8456rem;
|
|
width: .8456rem;
|
|
height: .8456rem;
|
|
height: .8456rem;
|
|
@@ -676,9 +710,12 @@
|
|
font-family: Noto Sans SC;
|
|
font-family: Noto Sans SC;
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
- .uni-input{
|
|
|
|
- width: 200px;
|
|
|
|
|
|
+
|
|
|
|
+ .uni-input {
|
|
|
|
+ width: 240px;
|
|
|
|
+ padding-left: 10px;
|
|
}
|
|
}
|
|
|
|
+
|
|
>.lable {
|
|
>.lable {
|
|
color: rgb(0, 0, 0);
|
|
color: rgb(0, 0, 0);
|
|
font-family: Noto Sans SC;
|
|
font-family: Noto Sans SC;
|
|
@@ -691,12 +728,22 @@
|
|
}
|
|
}
|
|
|
|
|
|
>.listup {
|
|
>.listup {
|
|
- width: .25rem;
|
|
|
|
- height: .5rem;
|
|
|
|
- background: url('../../static/icos.png') no-repeat;
|
|
|
|
- background-size: 100% 100%;
|
|
|
|
|
|
+ // width: .25rem;
|
|
|
|
+ // height: .5rem;
|
|
|
|
+ // background: url('../../static/icos.png') no-repeat;
|
|
|
|
+ // background-size: 100% 100%;
|
|
position: absolute;
|
|
position: absolute;
|
|
- right: 1.5rem;
|
|
|
|
|
|
+ right: 5px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ >.nodeList {
|
|
|
|
+ background: linear-gradient(179.10deg, rgba(51, 161, 165, 1.00) 11.326%, rgba(59, 111, 142, 1.00) 119.032%, rgba(59, 111, 142, 1.00) 119.032%, rgba(59, 111, 142, 1.00) 119.032%);
|
|
|
|
+ border-radius: .25rem;
|
|
|
|
+ color: rgb(255, 255, 255);
|
|
|
|
+ font-family: Noto Sans SC;
|
|
|
|
+ font-size: 1rem;
|
|
|
|
+ float: right;
|
|
|
|
+ margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|