index copy.vue 7.5 KB

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