add listDataEvents.ts
This commit is contained in:
@@ -130,6 +130,7 @@ import type { FundRecord, FundRecordStatus } from "@/types/SalesOrder";
|
||||
import type { PhotoItem } from "@/types/Photo";
|
||||
import { getAttachmentReadURL } from "@/utils/attachment";
|
||||
import { getErrorMessage } from "@/utils/error";
|
||||
import { emitListDataChanged, listDataEventKeys } from "@/utils/listDataEvents";
|
||||
import { formatPackageAmount } from "@/utils/package";
|
||||
import { getFundOperationText, getFundStatusText } from "@/utils/salesOrder";
|
||||
import { Message } from "@/utils/message";
|
||||
@@ -262,6 +263,7 @@ async function verifyReceive(): Promise<void> {
|
||||
isOperating.value = true;
|
||||
try {
|
||||
await SalesOrderAPI.verifyPayment(record.value!.id!);
|
||||
emitListDataChanged(listDataEventKeys.salesOrderChanged, record.value?.bizId);
|
||||
await refreshRelatedPackage();
|
||||
Message.success("收款已核销");
|
||||
await loadData();
|
||||
@@ -304,6 +306,7 @@ async function submitReason(): Promise<void> {
|
||||
} else {
|
||||
await SalesOrderAPI.cancelPayment({ fundRecordId: record.value.id, reason: reasonText.value.trim() });
|
||||
}
|
||||
emitListDataChanged(listDataEventKeys.salesOrderChanged, record.value.bizId);
|
||||
reasonDialogVisible.value = false;
|
||||
await refreshRelatedPackage();
|
||||
Message.success(reasonAction.value === "reject" ? "收款已拒绝" : "收款已撤销");
|
||||
|
||||
Reference in New Issue
Block a user