aridRegion.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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 class="title_box rx-bc">
  37. <view class="name">干燥时间</view>
  38. </view>
  39. <view class="material ">
  40. <view class="content_table">
  41. <view class="item">
  42. <view class="lable rx-cc">周期</view>
  43. <view class="content content_num rx-bc">
  44. <input class="uni-input" v-model="occupationTime" @input="timeInp" type="digit"></input>
  45. <text>小时</text>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. props: {
  55. list: {
  56. type: Array,
  57. default: () => []
  58. },
  59. wordItem: {
  60. type: Object,
  61. default: () => {}
  62. },
  63. },
  64. watch: {
  65. list: {
  66. immediate: true,
  67. deep: true,
  68. handler(newVal) {
  69. this.newList = newVal
  70. }
  71. }
  72. },
  73. data() {
  74. return {
  75. occupationTime: null,
  76. newList: [],
  77. }
  78. },
  79. methods: {
  80. handleScan(index) {
  81. this.$emit('handleScan', index, 'aridRegion')
  82. },
  83. getDelete(index) {
  84. this.$emit('handleDel', index, 'aridRegion')
  85. },
  86. timeInp() {
  87. this.newList.forEach(e => {
  88. e.occupationTime = this.occupationTime
  89. })
  90. }
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. .title_box {
  96. margin-top: 20rpx;
  97. .name {
  98. font-size: 28rpx;
  99. font-style: normal;
  100. font-weight: 400;
  101. color: $theme-color;
  102. padding-left: 20rpx;
  103. position: relative;
  104. &:before {
  105. position: absolute;
  106. content: '';
  107. left: 0rpx;
  108. top: 0rpx;
  109. bottom: 0rpx;
  110. width: 4rpx;
  111. height: 28rpx;
  112. background: $theme-color;
  113. margin: auto;
  114. }
  115. }
  116. .left {
  117. width: 40rpx;
  118. }
  119. .btn_box {
  120. padding: 0 18rpx;
  121. height: 60rpx;
  122. background: $theme-color;
  123. font-size: 26rpx;
  124. font-style: normal;
  125. font-weight: 400;
  126. font-size: 24rpx;
  127. color: #fff;
  128. border-radius: 4rpx;
  129. .scan {
  130. width: 34rpx;
  131. height: 34rpx;
  132. margin-right: 12rpx;
  133. }
  134. }
  135. }
  136. .material {
  137. margin-top: 10rpx;
  138. .content_table {
  139. width: 100%;
  140. border: 2rpx solid $border-color;
  141. .item {
  142. display: flex;
  143. border-bottom: 2rpx solid $border-color;
  144. .lable {
  145. width: 132rpx;
  146. text-align: center;
  147. background-color: #F7F9FA;
  148. font-size: 26rpx;
  149. border-right: 2rpx solid $border-color;
  150. flex-shrink: 0;
  151. }
  152. .lable150 {
  153. width: 156rpx !important;
  154. font-size: 24rpx;
  155. }
  156. .ww80 {
  157. width: 80rpx;
  158. }
  159. .content {
  160. width: 518rpx;
  161. min-height: 64rpx;
  162. font-size: 28rpx;
  163. line-height: 28rpx;
  164. font-style: normal;
  165. font-weight: 400;
  166. padding: 18rpx 8rpx;
  167. box-sizing: border-box;
  168. word-wrap: break-word;
  169. flex-grow: 1 !important;
  170. .unit {
  171. padding: 0 4rpx;
  172. font-size: 24rpx;
  173. color: #404446;
  174. }
  175. .stateColor {
  176. color: $theme-color;
  177. }
  178. }
  179. .content_num {
  180. display: flex;
  181. align-items: center;
  182. padding: 0 4rpx;
  183. /deep/ .uni-input-input {
  184. border: 2rpx solid #F0F8F2;
  185. background: #F0F8F2;
  186. color: $theme-color;
  187. }
  188. }
  189. .pd4 {
  190. padding: 4rpx 8rpx;
  191. }
  192. &:last-child {
  193. border-bottom: none;
  194. }
  195. }
  196. }
  197. }
  198. </style>