xiangqingPopUp.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <div class="midPopUp" v-if="modelValue" @click.stop="handleClose">
  3. <div class="container" @click.stop>
  4. <div class="headerTittle">物料详情</div>
  5. <div class="infoBox">
  6. <div class="leftInfo">
  7. <div class="titleText">{{ showInfo.itemName }}</div>
  8. <div class="describeText">{{ showInfo.itemCode }}</div>
  9. <div class="describeText">{{ showInfo.itemModel }}</div>
  10. <!-- <div class="describeText">计划编号:{{ showInfo.batchNo }}</div>
  11. <div class="describeText">订单编号:{{ showInfo.itemName }}</div>
  12. <div class="describeText">入库单号:{{ showInfo.itemName }}</div> -->
  13. </div>
  14. <div class="rightBox">
  15. <div></div>
  16. <div class="sumBox">
  17. <div class="describeText">录入数量</div>
  18. <div class="sum">
  19. {{ showInfo.realNum }}
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <el-divider />
  25. <el-scrollbar>
  26. <div class="body">
  27. <div
  28. class="info titleText"
  29. v-for="(item, index) in showInfoData"
  30. :key="index"
  31. >
  32. {{ item.batchNo }} &nbsp;&nbsp;&nbsp;&nbsp;* {{ item.num }}
  33. <span style="margin-right: 10px;"></span>
  34. </div>
  35. <Empty v-if="showInfoData.length == 0" />
  36. </div>
  37. </el-scrollbar>
  38. </div>
  39. </div>
  40. </template>
  41. <script lang="ts" setup>
  42. const emits = defineEmits(["update:modelValue"]);
  43. const props = defineProps({
  44. modelValue: {
  45. type: Boolean,
  46. default: false,
  47. },
  48. showInfoData: {
  49. type: Object,
  50. },
  51. showInfo: {
  52. type: Object,
  53. },
  54. });
  55. const scanCode = ref("");
  56. const handleClose = () => {
  57. emits("update:modelValue", false);
  58. };
  59. </script>
  60. <style lang="scss" scoped>
  61. .el-divider {
  62. margin-top: 0;
  63. }
  64. .header {
  65. @include flex;
  66. width: 100%;
  67. margin: $p10 0;
  68. .inputBox {
  69. width: 75%;
  70. }
  71. }
  72. .describeText {
  73. line-height: 25px !important;
  74. }
  75. .infoBox {
  76. width: 100%;
  77. height: 200px;
  78. border-radius: 16px;
  79. display: flex;
  80. justify-content: space-between;
  81. padding: $p20;
  82. border-radius: 16px;
  83. .leftInfo {
  84. display: flex;
  85. flex-direction: column;
  86. justify-content: space-between;
  87. div {
  88. text-align: left !important;
  89. }
  90. }
  91. .rightBox {
  92. display: flex;
  93. flex-direction: column;
  94. justify-content: space-between;
  95. .sumBox {
  96. width: 180px;
  97. height: 80px;
  98. padding-bottom: 40px;
  99. text-align: left;
  100. .describeText {
  101. text-align: left;
  102. line-height: 30px;
  103. }
  104. .sum {
  105. font-size: $f38;
  106. font-weight: bold;
  107. line-height: 20px;
  108. }
  109. }
  110. }
  111. }
  112. .body {
  113. padding: 0 $p20;
  114. .info {
  115. width: 100%;
  116. height: 70px;
  117. padding: 0 $p20;
  118. background-color: white;
  119. border-radius: 16px;
  120. line-height: 70px;
  121. }
  122. }
  123. </style>