Browse Source

fix: 盘点页getDeviceInventory改用补货员接口避免权限报错

- 从@/api/replenish导入getDeviceInventory(调/replenisher/device/inventory)
- 原@/api/inventory版本调的是/inventory/device需要admin权限

Co-Authored-By: Claude <noreply@anthropic.com>
skyline 1 ngày trước cách đây
mục cha
commit
68ab1c3a9e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      haha-admin-mp/src/pages/replenish/audit.vue

+ 2 - 1
haha-admin-mp/src/pages/replenish/audit.vue

@@ -76,7 +76,8 @@
 <script setup lang="ts">
 import { ref, computed, onMounted } from 'vue';
 import NavBar from '@/components/NavBar.vue';
-import { getDeviceInventory, adjustStock } from '@/api/inventory';
+import { getDeviceInventory } from '@/api/replenish';
+import { adjustStock } from '@/api/inventory';
 
 interface AuditInput {
   productId: number | null;