zhangwencui
5 小时以前 c7043051efed6648a4ae3d9aceaa70fc34171a58
src/pages/inventoryManagement/stockManagement/selectProductModel.vue
@@ -93,7 +93,11 @@
      .then(res => {
        const records = res?.records || res?.data?.records || res?.data || [];
        const rows = Array.isArray(records) ? records : [];
        list.value = page.current === 1 ? rows : [...list.value, ...rows];
        const normalized = rows.map(r => {
          const modelId = r?.id ?? r?.productModelId ?? r?.materialModelId;
          return modelId == null ? r : { ...r, id: modelId };
        });
        list.value = page.current === 1 ? normalized : [...list.value, ...normalized];
        total.value = Number(res?.total ?? res?.data?.total ?? list.value.length);
        loadStatus.value = list.value.length >= total.value ? "nomore" : "loadmore";
      })