| 123456789101112131415161718192021222324252627282930313233 |
- export const state = () => ({
- invoices: {
- fetching: false,
- data: []
- },
- Buyerinvoices: {
- fetching: false,
- data: []
- }
- })
- export const mutations = {
- REQUEST_INV (state) {
- state.invoices.fetching = true
- },
- GET_INV_FAILURE (state) {
- state.invoices.fetching = false
- },
- GET_INV_SUCCESS (state, result) {
- state.invoices.fetching = false
- state.invoices.data = result
- },
- REQUEST_BUYERINV (state) {
- state.Buyerinvoices.fetching = true
- },
- GET_BUYERINV_FAILURE (state) {
- state.Buyerinvoices.fetching = false
- },
- GET_BUYERINV_SUCCESS (state, result) {
- state.Buyerinvoices.fetching = false
- state.Buyerinvoices.data = result
- }
- }
|