invoice.js
491 Bytes
export default {
state: {
selectInvoiceList: []
},
getters: {
},
mutations: {
SET_INVOICE_STATE(state, item) {
for (const key in item) {
state[key] = item[key];
}
},
},
actions: {
selectInvoice({
commit
}, value) {
commit('SET_INVOICE_STATE', value);
},
resetSelectInvoice({
commit
}) {
commit('SET_INVOICE_STATE', {
selectInvoiceList: []
});
},
},
};