add listDataEvents.ts
This commit is contained in:
@@ -145,6 +145,7 @@ import {
|
||||
toPackageBaseQuantity
|
||||
} from "@/utils/package";
|
||||
import { getErrorMessage } from "@/utils/error";
|
||||
import { emitListDataChanged, listDataEventKeys } from "@/utils/listDataEvents";
|
||||
import { Message } from "@/utils/message";
|
||||
import { gaoRoleCodes, permissionCodes } from "@/utils/permission";
|
||||
import type { ProductStockPreviewItem } from "@/utils/productStock";
|
||||
@@ -539,6 +540,8 @@ async function save(): Promise<void> {
|
||||
const result = directVerify.value
|
||||
? await FulfillmentAPI.createAndVerify(request)
|
||||
: await FulfillmentAPI.create(request);
|
||||
emitListDataChanged(listDataEventKeys.salesOrderChanged, request.salesOrderId);
|
||||
emitListDataChanged(listDataEventKeys.productStockChanged);
|
||||
Message.success(directVerify.value ? "履约单创建并核销成功" : "履约单已提交");
|
||||
await router.replace(`/management/order-fulfillments/${result.id}`);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user