index.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <template>
  2. <view class="app-content">
  3. <!-- <img src="../../static/beijing.png" alt="" class="tuku"> -->
  4. <Navs :navname.sync="navname" @fall="fall"></Navs>
  5. <view class="content">
  6. <view class="content_bootom" style="top:0">
  7. <scroll-view scroll-y="true" class="scroll-Y">
  8. <view class="ups" v-for="(item, index) in listdata" :key="index">
  9. <view class="list" @tap="toDetail(item.luggageNum)">行李编号:{{ item.luggageNum }}</view>
  10. <view :class="item.exception_type != null?'error':'normal'">{{item.exception_type!=null?item.exception_name:"正常"}}</view>
  11. </view>
  12. </scroll-view>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import Navs from '../../components/header/navs.vue'
  19. export default {
  20. data() {
  21. return {
  22. isShow: true,
  23. navname: '异常行李',
  24. action: true,
  25. listdata:[],
  26. exceptionList:[
  27. {
  28. "type":null,
  29. "name":"非异常行李"
  30. },
  31. {
  32. "type":"DPR",
  33. "name":"破损"
  34. },
  35. {
  36. "type":"AHL",
  37. "name":"少收"
  38. },
  39. {
  40. "type":"OHD",
  41. "name":"多收"
  42. }
  43. ],
  44. exceptionNameList:["非异常行李","破损","少收","多收"],
  45. airport:null
  46. }
  47. },
  48. created(option) {},
  49. onLoad(option) {
  50. this.airport = option.airport
  51. this.getluggageList(this.$storage.get("airportName"))
  52. },
  53. onUnload() {
  54. // this.$refs.showMask.show();
  55. },
  56. onShow() {
  57. uni.$on("scancodemsg", (data) => {
  58. if (data.msg.length > 9) {
  59. uni.navigateTo({
  60. url: "/pages/baggagecheck/index?luggageNum="+Number(data.msg)
  61. })
  62. }
  63. });
  64. },
  65. onHide() {
  66. uni.$off("scancodemsg");
  67. },
  68. mounted() {
  69. },
  70. computed: {
  71. },
  72. components: {
  73. Navs,
  74. },
  75. methods: {
  76. async getluggageList(airport){
  77. let data = {
  78. "serviceId": 3006,
  79. "dataContent": [{
  80. "outAirport": airport
  81. }],
  82. "event": "0"
  83. }
  84. await this.$http.httpPost('/openApi/query', data).then(res => {
  85. console.log(res)
  86. if (res.code == "0") {
  87. res.returnData.map(item => {
  88. this.exceptionList.map(item2 => {
  89. if(item.exception_type == item2.type){
  90. item["exception_name"] = item2.name
  91. }
  92. })
  93. })
  94. }
  95. })
  96. },
  97. toDetail(luggageNum){
  98. this.currentLuggageNum = luggageNum;
  99. uni.navigateTo({
  100. url: "/pages/detail/index?luggageNum="+this.currentLuggageNum
  101. })
  102. },
  103. fall() {
  104. uni.navigateBack({
  105. delta:1
  106. })
  107. }
  108. },
  109. }
  110. </script>
  111. <style lang="scss" scoped>
  112. .app-content {
  113. position: relative;
  114. background: rgb(49, 85, 99);
  115. >.content {
  116. width: 100%;
  117. height: calc(100vh - 5.375rem);
  118. position: relative;
  119. // overflow: hidden;
  120. // background: rgb(49, 85, 99);
  121. >.content_top {
  122. width: 100%;
  123. // background: rgb(49, 85, 99);
  124. padding-bottom: 1.3125rem;
  125. >.craid {
  126. // width: 100%;
  127. height: 5.625rem;
  128. padding: 0 2.5625rem 0 2.5625rem;
  129. display: flex;
  130. justify-content: space-between;
  131. flex-wrap: wrap;
  132. align-items: center;
  133. >.craid_data {
  134. display: flex;
  135. flex-direction: column;
  136. justify-content: center;
  137. align-items: start;
  138. >p {
  139. color: rgb(255, 255, 255);
  140. font-family: Noto Sans SC;
  141. font-size: 18px;
  142. font-weight: 700;
  143. }
  144. >span {
  145. color: rgb(255, 255, 255);
  146. font-family: Noto Sans SC;
  147. font-size: 13px;
  148. font-weight: 500;
  149. }
  150. }
  151. >.aircraft {
  152. width: 1.75rem;
  153. height: 1.75rem;
  154. background: url('../../static/hang.png') no-repeat;
  155. background-size: 100% 100%;
  156. }
  157. }
  158. >.scanning {
  159. height: 12rem;
  160. padding: 0 1.5rem 0 1.5rem;
  161. opacity: 1;
  162. transition: all 3s;
  163. .scanning_cd {
  164. width: 100%;
  165. height: 3rem;
  166. opacity: 1;
  167. transition: all 3s;
  168. background: rgb(59, 103, 123);
  169. margin-top: 1rem;
  170. margin-bottom: .5rem;
  171. border-radius: 4px;
  172. display: flex;
  173. justify-content: center;
  174. align-items: center;
  175. color: rgb(255, 255, 255);
  176. font-family: Noto Sans SC;
  177. font-size: 16px;
  178. >.log {
  179. width: .875rem;
  180. height: .875rem;
  181. background: url('../../static/saoma.png') no-repeat;
  182. background-size: 100% 100%;
  183. margin-left: 1rem;
  184. }
  185. >.log_l {
  186. width: .125rem;
  187. height: 1.3125rem;
  188. margin-left: 4rem;
  189. background: rgb(255, 255, 255);
  190. }
  191. }
  192. .scanning_cds {
  193. width: 100%;
  194. height: 3rem;
  195. opacity: 1;
  196. transition: all 3s;
  197. background: rgb(51, 161, 165);
  198. margin-top: 1rem;
  199. margin-bottom: .5rem;
  200. border-radius: 4px;
  201. display: flex;
  202. justify-content: center;
  203. align-items: center;
  204. color: rgb(255, 255, 255);
  205. font-family: Noto Sans SC;
  206. font-size: 16px;
  207. >.log {
  208. width: .875rem;
  209. height: .875rem;
  210. background: url('../../static/saoma.png') no-repeat;
  211. background-size: 100% 100%;
  212. margin-left: 1rem;
  213. }
  214. >.log_l {
  215. width: .125rem;
  216. height: 1.3125rem;
  217. margin-left: 4rem;
  218. background: rgb(255, 255, 255);
  219. }
  220. }
  221. }
  222. }
  223. >.content_bootom {
  224. width: 100%;
  225. // height: calc(100vh - 20.9375rem - 4.375rem);
  226. padding-bottom: 0;
  227. position: absolute;
  228. bottom: 0;
  229. top: 20.75rem;
  230. // border-radius: 6px 6px 0px 0px;
  231. overflow: hidden;
  232. background: rgb(255, 255, 255);
  233. >.choice {
  234. width: 100%;
  235. height: 2.5rem;
  236. display: flex;
  237. background: rgb(240, 241, 243);
  238. >.handle {
  239. width: 50%;
  240. display: flex;
  241. align-items: center;
  242. justify-content: center;
  243. color: rgb(0, 0, 0);
  244. font-family: Noto Sans SC;
  245. font-size: 15px;
  246. font-weight: 700;
  247. border-radius: 6px 6px 0px 0px;
  248. background: rgb(255, 255, 255);
  249. }
  250. >.handles {
  251. width: 50%;
  252. display: flex;
  253. align-items: center;
  254. justify-content: center;
  255. color: rgb(0, 0, 0);
  256. font-family: Noto Sans SC;
  257. font-size: 15px;
  258. font-weight: 700;
  259. }
  260. }
  261. .up {
  262. width: 100%;
  263. display: flex;
  264. align-items: center;
  265. margin-left: 1rem;
  266. border-bottom: 1px solid rgb(238, 238, 238);
  267. // transform: all 3s;
  268. >.down_up {
  269. width: .875rem;
  270. height: .875rem;
  271. background: url('../../static/xia.png') no-repeat;
  272. background-size: 100% 100%;
  273. }
  274. >.error{
  275. width: 20%;
  276. color:red
  277. }
  278. >.normal{
  279. width: 20%;
  280. color:#4682b4
  281. }
  282. >.list {
  283. width: 70%;
  284. position: relative;
  285. height: 3.75rem;
  286. display: flex;
  287. align-items: center;
  288. transform: all 3s;
  289. right: 0;
  290. color: rgb(0, 0, 0);
  291. font-family: Noto Sans SC;
  292. font-size: 13px;
  293. font-weight: 500;
  294. }
  295. >.delete {
  296. width: 3.75rem;
  297. height: 3.75rem;
  298. background: rgb(237, 101, 101);
  299. display: flex;
  300. align-items: center;
  301. justify-content: center;
  302. position: relative;
  303. right: -3.75rem;
  304. transform: all 3s;
  305. >.log {
  306. width: .875rem;
  307. height: .875rem;
  308. background: url('../../static/vector@1x.png') no-repeat;
  309. background-size: 100% 100%;
  310. }
  311. }
  312. }
  313. .ups {
  314. width: 100%;
  315. display: flex;
  316. align-items: center;
  317. margin-left: 1rem;
  318. border-bottom: 1px solid rgb(238, 238, 238);
  319. // transform: all 3s;
  320. >.down_up {
  321. width: .875rem;
  322. height: .875rem;
  323. position: relative;
  324. right: 1.875rem;
  325. background: url('../../static/xia.png') no-repeat;
  326. background-size: 100% 100%;
  327. }
  328. >.list {
  329. width: 97%;
  330. position: relative;
  331. height: 3.75rem;
  332. display: flex;
  333. align-items: center;
  334. right: 3.75rem;
  335. // right: 0;
  336. color: rgb(0, 0, 0);
  337. font-family: Noto Sans SC;
  338. font-size: 13px;
  339. font-weight: 500;
  340. transform: all 3s;
  341. }
  342. >.delete {
  343. width: 3.75rem;
  344. height: 3.75rem;
  345. background: rgb(237, 101, 101);
  346. display: flex;
  347. align-items: center;
  348. justify-content: center;
  349. position: relative;
  350. right: 1rem;
  351. transform: all 3s;
  352. // right: -3.75rem;
  353. >.log {
  354. width: .875rem;
  355. height: .875rem;
  356. background: url('../../static/vector@1x.png') no-repeat;
  357. background-size: 100% 100%;
  358. }
  359. }
  360. }
  361. .scroll-Y {
  362. // height: calc(100% - 2.5rem - 2.75rem - 2.25rem - 2.25rem);
  363. height: calc(100% - 2.5rem - 2.75rem);
  364. }
  365. .but {
  366. width: 20.5625rem;
  367. height: 2.5rem;
  368. 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%);
  369. border-radius: .25rem;
  370. color: rgb(255, 255, 255);
  371. font-family: Noto Sans SC;
  372. font-size: 1rem;
  373. margin: 0 auto;
  374. display: flex;
  375. align-items: center;
  376. justify-content: center;
  377. margin-top: 0.25rem;
  378. margin-bottom: 2.25rem;
  379. }
  380. }
  381. }
  382. }
  383. </style>