transferNum.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <div class="commonTitle">流转卡号</div>
  3. <div class="body">
  4. <el-scrollbar class="scrollbar">
  5. <Empty v-if="selectSeqArray.length < 1" />
  6. <div class="row" @click="clickCardNum(index)" v-for="(item, index) in selectSeqArray" :key="index">
  7. <el-tooltip effect="dark" :content="item.seqNo" placement="right" trigger="click">
  8. <span :class="index == selectSeqIndex ? 'describeText active' : 'describeText'
  9. " style="cursor: pointer">{{ item.seqNo }}</span>
  10. </el-tooltip>
  11. <div class="status">
  12. {{
  13. dictS.getLableByValue("work_order_seq_state", String(item.state))
  14. }}
  15. </div>
  16. </div>
  17. </el-scrollbar>
  18. </div>
  19. </template>
  20. <script lang="ts" setup>
  21. import { useDictionaryStore } from "@/store";
  22. const dictS = useDictionaryStore();
  23. const selectSeqIndex = inject("selectSeqIndex");
  24. const selectSeqArray = inject("selectSeqArray");
  25. const clickCardNum = (index: number) => {
  26. selectSeqIndex.value = index;
  27. };
  28. </script>
  29. <style lang="scss" scoped>
  30. .body {
  31. width: 100%;
  32. max-height: calc(100% - 44px);
  33. background-color: white;
  34. border-radius: 16px;
  35. padding: 20px;
  36. .row {
  37. display: flex;
  38. justify-content: space-between;
  39. align-items: center;
  40. vertical-align: center;
  41. .status {
  42. width: 100px;
  43. font-size: $f24;
  44. line-height: 24px;
  45. margin-bottom: 10px;
  46. text-align: center;
  47. }
  48. }
  49. }
  50. .describeText {
  51. color: black;
  52. font-weight: $Medium;
  53. font-size: 30px;
  54. margin-bottom: $p10;
  55. white-space: nowrap;
  56. overflow: hidden;
  57. text-overflow: ellipsis;
  58. }
  59. .active {
  60. color: $select-hover;
  61. }
  62. </style>