Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

excel.vue 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="wrapper">
  3. <view class="tabel">
  4. <view class="tr">
  5. <view class="th">仓库名称</view>
  6. <view class="th">设备类型</view>
  7. <view class="th">库存数量</view>
  8. <view class="th">剩余可用数量</view>
  9. <view class="th">余量</view>
  10. </view>
  11. <view class="tr">
  12. <view class="td overflow">黔通智联仓库1</view>
  13. <view class="td">2X储值卡</view>
  14. <view class="td">10000</view>
  15. <view class="td">8500</view>
  16. <view class="td">85%</view>
  17. </view>
  18. <view class="tr">
  19. <view class="td">黔通智联仓库2</view>
  20. <view class="td">2X储值卡</view>
  21. <view class="td">10000</view>
  22. <view class="td">7510</view>
  23. <view class="td">75.1%</view>
  24. </view>
  25. <view class="tr">
  26. <view class="td">黔通智联仓库3</view>
  27. <view class="td">2X储值卡</view>
  28. <view class="td">10000</view>
  29. <view class="td">10000</view>
  30. <view class="td">100%</view>
  31. </view>
  32. <view class="tr">
  33. <view class="td">黔通智联仓库4</view>
  34. <view class="td">2X储值卡</view>
  35. <view class="td">188000</view>
  36. <view class="td">100001</view>
  37. <view class="td">{{(100001/188000*100).toFixed(2)}}%</view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. </script>
  44. <style>
  45. page {
  46. background: #eef7f7;
  47. }
  48. </style>
  49. <style scoped>
  50. .wrapper {
  51. padding: 30rpx 20rpx;
  52. }
  53. .tabel {
  54. display: table;
  55. border-collapse: collapse;
  56. overflow-x: auto;
  57. word-break: keep-all;
  58. white-space: nowrap;
  59. background-color: #FFFFFF;
  60. font-size: 28rpx;
  61. width: 100%;
  62. }
  63. .tabel .tr {
  64. display: table-row;
  65. }
  66. .tabel .tr .th {
  67. display: table-cell;
  68. height: 72rpx;
  69. line-height: 72rpx;
  70. text-align: center;
  71. border: 1rpx solid #DDDDDD;
  72. border-right: none;
  73. border-bottom: none;
  74. background-color: #00B38B;
  75. color: #FFFFFF;
  76. font-weight: bold;
  77. box-sizing: border-box;
  78. }
  79. .tabel .tr .td {
  80. padding: 0rpx 8rpx;
  81. display: table-cell;
  82. height: 60rpx;
  83. line-height: 60rpx;
  84. text-align: center;
  85. border: 1rpx solid #DDDDDD;
  86. border-right: none;
  87. box-sizing: border-box;
  88. }
  89. </style>