GITLAB

frontend / freight-ma

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • freight-ma
  • store
  • modules
  • invoice.js
  • c03c7b99   feat: 初始化项目 Browse Code »
    wuxiangrui
    2024-06-27 14:55:29 +0800  
invoice.js 491 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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: []
      });
    },
  },
};