buy-good.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 p-1">采购号</view>
  5. <view class="border-right flex-1 p-1">{{item.GYLCKH}}</view>
  6. <view class="border-right label-name p-1">物品号</view>
  7. <view class="border-right label-value p-1">{{item.WPH}}</view>
  8. </view>
  9. <view class="border-bottom flex">
  10. <view class="border-right flex-shrink label-name p-1">名称/规格</view>
  11. <view class="border-right flex-1 p-1"
  12. >{{item.WPMC}}</view>
  13. </view>
  14. <view class="border-bottom flex">
  15. <view class="border-right label-name p-1">数量</view>
  16. <view class="border-right flex-1 p-1">{{item.QTY}}</view>
  17. <view class="border-right label-name p-1">生产日期</view>
  18. <view class="border-right label-value p-1">{{item.SWRQ}}</view>
  19. </view>
  20. <view class="boder-bottom flex p-1">
  21. <image :src="item.WPTM" mode="" class="codepic" @load="onLoadPic"></image>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. props:{
  28. item:{
  29. type:Object,
  30. default:()=>{}
  31. },
  32. index:{
  33. type:Number,
  34. default:-1
  35. }
  36. },
  37. methods:{
  38. // 监听图片加载完毕
  39. onLoadPic () {
  40. this.$nextTick(function(){
  41. this.$emit("picLoad",{index:this.index})
  42. })
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. @import "~@/common/styles/label-print.scss"
  49. </style>