生产工序

This commit is contained in:
砂糖
2025-08-14 16:30:13 +08:00
parent 970c550590
commit 0f279eaeec
19 changed files with 1268 additions and 63 deletions

View File

@@ -20,5 +20,6 @@ const getters = {
rawMaterialList: state => state.category.rawMaterialList,
bomMap: state => state.category.bomMap,
financialAccounts: state => state.finance.financialAccounts,
processList: state => state.craft.processList,
}
export default getters

View File

@@ -8,6 +8,7 @@ import permission from './modules/permission'
import settings from './modules/settings'
import category from './modules/category'
import finance from './modules/finance'
import craft from './modules/craft'
import getters from './getters'
Vue.use(Vuex)
@@ -21,7 +22,8 @@ const store = new Vuex.Store({
permission,
settings,
category,
finance
finance,
craft
},
getters
})

View File

@@ -0,0 +1,26 @@
import { listProcesse } from "@/api/wms/craft";
const state = {
processList: [],
}
const mutations = {
SET_PROCESS_LIST(state, processList) {
state.processList = processList;
},
}
const actions = {
getProcessList({ commit }) {
listProcesse({ pageSize: 1000 }).then(response => {
commit('SET_PROCESS_LIST', response.rows);
});
}
}
export default {
namespaced: true,
state,
mutations,
actions
}

View File

@@ -12,8 +12,8 @@ const mutations = {
const actions = {
getFinancialAccounts({ commit }) {
listAccount().then(response => {
commit('SET_FINANCIAL_ACCOUNTS', response.data);
listAccount({ pageSize: 1000 }).then(response => {
commit('SET_FINANCIAL_ACCOUNTS', response.rows);
});
}
}