fix: 移除扫码入库下拉框的 status=active 过滤,显示全部耗材
This commit is contained in:
@@ -177,7 +177,7 @@ function ConsumableManagement() {
|
|||||||
const fetchAllConsumablesForScan = useCallback(async () => {
|
const fetchAllConsumablesForScan = useCallback(async () => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.get('/api/consumables', {
|
const response = await axios.get('/api/consumables', {
|
||||||
params: { page: 1, pageSize: 9999, status: 'active' },
|
params: { page: 1, pageSize: 9999 },
|
||||||
});
|
});
|
||||||
setAllConsumablesForScan(response.data.consumables || []);
|
setAllConsumablesForScan(response.data.consumables || []);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user