productionDetailed.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <template>
  2. <view>
  3. <u-popup :show="show" :mode='mode' :closeOnClickOverlay='false'>
  4. <view class="box_list">
  5. <u-list @scrolltolower="scrolltolower" class="z_list">
  6. <view v-for="(item, index) in firstTaskDetails" :key="index">
  7. <label class="listBox rx-bs">
  8. <view class="listBox-sel">
  9. <view class="round">{{ index + 1 }}</view>
  10. </view>
  11. <view class="listBox-con">
  12. <view class="listBox-bottom rx">
  13. <view class="items">
  14. <text>名称</text>{{ item.name }}
  15. </view>
  16. <view class="items">
  17. <text>编码</text>{{ item.code }}
  18. </view>
  19. <view class="items">
  20. <text>待投料数量</text>{{ item.waitFeedNum || 0 }} {{ item.unit }}
  21. </view>
  22. <view class="items">
  23. <text>已投料数量</text>{{ item.feedNum || 0 }} {{ item.unit }}
  24. </view>
  25. </view>
  26. </view>
  27. </label>
  28. </view>
  29. </u-list>
  30. <view class="operate_box rx-bc">
  31. <u-button size="small" class="u-reset-button" @click="close">
  32. 取消
  33. </u-button>
  34. <u-button type="success" size="small" class="u-reset-button" @click="close">
  35. 确定
  36. </u-button>
  37. </view>
  38. </view>
  39. </u-popup>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. mode: 'center',
  47. show: false,
  48. topHight: 20 || 20,
  49. firstTaskDetails: []
  50. }
  51. },
  52. created() {
  53. },
  54. computed: {
  55. },
  56. methods: {
  57. open(obj) {
  58. this.firstTaskDetails = obj.firstTaskDetails;
  59. this.show = true
  60. },
  61. close() {
  62. this.show = false
  63. },
  64. scrolltolower() { },
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .z_list {
  70. max-height: 860rpx;
  71. padding: 10rpx;
  72. box-sizing: border-box;
  73. }
  74. .box_list {
  75. min-height: 100rpx;
  76. width: 96vw;
  77. /deep/ .baseForm {
  78. padding: 0 20rpx;
  79. }
  80. }
  81. .operate_box {
  82. padding: 10rpx 32rpx;
  83. /deep/ .u-button {
  84. width: 28%;
  85. }
  86. }
  87. /deep/ .u-tabs__wrapper__nav {
  88. background: #f5f5f5 !important;
  89. }
  90. .listBox {
  91. margin-top: 8rpx;
  92. padding: 8rpx 24rpx;
  93. background: #fff;
  94. /deep/ .uni-checkbox-input-checked {
  95. background-color: $theme-color !important;
  96. border-color: $theme-color !important;
  97. }
  98. .listBox-sel {
  99. margin-top: 10rpx;
  100. margin-right: 8rpx;
  101. .round {
  102. width: 32rpx;
  103. height: 32rpx;
  104. line-height: 32rpx;
  105. text-align: center;
  106. border-radius: 50%;
  107. background: $theme-color;
  108. font-size: 24rpx;
  109. font-style: normal;
  110. font-weight: 400;
  111. color: #fff;
  112. }
  113. }
  114. .round {
  115. width: 32rpx;
  116. height: 32rpx;
  117. line-height: 32rpx;
  118. text-align: center;
  119. border-radius: 50%;
  120. background: $theme-color;
  121. font-size: 24rpx;
  122. font-style: normal;
  123. font-weight: 400;
  124. color: #fff;
  125. }
  126. .listBox-con {
  127. width: 650rpx;
  128. font-weight: 400;
  129. }
  130. .listBox-top {
  131. margin-top: 6rpx;
  132. color: #090A0A;
  133. font-size: 28rpx;
  134. font-style: normal;
  135. font-weight: 800;
  136. }
  137. .listBox-bottom {
  138. color: #090A0A;
  139. font-size: 24rpx;
  140. font-style: normal;
  141. flex-wrap: wrap;
  142. .items {
  143. width: calc(50% - 1px);
  144. border-left: 1rpx solid #E3E5E5;
  145. border-right: 1rpx solid #E3E5E5;
  146. border-bottom: 1rpx solid #E3E5E5;
  147. box-sizing: border-box;
  148. word-break: break-all;
  149. text {
  150. display: inline-block;
  151. background: #F7F9FA;
  152. padding: 8rpx 10rpx;
  153. color: #157A2C;
  154. }
  155. &:nth-child(1),
  156. &:nth-child(2) {
  157. border-top: 1rpx solid #E3E5E5;
  158. margin-top: 8rpx;
  159. }
  160. }
  161. }
  162. }
  163. .content_num {
  164. display: flex;
  165. align-items: center;
  166. padding: 0 4rpx;
  167. /deep/ .uni-input-input {
  168. border: 2rpx solid #F0F8F2;
  169. background: #F0F8F2;
  170. color: $theme-color;
  171. }
  172. }
  173. </style>