_id.vue 512 B

1234567891011121314151617181920
  1. <template>
  2. <div>
  3. <batch-publish></batch-publish>
  4. </div>
  5. </template>
  6. <script>
  7. import { BatchPublish } from '~components/applyPurchase'
  8. export default {
  9. middleware: 'authenticated',
  10. components: {
  11. BatchPublish
  12. },
  13. fetch ({store, route}) {
  14. return Promise.all([
  15. store.dispatch('applyPurchase/loadBOMMaterialList', {bomId: route.params.id, page: 1, count: 10}),
  16. store.dispatch('applyPurchase/loadBOMNumber', {bomId: route.params.id})
  17. ])
  18. }
  19. }
  20. </script>