boatBom.vue 4.3 KB

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