boatBom.vue 4.4 KB

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