boatBom.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc" v-if='newList.length'>
  4. <view class="name">舟皿信息</view>
  5. </view>
  6. <view class="material rx-ss" v-for="(item,index) in newList" :key='index'>
  7. <view class="left rx-ss" @click="getDelete(index)">
  8. <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
  9. </view>
  10. <view class='content_table'>
  11. <view class="item">
  12. <view class="lable rx-cc">名称</view>
  13. <view class="content content_num">
  14. {{ item.automatic == 1 ? item.name : item.categoryName}}
  15. </view>
  16. </view>
  17. <view class="item">
  18. <view class="lable rx-cc">编码</view>
  19. <view class="content ">
  20. {{ item.automatic == 1 ? item.code : item.categoryCode}}
  21. </view>
  22. </view>
  23. <view class="item">
  24. <view class="lable rx-cc">型号</view>
  25. <view class="content">
  26. {{item.modelType}}
  27. </view>
  28. </view>
  29. <view class="item">
  30. <view class="lable rx-cc">牌号</view>
  31. <view class="content">
  32. {{item.brandNum }}
  33. </view>
  34. </view>
  35. <view class="item">
  36. <view class="lable rx-cc">数量</view>
  37. <view class="content content_num">
  38. <input class="uni-input" v-model="item.demandQuantity" type='digit'></input> {{ item.unit}}
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import baTreePicker from '@/components/ba-tree-picker/ba-tree-picker.vue'
  47. import {
  48. pageeLedgerMain,
  49. assetPage
  50. } from '@/api/pda/workOrder.js'
  51. export default {
  52. props: {
  53. code: {
  54. type: String,
  55. default: ''
  56. },
  57. palletList: {
  58. type: Array,
  59. default: () => []
  60. },
  61. palletList2: {
  62. type: Array,
  63. default: () => []
  64. }
  65. },
  66. watch: {
  67. palletList2: {
  68. immediate: true,
  69. deep: true,
  70. handler(newVal) {
  71. this.newList = [...this.palletList, ...newVal]
  72. }
  73. }
  74. },
  75. data() {
  76. return {
  77. newList: []
  78. }
  79. },
  80. created() {
  81. },
  82. methods: {
  83. getDelete(idx) {
  84. this.newList.splice(idx, 1)
  85. this.$emit('hendDel', 'boatBom', this.code, this.newList)
  86. },
  87. }
  88. }
  89. </script>
  90. <style lang="scss" scoped>
  91. .title_box {
  92. margin-top: 20rpx;
  93. .name {
  94. font-size: 28rpx;
  95. font-style: normal;
  96. font-weight: 400;
  97. color: $theme-color;
  98. padding-left: 20rpx;
  99. position: relative;
  100. &:before {
  101. position: absolute;
  102. content: '';
  103. left: 0rpx;
  104. top: 0rpx;
  105. bottom: 0rpx;
  106. width: 4rpx;
  107. height: 28rpx;
  108. background: $theme-color;
  109. margin: auto;
  110. }
  111. }
  112. }
  113. .material {
  114. margin-top: 10rpx;
  115. .left {
  116. width: 40rpx;
  117. }
  118. .content_table {
  119. width: 652rpx;
  120. border: 2rpx solid $border-color;
  121. .item {
  122. display: flex;
  123. border-bottom: 2rpx solid $border-color;
  124. .lable {
  125. width: 132rpx;
  126. text-align: center;
  127. background-color: #F7F9FA;
  128. font-size: 26rpx;
  129. border-right: 2rpx solid $border-color;
  130. flex-shrink: 0;
  131. }
  132. .lable150 {
  133. width: 156rpx !important;
  134. font-size: 24rpx;
  135. }
  136. .ww80 {
  137. width: 80rpx;
  138. }
  139. .content {
  140. width: 518rpx;
  141. min-height: 64rpx;
  142. font-size: 28rpx;
  143. line-height: 28rpx;
  144. font-style: normal;
  145. font-weight: 400;
  146. padding: 18rpx 8rpx;
  147. box-sizing: border-box;
  148. word-wrap: break-word;
  149. flex-grow: 1 !important;
  150. .unit {
  151. padding: 0 4rpx;
  152. font-size: 24rpx;
  153. color: #404446;
  154. }
  155. }
  156. .content_num {
  157. display: flex;
  158. align-items: center;
  159. padding: 0 4rpx;
  160. /deep/ .uni-input-input {
  161. border: 2rpx solid #F0F8F2;
  162. background: #F0F8F2;
  163. color: $theme-color;
  164. }
  165. }
  166. .pd4 {
  167. padding: 4rpx 8rpx;
  168. }
  169. &:last-child {
  170. border-bottom: none;
  171. }
  172. }
  173. .ww55 {
  174. width: 55%;
  175. }
  176. .ww45 {
  177. width: 45%;
  178. }
  179. }
  180. }
  181. </style>