index.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <template>
  2. <div class="station">
  3. <div class="station-head">
  4. <div class="station-head-title">货物基本信息</div>
  5. <div class="station-head-content flex-wrap">
  6. <div class="station-head-content-list" v-for="item in dataInfo" :key="item.id">{{item.name}}:{{item.value}}</div>
  7. </div>
  8. </div>
  9. <div class="station-status flex">
  10. <div class="station-status-info flex-wrap">
  11. <div class="manageTitle">货物跟踪信息</div>
  12. <div class="status">正常</div>
  13. </div>
  14. <div class="station-status-search">
  15. <Search @clear="clear" @search="search" />
  16. </div>
  17. </div>
  18. <div class="station-list flex-wrap">
  19. <div class="station-list-left">
  20. <div class="title flex-wrap">
  21. <div class="title-list">航班号CA1001</div>
  22. <div class="title-list">出港: 深圳机场</div>
  23. <div class="title-list">日期:2022/09/10</div>
  24. </div>
  25. <Steps :datas="datas" />
  26. </div>
  27. <div class="station-list-right">
  28. <div class="title flex-wrap">
  29. <div class="title-list">进港: 深圳机场</div>
  30. </div>
  31. <Steps :datas="datas1" />
  32. </div>
  33. </div>
  34. <div class="station-table">
  35. <Table :tableHeader="tableHeader" :tableData="tableData" />
  36. </div>
  37. </div>
  38. </template>
  39. <script setup lang="ts">
  40. import Search from "@/components/search/index.vue";
  41. import Steps from "@/components/steps/index.vue";
  42. import Table from "@/components/tableTemp/index.vue";
  43. import { ElMessage } from "element-plus";
  44. const dataInfo = [
  45. {
  46. id: 1,
  47. name: "货物编码",
  48. value: "56888829",
  49. },
  50. {
  51. id: 2,
  52. name: "运单",
  53. value: "FA56888829",
  54. },
  55. ];
  56. const datas = [
  57. {
  58. id: 1,
  59. name: "收货核单",
  60. flag: true,
  61. labelWidth: 100,
  62. children: ["A32", "534件", "通过", "10:25"],
  63. },
  64. {
  65. id: 2,
  66. name: "安检",
  67. flag: true,
  68. children: ["A32", "534件", "通过", "10:25"],
  69. },
  70. {
  71. id: 3,
  72. name: "理货",
  73. flag: true,
  74. children: ["A32", "534件", "通过", "10:25"],
  75. },
  76. {
  77. id: 4,
  78. name: "待运区",
  79. flag: true,
  80. children: ["A32", "534件", "通过", "10:25"],
  81. },
  82. {
  83. id: 5,
  84. name: "货站交接",
  85. flag: true,
  86. children: ["A32", "534件", "通过", "10:25"],
  87. },
  88. {
  89. id: 6,
  90. name: "机下交接",
  91. flag: true,
  92. children: ["A32", "534件", "通过", "10:25"],
  93. },
  94. {
  95. id: 7,
  96. name: "装机",
  97. flag: true,
  98. labelWidth: 100,
  99. children: ["A32", "534件", "通过", "10:25"],
  100. },
  101. ];
  102. const datas1 = [
  103. {
  104. id: 1,
  105. name: "卸机",
  106. flag: true,
  107. labelWidth: 100,
  108. children: ["A32", "534件", "通过", "10:25"],
  109. },
  110. {
  111. id: 2,
  112. name: "机下交接",
  113. flag: true,
  114. children: ["A32", "534件", "通过", "10:25"],
  115. },
  116. {
  117. id: 3,
  118. name: "货站交接",
  119. flag: true,
  120. children: ["A32", "534件", "通过", "10:25"],
  121. },
  122. {
  123. id: 4,
  124. name: "提取",
  125. flag: true,
  126. children: ["A32", "534件", "通过", "10:25"],
  127. },
  128. ];
  129. const tableHeader = [
  130. { label: "航班号", key: "fightNo" },
  131. { label: "航班日期", key: "containerNo" },
  132. { label: "起飞航站-预计起飞时间", key: "goodsNo" },
  133. { label: "目的航站-预计降落时间", key: "dwon1" },
  134. { label: "节点名称", key: "return" },
  135. { label: "位置码", key: "receipt" },
  136. { label: "位置描述", key: "securityCheck" },
  137. { label: "处理时间", key: "tally" },
  138. { label: "处理结果", key: "dwon2" },
  139. { label: "数据来源", key: "waitingArea" },
  140. { label: "设备ID", key: "goodSstation1" },
  141. { label: "操作人", key: "offBoard1" },
  142. { label: "发往位置", key: "installEquipment" },
  143. { label: "发往位置描述", key: "unloading" },
  144. ];
  145. const tableData = [
  146. {
  147. id: 1,
  148. fightNo: "CA1001",
  149. containerNo: "2022/9/10",
  150. goodsNo: "SZX-11:35",
  151. dwon1: "PEK-14:35",
  152. return: "机下交接",
  153. receipt: "A03",
  154. securityCheck: "停机位E24",
  155. tally: "2022/09/10 07:10",
  156. dwon2: "通过",
  157. waitingArea: "人工扫描",
  158. goodSstation1: "56",
  159. offBoard1: "张伯伦",
  160. installEquipment: "B12",
  161. unloading: "货站B12闸口",
  162. },
  163. {
  164. id: 2,
  165. fightNo: "CA1001",
  166. containerNo: "2022/9/10",
  167. goodsNo: "SZX-11:35",
  168. dwon1: "PEK-14:35",
  169. return: "机下交接",
  170. receipt: "A03",
  171. securityCheck: "停机位E24",
  172. tally: "2022/09/10 07:10",
  173. dwon2: "通过",
  174. waitingArea: "人工扫描",
  175. goodSstation1: "56",
  176. offBoard1: "张伯伦",
  177. installEquipment: "B12",
  178. unloading: "货站B12闸口",
  179. },
  180. {
  181. id: 3,
  182. fightNo: "CA1001",
  183. containerNo: "2022/9/10",
  184. goodsNo: "SZX-11:35",
  185. dwon1: "PEK-14:35",
  186. return: "机下交接",
  187. receipt: "A03",
  188. securityCheck: "停机位E24",
  189. tally: "2022/09/10 07:10",
  190. dwon2: "通过",
  191. waitingArea: "人工扫描",
  192. goodSstation1: "56",
  193. offBoard1: "张伯伦",
  194. installEquipment: "B12",
  195. unloading: "货站B12闸口",
  196. },
  197. ];
  198. const search = (val) => {
  199. ElMessage.success(`搜索成功:${val}`);
  200. };
  201. const clear = () => {
  202. ElMessage.success(`清除`);
  203. };
  204. </script>
  205. <style lang="scss" scoped>
  206. .station {
  207. &-head {
  208. height: 144px;
  209. background: #410425;
  210. padding: 24px 30px;
  211. color: #ffffff;
  212. &-title {
  213. font-size: 18px;
  214. font-family: Microsoft YaHei;
  215. font-weight: bold;
  216. margin-bottom: 40px;
  217. }
  218. &-content {
  219. &-list {
  220. margin-right: 100px;
  221. &:last-child {
  222. margin-right: 0;
  223. }
  224. }
  225. }
  226. }
  227. &-status {
  228. margin: 24px 0;
  229. line-height: 32px;
  230. .status {
  231. font-size: 16px;
  232. font-family: Microsoft YaHei;
  233. font-weight: bold;
  234. color: #519f6b;
  235. }
  236. }
  237. &-list {
  238. margin-bottom: 8px;
  239. &:last-child {
  240. margin-bottom: 0;
  241. }
  242. .title {
  243. font-size: 16px;
  244. font-family: Microsoft YaHei;
  245. font-weight: bold;
  246. color: #101116;
  247. margin-bottom: 28px;
  248. &-list {
  249. margin-right: 50px;
  250. }
  251. }
  252. &-left {
  253. background: #ffffff;
  254. padding: 24px 24px 12px 24px;
  255. width: 1090px;
  256. margin-right: 8px;
  257. }
  258. &-right {
  259. flex: 1;
  260. background: #ffffff;
  261. padding: 24px 24px 12px 24px;
  262. }
  263. }
  264. :deep &-table {
  265. margin-top: 16px;
  266. .scoreColumn {
  267. background: #eef3d6;
  268. }
  269. }
  270. }
  271. </style>