outInstanceBom.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <template>
  2. <view>
  3. <view class="material rx-ss" v-for="(mate, idx) in list">
  4. <view class="content_table">
  5. <view class="item">
  6. <view class="lable rx-cc">编码</view>
  7. <view class="content">
  8. {{mate.categoryId}}
  9. </view>
  10. </view>
  11. <view class="item">
  12. <view class="lable rx-cc">名称</view>
  13. <view class="content" style="color: rgb(255 170 42)">{{mate.name}}</view>
  14. </view>
  15. <view class="item" v-for="(itm, index) in tableH(mate.rootCategoryLevelId)" :key="index"
  16. v-if="!itm.formatter">
  17. <view class="lable rx-cc">{{ itm.label }}</view>
  18. <view class="content"> {{ mate[itm.prop] }}</view>
  19. </view>
  20. <view v-for="(itm, index) in tableH(mate.rootCategoryLevelId)" :key="index" class="items"
  21. v-if="itm.formatter">
  22. {{ itm.label }}:{{ itm.formatter(mate) }}
  23. </view>
  24. <view class="item" v-if='mate.rootCategoryLevelId == 1 && mate.isConsumable == 0'>
  25. <view class="lable rx-cc">重量</view>
  26. <view class="content ">
  27. {{mate.extInfo.weight || 0}} {{ mate.extInfo.weightUnit}}
  28. </view>
  29. </view>
  30. <view class="item" v-if='mate.rootCategoryLevelId == 1 && mate.isConsumable == 0'>
  31. <view class="lable rx-cc">刻码</view>
  32. <view class="content">{{mate.extInfo.engrave}}</view>
  33. </view>
  34. <view class="item" v-if='mate.rootCategoryLevelId == 1 && mate.isConsumable == 0'>
  35. <view class="lable rx-cc">物料代号</view>
  36. <view class="content">{{mate.extInfo.materielCode}}</view>
  37. </view>
  38. <view class="item" v-if='mate.rootCategoryLevelId == 1 && mate.isConsumable == 0'>
  39. <view class="lable rx-cc">客户代号</view>
  40. <view class="content">{{mate.extInfo.clientCode}}</view>
  41. </view>
  42. <view class="item">
  43. <view class="lable rx-cc">数量</view>
  44. <view class="content content_num">
  45. <input class="uni-input" v-model="mate.quantity" type="digit"></input>
  46. <view class="unit" v-if='mate.unit'>/{{mate.unit}}</view>
  47. </view>
  48. </view>
  49. <view class="item">
  50. <view class="lable rx-cc">领料仓库</view>
  51. <view class="content ">
  52. {{ mate.pathName }}
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. import {
  61. tableHeader
  62. } from './outCommon.js'
  63. export default {
  64. props: ['list'],
  65. data() {
  66. return {
  67. }
  68. },
  69. methods: {
  70. tableH(type) {
  71. return tableHeader(type)
  72. },
  73. }
  74. }
  75. </script>
  76. <style lang="scss" scoped>
  77. .material {
  78. margin-top: 10rpx;
  79. .content_table {
  80. width: 702rpx;
  81. border: 2rpx solid $border-color;
  82. .item {
  83. display: flex;
  84. border-bottom: 2rpx solid $border-color;
  85. .lable {
  86. width: 132rpx;
  87. text-align: center;
  88. background-color: #F7F9FA;
  89. font-size: 26rpx;
  90. border-right: 2rpx solid $border-color;
  91. flex-shrink: 0;
  92. }
  93. .ww80 {
  94. width: 80rpx;
  95. }
  96. .content {
  97. width: 518rpx;
  98. min-height: 64rpx;
  99. font-size: 28rpx;
  100. line-height: 28rpx;
  101. font-style: normal;
  102. font-weight: 400;
  103. padding: 18rpx 8rpx;
  104. box-sizing: border-box;
  105. word-wrap: break-word;
  106. flex-grow: 1 !important;
  107. }
  108. .content_num {
  109. display: flex;
  110. align-items: center;
  111. padding: 0 4rpx;
  112. /deep/ .uni-input-input {
  113. width: 200rpx;
  114. border: 2rpx solid #F0F8F2;
  115. background: #F0F8F2;
  116. color: $theme-color;
  117. }
  118. .unit {
  119. padding: 0 4rpx;
  120. font-size: 24rpx;
  121. color: #404446;
  122. }
  123. }
  124. .pd4 {
  125. padding: 4rpx 8rpx;
  126. }
  127. &:last-child {
  128. border-bottom: none;
  129. }
  130. }
  131. .ww55 {
  132. width: 55%;
  133. }
  134. .ww45 {
  135. width: 45%;
  136. }
  137. }
  138. }
  139. </style>