turnoverBom.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">周转车</view>
  5. </view>
  6. <view v-for="(item, index) in newList" :key='index'>
  7. <view class="title_box rx-bc">
  8. <view class="left rx-ss" @click="getDelete(index)">
  9. <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
  10. </view>
  11. </view>
  12. <view class="content_table">
  13. <view class="item rx-sc">
  14. <view class="rx ww50 ">
  15. <view class="lable ww80 rx-cc ">编号</view>
  16. <view class="content rx-sc">
  17. <view>{{item.code}}</view>
  18. </view>
  19. </view>
  20. <view class="rx ww50">
  21. <view class="lable rx-cc ww80">名称</view>
  22. <view class="content rx-sc">
  23. <view>{{item.name}}</view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="content_table2">
  29. <view class="head row rx-sc">
  30. <view class="item ww10">货位</view>
  31. <view class="item ww25">工单编号</view>
  32. <view class="item ww25">产品编码</view>
  33. <view class="item ww20">数量PCS</view>
  34. <view class="item ww20">取样PCS</view>
  35. </view>
  36. <view class="table">
  37. <u-list @scrolltolower="scrolltolower" class="z_list">
  38. <view class="tr row rx-sc" v-for="(it, idx) in item.extInfo.positionList" :key='idx'>
  39. <view class="item ww10">{{it.code}}</view>
  40. <view class="item ww25" :class="{'color157': it.workOrderCode === wordItem.code}">
  41. {{ it.workOrderCode }}
  42. </view>
  43. <view class="item ww25" :class="{'color157': it.categoryCode === wordItem.productCode}">
  44. {{it.categoryCode}}
  45. </view>
  46. <view class="item ww20 ">
  47. <text>{{it.quantity }}</text>
  48. </view>
  49. <view class="item ww20">
  50. <input class="uni-input content_num"
  51. v-model="it.sampleNum" type="digit" :disabled="it.quantity <= 0" @blur="Number(it.sampleNum) > Number(it.quantity) ? it.sampleNum = Number(it.quantity) : ''"></input>
  52. </view>
  53. </view>
  54. </u-list>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. export default {
  62. props: {
  63. list: {
  64. type: Array,
  65. default: () => []
  66. },
  67. wordItem: {
  68. type: Object,
  69. default: () => {}
  70. },
  71. },
  72. watch: {
  73. list: {
  74. immediate: true,
  75. deep: true,
  76. handler(newVal) {
  77. this.newList = newVal
  78. }
  79. }
  80. },
  81. data() {
  82. return {
  83. recycleQuantity: '',
  84. newList: []
  85. }
  86. },
  87. methods: {
  88. getDelete(index) {
  89. this.list.splice(index, 1)
  90. },
  91. scrolltolower() {}
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. .title_box {
  97. margin-top: 20rpx;
  98. .name {
  99. font-size: 28rpx;
  100. font-style: normal;
  101. font-weight: 400;
  102. color: $theme-color;
  103. padding-left: 20rpx;
  104. position: relative;
  105. &:before {
  106. position: absolute;
  107. content: '';
  108. left: 0rpx;
  109. top: 0rpx;
  110. bottom: 0rpx;
  111. width: 4rpx;
  112. height: 28rpx;
  113. background: $theme-color;
  114. margin: auto;
  115. }
  116. }
  117. .left {
  118. width: 40rpx;
  119. }
  120. .btn_box {
  121. padding: 0 18rpx;
  122. height: 60rpx;
  123. background: $theme-color;
  124. font-size: 26rpx;
  125. font-style: normal;
  126. font-weight: 400;
  127. font-size: 24rpx;
  128. color: #fff;
  129. border-radius: 4rpx;
  130. .scan {
  131. width: 34rpx;
  132. height: 34rpx;
  133. margin-right: 12rpx;
  134. }
  135. }
  136. }
  137. .content_table {
  138. margin-top: 8rpx;
  139. width: 100%;
  140. border: 2rpx solid $border-color;
  141. .item {
  142. display: flex;
  143. border-bottom: 2rpx solid $border-color;
  144. .lable {
  145. width: 132rpx;
  146. text-align: center;
  147. background-color: #F7F9FA;
  148. font-size: 26rpx;
  149. border-right: 2rpx solid $border-color;
  150. flex-shrink: 0;
  151. }
  152. .ww80 {
  153. width: 80rpx;
  154. }
  155. .ww50 {
  156. width: 50%;
  157. }
  158. .content {
  159. width: 518rpx;
  160. min-height: 64rpx;
  161. font-size: 28rpx;
  162. line-height: 28rpx;
  163. font-style: normal;
  164. font-weight: 400;
  165. padding: 2rpx 8rpx;
  166. box-sizing: border-box;
  167. word-wrap: break-word;
  168. flex-grow: 1 !important;
  169. font-size: 24rpx;
  170. }
  171. &:last-child {
  172. border-bottom: none;
  173. }
  174. }
  175. }
  176. .content_table2 {
  177. width: 100%;
  178. .row {
  179. width: 100%;
  180. .item {
  181. color: #404446;
  182. font-size: 28rpx;
  183. padding-left: 12rpx;
  184. }
  185. .color157 {
  186. color: $theme-color;
  187. }
  188. .ww20 {
  189. width: 20%;
  190. }
  191. .ww25 {
  192. width: 25%;
  193. }
  194. .ww30 {
  195. width: 35%;
  196. }
  197. .ww15 {
  198. width: 15%;
  199. }
  200. .ww10 {
  201. width: 10%;
  202. }
  203. }
  204. .head {
  205. height: 64rpx;
  206. background: #F7F9FA;
  207. border-top: 2rpx solid #E3E5E5;
  208. border-left: 2rpx solid #E3E5E5;
  209. .item {
  210. height: 64rpx;
  211. line-height: 64rpx;
  212. border-right: 2rpx solid #E3E5E5;
  213. box-sizing: border-box;
  214. font-size: 24;
  215. }
  216. }
  217. .tr {
  218. border-top: 2rpx solid #E3E5E5;
  219. border-left: 2rpx solid #E3E5E5;
  220. .item {
  221. font-size: 24rpx;
  222. min-height: 64rpx;
  223. display: flex;
  224. align-items: center;
  225. border-right: 2rpx solid #E3E5E5;
  226. box-sizing: border-box;
  227. white-space: normal;
  228. word-break: break-all;
  229. }
  230. &:last-child {
  231. border-bottom: 2rpx solid #E3E5E5;
  232. }
  233. }
  234. }
  235. .content_num {
  236. display: flex;
  237. align-items: center;
  238. padding: 0 4rpx;
  239. /deep/ .uni-input-input {
  240. border: 2rpx solid #F0F8F2;
  241. background: #F0F8F2;
  242. color: $theme-color;
  243. }
  244. }
  245. .z_list {
  246. max-height: 500rpx;
  247. }
  248. </style>