bipPull-entrance.vue 755 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div v-loading="loading">
  3. </div>
  4. </template>
  5. <script>
  6. import { ehrLogin } from '@/api/sso/ssoLogin';
  7. import {setToken} from '@/utils/auth'
  8. export default {
  9. data() {
  10. return {
  11. //遮罩
  12. loading: false
  13. }
  14. },
  15. methods: {
  16. },
  17. async created() {
  18. this.$modal.loading("正在前往DRP调拨订单拉单页面...");
  19. let query = this.$route.query;
  20. ehrLogin(query.staffCode).then(res => {
  21. if (res.code === 200) {
  22. let token = res.token;
  23. setToken(token);
  24. this.$store.commit('SET_TOKEN', token)
  25. this.$store.dispatch("GetInfo").then(
  26. this.$router.push({ path: "/business/purchase/form/transferOrder/bipPull",replace:true})
  27. )
  28. this.$modal.closeLoading();
  29. }
  30. })
  31. }
  32. }
  33. </script>