aridRegion.vue 3.6 KB

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