boatBom.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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" style="width: 300rpx;" v-model="item.demandQuantity"
  39. type='digit'></input> {{ item.unit}} <text style="font-size: 20rpx;margin-left: 18rpx;"> 数量: {{ Number(item.count || 0) * Number(resObj.formingNum) }} </text>
  40. </view>
  41. </view>
  42. <view class="item">
  43. <view class="lable rx-cc">领料仓库</view>
  44. <view class="content pd4">
  45. <zxz-uni-data-select :localdata="item.warehouseList" v-model="item.warehouseId"
  46. dataValue='id' format='{name}' dataKey="name" filterable
  47. :clear='false'></zxz-uni-data-select>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import baTreePicker from '@/components/ba-tree-picker/ba-tree-picker.vue'
  56. import {
  57. pageeLedgerMain,
  58. assetPage
  59. } from '@/api/pda/workOrder.js'
  60. export default {
  61. props: {
  62. code: {
  63. type: String,
  64. default: ''
  65. },
  66. palletList: {
  67. type: Array,
  68. default: () => []
  69. },
  70. palletList2: {
  71. type: Array,
  72. default: () => []
  73. },
  74. resObj: {
  75. type: Object,
  76. default: () => {}
  77. }
  78. },
  79. watch: {
  80. palletList2: {
  81. immediate: true,
  82. deep: true,
  83. handler(newVal) {
  84. this.newList = [...this.palletList, ...newVal]
  85. }
  86. }
  87. },
  88. data() {
  89. return {
  90. newList: []
  91. }
  92. },
  93. created() {
  94. },
  95. methods: {
  96. getDelete(idx) {
  97. this.newList.splice(idx, 1)
  98. this.$emit('hendDel', 'boatBom', this.code, this.newList)
  99. },
  100. }
  101. }
  102. </script>
  103. <style lang="scss" scoped>
  104. .title_box {
  105. margin-top: 20rpx;
  106. .name {
  107. font-size: 28rpx;
  108. font-style: normal;
  109. font-weight: 400;
  110. color: $theme-color;
  111. padding-left: 20rpx;
  112. position: relative;
  113. &:before {
  114. position: absolute;
  115. content: '';
  116. left: 0rpx;
  117. top: 0rpx;
  118. bottom: 0rpx;
  119. width: 4rpx;
  120. height: 28rpx;
  121. background: $theme-color;
  122. margin: auto;
  123. }
  124. }
  125. }
  126. .material {
  127. margin-top: 10rpx;
  128. .left {
  129. width: 40rpx;
  130. }
  131. .content_table {
  132. width: 652rpx;
  133. border: 2rpx solid $border-color;
  134. .item {
  135. display: flex;
  136. border-bottom: 2rpx solid $border-color;
  137. .lable {
  138. width: 132rpx;
  139. text-align: center;
  140. background-color: #F7F9FA;
  141. font-size: 26rpx;
  142. border-right: 2rpx solid $border-color;
  143. flex-shrink: 0;
  144. }
  145. .lable150 {
  146. width: 156rpx !important;
  147. font-size: 24rpx;
  148. }
  149. .ww80 {
  150. width: 80rpx;
  151. }
  152. .content {
  153. width: 518rpx;
  154. min-height: 64rpx;
  155. font-size: 28rpx;
  156. line-height: 28rpx;
  157. font-style: normal;
  158. font-weight: 400;
  159. padding: 18rpx 8rpx;
  160. box-sizing: border-box;
  161. word-wrap: break-word;
  162. flex-grow: 1 !important;
  163. .unit {
  164. padding: 0 4rpx;
  165. font-size: 24rpx;
  166. color: #404446;
  167. }
  168. }
  169. .content_num {
  170. display: flex;
  171. align-items: center;
  172. padding: 0 4rpx;
  173. /deep/ .uni-input-input {
  174. border: 2rpx solid #F0F8F2;
  175. background: #F0F8F2;
  176. color: $theme-color;
  177. }
  178. }
  179. .pd4 {
  180. padding: 4rpx 8rpx;
  181. }
  182. &:last-child {
  183. border-bottom: none;
  184. }
  185. }
  186. .ww55 {
  187. width: 55%;
  188. }
  189. .ww45 {
  190. width: 45%;
  191. }
  192. }
  193. }
  194. </style>