_id.vue 479 B

12345678910111213141516171819
  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. components: {
  10. BatchPublish
  11. },
  12. fetch ({store, route}) {
  13. return Promise.all([
  14. store.dispatch('applyPurchase/loadBOMMaterialList', {bomId: route.params.id, page: 1, count: 10}),
  15. store.dispatch('applyPurchase/loadBOMNumber', {bomId: route.params.id})
  16. ])
  17. }
  18. }
  19. </script>