import http from '@/request/index.js'; export const state = { outboundData: [], //列表数据 detailsData: [] // 列表详情数据 }; export const mutations = { setboundData(state, data) { state.outboundData = data }, setDetailsData(state, data) { state.detailsData = data } } export const actions = { getoutbondData({ commit, rootState }, data) { return new Promise((resolve, reject) => { http('outbound.getListData', data.pam, '加载中').then(res => { if (res.success == true) { data.that.$refs.paging.complete(res.data.records); } }).catch(e => { reject(e) }) }) }, }