audit-data.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div class="home-container">
  3. <el-card class="home-container__card">
  4. <div class="title">
  5. <span>
  6. 审核数据
  7. </span>
  8. <span>
  9. <i
  10. class="el-icon-refresh-right"
  11. style="cursor: pointer;font-size:20px"
  12. @click="refresh"
  13. ></i>
  14. </span>
  15. </div>
  16. <div class="content" v-loading="loading">
  17. <div class="content-item" v-for="(item, index) in list" :key="index">
  18. <div class="card">
  19. <i :class="item.icon" style="font-size:30px;color:#409EFF"></i>
  20. <div class="card-content">
  21. <span class="card-content-num">{{ item.qty }}</span>
  22. <span class="card-content-text">{{ item.text }}</span>
  23. </div>
  24. </div>
  25. </div>
  26. </div>
  27. </el-card>
  28. </div>
  29. </template>
  30. <script>
  31. export default {
  32. name: "basicContainer",
  33. data() {
  34. return {
  35. loading: false,
  36. list: [
  37. { icon: "el-icon-s-order", qty: "1", text: "销售订单/待审核" },
  38. { icon: "el-icon-s-goods", qty: "1", text: "采购订单/待审核" },
  39. { icon: "el-icon-s-home", qty: "1", text: "发货/待审核" },
  40. { icon: "el-icon-s-home", qty: "1", text: "收货/待审核" },
  41. { icon: "el-icon-s-finance", qty: "1", text: "申请付款/待审核" }
  42. ]
  43. };
  44. },
  45. methods: {
  46. refresh() {
  47. this.loading = true;
  48. setTimeout(() => {
  49. this.loading = false;
  50. }, 1000);
  51. }
  52. }
  53. };
  54. </script>
  55. <style lang="scss" scoped>
  56. .home-container {
  57. padding: 0px 5px 5px 5px;
  58. box-sizing: border-box;
  59. height: 100%;
  60. ::v-deep .el-card__body {
  61. padding: 10px 15px;
  62. font-size: 14px;
  63. }
  64. &__card {
  65. width: 100%;
  66. height: 100%;
  67. }
  68. .title {
  69. display: flex;
  70. justify-content: space-between;
  71. }
  72. }
  73. .content {
  74. display: flex;
  75. &-item {
  76. background-color: #f4f8ff;
  77. margin-top: 0.5vh;
  78. margin-right: 0.5vw;
  79. height: 13vh;
  80. width: 15vw;
  81. display: flex;
  82. align-items: center;
  83. padding-left: 1.5vw;
  84. .card {
  85. display: flex;
  86. align-items: center;
  87. &-content {
  88. padding-left: 1vw;
  89. display: flex;
  90. flex-direction: column;
  91. &-num {
  92. font-size: 20px;
  93. font-weight: 600;
  94. }
  95. &-text {
  96. color: #909399;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. </style>