stockPutDetail.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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">
  44. <text>{{item.productCode||'--'}}</text>
  45. </view>
  46. <view class="flex align_center" v-if="item.productTypeSn3=='543766811373752320'" style="margin-top: 5px;">
  47. <text class="item-detail-text">原厂编码:</text>
  48. <view style="width: 50%;flex-grow: 1;">
  49. <u-tag :text="item.origCode" mode="light" borderColor="#ffffff" type="warning" size="large"></u-tag>
  50. </view>
  51. </view>
  52. <view class="item-nums flex align-center justify_end">
  53. <view v-if="pageInfo&&pageInfo.billState=='FINISH'">
  54. <text>入库数量:{{item.putQty||item.putQty==0?item.putQty:'--'}}</text>
  55. </view>
  56. <view v-else>
  57. <text>待入库数量:{{item.confirmQty||item.confirmQty==0?item.confirmQty:'--'}}</text>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </template>
  66. <script>
  67. import moment from 'moment'
  68. import { findShelfReplenishBill } from '@/api/shelf.js'
  69. export default {
  70. name: 'orderDetail-digitalShel',
  71. components: {
  72. },
  73. data() {
  74. return {
  75. info: null,
  76. statusText: '',
  77. statusIcon: '', // 结算状态icon
  78. partList: [], // 配件列表
  79. pageInfo:null
  80. }
  81. },
  82. onReady() {
  83. },
  84. onLoad(option) {
  85. console.log(option,option.sn)
  86. let sn = option.sn
  87. this.getPageInfo(sn)
  88. },
  89. computed: {
  90. },
  91. methods: {
  92. // 复制
  93. copyVin(){
  94. uni.setClipboardData({
  95. data: this.vinNumber||'',
  96. })
  97. },
  98. message(title){
  99. uni.showToast({
  100. icon:'none',
  101. title: title
  102. })
  103. },
  104. // 查询详情
  105. getPageInfo(val){
  106. uni.showLoading({
  107. title: "正在加载..."
  108. })
  109. findShelfReplenishBill({sn:val}).then(res=>{
  110. if(res.status==200){
  111. this.pageInfo=res.data||null
  112. this.partList=res.data.clzReplenishBillDetailApiEntityList||[]
  113. }
  114. uni.hideLoading()
  115. })
  116. }
  117. }
  118. }
  119. </script>
  120. <style lang="less">
  121. page{
  122. height: 100%;
  123. background-color: #F8F8F8;
  124. }
  125. .orderDetail-digitalShel{
  126. width: 100%;
  127. height: 100%;
  128. .redText{
  129. color: #FB1E1E;
  130. }
  131. .order-body{
  132. flex-grow: 1;
  133. overflow: auto;
  134. }
  135. .contHead {
  136. .statusH{
  137. > view{
  138. padding: 20upx 5%;
  139. font-size: 34upx;
  140. }
  141. .status-row{
  142. font-size: 42upx;
  143. text{
  144. margin-left: 10rpx;
  145. }
  146. margin-bottom: 20rpx;
  147. }
  148. .messageText{
  149. font-size: 30upx;
  150. padding: 10rpx 0;
  151. color: #666;
  152. text{
  153. color: #333;
  154. }
  155. }
  156. }
  157. }
  158. .info{
  159. padding: 0 30upx;
  160. font-size: 32rpx;
  161. .infoList{
  162. display: flex;
  163. justify-content: space-between;
  164. align-items: center;
  165. padding: 20rpx 0;
  166. border-bottom: 2rpx solid #f2f2f2;
  167. &:last-child{
  168. border: 0;
  169. }
  170. .title{
  171. font-weight: bold;
  172. }
  173. > text{
  174. &:first-child{
  175. color: #666E75;
  176. }
  177. }
  178. }
  179. .item-list{
  180. background-color: #FFFFFF;
  181. border-bottom: 2rpx solid #f2f2f2;
  182. padding: 25rpx;
  183. margin-bottom: 20rpx;
  184. border-radius: 20rpx;
  185. box-shadow: 2rpx 3rpx 5rpx #eee;
  186. &:last-child{
  187. border: none;
  188. }
  189. > view{
  190. &:first-child{
  191. margin-right: 20rpx;
  192. }
  193. &:last-child{
  194. flex-grow: 1;
  195. }
  196. }
  197. .item-name{
  198. word-wrap: break-word;
  199. font-size: 28rpx;
  200. color: #333;
  201. font-weight: bold;
  202. margin-top: 10rpx;
  203. }
  204. .item-nums{
  205. text{
  206. font-size: 28rpx;
  207. color: #666;
  208. }
  209. }
  210. }
  211. }
  212. .footer{
  213. padding: 20upx 30upx;
  214. background: #FFFFFF;
  215. uni-button{
  216. &:after{
  217. border: 0;
  218. }
  219. width: 100%;
  220. color: #585858;
  221. font-size: 32rpx;
  222. }
  223. }
  224. }
  225. </style>