index.vue 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052
  1. <template>
  2. <view class="app-content">
  3. <!-- <img src="../../static/beijing.png" alt="" class="tuku"> -->
  4. <Navs :navname.sync="navname" @fall="fall" :index='index'></Navs>
  5. <view class="content">
  6. <flightInfo :flightDetail="flightDetail" :isSite="pagename" :site="stratvalue" :containerNo="container_ID" :passenger_cabin="passenger_cabin" :luggageNo="currentLuggageNum" @setVal='setVal'></flightInfo>
  7. <view class="content_bootom" :style="{top:dataheight}">
  8. <view class="choice">
  9. <view :class="action === true ?'handle':'handles'" @tap="clicker(true)">已处理/{{listdate1.length}}件
  10. </view>
  11. <view :class="action !== true ?'handle':'handles'" @tap="clicker(false)">未处理/{{listdate2.length}}件
  12. </view>
  13. </view>
  14. <scroll-view scroll-y="true" class="scroll-Y">
  15. <view v-if="action === true" :class="item.types ? 'ups':'up'" v-for="(item, index) in listdate1"
  16. :key="index">
  17. <view class="list" @tap="toDetail(item.luggageNum)">{{ item.luggageNum }}</view>
  18. <view class="normal" @tap="toDetail(item.luggageNum)">
  19. {{item.specialType!=null?specialTypeList[item.specialType]:" "}}
  20. </view>
  21. <view :class="item.abnormalType!=null?'error':'normal'" @tap="toDetail(item.luggageNum)">
  22. {{item.abnormalType!=null?item.abnormalName:"正常"}}</view>
  23. <view class="down_up" v-if="pagename == 'LOAD' && item.abnormalType!='OFF' && item.abnormalType!='POFF'"
  24. @tap="up(item,index)"></view>
  25. <view class="delete" v-if="pagename == 'LOAD' && item.abnormalType!='OFF' && item.abnormalType!='POFF'">
  26. <view class="log" @click="()=>up(item,index)"></view>
  27. </view>
  28. </view>
  29. <view v-if="action !== true" :class="item.types ? 'ups':'up'" v-for="(item, index) in listdate2"
  30. :key="index" @tap="toDetail(item.luggageNum)">
  31. <view class="list" >{{ item.luggageNum }}</view>
  32. <view class="normal">
  33. {{item.specialType!=null?specialTypeList[item.specialType]:" "}}
  34. </view>
  35. <view :class="item.abnormalType!=null?'error':'normal'">
  36. {{item.abnormalType!=null?item.abnormalName:"正常"}}</view>
  37. </view>
  38. </scroll-view>
  39. <view class="but" v-if="!action&&listdate2.length>0" @tap="clickOrder">一键处理</view>
  40. </view>
  41. </view>
  42. <!-- 提示信息和下拉弹窗 -->
  43. <mask-model :headername="headername" :typeShow="typeShow" :tabname="tabname" ref="showMask" btnType="1"
  44. @confirm="confirm" @next="next" @load="load" @cancel="cancel" titleColoe="#666666" cancelColor="#666666"
  45. confirmColor="#007AFF" :maskTitle="maskTitle"></mask-model>
  46. <!-- 一键弹窗 -->
  47. <mask-model :headername="headername" :typeShow="typeShow" ref="showMask2" btnType="1" @confirm="confirm2"
  48. @cancel="cancel" titleColoe="#666666" cancelColor="#666666" confirmColor="#007AFF"
  49. :maskTitle="maskTitle2"></mask-model>
  50. <!-- 航班开始操作弹窗 -->
  51. <mask-model :headername="headername" :typeShow="typeShow" ref="showMask3" btnType="1" @confirm="confirm3"
  52. @cancel="cancel3" titleColoe="#666666" cancelColor="#666666" confirmColor="#007AFF"
  53. :maskTitle="maskTitle3"></mask-model>
  54. </view>
  55. </template>
  56. <script>
  57. import Navs from '../../components/header/navs.vue'
  58. import maskModel from '../../components/mask-model/mask-model.vue'
  59. import flightInfo from '@/components/flightInfo/flightInfo.vue'
  60. import {
  61. Format
  62. } from '@/components/utils/validate'
  63. export default {
  64. data() {
  65. return {
  66. isShow: true,
  67. dataheight: '15.5rem',
  68. scrollTop: 0,
  69. input: '',
  70. arr: [],
  71. navname: '',
  72. action: true,
  73. listdate: [],
  74. listdate1: [],
  75. loadNumber: 0,
  76. listdate2: [],
  77. startData: {
  78. clientX: 0,
  79. clientY: 0
  80. },
  81. stratvalue: '', //开始位置
  82. container_ID: '',//容器编号
  83. passenger_cabin:'',//仓位号
  84. endvalue: '', //结束位置
  85. maskTitle: '该行李不属于当前航班,请选择处理方式。',
  86. maskTitle2: "",
  87. maskTitle3: "",
  88. tabname: '', //航班名称
  89. typeShow: true,
  90. headername: '提示信息',
  91. flightNO: "null",
  92. flightDate: null,
  93. outAirport:null,
  94. landAirport:null,
  95. onFlightDate: null,
  96. flightDetail: {},
  97. index: 0,
  98. currentLuggageNum: null,
  99. pagename: "",
  100. currentLuggage: null,
  101. currentIndex: null,
  102. abnormalList: [{
  103. "type": null,
  104. "name": "无"
  105. },
  106. {
  107. "type": "NAL",
  108. "name": "未授权装载"
  109. },
  110. {
  111. "type": "OFF",
  112. "name": "已卸载"
  113. },
  114. {
  115. "type": "PFF",
  116. "name": "预卸载"
  117. },
  118. {
  119. "type": "UNS",
  120. "name": "未找到"
  121. },
  122. {
  123. "type": "OND",
  124. "name": "在场未装载,未授权"
  125. },
  126. {
  127. "type": "ONA",
  128. "name": "在场未装载,已授权"
  129. }
  130. ],
  131. oldRfidList: [],
  132. specialTypeList:{
  133. "AVIH":"装笼动物",
  134. "CREW":"机组行李",
  135. "RFAG":"易碎行李",
  136. "HVY":"重型行李",
  137. "PRIO":"优先行李",
  138. "RUSH":"无人行李",
  139. "SCON":"急转行李",
  140. "SPEQ":"运动装备",
  141. "VIP":"VIP行李",
  142. "WCHR":"轮椅",
  143. "WFAP":"武器枪支",
  144. "SJ05":"到港行李破损",
  145. "SJ34":"超大柜台接收",
  146. }
  147. }
  148. },
  149. created(option) {},
  150. onLoad(option) {
  151. this.pagename = option.item
  152. this.flightNO = option.flightNO
  153. this.flightDate = option.date
  154. this.outAirport = option.outAirport
  155. this.landAirport = option.landAirport
  156. this.getNode()
  157. switch (this.pagename) {
  158. case "SORT":
  159. this.navname = "分拣"
  160. break;
  161. case "LOAD":
  162. this.navname = "装车"
  163. break;
  164. case "INFL":
  165. this.navname = "装机"
  166. break;
  167. case "UNLOAD":
  168. this.navname = "卸机"
  169. break;
  170. case "ARRIVED":
  171. this.navname = "到达"
  172. break;
  173. case "RETURN":
  174. this.navname = "退运"
  175. break;
  176. default:
  177. break;
  178. }
  179. if (this.flightNO != "null" && this.flightNO) {
  180. this.getFlightData()
  181. }
  182. console.log("onLoad")
  183. },
  184. onUnload() {
  185. uni.$off("scancodemsg");
  186. if(this.$devapi.RFIDIntervalTime!=0){
  187. this.$devapi.RFIDStopInventory()
  188. this.$devapi.ISRFIDOPEN = false
  189. }
  190. },
  191. onShow() {
  192. uni.$on("scancodemsg", (data) => {
  193. // data.msg = '0089580761'
  194. if (data.msg.trim().length > 9) {
  195. this.currentLuggageNum = data.msg.trim()
  196. this.getluggage(this.currentLuggageNum, true)
  197. }
  198. if (data.msg.trim().length < 9) {
  199. this.container_ID = data.msg.trim()
  200. }
  201. });
  202. uni.$on("scancodeList", (data) => {
  203. // data.msg = ['0089580818','0089580819','0089580820', '0089580783', '0089580816']
  204. if (this.flightNO == "null" && data.msg.length > 0) {
  205. this.currentLuggageNum = data.msg[0].trim()
  206. this.getluggage(this.currentLuggageNum, true)
  207. this.$devapi.RFIDStopInventory()
  208. this.$devapi.ISRFIDOPEN = false
  209. } else if (this.flightNO && data.msg.length > 0) {
  210. data.msg.map(item => {
  211. if (_.findIndex(this.listdate1, function(o) {
  212. return o.luggageNum == item
  213. }) < 0) {
  214. if (item.trim().length > 9) {
  215. this.currentLuggageNum = item.trim()
  216. this.getluggage(this.currentLuggageNum, true)
  217. }
  218. }
  219. })
  220. }
  221. });
  222. if (this.$storage.getJson('airport')) {
  223. this.index = this.$storage.getJson('airport')
  224. }
  225. if (this.flightNO != "null" && this.flightNO) {
  226. this.getFlightData()
  227. }
  228. console.log("onShow")
  229. },
  230. onHide() {
  231. uni.$off("scancodemsg");
  232. },
  233. mounted() {
  234. // this.$refs.showMask.show();
  235. // console.log(this.stratvalue.length)
  236. },
  237. computed: {
  238. getFooterClass() {
  239. return this.stratvalue ? 'scanning_cds' : 'scanning_cd'
  240. },
  241. getlooterClass() {
  242. return this.currentLuggageNum ? 'scanning_cds' : 'scanning_cd'
  243. },
  244. getFooterClasser() {
  245. return this.container_ID ? 'scanning_cds' : 'scanning_cd'
  246. },
  247. },
  248. components: {
  249. Navs,
  250. maskModel: maskModel,
  251. flightInfo
  252. },
  253. methods: {
  254. setVal(a,b){
  255. if(b == "site"){
  256. this.stratvalue = a.trim();
  257. }
  258. else if(b == "passenger_cabin"){
  259. this.passenger_cabin = a.trim();
  260. }
  261. else if(b == "containerNo"){
  262. this.container_ID = a.trim();
  263. }
  264. else if(b == "luggageNo"){
  265. this.currentLuggageNum = a.trim();
  266. this.getluggage(a,true)
  267. }
  268. },
  269. scan(type) {
  270. let that = this
  271. uni.scanCode({
  272. onlyFromCamera: true,
  273. success: function(res) {
  274. if (type == "1") {
  275. that.stratvalue = res.result;
  276. } else if (type == "2") {
  277. that.container_ID = res.result;
  278. } else {
  279. that.currentLuggageNum = res.result
  280. that.getluggage(that.currentLuggageNum, true)
  281. }
  282. }
  283. });
  284. },
  285. async getNode() {
  286. let data = {
  287. "serviceId": 3003,
  288. "dataContent": {},
  289. "event": "0"
  290. }
  291. await this.$http.httpPost('/openApi/query', data).then(res => {
  292. if (res.code == "0") {
  293. res.returnData.map(item => {
  294. if (item.nodeCode == this.pagename) {
  295. this.stratvalue = item.nodeDescribe;
  296. }
  297. })
  298. }
  299. })
  300. },
  301. next(data) {
  302. this.flightNO = this.currentLuggage.carrierFlights;
  303. this.flightDate = this.currentLuggage.carrierFlightsDate;
  304. this.outAirport = this.currentLuggage.outAirport;
  305. this.landAirport = this.currentLuggage.landAirport;
  306. this.loadNumber = 0;
  307. this.getFlightData()
  308. this.$refs.showMask.hide();
  309. },
  310. load() {
  311. this.currentLuggage.carrierFlights = this.flightNO
  312. this.currentLuggage.carrierFlightsDate = this.flightDate;
  313. this.currentLuggage.outAirport = this.outAirport;
  314. this.currentLuggage.landAirport = this.landAirport;
  315. let datas = this.setLuggage()
  316. this.sendData(datas)
  317. },
  318. async getFlightData() {
  319. let data = {
  320. "serviceId": 3000,
  321. "page": 1,
  322. "pageSize": 10,
  323. "dataContent": [{
  324. "carrierFlights": this.flightNO
  325. }],
  326. "event": "0"
  327. }
  328. await this.$http.httpPost('/openApi/query', data).then(res => {
  329. if (res.code == "0" && res.returnData.length > 0) {
  330. this.flightDetail = []
  331. if (this.flightDate && this.flightDate != "null") {
  332. console.log(this.outAirport)
  333. console.log(this.landAirport)
  334. res.returnData.map(item => {
  335. if (this.flightDate == item.carrierFlightsDate && this.outAirport == item.outAirport&& this.landAirport == item.landAirport) {
  336. this.flightDetail = item
  337. this.getluggageList()
  338. }
  339. })
  340. } else {
  341. this.flightDetail = res.returnData[0]
  342. this.getluggageList()
  343. }
  344. if (this.flightDetail.scheduleTakeOffTime) {
  345. this.flightDetail.scheduleTakeOffTime = this.flightDetail.scheduleTakeOffTime
  346. .split("T")[1]
  347. } else {
  348. item.scheduleTakeOffTime = "-"
  349. }
  350. if (this.flightDetail.scheduleLandInTime) {
  351. this.flightDetail.scheduleLandInTime = this.flightDetail.scheduleLandInTime.split(
  352. "T")[1]
  353. } else {
  354. item.scheduleLandInTime = "-"
  355. }
  356. } else {
  357. this.$scanAudio.src = "../../static/hqhb.mp3"
  358. this.$scanAudio.play()
  359. uni.showToast({
  360. icon: 'none',
  361. title: "未查询到" + this.flightNO + "航班信息",
  362. duration: 5000
  363. });
  364. }
  365. })
  366. },
  367. async getluggageList() {
  368. let data = {
  369. "serviceId": 3001,
  370. "page": 1,
  371. "pageSize": 999,
  372. "dataContent": {
  373. "carrierFlights": this.flightDetail.carrierFlights,
  374. "carrierFlightsDate": this.flightDetail.carrierFlightsDate,
  375. "outAirport":this.flightDetail.outAirport,
  376. "landAirport":this.flightDetail.landAirport
  377. },
  378. "event": "0"
  379. }
  380. await this.$http.httpPost('/openApi/query', data).then(res => {
  381. this.listdate1 = []
  382. this.listdate2 = []
  383. if (res.code == "0") {
  384. this.listdate = res.returnData;
  385. res.returnData.map(item => {
  386. this.abnormalList.map(item2 => {
  387. if (item.abnormalType == item2.type) {
  388. item.abnormalName = item2.name
  389. }
  390. })
  391. switch (this.pagename) {
  392. case "SORT":
  393. if (item.sorting_time != null) {
  394. this.listdate1.push(item)
  395. this.listdate1.sort(this.compareDesc("sorting_time"))
  396. } else {
  397. this.listdate2.push(item)
  398. }
  399. break;
  400. case "LOAD":
  401. if (item.loading_time != null) {
  402. this.listdate1.push(item)
  403. this.listdate1.sort(this.compareDesc("loading_time"))
  404. } else {
  405. this.listdate2.push(item)
  406. }
  407. break;
  408. case "INFL":
  409. if (item.installation_time != null) {
  410. this.listdate1.push(item)
  411. this.listdate1.sort(this.compareDesc("installation_time"))
  412. } else {
  413. this.listdate2.push(item)
  414. }
  415. break;
  416. case "UNLOAD":
  417. if (item.unloadtime != null) {
  418. this.listdate1.push(item)
  419. this.listdate1.sort(this.compareDesc("unloadtime"))
  420. } else {
  421. this.listdate2.push(item)
  422. }
  423. break;
  424. case "ARRIVED":
  425. if (item.arrivedtime != null) {
  426. this.listdate1.push(item)
  427. this.listdate1.sort(this.compareDesc("arrivedtime"))
  428. } else {
  429. this.listdate2.push(item)
  430. }
  431. break;
  432. case "RETURN":
  433. if (item.luggage_describe != null) {
  434. this.listdate1.push(item)
  435. } else {
  436. this.listdate2.push(item)
  437. }
  438. break;
  439. default:
  440. break;
  441. }
  442. })
  443. if (this.loadNumber == 0 && this.currentLuggageNum != null) {
  444. this.loadNumber = this.listdate1.length;
  445. let datas = this.setLuggage()
  446. this.sendData(datas)
  447. } else {
  448. this.loadNumber = this.listdate1.length;
  449. }
  450. }
  451. })
  452. },
  453. async getluggage(num, isSend) {
  454. let data = {
  455. "serviceId": 3002,
  456. "page": 1,
  457. "pageSize": 1,
  458. "dataContent": {
  459. "luggageNum": num, //行李号
  460. },
  461. "event": "0"
  462. }
  463. await this.$http.httpPost('/openApi/query', data).then(res => {
  464. if (res.code == "0" && res.returnData.length > 0) {
  465. this.currentLuggage = res.returnData[0];
  466. if (this.flightNO != "null" && this.flightNO && this.flightNO == res.returnData[0]
  467. .carrierFlights && isSend == true) {
  468. let datas = this.setLuggage()
  469. this.sendData(datas)
  470. } else if (this.flightNO != "null" && this.flightNO && this.flightNO != res.returnData[
  471. 0].carrierFlights) {
  472. if (this.$storage.get('times') == 1 && this.$storage.get('device') == 1) {
  473. return
  474. } else {
  475. this.tabname = res.returnData[0].carrierFlights
  476. this.typeShow = true
  477. this.$refs.showMask.show();
  478. this.$scanAudio.src = "../../static/qzcz.mp3"
  479. this.$scanAudio.play()
  480. }
  481. } else if (this.flightNO == "null") {
  482. this.typeShow = false
  483. this.maskTitle3 = '是否对航班:' + res.returnData[0].carrierFlights + "行李进行" + this
  484. .navname + "操作?"
  485. this.headername = '提示'
  486. this.$refs.showMask3.show();
  487. this.$scanAudio.src = "../../static/kscz.mp3"
  488. this.$scanAudio.play()
  489. }
  490. } else {
  491. if(this.$devapi.RFIDIntervalTime!=0){
  492. this.$devapi.RFIDStopInventory()
  493. this.$devapi.ISRFIDOPEN = false
  494. }
  495. this.$scanAudio.src = "../../static/hqxl.mp3"
  496. this.$scanAudio.play()
  497. uni.showToast({
  498. icon: 'none',
  499. title: "未查询到" + this.currentLuggageNum + "行李信息",
  500. duration: 5000
  501. });
  502. }
  503. })
  504. },
  505. setLuggage(data) {
  506. let arr = []
  507. if (data) {
  508. data.map(item => {
  509. if(this.pagename=="RETURN"){
  510. item.luggage_describe = "退运"
  511. }
  512. else{
  513. item.nodeCode = this.pagename;
  514. item.nodeName = this.navname;
  515. }
  516. item.location_code = this.stratvalue!=""?this.stratvalue:item.location_code;
  517. item.container_ID = this.container_ID!=""?this.container_ID:item.container_ID;
  518. item.passenger_cabin = this.passenger_cabin!=""?this.passenger_cabin:item.passenger_cabin;
  519. item.loadNumber = this.loadNumber++;
  520. item.sourceAirport = this.$storage.get('airportName');
  521. item.ID = null;
  522. item.dataType = "BPM";
  523. item.agentNumber = this.$storage.getJson("users").user_name;
  524. item.device_ID = uni.getDeviceInfo().deviceId;
  525. arr.push(item)
  526. })
  527. return arr
  528. } else {
  529. if(this.pagename=="RETURN"){
  530. this.currentLuggage.luggage_describe = "退运"
  531. }
  532. else{
  533. this.currentLuggage.nodeCode = this.pagename;
  534. this.currentLuggage.nodeName = this.navname;
  535. }
  536. this.currentLuggage.location_code = this.stratvalue!=""?this.stratvalue:this.currentLuggage.location_code;
  537. this.currentLuggage.container_ID = this.container_ID!=""?this.container_ID:this.currentLuggage.container_ID;
  538. this.currentLuggage.passenger_cabin = this.passenger_cabin!=""?this.passenger_cabin:this.currentLuggage.passenger_cabin;
  539. this.currentLuggage.loadNumber = this.loadNumber++;
  540. this.currentLuggage.sourceAirport = this.$storage.get('airportName');
  541. this.currentLuggage.ID = null;
  542. this.currentLuggage.dataType = "BPM";
  543. this.currentLuggage.agentNumber = this.$storage.getJson("users").user_name;
  544. this.currentLuggage.device_ID = uni.getDeviceInfo().deviceId;
  545. arr.push(this.currentLuggage)
  546. return arr
  547. }
  548. },
  549. async sendData(result) {
  550. let that = this;
  551. let data = {
  552. "serviceId": 3005,
  553. "dataContent": result,
  554. "event": "0"
  555. }
  556. await this.$http.httpPost('/openApi/query', data).then(res => {
  557. if (res.code == "0") {
  558. if (result.length > 1) {
  559. setTimeout(function() {
  560. uni.showToast({
  561. icon: 'none',
  562. title: "操作行李成功",
  563. duration: 5000
  564. });
  565. that.getluggageList()
  566. }, 3000)
  567. } else {
  568. this.getluggageList()
  569. }
  570. } else {
  571. this.$scanAudio.src = "../../static/czsb.mp3"
  572. this.$scanAudio.play()
  573. uni.showToast({
  574. icon: 'none',
  575. title: "操作失败",
  576. duration: 5000
  577. });
  578. }
  579. })
  580. },
  581. datatime() {
  582. let dataTime = Format("yyyy-MM-dd hh:mm:ss", new Date());
  583. return dataTime
  584. },
  585. //下拉
  586. up(item, index) {
  587. this.currentLuggageNum = item.luggageNum;
  588. this.getluggage(this.currentLuggageNum, false);
  589. this.currentIndex = index
  590. this.typeShow = false
  591. this.maskTitle = '是否确定要拉下该件行李?'
  592. this.headername = '拉下提示'
  593. this.$refs.showMask.show();
  594. this.$scanAudio.src = "../../static/sflx.mp3"
  595. this.$scanAudio.play()
  596. },
  597. confirm: function(e) { //确定按钮
  598. this.currentLuggage.abnormalState = "PFF"
  599. this.currentLuggage.abnormalName = "预卸载"
  600. let datas = this.setLuggage()
  601. this.sendData(datas)
  602. },
  603. confirm2(e) { //确定一键操作按钮
  604. uni.showToast({
  605. icon: 'none',
  606. title: "操作中",
  607. duration: 5000
  608. });
  609. let data = this.listdate2
  610. let datas = this.setLuggage(data)
  611. this.sendData(datas)
  612. },
  613. confirm3: function(e) { //确定按钮
  614. this.flightNO = this.currentLuggage.carrierFlights
  615. this.flightDate = this.currentLuggage.carrierFlightsDate
  616. this.landAirport = this.currentLuggage.landAirport
  617. this.outAirport = this.currentLuggage.outAirport
  618. this.getFlightData();
  619. if (this.$devapi.RFIDIntervalTime!=0) {//继续连续操作
  620. this.$devapi.RFIDStartInventory()
  621. this.$devapi.ISRFIDOPEN = true
  622. }
  623. },
  624. cancel3: function() { //取消按钮
  625. this.flightNO = "null"
  626. },
  627. cancel: function() { //取消按钮
  628. console.log('您点击了取消按钮');
  629. },
  630. toDetail(num) {
  631. uni.navigateTo({
  632. // url: "/pages/detail/index?luggageNum=" + data.msg
  633. url: "/pages/detail/index?luggageNum=" + num
  634. })
  635. },
  636. clickOrder() {
  637. this.typeShow = false
  638. this.maskTitle2 = '是否确定要一键' + this.navname + '全部行李?'
  639. this.headername = '操作提示'
  640. this.$refs.showMask2.show();
  641. this.$scanAudio.src = "../../static/yjzc.mp3"
  642. this.$scanAudio.play()
  643. },
  644. baggageEntry() {
  645. uni.navigateTo({
  646. url: "/pages/baggageEntry/index"
  647. })
  648. },
  649. locationEntry() {
  650. uni.navigateTo({
  651. url: "/pages/locationEntry/index"
  652. })
  653. },
  654. fall() {
  655. uni.navigateBack({
  656. delta: 1
  657. })
  658. },
  659. clicker(e) {
  660. this.action = !this.action
  661. if (e != this.action) {
  662. this.action = e
  663. }
  664. },
  665. compareDesc(propertyName) {
  666. return function(object1, object2) {
  667. var value1 = object1[propertyName];
  668. var value2 = object2[propertyName];
  669. if (value2 < value1) {
  670. return -1;
  671. } else if (value2 > value1) {
  672. return 1;
  673. } else {
  674. return 0;
  675. }
  676. }
  677. },
  678. movetran(e) {
  679. let arr = uni.getSystemInfoSync().windowHeight;
  680. this.dataheight = (e.changedTouches[0].clientY / 16) + 'rem'
  681. if (e.changedTouches[0].clientY / 16 > 20.75) {
  682. this.dataheight = 20.75 + 'rem'
  683. } else if (e.changedTouches[0].clientY / 16 < 7.3125) {
  684. this.dataheight = 6.3125 + 'rem'
  685. }
  686. },
  687. start(e) {
  688. this.startData.clientX = e.changedTouches[0].clientX;
  689. },
  690. end(e, item) {
  691. const subX = e.changedTouches[0].clientX - this.startData.clientX;
  692. if (subX > 50) {
  693. // console.log('右滑')
  694. item.types = false
  695. } else if (subX < -50) {
  696. item.types = true
  697. // console.log('左滑')
  698. }
  699. },
  700. checkMore(item) {
  701. console.log(item)
  702. }
  703. },
  704. }
  705. </script>
  706. <style lang="scss" scoped>
  707. .app-content {
  708. position: relative;
  709. background: rgb(49, 85, 99);
  710. >.content {
  711. width: 100%;
  712. height: calc(100vh - 5.375rem);
  713. position: relative;
  714. // overflow: hidden;
  715. // background: rgb(49, 85, 99);
  716. >.content_top {
  717. width: 100%;
  718. // background: rgb(49, 85, 99);
  719. padding-bottom: 1.3125rem;
  720. >.craid {
  721. // width: 100%;
  722. height: 5.625rem;
  723. padding: 0 2.5625rem 0 2.5625rem;
  724. display: flex;
  725. justify-content: space-between;
  726. flex-wrap: wrap;
  727. align-items: center;
  728. >.craid_data {
  729. display: flex;
  730. flex-direction: column;
  731. justify-content: center;
  732. align-items: start;
  733. >p {
  734. color: rgb(255, 255, 255);
  735. font-family: Noto Sans SC;
  736. font-size: 18px;
  737. font-weight: 700;
  738. }
  739. >span {
  740. color: rgb(255, 255, 255);
  741. font-family: Noto Sans SC;
  742. font-size: 13px;
  743. font-weight: 500;
  744. }
  745. }
  746. .fight_center {
  747. width: 3rem;
  748. display: flex;
  749. flex-direction: column;
  750. align-items: center;
  751. justify-content: center;
  752. color: rgb(255, 255, 255);
  753. font-family: Noto Sans SC;
  754. font-size: 16px;
  755. line-height: 24px;
  756. font-weight: 700;
  757. >.aircraft {
  758. width: 1.75rem;
  759. height: 1.75rem;
  760. background: url('../../static/hang.png') no-repeat;
  761. background-size: 100% 100%;
  762. }
  763. }
  764. }
  765. >.craids {
  766. height: 5.625rem;
  767. padding: 0 2.5625rem 0 2.5625rem;
  768. display: flex;
  769. justify-content: center;
  770. align-items: center;
  771. >p {
  772. color: rgb(189, 214, 231);
  773. font-family: Noto Sans SC;
  774. font-size: 13px;
  775. font-weight: 500;
  776. }
  777. }
  778. >.scanning {
  779. height: 12rem;
  780. padding: 0 1.5rem 0 1.5rem;
  781. opacity: 1;
  782. transition: all 3s;
  783. .scanning_cd {
  784. width: 100%;
  785. height: 3rem;
  786. opacity: 1;
  787. transition: all 3s;
  788. background: rgb(59, 103, 123);
  789. margin-top: 1rem;
  790. margin-bottom: .5rem;
  791. border-radius: 4px;
  792. display: flex;
  793. justify-content: center;
  794. align-items: center;
  795. color: rgb(255, 255, 255);
  796. font-family: Noto Sans SC;
  797. font-size: 16px;
  798. >.log {
  799. width: .875rem;
  800. height: .875rem;
  801. background: url('../../static/saoma.png') no-repeat;
  802. background-size: 100% 100%;
  803. margin-left: 1rem;
  804. }
  805. >.log_l {
  806. width: .125rem;
  807. height: 1.3125rem;
  808. margin-left: 4rem;
  809. background: rgb(255, 255, 255);
  810. }
  811. }
  812. .scanning_cds {
  813. width: 100%;
  814. height: 3rem;
  815. opacity: 1;
  816. transition: all 3s;
  817. background: rgb(51, 161, 165);
  818. margin-top: 1rem;
  819. margin-bottom: .5rem;
  820. border-radius: 4px;
  821. display: flex;
  822. justify-content: center;
  823. align-items: center;
  824. color: rgb(255, 255, 255);
  825. font-family: Noto Sans SC;
  826. font-size: 16px;
  827. >.log {
  828. width: .875rem;
  829. height: .875rem;
  830. background: url('../../static/saoma.png') no-repeat;
  831. background-size: 100% 100%;
  832. margin-left: 1rem;
  833. }
  834. >.log_l {
  835. width: .125rem;
  836. height: 1.3125rem;
  837. margin-left: 4rem;
  838. background: rgb(255, 255, 255);
  839. }
  840. }
  841. }
  842. }
  843. >.content_bootom {
  844. width: 100%;
  845. // height: calc(100vh - 20.9375rem - 4.375rem);
  846. padding-bottom: 0;
  847. position: absolute;
  848. bottom: 0;
  849. top: 20.75rem;
  850. border-radius: 6px 6px 0px 0px;
  851. overflow: hidden;
  852. background: rgb(255, 255, 255);
  853. >.choice {
  854. width: 100%;
  855. height: 2.5rem;
  856. display: flex;
  857. background: rgb(240, 241, 243);
  858. >.handle {
  859. width: 50%;
  860. display: flex;
  861. align-items: center;
  862. justify-content: center;
  863. color: rgb(0, 0, 0);
  864. font-family: Noto Sans SC;
  865. font-size: 15px;
  866. font-weight: 700;
  867. border-radius: 6px 6px 0px 0px;
  868. background: rgb(255, 255, 255);
  869. }
  870. >.handles {
  871. width: 50%;
  872. display: flex;
  873. align-items: center;
  874. justify-content: center;
  875. color: rgb(0, 0, 0);
  876. font-family: Noto Sans SC;
  877. font-size: 15px;
  878. font-weight: 700;
  879. }
  880. }
  881. .up {
  882. width: 100%;
  883. display: flex;
  884. align-items: center;
  885. justify-content: space-between;
  886. margin-left: 1rem;
  887. border-bottom: 1px solid rgb(238, 238, 238);
  888. // transform: all 3s;
  889. >.down_up {
  890. width: .875rem;
  891. height: .875rem;
  892. background: url('../../static/xia.png') no-repeat;
  893. background-size: 100% 100%;
  894. }
  895. >.error {
  896. width: 20%;
  897. color: red
  898. }
  899. >.normal {
  900. width: 20%;
  901. color: #4682b4
  902. }
  903. >.list {
  904. position: relative;
  905. height: 2.75rem;
  906. display: flex;
  907. align-items: center;
  908. transform: all 3s;
  909. right: 0;
  910. color: rgb(0, 0, 0);
  911. font-family: Noto Sans SC;
  912. font-size: 16px;
  913. font-weight: 500;
  914. }
  915. >.delete {
  916. width: 3.75rem;
  917. height: 2.75rem;
  918. background: rgb(237, 101, 101);
  919. display: flex;
  920. align-items: center;
  921. justify-content: center;
  922. position: relative;
  923. right: -3.75rem;
  924. transform: all 3s;
  925. >.log {
  926. width: .875rem;
  927. height: .875rem;
  928. background: url('../../static/vector@1x.png') no-repeat;
  929. background-size: 100% 100%;
  930. }
  931. }
  932. }
  933. .ups {
  934. width: 100%;
  935. display: flex;
  936. align-items: center;
  937. justify-content: space-between;
  938. margin-left: 1rem;
  939. border-bottom: 1px solid rgb(238, 238, 238);
  940. // transform: all 3s;
  941. >.down_up {
  942. width: .875rem;
  943. height: .875rem;
  944. position: relative;
  945. right: 1.875rem;
  946. background: url('../../static/xia.png') no-repeat;
  947. background-size: 100% 100%;
  948. }
  949. >.list {
  950. position: relative;
  951. height: 2.75rem;
  952. display: flex;
  953. align-items: center;
  954. transform: all 3s;
  955. right: 0;
  956. color: rgb(0, 0, 0);
  957. font-family: Noto Sans SC;
  958. font-size: 16px;
  959. font-weight: 500;
  960. }
  961. >.delete {
  962. width: 3.75rem;
  963. height: 2.75rem;
  964. background: rgb(237, 101, 101);
  965. display: flex;
  966. align-items: center;
  967. justify-content: center;
  968. position: relative;
  969. right: 1rem;
  970. transform: all 3s;
  971. // right: -3.75rem;
  972. >.log {
  973. width: .875rem;
  974. height: .875rem;
  975. background: url('../../static/vector@1x.png') no-repeat;
  976. background-size: 100% 100%;
  977. }
  978. }
  979. }
  980. .scroll-Y {
  981. // height: calc(100% - 2.5rem - 2.75rem - 2.25rem - 2.25rem);
  982. height: calc(100% - 4rem);
  983. }
  984. .but {
  985. width: 20.5625rem;
  986. height: 2.5rem;
  987. 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%);
  988. border-radius: .25rem;
  989. color: rgb(255, 255, 255);
  990. font-family: Noto Sans SC;
  991. font-size: 1rem;
  992. margin: 0 auto;
  993. display: flex;
  994. align-items: center;
  995. justify-content: center;
  996. margin-top: 0.25rem;
  997. margin-bottom: 2.25rem;
  998. z-index: 11;
  999. position: fixed;
  1000. left: 50%;
  1001. margin-left: -10.25rem;
  1002. }
  1003. }
  1004. }
  1005. }
  1006. </style>