2025-08-13 16:39:47 +08:00
|
|
|
import { listAccount } from "@/api/finance/account";
|
|
|
|
|
|
|
|
|
|
const state = {
|
|
|
|
|
financialAccounts: [],
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const mutations = {
|
|
|
|
|
SET_FINANCIAL_ACCOUNTS(state, financialAccounts) {
|
|
|
|
|
state.financialAccounts = financialAccounts;
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const actions = {
|
|
|
|
|
getFinancialAccounts({ commit }) {
|
2025-08-14 16:30:13 +08:00
|
|
|
listAccount({ pageSize: 1000 }).then(response => {
|
|
|
|
|
commit('SET_FINANCIAL_ACCOUNTS', response.rows);
|
2025-08-13 16:39:47 +08:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
namespaced: true,
|
|
|
|
|
state,
|
|
|
|
|
mutations,
|
|
|
|
|
actions
|
|
|
|
|
}
|