pending.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view class="uni-column" style="height: 100%;">
  3. <scroll-view class="scroll-container" scroll-y style="padding: 24rpx 24rpx 0 24rpx ;height: 90%;">
  4. <view v-for="(item, index) in listData" :key="index" class="list-item">
  5. <view class="title-container uni-row">
  6. <view class="title uni-row">
  7. <text class="label">{{ item['door'] }}</text>
  8. <text class="label code">{{ item['process'] }}</text>
  9. <text class="label code" style="margin-left: 16rpx;">→</text>
  10. <text class="label code" style="margin-left: 16rpx;">{{ item['car'] }}</text>
  11. </view>
  12. <view class="right-info uni-row">
  13. <view class="uni-row"><text class="label right">待周转</text></view>
  14. </view>
  15. </view>
  16. <view class="item-info uni-row"> <text class="label ">批次</text>
  17. <text class="label right">{{ item['batch'] }}</text>
  18. </view>
  19. <view class="item-info uni-row"> <text class="label">箱数</text>
  20. <text class="label right ">{{ item['cases'] }}</text>
  21. </view>
  22. <view class="item-info uni-row">
  23. <text class="label">数量</text>
  24. <text class="label right">{{ item['amount'] }}</text>
  25. </view>
  26. <view class="item-info uni-row">
  27. <text class="label">箱号</text>
  28. <text class="label right">{{ item['caseNumber']}}</text>
  29. </view>
  30. <view class="item-info uni-row">
  31. <text class="label">申请时间</text>
  32. <text class="label right">{{ item['applyTime']}}</text>
  33. </view>
  34. <view class="item-info uni-row">
  35. <text class="label">申请人</text>
  36. <text class="label right">{{ item['applier']}}</text>
  37. </view>
  38. </view>
  39. </scroll-view>
  40. <view class="bottom uni-row">
  41. <button class="bottom-btn ">开始周转</button>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. listData: [
  50. {
  51. door: "A门",
  52. process: "粗磨",
  53. car: "NC车",
  54. batch: "MBA5444002",
  55. cases: 6,
  56. amount: 780,
  57. caseNumber: "X12522、X55222、X15522、J5211、J5211",
  58. applyTime:"2023-06-15 15:52:12",
  59. applier:"王伟"
  60. },
  61. {
  62. door: "B门",
  63. process: "手工校直",
  64. car: "粗磨Ⅱ",
  65. batch: "MBA5444002",
  66. cases: 6,
  67. amount: 780,
  68. caseNumber: "X12522、X55222、X15522、J5211、J5211",
  69. applyTime:"2023-06-15 15:52:12",
  70. applier:"王伟"
  71. }
  72. ],
  73. onLoad() {
  74. },
  75. methods: {
  76. },
  77. };
  78. },
  79. };
  80. </script>
  81. <style lang="scss">
  82. .list-item {
  83. background-color: #fff;
  84. position: relative;
  85. padding: 16rpx;
  86. padding-bottom: 24rpx;
  87. margin-bottom: 24rpx;
  88. border-radius: 8rpx;
  89. .title-container {
  90. justify-content: space-between;
  91. margin-top: 8rpx;
  92. margin-bottom: 16rpx;
  93. .title {
  94. height: 48rpx;
  95. align-items: center;
  96. .label {
  97. color: #1684fc;
  98. font-size: 32rpx;
  99. font-weight: bold;
  100. &.code {
  101. color: #000000;
  102. margin-left: 32rpx;
  103. }
  104. }
  105. }
  106. }
  107. .item-info {
  108. margin-bottom: 16rpx;
  109. .label {
  110. font-size: 28rpx;
  111. width: 220rpx;
  112. color: #808080;
  113. &.right {
  114. flex: 1;
  115. color: #000000;
  116. }
  117. }
  118. }
  119. .right-info {
  120. justify-content: flex-end;
  121. margin-top: 2rpx;
  122. .label {
  123. font-size: 28rpx;
  124. color: #808080;
  125. }
  126. }
  127. }
  128. .bottom {
  129. position: absolute;
  130. bottom: 0;
  131. width: 100%;
  132. height: 100rpx;
  133. padding: 16rpx 40rpx;
  134. background-color: #FFFFFF;
  135. .bottom-btn {
  136. padding-left: 0;
  137. padding-top: 4rpx;
  138. flex: 1;
  139. font-size: 28rpx;
  140. color: #FFFFFF;
  141. background-color: #1684fc;
  142. }
  143. }
  144. </style>