stockPutDetail.vue 5.4 KB

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