_batchCode.vue 565 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div class="pcb-product-detail">
  3. <detail></detail>
  4. </div>
  5. </template>
  6. <script>
  7. import { Detail } from '~components/pcb'
  8. export default {
  9. layout: 'pcb',
  10. components: {
  11. Detail
  12. },
  13. fetch ({store, params}) {
  14. return Promise.all([
  15. store.dispatch('pcb/getPcbProduct', {productId: params.productId}),
  16. store.dispatch('shop/findCommodityOnBatchInfo', {batchCode: params.batchCode})
  17. ])
  18. }
  19. }
  20. </script>
  21. <style scoped>
  22. .pcb-product-detail {
  23. width: 1190px;
  24. margin: 0 auto;
  25. }
  26. </style>