stockPutDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <template>
  2. <view class="orderDetail-digitalShel flex flex_column">
  3. <view class="contHead">
  4. <view class="statusH">
  5. <view class="flex flex_column align_center" v-if="pageInfo&&pageInfo.billState=='WAIT_CHECK'">
  6. <view class="status-row">
  7. <u-icon name="hourglass-half-fill" size="48" color="#333"> </u-icon>
  8. <text>待入库</text>
  9. </view>
  10. <view style="width: 100%;">
  11. <view class="messageText"><text>配送发送:</text>{{pageInfo&&pageInfo.dispatchTypeValue?pageInfo.dispatchTypeValue:'--'}}</view>
  12. <view class="messageText"><text>出库备注:</text>{{pageInfo&&pageInfo.remarks?pageInfo.remarks:'--'}}</view>
  13. </view>
  14. </view>
  15. <view class="flex flex_column align_center" v-else>
  16. <view class="status-row">
  17. <u-icon name="checkmark-circle" size="48" color="#2196F3"> </u-icon>
  18. <text style="color: #2196F3;">已入库</text>
  19. </view>
  20. <view style="width: 100%;">
  21. <view class="messageText"><text>入库人员:</text>{{pageInfo&&pageInfo.confirmPersonName?pageInfo.confirmPersonName:'--'}}</view>
  22. <view class="messageText"><text>入库时间:</text>{{pageInfo&&pageInfo.putStockTime?pageInfo.putStockTime:'--'}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="order-body">
  28. <view class="info partList">
  29. <!-- <view class="infoList">
  30. <view class="title">配件列表</view>
  31. <view>
  32. 2款,共<text class="redText">11</text>件
  33. </view>
  34. </view> -->
  35. <view v-for="item in partList" :key="item.id" class="flex align-center item-list">
  36. <view>
  37. <u-image border-radius="16" width="130" height="130" bg-color="#EBEBEB" :src="item.images"></u-image>
  38. </view>
  39. <view>
  40. <view class="item-name">
  41. <text>{{item.productName||'--'}}</text>
  42. </view>
  43. <view class="item-nums flex align-center justify_between">
  44. <text>{{item.productCode||'--'}}</text>
  45. <!-- <view>
  46. <u-number-box :min="0" :max="999999"></u-number-box>
  47. </view> -->
  48. <view v-if="pageInfo&&pageInfo.billState=='FINISH'">
  49. <text>入库数量:{{item.putQty||item.putQty==0?item.putQty:'--'}}</text>
  50. </view>
  51. <view v-else>
  52. <text>待入库数量:{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. import uniIcons from "@/components/uni-icons/uni-icons.vue"
  63. import moment from 'moment'
  64. import { findShelfReplenishBill } from '@/api/shelf.js'
  65. import clipboard from "@/js_sdk/dc-clipboard/clipboard.js"
  66. export default {
  67. name: 'orderDetail-digitalShel',
  68. components: {
  69. uniIcons,
  70. },
  71. data() {
  72. return {
  73. info: null,
  74. statusText: '',
  75. statusIcon: '', // 结算状态icon
  76. partList: [], // 配件列表
  77. pageInfo:null
  78. }
  79. },
  80. onReady() {
  81. },
  82. onLoad(option) {
  83. console.log(option,option.sn)
  84. let sn = option.sn
  85. this.getPageInfo(sn)
  86. },
  87. computed: {
  88. },
  89. methods: {
  90. // 复制
  91. copyVin(){
  92. clipboard.setText(this.vinNumber);
  93. uni.showToast({
  94. icon: 'none',
  95. title: 'vin码已复制成功'
  96. })
  97. },
  98. message(title){
  99. uni.showToast({
  100. icon:'none',
  101. title: title
  102. })
  103. },
  104. // 查询详情
  105. getPageInfo(val){
  106. findShelfReplenishBill({sn:val}).then(res=>{
  107. if(res.status==200){
  108. this.pageInfo=res.data||null
  109. this.partList=res.data.clzReplenishBillDetailApiEntityList||[]
  110. }
  111. })
  112. }
  113. }
  114. }
  115. </script>
  116. <style lang="less">
  117. page{
  118. height: 100%;
  119. background-color: #F8F8F8;
  120. }
  121. .orderDetail-digitalShel{
  122. width: 100%;
  123. height: 100%;
  124. .redText{
  125. color: #FB1E1E;
  126. }
  127. .order-body{
  128. flex-grow: 1;
  129. overflow: auto;
  130. }
  131. .contHead {
  132. .statusH{
  133. > view{
  134. padding: 20upx 5%;
  135. font-size: 34upx;
  136. }
  137. .status-row{
  138. font-size: 42upx;
  139. text{
  140. margin-left: 10rpx;
  141. }
  142. margin-bottom: 20rpx;
  143. }
  144. .messageText{
  145. font-size: 30upx;
  146. padding: 10rpx 0;
  147. color: #666;
  148. text{
  149. color: #333;
  150. }
  151. }
  152. }
  153. }
  154. .info{
  155. padding: 0 30upx;
  156. font-size: 32rpx;
  157. .infoList{
  158. display: flex;
  159. justify-content: space-between;
  160. align-items: center;
  161. padding: 20rpx 0;
  162. border-bottom: 2rpx solid #f2f2f2;
  163. &:last-child{
  164. border: 0;
  165. }
  166. .title{
  167. font-weight: bold;
  168. }
  169. > text{
  170. &:first-child{
  171. color: #666E75;
  172. }
  173. }
  174. }
  175. .item-list{
  176. background-color: #FFFFFF;
  177. border-bottom: 2rpx solid #f2f2f2;
  178. padding: 25rpx;
  179. margin-bottom: 20rpx;
  180. border-radius: 20rpx;
  181. box-shadow: 2rpx 3rpx 5rpx #eee;
  182. &:last-child{
  183. border: none;
  184. }
  185. > view{
  186. &:first-child{
  187. margin-right: 20rpx;
  188. }
  189. &:last-child{
  190. flex-grow: 1;
  191. }
  192. }
  193. .item-name{
  194. word-wrap: break-word;
  195. font-size: 32rpx;
  196. color: #333;
  197. font-weight: bold;
  198. margin-top: 10rpx;
  199. }
  200. .item-nums{
  201. margin-top: 10rpx;
  202. padding: 10rpx 0;
  203. text{
  204. font-size: 32rpx;
  205. color: #222222;
  206. }
  207. }
  208. }
  209. }
  210. .footer{
  211. padding: 20upx 30upx;
  212. background: #FFFFFF;
  213. uni-button{
  214. &:after{
  215. border: 0;
  216. }
  217. width: 100%;
  218. color: #585858;
  219. font-size: 32rpx;
  220. }
  221. }
  222. }
  223. </style>