semiProductBom.vue 3.3 KB

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