质保单上传整体结构

This commit is contained in:
砂糖
2025-08-02 13:38:04 +08:00
parent 8f900ceed9
commit d3656ef18b
12 changed files with 508 additions and 77 deletions

View File

@@ -3,6 +3,9 @@ import { listProduct } from '@/api/wms/product';
import { listRawMaterial } from '@/api/wms/rawMaterial';
import { listBomItem } from '@/api/wms/bomItem';
// 目前存在一个问题,当新增或删除,修改分类、产品、物料时,需要刷新整个页面,才能看到最新的数据
// 需要优化当新增或删除修改分类、产品、物料时只刷新相关的数据而不是整个页面修改和删除可以解决新增由于没有返回id所以需要重新获取整个列表
const state = {
categoryList: [],
productMap: {},
@@ -16,6 +19,7 @@ const mutations = {
SET_CATEGORY_LIST(state, list) {
state.categoryList = list;
},
SET_PRODUCT_MAP(state, map) {
state.productMap = map;
},
@@ -89,6 +93,7 @@ const actions = {
})
}
};
export default {
namespaced: true,
state,