stocktaking.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. </view>
  8. <view slot="right" @tap="$utils.back()">
  9. <span style="color: #FFFFFF;">返回</span>
  10. </view>
  11. </uni-nav-bar>
  12. <view class="container flex-column-center">
  13. <view class="pic" v-if="type == 1">
  14. <u-image height="400rpx" mode="aspectFit" src="../../static/images/scan.png"></u-image>
  15. </view>
  16. <view class="pic" v-if="type == 2">
  17. <u-image height="300rpx" mode="aspectFit" src="../../static/images/rfid.png"></u-image>
  18. </view>
  19. <view class="text">
  20. 扫描完成
  21. </view>
  22. <view class="info">
  23. <view class="row flex-start">
  24. <view class="label">物料编号:</view>
  25. <view class="value">{{ data.materialId }}</view>
  26. </view>
  27. <view class="row flex-start">
  28. <view class="label">物料名称:</view>
  29. <view class="value">{{ data.materialName }}</view>
  30. </view>
  31. <view class="row flex-start">
  32. <view class="label">物料类型:</view>
  33. <view class="value">{{ data.materialCategoryName }}</view>
  34. </view>
  35. <view class="row flex-start">
  36. <view class="label">所在仓库:</view>
  37. <view class="value">{{ data.stockName }}</view>
  38. </view>
  39. <view class="row flex-start" style="margin-bottom: 10rpx;">
  40. <view class="label">旋转区域:</view>
  41. <view class="value">{{ data.placeArea }}</view>
  42. </view>
  43. <view class="row flex-start big">
  44. <view class="label">库存数量:</view>
  45. <view class="value">
  46. {{ data.quantity }}
  47. <span style="padding: 0 10rpx;" v-if="data.quantity">米</span>
  48. </view>
  49. </view>
  50. <view class="row flex-start big">
  51. <view class="label">盘点结果:</view>
  52. <view class="value flex-start">
  53. <u-input v-model="quantity" type="number" :border="true" placeholder="请输入数量" border-color="#000" />
  54. <span style="padding: 0 10rpx;">米</span>
  55. </view>
  56. </view>
  57. <view class="row">
  58. <u-button throttleTime="300" type="primary" style="width: 100%;">完成并继续</u-button>
  59. </view>
  60. <view class="row">
  61. <u-button throttleTime="300" type="primary" style="width: 100%;">完成并返回</u-button>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. export default {
  69. data() {
  70. return {
  71. quantity: '',
  72. code: '',
  73. type: 1,
  74. data: {}
  75. };
  76. },
  77. methods: {
  78. // 获取标签详情
  79. getMaterialStock() {
  80. }
  81. },
  82. onLoad(option) {
  83. this.code = option.code || ''
  84. this.type = option.type
  85. this.$http.GetMaterialStock({
  86. scanCodeWay: this.type,
  87. scanCode: this.code
  88. }).then(res => {
  89. console.log(res)
  90. if(res.code === 0) {
  91. this.data = res.result
  92. }
  93. })
  94. }
  95. }
  96. </script>
  97. <style lang="scss" scoped>
  98. @import '../../static/css/mycss.scss';
  99. .container-wrap {
  100. position: relative;
  101. .container {
  102. height: calc(100vh - 150rpx);
  103. overflow: auto;
  104. .pic {
  105. width: 650rpx;
  106. }
  107. .text {
  108. padding: 30rpx 0;
  109. font-size: 36rpx;
  110. font-weight: bold;
  111. }
  112. .info {
  113. padding: 20rpx;
  114. width: 700rpx;
  115. border-radius: 10rpx;
  116. background-color: #FFFFFF;
  117. .row {
  118. padding-bottom: 20rpx;
  119. &.big {
  120. font-weight: bold;
  121. }
  122. &:last-child {
  123. padding-bottom: 0;
  124. }
  125. }
  126. }
  127. }
  128. }
  129. </style>