123456789101112131415161718192021222324 |
- import axios from '~/plugins/axios'
- export const actions = {
-
- getInvoices ({ commit }, params = {}) {
- commit('data/REQUEST_INV')
- return axios.get('/trade/billSubmit', {params})
- .then(response => {
- commit('data/GET_INV_SUCCESS', response.data)
- }, err => {
- commit('data/GET_INV_FAILURE', err)
- })
- },
-
- getBuyerInvoices ({ commit }, params = {}) {
- commit('data/REQUEST_BUYERINV')
- return axios.get('/trade/order/bill/status/personal', {params})
- .then(response => {
- commit('data/GET_BUYERINV_SUCCESS', response.data)
- }, err => {
- commit('data/GET_BUYERINV_FAILURE', err)
- })
- }
- }
|