优化
This commit is contained in:
@@ -210,7 +210,9 @@ async function loadOptions() {
|
|||||||
optionsLoading.value = true;
|
optionsLoading.value = true;
|
||||||
try {
|
try {
|
||||||
const [customerResult, warehouseResult] = await Promise.allSettled([
|
const [customerResult, warehouseResult] = await Promise.allSettled([
|
||||||
listPlatformTenants({ page: 1, size: 200, status: "ACTIVE" }),
|
// 客户规模上限约 1,000,退货库存的客户下拉需要一次拿全量,
|
||||||
|
// 否则只取第一页会漏掉较早创建的启用客户。
|
||||||
|
listPlatformTenants({ page: 1, size: 1000, status: "ACTIVE" }),
|
||||||
listSharedReceivingOverseasWarehouseOptions(),
|
listSharedReceivingOverseasWarehouseOptions(),
|
||||||
]);
|
]);
|
||||||
if (customerResult.status === "fulfilled")
|
if (customerResult.status === "fulfilled")
|
||||||
|
|||||||
Reference in New Issue
Block a user