turnoverBom.vue 5.4 KB

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