add listDataEvents.ts
This commit is contained in:
@@ -348,6 +348,7 @@ import type { PhotoItem } from "@/types/Photo";
|
||||
import type { GaoPackageConfig, PackageAttachment, PackageConfigItem, PackagePurchaseItem } from "@/types/Package";
|
||||
import type { Product, ProductSku, ProductSkuUnit } from "@/types/Product";
|
||||
import { getErrorMessage } from "@/utils/error";
|
||||
import { emitListDataChanged, listDataEventKeys } from "@/utils/listDataEvents";
|
||||
import {
|
||||
addPackageQuantity,
|
||||
convertPackageQuantity,
|
||||
@@ -897,6 +898,8 @@ async function purchasePackage(): Promise<void> {
|
||||
Message.error("套餐购买成功但未返回完整订单关联,请联系管理员");
|
||||
return;
|
||||
}
|
||||
emitListDataChanged(listDataEventKeys.salesOrderChanged, result.salesOrderId);
|
||||
emitListDataChanged(listDataEventKeys.productStockChanged);
|
||||
await settingStore.playRegisterSuccessSound();
|
||||
Message.success(fulfillAll.value ? "套餐、收款及履约已完成" : paymentVerified.value ? "套餐及已核销收款已完成" : receiveFullPayment.value ? "套餐及全额收款已完成" : "套餐购买已提交");
|
||||
await router.replace({
|
||||
|
||||
Reference in New Issue
Block a user