instanceBom.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view>
  3. <view v-for="(item, index) in list" :key="index" @change="e => selectVal(e, item, index)">
  4. <view class="listBox rx-bs">
  5. <view class="delete" @click="getDelete(index)">
  6. <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="24" color="#fa3534"></uni-icons>
  7. </view>
  8. <view class="listBox-con">
  9. <view class="listBox-top rx-bc">
  10. <view> {{ item.assetName }}</view>
  11. <view class="code">{{ item.assetCode}}</view>
  12. </view>
  13. <view class="listBox-bottom rx">
  14. <view v-for="(itm, index) in tableH(item.rootCategoryLevelId)" :key="index" class="items">
  15. {{ itm.label }}:{{ item[itm.prop] }}
  16. </view>
  17. <view class="items">
  18. 可用库存:{{ item.number }} {{item.unit}}
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import {
  28. tableHeader
  29. } from '../../common.js'
  30. export default {
  31. props: ['list'],
  32. data() {
  33. return {
  34. }
  35. },
  36. methods: {
  37. tableH(type) {
  38. return tableHeader(type)
  39. },
  40. getDelete(index) {},
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .listBox {
  46. padding: 14rpx 0;
  47. border-bottom: 2rpx solid $border-color;
  48. .listBox-con {
  49. width: 630rpx;
  50. font-weight: 400;
  51. }
  52. .listBox-top {
  53. margin-top: 6rpx;
  54. color: #090A0A;
  55. font-size: 28rpx;
  56. font-style: normal;
  57. }
  58. .listBox-bottom {
  59. color: #090A0A;
  60. font-size: 24rpx;
  61. font-style: normal;
  62. flex-wrap: wrap;
  63. .items {
  64. width: 50%;
  65. margin-top: 6rpx;
  66. }
  67. }
  68. }
  69. </style>