index.vue 28 KB

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