outbound.js 649 B

1234567891011121314151617181920212223242526272829
  1. import http from '@/request/index.js';
  2. export const state = {
  3. outboundData: [], //列表数据
  4. detailsData: [] // 列表详情数据
  5. };
  6. export const mutations = {
  7. setboundData(state, data) {
  8. state.outboundData = data
  9. },
  10. setDetailsData(state, data) {
  11. state.detailsData = data
  12. }
  13. }
  14. export const actions = {
  15. getoutbondData({
  16. commit,
  17. rootState
  18. }, data) {
  19. return new Promise((resolve, reject) => {
  20. http('outbound.getListData', data.pam, '加载中').then(res => {
  21. if (res.success == true) {
  22. data.that.$refs.paging.complete(res.data.records);
  23. }
  24. }).catch(e => {
  25. reject(e)
  26. })
  27. })
  28. },
  29. }