wuliaocaiji.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div class="scanCode">
  3. <ScanCodeInput />
  4. </div>
  5. <div class="showCodeBody" v-if="false">
  6. <div class="codeBox">
  7. <img src="@/assets/icons/shaoma.svg" style="width: 134px; height: 134px" />
  8. <div class="codeText">扫码物料码添加物料</div>
  9. </div>
  10. </div>
  11. <div class="materialInfoBody">
  12. <div class="infoMsg">
  13. <div class="leftMsg">
  14. <div class="nameMsg">PCBA-ASSSD电路板</div>
  15. <div class="describe">100*100</div>
  16. <div class="describe">需求:12112</div>
  17. </div>
  18. <div class="rightMsg">
  19. <div class="sum">50</div>
  20. <div class="describe">还需采集</div>
  21. </div>
  22. <svg-icon icon-class="jiaobiao" size="25" class="svgStyle" />
  23. </div>
  24. </div>
  25. </template>
  26. <script lang="ts" setup>
  27. import ScanCodeInput from "@/components/ScanCodeInput/index.vue";
  28. defineOptions({
  29. name: "Wuliaocaiji",
  30. });
  31. const input = ref("");
  32. </script>
  33. <style lang="scss" scoped>
  34. .scanCode {
  35. width: 40%;
  36. margin-top: $p5;
  37. }
  38. .materialInfoBody {
  39. width: calc((100vw / 6 * 5) - 50px);
  40. margin-top: $p10;
  41. display: grid;
  42. gap: 20px;
  43. grid-template-columns: 1fr 1fr;
  44. .infoMsgImg {
  45. background-image: url("@/assets/images/caijiwancheng.png");
  46. background-position: right top;
  47. background-repeat: no-repeat;
  48. }
  49. .infoMsg {
  50. width: 600px;
  51. height: 190px;
  52. background-color: white;
  53. border-radius: 16px;
  54. display: flex;
  55. padding: $p20;
  56. justify-content: space-between;
  57. align-items: center;
  58. position: relative;
  59. .svgStyle {
  60. position: absolute;
  61. bottom: 0;
  62. right: 0;
  63. }
  64. .describe {
  65. font-size: $f20;
  66. color: $font-default-60;
  67. line-height: 20px;
  68. }
  69. .leftMsg {
  70. .nameMsg {
  71. font-size: $f24;
  72. font-weight: $Medium;
  73. }
  74. }
  75. .rightMsg {
  76. .sum {
  77. font-size: $f38;
  78. font-weight: bold;
  79. line-height: 38px;
  80. text-align: right;
  81. }
  82. }
  83. }
  84. }
  85. .showCodeBody {
  86. width: calc((100vw / 6 * 5) - 50px);
  87. height: calc((100vh - 240px));
  88. @include flex;
  89. .codeBox {
  90. width: 180px;
  91. display: flex;
  92. flex-direction: column;
  93. img {
  94. margin: 0 auto;
  95. }
  96. .codeText {
  97. text-align: center;
  98. font-size: $f20;
  99. color: #00000030;
  100. }
  101. }
  102. }
  103. </style>