warehousing-bind.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <!-- 入库单绑定标签 -->
  2. <template>
  3. <view class="container-wrap">
  4. <uni-nav-bar title="绑定标签" :status-bar="true" background-color="#3F92F9" color="#FFF">
  5. <view slot="left">
  6. <u-icon name="account-fill" color="#FFF" size="35"></u-icon>
  7. <span style="padding: 0 5rpx;color: #FFFFFF;">{{ userInfo.name }}</span>
  8. </view>
  9. <view slot="right" @tap="$utils.back()">
  10. <span style="color: #FFFFFF;">返回</span>
  11. </view>
  12. </uni-nav-bar>
  13. <view class="container">
  14. <view class="info">
  15. <view class="row flex-start">
  16. <view class="label">入库单号:</view>
  17. <view class="value">SI-202107051338562167</view>
  18. </view>
  19. <view class="row flex-start">
  20. <view class="label">物料编码:</view>
  21. <view class="value">01.001.0002</view>
  22. </view>
  23. <view class="row flex-start">
  24. <view class="label">物料名称:</view>
  25. <view class="value">直喷110g针织-130cm</view>
  26. </view>
  27. <view class="row flex-start">
  28. <view class="label">仓库名称:</view>
  29. <view class="value">面料仓</view>
  30. </view>
  31. <view class="row flex-start">
  32. <view class="label">入库区域:</view>
  33. <view class="value">2#</view>
  34. </view>
  35. </view>
  36. <view class="title">
  37. 绑定记录
  38. </view>
  39. <view class="subtitle">
  40. 已绑定标签数:800 米
  41. </view>
  42. <!-- <view class="history-list">
  43. <view class="item" v-for="(item, index) in 6" :key="index">
  44. <view class="row-title">
  45. 入库数量:100 米
  46. </view>
  47. <view class="row flex-between">
  48. <view class="col">操作员:张三</view>
  49. <view class="col">2021-07-10 15:00:00</view>
  50. </view>
  51. </view>
  52. </view> -->
  53. <view class="list">
  54. <u-swipe-action :index="index"
  55. v-for="(item, index) in list" :key="index"
  56. @click="click" @open="open(item)"
  57. :options="options"
  58. >
  59. <view class="item u-border-bottom">
  60. <!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
  61. <view class="title-wrap">
  62. <view class="row-title">
  63. 绑定物料数量:100 米
  64. </view>
  65. <view class="row flex-between">
  66. <view class="col">标签值:01239982713</view>
  67. </view>
  68. </view>
  69. </view>
  70. </u-swipe-action>
  71. </view>
  72. </view>
  73. <view class="footer flex-between">
  74. <view class="bind">
  75. 绑定二维码
  76. </view>
  77. <view class="bind">
  78. 绑定RFID标签
  79. </view>
  80. <my-fixed-button :customClick="true" text="完成绑定"></my-fixed-button>
  81. </view>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. data() {
  87. return {
  88. data: {},
  89. list: [
  90. {
  91. id: 1,
  92. title: '长安回望绣成堆,山顶千门次第开,一骑红尘妃子笑,无人知是荔枝来',
  93. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  94. show: false
  95. },
  96. {
  97. id: 2,
  98. title: '新丰绿树起黄埃,数骑渔阳探使回,霓裳一曲千峰上,舞破中原始下来',
  99. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  100. show: false
  101. },
  102. {
  103. id: 3,
  104. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  105. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  106. show: false,
  107. },
  108. {
  109. id: 3,
  110. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  111. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  112. show: false,
  113. },
  114. {
  115. id: 3,
  116. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  117. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  118. show: false,
  119. },
  120. {
  121. id: 3,
  122. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  123. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  124. show: false,
  125. },
  126. {
  127. id: 3,
  128. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  129. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  130. show: false,
  131. },
  132. {
  133. id: 3,
  134. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  135. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  136. show: false,
  137. },
  138. {
  139. id: 3,
  140. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  141. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  142. show: false,
  143. },
  144. {
  145. id: 3,
  146. title: '登临送目,正故国晚秋,天气初肃。千里澄江似练,翠峰如簇',
  147. images: 'https://cdn.uviewui.com/uview/common/logo.png',
  148. show: false,
  149. }
  150. ],
  151. options: [
  152. {
  153. text: '删除',
  154. style: {
  155. backgroundColor: '#dd524d'
  156. }
  157. }
  158. ]
  159. };
  160. },
  161. methods: {
  162. click(index, index1) {
  163. console.log(index, index1)
  164. },
  165. open() {
  166. },
  167. getPageList() {
  168. console.log(123)
  169. }
  170. },
  171. onLoad(option) {
  172. this.data = this.$utils.code2Object(option.data)
  173. console.log(this.data)
  174. }
  175. }
  176. </script>
  177. <style lang="scss">
  178. .container-wrap {
  179. overflow: hidden;
  180. .container {
  181. height: calc(100vh - 150rpx);
  182. overflow: auto;
  183. padding: 20rpx;
  184. padding-bottom: 100rpx;
  185. .info {
  186. padding: 20rpx 40rpx;
  187. width: 100%;
  188. .row {
  189. padding-bottom: 10rpx;
  190. &:last-child {
  191. padding-bottom: 0;
  192. }
  193. .label, .value {
  194. font-size: 32rpx;
  195. }
  196. }
  197. }
  198. .title {
  199. padding-top: 30rpx;
  200. font-size: 36rpx;
  201. font-weight: bold;
  202. text-align: center;
  203. }
  204. .subtitle {
  205. padding-bottom: 10rpx;
  206. text-align: center;
  207. }
  208. .list {
  209. background-color: #FFFFFF;
  210. border: 1px solid #666666;
  211. border-bottom: none;
  212. height: 740rpx;
  213. overflow: auto;
  214. .item {
  215. padding: 20rpx;
  216. &.u-border-bottom {
  217. border-bottom: 1px solid #666666 !important;
  218. &:last-child {
  219. border-bottom: none;
  220. }
  221. }
  222. .row-title {
  223. padding-bottom: 10rpx;
  224. font-size: 32rpx;
  225. color: #333333;
  226. }
  227. .row {
  228. .col {
  229. color: #7F7F7F;
  230. }
  231. }
  232. }
  233. }
  234. }
  235. .footer {
  236. padding: 0 20rpx;
  237. position: fixed;
  238. bottom: 80rpx;
  239. left: 0;
  240. width: 100%;
  241. .bind {
  242. flex: 1;
  243. height: 80rpx;
  244. line-height: 80rpx;
  245. background-color: #FFFFFF;
  246. text-align: center;
  247. &:first-child {
  248. margin-right: 10rpx;
  249. }
  250. }
  251. }
  252. }
  253. </style>