material_manage_system/frontend
文睿 张 43f680219e fix: 物料主数据页检索不到已作废的物料
检索框是 el-select,必须从下拉候选项里选一项才能设上关键字,而候选项取自
materialOptions(status='active'),作废物料压根不在里面,搜不到也选不中。
可这一页的列表查询走 status='all',本身就显示着作废物料——同一份数据两条
路径不一致,而且这一页正是恢复作废物料的入口。

改法照 Logs.vue / Stock.vue 流水检索框的既有做法:这一页改用含作废的
historicalMaterialOptions / fetchHistoricalMaterialOptions()。业务单据页
(入库/出库/申请)保持只用有效物料不动。

后端无需改动,已实测:status=all&search=A010201 返回 1 条 obsolete,
status=active 对同一关键字返回 0 条。

测试补 1 条。变异验证:候选项来源和 onMounted 那处分别改回原样,断言都变红。
2026-09-22 14:53:18 +08:00
..
node_modules chore: remove generated caches and temporary files 2026-09-17 15:17:23 +08:00
src fix: 物料主数据页检索不到已作废的物料 2026-09-22 14:53:18 +08:00
.dockerignore chore: remove generated caches and temporary files 2026-09-17 15:17:23 +08:00
Dockerfile chore: remove generated caches and temporary files 2026-09-17 15:17:23 +08:00
index.html Initial commit 2026-09-15 16:08:18 +08:00
nginx.conf 修改一致性问题 2026-09-21 14:13:30 +08:00
package-lock.json Initial commit 2026-09-15 16:08:18 +08:00
package.json Initial commit 2026-09-15 16:08:18 +08:00
vite.config.js Initial commit 2026-09-15 16:08:18 +08:00
vitest.config.js Initial commit 2026-09-15 16:08:18 +08:00