ProductionItems.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <!--
  2. * @Author: your name
  3. * @Date: 2021-10-11 15:40:26
  4. * @LastEditTime: 2021-10-11 16:09:54
  5. * @LastEditors: Please set LastEditors
  6. * @Description: 生产情况下面的8个
  7. * @FilePath: \hyyfClient\src\views\PdcData\analysis\ProductionItems.vue
  8. -->
  9. <template>
  10. <div>
  11. <div class="inventory-items">
  12. <inventory-item>
  13. <template v-slot:picture>
  14. <div class="picture01 picture"></div>
  15. </template>
  16. <template v-slot:dataName>
  17. <span>平均窝产仔数</span>
  18. </template>
  19. <template v-slot:dataNum>
  20. <span>15</span>
  21. </template>
  22. </inventory-item>
  23. <inventory-item>
  24. <template v-slot:picture>
  25. <div class="parent">
  26. <div class="picture02 picture"></div>
  27. <div class="live"></div>
  28. </div>
  29. </template>
  30. <template v-slot:dataName>
  31. <div>平均窝产活仔数</div>
  32. </template>
  33. <template v-slot:dataNum>
  34. <div>5000</div>
  35. </template>
  36. </inventory-item>
  37. <inventory-item>
  38. <template v-slot:picture>
  39. <div class="parent">
  40. <div class="picture03 picture"></div>
  41. <div class="letter03"></div>
  42. </div>
  43. </template>
  44. <template v-slot:dataName>
  45. <div>平均窝产正常仔数</div>
  46. </template>
  47. <template v-slot:dataNum>
  48. <div>5000</div>
  49. </template>
  50. </inventory-item>
  51. <inventory-item>
  52. <template v-slot:picture>
  53. <div class="picture04 picture"></div>
  54. </template>
  55. <template v-slot:dataName>
  56. <div>窝断奶仔猪数</div>
  57. </template>
  58. <template v-slot:dataNum>
  59. <div>15240</div>
  60. </template>
  61. </inventory-item>
  62. </div>
  63. <div class="inventory-items">
  64. <inventory-item>
  65. <template v-slot:picture>
  66. <div class="picture05 picture"></div>
  67. </template>
  68. <template v-slot:dataName>
  69. <div>平均窝断奶重</div>
  70. </template>
  71. <template v-slot:dataNum>
  72. <div>15240</div>
  73. </template>
  74. </inventory-item>
  75. <inventory-item>
  76. <template v-slot:picture>
  77. <div class="picture06 picture"></div>
  78. </template>
  79. <template v-slot:dataName>
  80. <div>非生产天数</div>
  81. </template>
  82. <template v-slot:dataNum>
  83. <div>24天</div>
  84. </template>
  85. </inventory-item>
  86. <inventory-item>
  87. <template v-slot:picture>
  88. <div class="parent">
  89. <div class="picture07 picture"></div>
  90. <div class="sale"></div>
  91. </div>
  92. </template>
  93. <template v-slot:dataName>
  94. <div>年产窝数</div>
  95. </template>
  96. <template v-slot:dataNum>
  97. <div>2.36</div>
  98. </template>
  99. </inventory-item>
  100. <inventory-item>
  101. <template v-slot:picture>
  102. <div class="border">
  103. <span>PSY</span>
  104. </div>
  105. </template>
  106. <template v-slot:dataName>
  107. <div>PSY</div>
  108. </template>
  109. <template v-slot:dataNum>
  110. <div>25.5</div>
  111. </template>
  112. </inventory-item>
  113. </div>
  114. </div>
  115. </template>
  116. <script>
  117. import InventoryItem from "components/erp/InventoryItem.vue";
  118. export default {
  119. components: {
  120. InventoryItem,
  121. },
  122. };
  123. </script>
  124. <style scoped>
  125. .inventory-items {
  126. margin: 10px 5px 0px;
  127. display: flex;
  128. flex-direction: row;
  129. }
  130. /* 图片统一格式 */
  131. .picture {
  132. width: 150px;
  133. height: 100px;
  134. }
  135. .parent {
  136. position: relative;
  137. }
  138. /* 平均窝产仔图片 */
  139. .picture01 {
  140. background: url("~assets/images/erpAnalysis/u3836.svg") no-repeat 50%;
  141. background-size: 50%;
  142. }
  143. /* 平均窝产活仔 */
  144. .picture02 {
  145. background: url("~assets/images/erpAnalysis/u3836.svg") no-repeat 50%;
  146. background-size: 50%;
  147. }
  148. .live {
  149. background: url("~assets/images/erpAnalysis/u3838.svg") no-repeat 50%;
  150. position: absolute;
  151. top: 36px;
  152. right: 56px;
  153. width: 30px;
  154. height: 30px;
  155. background-size: 70%;
  156. }
  157. /* 正常仔 */
  158. .picture03 {
  159. background: url("~assets/images/erpAnalysis/u3836.svg") no-repeat 50%;
  160. background-size: 50%;
  161. }
  162. .letter03 {
  163. background: url("~assets/images/erpAnalysis/u3840.svg") no-repeat 50%;
  164. position: absolute;
  165. top: 36px;
  166. right: 56px;
  167. width: 30px;
  168. height: 30px;
  169. background-size: 50%;
  170. }
  171. /* 断奶 */
  172. .picture04 {
  173. background: url("~assets/images/erpAnalysis/u3841.svg") no-repeat 50%;
  174. background-size: 50%;
  175. }
  176. /* 平均断奶重 */
  177. .picture05 {
  178. background: url("~assets/images/erpAnalysis/u3843.svg") no-repeat 50%;
  179. background-size: 50%;
  180. }
  181. /* 非生产天数 */
  182. .picture06 {
  183. background: url("~assets/images/erpAnalysis/u3844.svg") no-repeat 50%;
  184. background-size: 40%;
  185. }
  186. /* 年产窝数 */
  187. .picture07 {
  188. background: url("~assets/images/erpAnalysis/u3842.svg") no-repeat 50%;
  189. background-size: 50%;
  190. }
  191. /* PSY */
  192. .border {
  193. margin: 15px 18px;
  194. border: 1px solid rgba(228, 228, 228, 1);
  195. border-radius: 10px;
  196. height: 70px;
  197. display: flex;
  198. flex-direction: row;
  199. justify-content: center;
  200. align-items: center;
  201. }
  202. .border > span {
  203. font-weight: bold;
  204. font-size: 22px;
  205. }
  206. </style>