revolvingDiskBom.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc" v-if='revolvingDiskList.length > 0'>
  4. <view class="name">周转盘</view>
  5. </view>
  6. <view class="material rx-ss" v-for="(item,index) in revolvingDiskList" :key='index'>
  7. <view class="left rx-ss" @click="getDelete(index)">
  8. <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
  9. </view>
  10. <view class='content_table'>
  11. <view class="item">
  12. <view class="lable rx-cc">code</view>
  13. <view class="content ">
  14. {{item.code}}
  15. </view>
  16. </view>
  17. <view class="item">
  18. <view class="lable rx-cc">名称</view>
  19. <view class="content ">
  20. {{item.name}}
  21. </view>
  22. </view>
  23. <view class="item">
  24. <view class="lable rx-cc">型号</view>
  25. <view class="content">
  26. {{item.modelType}}
  27. </view>
  28. </view>
  29. <view class="item">
  30. <view class="lable rx-cc">仓库</view>
  31. <view class="content">
  32. {{item.pathName || item.positionVO && item.positionVO[0].pathName}}
  33. </view>
  34. </view>
  35. <view class="item">
  36. <view class="lable rx-cc">数量</view>
  37. <view class="content content_num">
  38. <!-- <input class="uni-input" v-model="item.feedQuantity" type='digit' ></input> -->
  39. {{ item.feedQuantity || 1}}
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. props: {
  49. revolvingDiskList: {
  50. type: Array,
  51. default: () => []
  52. }
  53. },
  54. data() {
  55. return {
  56. }
  57. },
  58. created() {
  59. },
  60. methods: {
  61. getDelete(idx) {
  62. this.revolvingDiskList.splice(idx, 1)
  63. },
  64. },
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .title_box {
  69. margin-top: 20rpx;
  70. .name {
  71. font-size: 28rpx;
  72. font-style: normal;
  73. font-weight: 400;
  74. color: $theme-color;
  75. padding-left: 20rpx;
  76. position: relative;
  77. &:before {
  78. position: absolute;
  79. content: '';
  80. left: 0rpx;
  81. top: 0rpx;
  82. bottom: 0rpx;
  83. width: 4rpx;
  84. height: 28rpx;
  85. background: $theme-color;
  86. margin: auto;
  87. }
  88. }
  89. }
  90. .material {
  91. margin-top: 10rpx;
  92. .left {
  93. width: 40rpx;
  94. }
  95. .content_table {
  96. width: 680rpx;
  97. border: 2rpx solid $border-color;
  98. .item {
  99. display: flex;
  100. border-bottom: 2rpx solid $border-color;
  101. .lable {
  102. width: 132rpx;
  103. text-align: center;
  104. background-color: #F7F9FA;
  105. font-size: 26rpx;
  106. border-right: 2rpx solid $border-color;
  107. flex-shrink: 0;
  108. }
  109. .lable220 {
  110. width: 220rpx !important;
  111. font-size: 24rpx;
  112. }
  113. .lable150 {
  114. width: 156rpx !important;
  115. font-size: 24rpx;
  116. }
  117. .ww80 {
  118. width: 80rpx;
  119. }
  120. .content {
  121. width: 518rpx;
  122. min-height: 64rpx;
  123. font-size: 28rpx;
  124. line-height: 28rpx;
  125. font-style: normal;
  126. font-weight: 400;
  127. padding: 18rpx 8rpx;
  128. box-sizing: border-box;
  129. word-wrap: break-word;
  130. flex-grow: 1 !important;
  131. .unit {
  132. padding: 0 4rpx;
  133. font-size: 24rpx;
  134. color: #404446;
  135. }
  136. .penalize {
  137. width: 160rpx;
  138. line-height: 60rpx;
  139. background: $theme-color;
  140. font-size: 24rpx;
  141. text-align: center;
  142. color: #fff;
  143. }
  144. }
  145. .content_num {
  146. display: flex;
  147. align-items: center;
  148. padding: 0 4rpx;
  149. /deep/ .uni-input-input {
  150. border: 2rpx solid #F0F8F2;
  151. background: #F0F8F2;
  152. color: $theme-color;
  153. }
  154. }
  155. .pd4 {
  156. padding: 4rpx 8rpx;
  157. }
  158. &:last-child {
  159. border-bottom: none;
  160. }
  161. }
  162. .ww55 {
  163. width: 55%;
  164. }
  165. .ww45 {
  166. width: 45%;
  167. }
  168. }
  169. }
  170. </style>