Home.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <template>
  2. <div>
  3. <div class="header">
  4. <div class="header_top">
  5. <Button
  6. type="primary"
  7. class="header_btn"
  8. ghost
  9. @click="handleShow"
  10. :icon="is_show ? 'ios-arrow-dropup' : 'ios-arrow-dropdown'"
  11. >
  12. <div style="margin-right: 0.6rem">
  13. {{ is_show ? "收起" : "展开" }}
  14. </div></Button
  15. >
  16. <div style="margin-right: 1rem; color: #66a9f0">王小伟</div>
  17. </div>
  18. <div class="header_middle">
  19. <b-dropdown size="sm" text="Large" class="m-2" :disabled="is_use">
  20. <b-dropdown-item-button>Action</b-dropdown-item-button>
  21. <b-dropdown-item-button>Another action</b-dropdown-item-button>
  22. <b-dropdown-item-button>Something else here</b-dropdown-item-button>
  23. </b-dropdown>
  24. <b-dropdown size="sm" text="Large" class="m-2" :disabled="is_use">
  25. <b-dropdown-item-button>Action</b-dropdown-item-button>
  26. <b-dropdown-item-button>Another action</b-dropdown-item-button>
  27. <b-dropdown-item-button>Something else here</b-dropdown-item-button>
  28. </b-dropdown>
  29. <b-dropdown size="sm" text="Large" class="m-2" :disabled="is_use">
  30. <b-dropdown-item-button>Action</b-dropdown-item-button>
  31. <b-dropdown-item-button>Another action</b-dropdown-item-button>
  32. <b-dropdown-item-button>Something else here</b-dropdown-item-button>
  33. </b-dropdown>
  34. </div>
  35. <div class="header_middle1 ot">
  36. <div class="ft">58 &nbsp;</div>
  37. <div class="ft">12 &nbsp;</div>
  38. <div class="ft">12 &nbsp;</div>
  39. </div>
  40. <div class="header_footer">
  41. <div style="margin-left: 1rem">已完成56/10</div>
  42. <div style="margin-right: 1.4rem">已完成10%</div>
  43. </div>
  44. </div>
  45. <div class="bdy">
  46. <div class="item" @click="handleFinish">
  47. <svg
  48. t="1688029854983"
  49. class="icon"
  50. viewBox="0 0 1024 1024"
  51. version="1.1"
  52. xmlns="http://www.w3.org/2000/svg"
  53. p-id="9681"
  54. width="130"
  55. height="130"
  56. >
  57. <path
  58. d="M713.728 415.936l-47.722667-42.794667 85.482667-85.482666-45.248-45.248-87.957333 87.936-47.701334-42.794667 90.389334-90.389333a64 64 0 0 1 90.517333 0l45.248 45.226666a64 64 0 0 1 0 90.538667l-83.008 82.986667zM505.6 624.064L283.861333 845.802667a64 64 0 0 1-90.517333 0l-45.248-45.248a64 64 0 0 1 0-90.517334l235.456-235.456-58.282667-71.424a64 64 0 0 1 4.266667-85.76l99.136-99.114666c23.253333-23.253333 64.832-20.608 90.282667 0.213333l338.133333 265.28c30.4 30.4 21.909333 110.826667-61.866667 194.581333-83.477333 83.498667-164.181333 92.245333-194.581333 61.866667-0.597333-0.597333-32.277333-39.317333-95.04-116.16z m-81.365333-99.669333L193.344 755.306667l45.248 45.226666 226.325333-226.304-40.682666-49.834666z m55.210666-255.530667l-1.024-0.832a12.629333 12.629333 0 0 0-6.826666-2.176l-96.789334 96.789333c105.088 128.746667 249.088 305.002667 268.821334 329.472 4.288 0.426667 10.624-0.085333 18.496-2.133333 25.429333-6.506667 56.405333-25.408 87.850666-56.874667 31.573333-31.573333 50.496-62.528 56.981334-87.893333 1.92-7.466667 2.474667-13.504 2.133333-17.749333L479.445333 268.864z"
  59. fill="#5499fe"
  60. p-id="9682"
  61. ></path>
  62. </svg>
  63. <div class="ft_by">完工</div>
  64. </div>
  65. <div class="item" @click="handleDispatch">
  66. <svg
  67. t="1688030012912"
  68. class="icon"
  69. viewBox="0 0 1024 1024"
  70. version="1.1"
  71. xmlns="http://www.w3.org/2000/svg"
  72. p-id="10881"
  73. width="130"
  74. height="130"
  75. >
  76. <path
  77. d="M968.9 351.8l-57.5-52.2c-31-28.1-71.1-43.6-112.9-43.6L640 256l0-80.5c0-62-50.5-112.5-112.5-112.5l-415 0c-62 0-112.5 50.5-112.5 112.5l0 720.5 128 0c0 70.6 57.4 128 128 128s128-57.4 128-128l192 0 64 0c0 70.6 57.4 128 128 128s128-57.4 128-128l128 0L1024 476.2C1024 428.9 1003.9 383.6 968.9 351.8zM925.9 399.2c21.7 19.7 34.1 47.7 34.1 77l0 99.8-128 0L832 325.5c13.3 4.5 25.7 11.8 36.4 21.5L925.9 399.2zM256 960c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64S291.3 960 256 960zM576 832 366.8 832c-22.2-38.2-63.5-64-110.8-64s-88.7 25.8-110.8 64L64 832l0-656.5c0-26.7 21.8-48.5 48.5-48.5l415 0c26.7 0 48.5 21.8 48.5 48.5l0 80.5L576 832zM768 960c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64S803.3 960 768 960zM878.8 832c-22.2-38.2-63.5-64-110.8-64s-88.7 25.8-110.8 64L640 832l0-512 128 0 0 320 192 0 0 192L878.8 832z"
  78. p-id="10882"
  79. fill="#d57952"
  80. ></path>
  81. </svg>
  82. <div class="ft_by">发货</div>
  83. </div>
  84. <div class="item" @click="handleInventory">
  85. <svg
  86. t="1688030140909"
  87. class="icon"
  88. viewBox="0 0 1024 1024"
  89. version="1.1"
  90. xmlns="http://www.w3.org/2000/svg"
  91. p-id="12365"
  92. width="130"
  93. height="130"
  94. >
  95. <path
  96. d="M908.31 487.83l-363.3-371.72c-24.92-25.5-65.43-25.5-90.35 0l-3.51 3.6c-21.42 21.91-24.42 55.58-9.03 80.8L337.49 307.58c-7.84 8.02-7.84 21.08 0 29.1 3.92 4.02 9.04 6.06 14.17 6.06 5.13 0 10.25-1.95 14.27-5.96l103.46-105.95 189.89 194.48v176.55c0 28.04 19.63 51.5 45.54 56.85l-191.16 195.6c-19.9 20.36-46.33 31.57-74.47 31.57s-54.57-11.21-74.47-31.57l-177.88-182c-41.1-41.95-41.1-110.33 0-152.4l11.86-12.13c7.83-8.03 7.83-21.08 0-29.1a19.816 19.816 0 0 0-28.44 0l-11.86 12.13c-56.78 58.1-56.78 152.49 0 210.59l177.88 182.01c27.53 28.08 64.01 43.6 102.91 43.6s75.37-15.42 102.91-43.6l189.34-193.73v4.01c0 16.86 6.33 32.6 17.99 44.52 11.56 11.82 27.04 18.41 43.52 18.41 16.49 0 31.86-6.59 43.52-18.41 11.55-11.93 17.99-27.76 17.99-44.52V602.9c18.19 1.43 36.68-5.04 50.35-19.03l3.52-3.6c24.9-25.5 24.9-66.93-0.02-92.44z m-28.54 63.34l-3.52 3.6c-8.14 8.33-20.91 9.46-30.35 2.67-6.13-4.42-14.17-4.93-20.8-1.43a20.816 20.816 0 0 0-10.86 18.3v119.38c0 5.87-2.21 11.31-6.23 15.43-4.02 4.11-9.35 6.38-15.08 6.38s-11.05-2.26-15.08-6.48c-4.02-4.11-6.23-9.57-6.23-15.42V641c0.03-0.69 0.03-1.37 0-2.06v-27.81c0-10.28-7.54-19.03-17.59-20.36-10.05-1.33-19.49 5.24-22.01 15.22-0.7 2.88-2.2 5.56-4.32 7.71-3.11 3.19-7.24 4.94-11.66 4.94-9.04 0-16.48-7.51-16.48-16.86v-185.1c0-5.45-2.11-10.59-5.93-14.49L484.62 188.3c-0.32-0.38-0.65-0.77-1-1.13-0.35-0.36-0.73-0.69-1.1-1.02l-2.92-2.99c-9.24-9.46-9.24-24.88 0-34.34l3.52-3.6a23.402 23.402 0 0 1 33.57 0l363.09 371.62c9.23 9.45 9.23 24.88-0.01 34.33z m-380.38-120.4c11.15 0 20.1-9.25 20.1-20.56 0-11.31-9.04-20.57-20.1-20.57H117.11c-11.06 0-20.11 9.25-20.11 20.57 0 11.31 9.05 20.56 20.11 20.56h382.28z"
  97. fill="#a8a343"
  98. p-id="12366"
  99. ></path>
  100. </svg>
  101. <div class="ft_by">盘点</div>
  102. </div>
  103. <div class="item" @click="handlePackage">
  104. <svg
  105. t="1688182715452"
  106. class="icon"
  107. viewBox="0 0 1024 1024"
  108. version="1.1"
  109. xmlns="http://www.w3.org/2000/svg"
  110. p-id="2523"
  111. id="mx_n_1688182715453"
  112. width="130"
  113. height="130"
  114. >
  115. <path
  116. d="M913.28 231.296L549.28 14.208a72.544 72.544 0 0 0-74.56-0.032L110.72 231.296a73.024 73.024 0 0 0-35.488 62.432v436.544a73.056 73.056 0 0 0 35.488 62.464l364.032 217.12a72.704 72.704 0 0 0 74.496 0l364.032-217.12a73.024 73.024 0 0 0 35.488-62.464V293.728a73.056 73.056 0 0 0-35.488-62.432zM507.52 69.12a8.736 8.736 0 0 1 8.96 0l343.36 204.8-143.04 82.592-344.096-206.944z m1.92 407.104L161.696 275.424l148.672-88.672 343.104 206.336zM143.52 737.76a8.768 8.768 0 0 1-4.256-7.488V336.384l340.48 196.576v405.344z m737.024 0L543.68 938.624V530.368L884.8 333.44v396.832a8.736 8.736 0 0 1-4.256 7.488z"
  117. fill="#58b125"
  118. p-id="2524"
  119. ></path>
  120. <path
  121. d="M767.072 483.04l-95.744 55.296a32 32 0 0 0 32 55.424l95.744-55.296a32 32 0 1 0-32-55.424z"
  122. fill="#58b125"
  123. p-id="2525"
  124. ></path>
  125. </svg>
  126. <div class="ft_by">包装</div>
  127. </div>
  128. </div>
  129. </div>
  130. </template>
  131. <script>
  132. export default {
  133. data () {
  134. return {
  135. is_show: true,
  136. is_use: false
  137. }
  138. },
  139. mounted () {
  140. console.log(123)
  141. },
  142. methods: {
  143. handleInventory () {
  144. this.$router.push('/cms/inventory/index')
  145. },
  146. handleFinish () {
  147. this.$router.push('/cms/finish/detail')
  148. },
  149. handlePackage () {
  150. this.$router.push('/cms/Package/index')
  151. },
  152. handleDispatch () {
  153. this.$router.push('/cms/finish')
  154. },
  155. handleShow () {
  156. this.is_show = !this.is_show
  157. console.log(document.getElementsByClassName('header'))
  158. if (this.is_show) {
  159. document.getElementsByClassName('header')[0].style = 'height:7rem;overflow:hidden;transition:all .4s;'
  160. setTimeout(() => {
  161. document.getElementsByClassName('header')[0].style = 'overflow:none;'
  162. this.is_use = false;
  163. }, 400)
  164. } else {
  165. this.is_use = true;
  166. document.getElementsByClassName('header')[0].style = 'height:2.7rem;overflow:hidden;transition:all .4s;'
  167. }
  168. }
  169. }
  170. }
  171. </script>
  172. <style lang="scss" scoped>
  173. .header {
  174. width: 94%;
  175. height: 7rem;
  176. // overflow: hidden;
  177. // transition: all 0.4s;
  178. position: relative;
  179. top: 0.5rem;
  180. left: 3%;
  181. box-shadow: 0.16rem 0.1rem 0.1rem 0.1rem #9d9b9b;
  182. border-radius: 1rem;
  183. padding: 0.4rem 0.7rem 0 1rem;
  184. background: #fff;
  185. }
  186. .header_btn {
  187. border-radius: 1rem;
  188. padding: 0.1rem;
  189. width: 5rem;
  190. display: flex;
  191. justify-content: space-around;
  192. align-items: center;
  193. }
  194. .header_top {
  195. display: flex;
  196. justify-content: space-between;
  197. align-items: center;
  198. }
  199. .ot {
  200. position: relative;
  201. top: -1.3rem;
  202. }
  203. .header_middle1 {
  204. display: flex;
  205. justify-content: space-between;
  206. align-items: center;
  207. .ft {
  208. font-size: 1.5rem;
  209. width: 5rem;
  210. text-align: center;
  211. }
  212. }
  213. .header_middle {
  214. position: relative;
  215. top: -0.3rem;
  216. display: flex;
  217. justify-content: space-between;
  218. align-items: center;
  219. }
  220. /deep/ .btn-group > .btn,
  221. .btn-group-vertical > .btn {
  222. background: #ffffff;
  223. color: #2c3e50;
  224. outline: none;
  225. border: none;
  226. margin: 0;
  227. z-index: 3;
  228. }
  229. .header_footer {
  230. position: relative;
  231. top: -1.7rem;
  232. display: flex;
  233. justify-content: space-between;
  234. align-items: center;
  235. div {
  236. font-size: 0.5rem;
  237. color: rgb(244, 136, 42);
  238. }
  239. }
  240. .bdy {
  241. display: flex;
  242. flex-wrap: wrap;
  243. width: 94%;
  244. position: relative;
  245. top: 1.4rem;
  246. left: 3%;
  247. height: 24rem;
  248. .item {
  249. width: 46%;
  250. margin: 2%;
  251. text-align: center;
  252. height: 45%;
  253. border-radius: 1rem;
  254. background: #fff;
  255. box-shadow: 0.16rem 0.1rem 0.1rem 0.1rem #9d9b9b;
  256. }
  257. }
  258. .ft_by {
  259. position: relative;
  260. top: 0.5rem;
  261. font-size: 1.4rem;
  262. }
  263. </style>