jobBom.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name">报工信息</view>
  5. </view>
  6. <view class="material ">
  7. <view class="content_table">
  8. <view class="item rx-sc">
  9. <view class="rx ww55 ">
  10. <view class="lable lable150 rx-cc ">要求生产数量</view>
  11. <view class="content rx-sc">
  12. <view>{{item.formingNum}}</view>
  13. <view class="unit">{{item.unit}}</view>
  14. </view>
  15. </view>
  16. <view class="rx ww45">
  17. <view class="lable rx-cc ww80">重量</view>
  18. <view class="content content_num">
  19. <view>{{item.formingWeight}}</view>
  20. <view class="unit">{{item.weightUnit}}</view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="item rx-sc">
  25. <view class="rx ww55 ">
  26. <view class="lable lable150 rx-cc ">合格品数量</view>
  27. <view class="content content_num">
  28. <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
  29. <view class="unit">{{item.unit}}</view>
  30. </view>
  31. </view>
  32. <view class="rx ww45">
  33. <view class="lable rx-cc ww80">重量</view>
  34. <view class="content content_num">
  35. <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
  36. <view class="unit">{{item.weightUnit}}</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="item rx-sc">
  41. <view class="rx ww55 ">
  42. <view class="lable lable150 rx-cc ">不合格数量</view>
  43. <view class="content content_num">
  44. <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
  45. <view class="unit">{{item.unit}}</view>
  46. </view>
  47. </view>
  48. <view class="rx ww45">
  49. <view class="lable rx-cc ww80">重量</view>
  50. <view class="content content_num">
  51. <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
  52. <view class="unit">{{item.weightUnit}}</view>
  53. <view class="penalize">处置</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="item">
  58. <view class="lable rx-cc">舟皿类型</view>
  59. <view class="content"></view>
  60. </view>
  61. <view class="item">
  62. <view class="lable rx-cc">舟皿名称</view>
  63. <view class="content"></view>
  64. </view>
  65. <view class="item">
  66. <view class="lable rx-cc">舟皿型号</view>
  67. <view class="content"></view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. export default {
  75. props: {
  76. item: {
  77. type: Object,
  78. default: () => {}
  79. },
  80. isDetails: {
  81. type: Boolean,
  82. default: false
  83. }
  84. },
  85. data() {
  86. return {
  87. }
  88. },
  89. methods: {
  90. }
  91. }
  92. </script>
  93. <style lang="scss" scoped>
  94. .title_box {
  95. margin-top: 20rpx;
  96. .name {
  97. font-size: 28rpx;
  98. font-style: normal;
  99. font-weight: 400;
  100. color: $theme-color;
  101. padding-left: 20rpx;
  102. position: relative;
  103. &:before {
  104. position: absolute;
  105. content: '';
  106. left: 0rpx;
  107. top: 0rpx;
  108. bottom: 0rpx;
  109. width: 4rpx;
  110. height: 28rpx;
  111. background: $theme-color;
  112. margin: auto;
  113. }
  114. }
  115. }
  116. .material {
  117. margin-top: 10rpx;
  118. .content_table {
  119. width: 100%;
  120. border: 2rpx solid $border-color;
  121. .item {
  122. display: flex;
  123. border-bottom: 2rpx solid $border-color;
  124. .lable {
  125. width: 132rpx;
  126. text-align: center;
  127. background-color: #F7F9FA;
  128. font-size: 26rpx;
  129. border-right: 2rpx solid $border-color;
  130. flex-shrink: 0;
  131. }
  132. .lable150 {
  133. width: 156rpx !important;
  134. font-size: 24rpx;
  135. }
  136. .ww80 {
  137. width: 80rpx;
  138. }
  139. .content {
  140. width: 518rpx;
  141. min-height: 64rpx;
  142. font-size: 28rpx;
  143. line-height: 28rpx;
  144. font-style: normal;
  145. font-weight: 400;
  146. padding: 18rpx 8rpx;
  147. box-sizing: border-box;
  148. word-wrap: break-word;
  149. flex-grow: 1 !important;
  150. .unit {
  151. padding: 0 4rpx;
  152. font-size: 24rpx;
  153. color: #404446;
  154. }
  155. .penalize {
  156. width: 160rpx;
  157. line-height: 60rpx;
  158. background: $theme-color;
  159. font-size: 24rpx;
  160. text-align: center;
  161. color: #fff;
  162. }
  163. }
  164. .content_num {
  165. display: flex;
  166. align-items: center;
  167. padding: 0 4rpx;
  168. /deep/ .uni-input-input {
  169. border: 2rpx solid #F0F8F2;
  170. background: #F0F8F2;
  171. color: $theme-color;
  172. }
  173. }
  174. .pd4 {
  175. padding: 4rpx 8rpx;
  176. }
  177. &:last-child {
  178. border-bottom: none;
  179. }
  180. }
  181. .ww55 {
  182. width: 55%;
  183. }
  184. .ww45 {
  185. width: 45%;
  186. }
  187. }
  188. }
  189. </style>