index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <template>
  2. <view class="content-box">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="领料单" background-color="#F7F9FA" color="#000"
  4. @clickLeft="back"></uni-nav-bar>
  5. <view class="list_box">
  6. <u-list @scrolltolower="scrolltolower" key="dataList" >
  7. <view class="card_box cx-sc" v-for="(item, idx) in dataList">
  8. <view class="content_table" >
  9. <view class="item">
  10. <view class="lable rx-cc" style="color:#157A2C ;">领料单号</view>
  11. <view class="content" style="color:#157A2C;">
  12. {{ item.code }}
  13. </view>
  14. </view>
  15. </view>
  16. <view class="word_order ">工单编号:62464462</view>
  17. </view>
  18. <u-list-item v-if="dataList.length === 0" style='margin-top: 20vh;'>
  19. <u-empty iconSize='150' textSize='32' text='暂无数据'>
  20. </u-empty>
  21. </u-list-item>
  22. </u-list>
  23. </view>
  24. <view class="bottom-wrapper">
  25. <view class="btn_box" @click="save">一键报工</view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import {
  31. tableHeader
  32. } from '../../common.js'
  33. import {
  34. workorderPage
  35. } from '@/api/pda/workOrder.js'
  36. import {
  37. pickDetails
  38. } from '@/api/pda/picking.js'
  39. export default {
  40. components: {
  41. },
  42. data() {
  43. return {
  44. ids: [],
  45. dataList: [],
  46. }
  47. },
  48. onLoad(option) {
  49. this.ids = [option.id]
  50. this.getList()
  51. },
  52. methods: {
  53. async getList() {
  54. const res = await pickDetails(this.ids)
  55. this.dataList = res
  56. },
  57. scrolltolower() {
  58. },
  59. tableH(type) {
  60. return tableHeader(type)
  61. },
  62. save() {},
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .content-box {
  68. height: 100vh;
  69. overflow: hidden;
  70. display: flex;
  71. flex-direction: column;
  72. }
  73. .list_box {
  74. flex: 1;
  75. overflow: hidden;
  76. padding: 16rpx 0;
  77. .u-list {
  78. height: 100% !important;
  79. }
  80. }
  81. .bottom-wrapper {
  82. .btn_box {
  83. width: 750rpx;
  84. height: 88rpx;
  85. line-height: 88rpx;
  86. background: $theme-color;
  87. text-align: center;
  88. font-size: 36rpx;
  89. font-style: normal;
  90. font-weight: 400;
  91. color: #fff;
  92. }
  93. }
  94. .card_box {
  95. margin-top: 10rpx;
  96. .word_order {
  97. height: 64rpx;
  98. width: 706rpx;
  99. background: $theme-color;
  100. font-size: 28rpx;
  101. color: #fff;
  102. line-height: 64rpx;
  103. padding-left: 40rpx;
  104. box-sizing: border-box;
  105. }
  106. .content_table {
  107. margin-top: 10rpx;
  108. width: 702rpx;
  109. border: 2rpx solid $border-color;
  110. .item {
  111. display: flex;
  112. border-bottom: 2rpx solid $border-color;
  113. .lable {
  114. width: 132rpx;
  115. text-align: center;
  116. background-color: #F7F9FA;
  117. font-size: 26rpx;
  118. border-right: 2rpx solid $border-color;
  119. flex-shrink: 0;
  120. }
  121. .ww80 {
  122. width: 80rpx;
  123. }
  124. .content {
  125. width: 518rpx;
  126. min-height: 64rpx;
  127. font-size: 28rpx;
  128. line-height: 28rpx;
  129. font-style: normal;
  130. font-weight: 400;
  131. padding: 18rpx 8rpx;
  132. box-sizing: border-box;
  133. word-wrap: break-word;
  134. flex-grow: 1 !important;
  135. }
  136. .content_num {
  137. display: flex;
  138. align-items: center;
  139. padding: 0 4rpx;
  140. /deep/ .uni-input-input {
  141. width: 480rpx;
  142. border: 2rpx solid #F0F8F2;
  143. background: #F0F8F2;
  144. color: $theme-color;
  145. }
  146. .unit {
  147. padding: 0 4rpx;
  148. font-size: 24rpx;
  149. color: #404446;
  150. }
  151. }
  152. .pd4 {
  153. padding: 4rpx 8rpx;
  154. }
  155. &:last-child {
  156. border-bottom: none;
  157. }
  158. }
  159. .ww55 {
  160. width: 55%;
  161. }
  162. .ww45 {
  163. width: 45%;
  164. }
  165. }
  166. }
  167. </style>