finish-good.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="border width-100 bg-white my-2">
  3. <view class="border-bottom flex">
  4. <view class="border-right label-name px-1">流转号</view>
  5. <view class="border-right flex-1 px-1">{{item.GYLCKH}}</view>
  6. <view class="border-right label-name px-1">物品号</view>
  7. <view class="border-right label-value px-1">{{item.WPH}}</view>
  8. </view>
  9. <view class="border-bottom flex">
  10. <view class="border-right flex-shrink label-name px-1">名称/规格</view>
  11. <view class="border-right flex-1 px-1"
  12. >{{item.WPMC}}</view>
  13. </view>
  14. <view class="border-bottom flex">
  15. <view class="border-right label-name px-1">数量</view>
  16. <view class="border-right flex-1 px-1">{{item.QTY}}</view>
  17. <view class="border-right label-name px-1">入库日期</view>
  18. <view class="border-right label-value px-1">{{item.SWRQ}}</view>
  19. </view>
  20. <view class="boder-bottom flex px-1">
  21. <!-- <image src="http://192.168.0.188:8180/samex/rest/webclientrest/queryBarCode?picname=211700288500231.0" mode="" class="codepic" @load="onLoadPic"></image> -->
  22. <!-- <image src="../../static/images/code.png" mode="" class="codepic" @load="onLoadPic"></image> -->
  23. <img :src="item.WPTM" mode="" class="codepic" @load="onLoadPic"></img>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. props:{
  30. item:{
  31. type:Object,
  32. default:()=>{}
  33. },
  34. index:{
  35. type:Number,
  36. default:-1
  37. }
  38. },
  39. methods:{
  40. // 监听图片加载完毕
  41. onLoadPic () {
  42. this.$nextTick(function(){
  43. this.$emit("picLoad",{index:this.index})
  44. })
  45. }
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. @import "~@/common/styles/label-print.scss"
  51. </style>