add listDataEvents.ts
This commit is contained in:
@@ -108,6 +108,7 @@ import type {
|
||||
StockOperationType
|
||||
} from "@/types/Product";
|
||||
import { getErrorMessage } from "@/utils/error";
|
||||
import { emitListDataChanged, listDataEventKeys } from "@/utils/listDataEvents";
|
||||
import { createProductRequestNo, getStockOperationText } from "@/utils/product";
|
||||
import { Message } from "@/utils/message";
|
||||
import type { PhotoItem } from "@/types/Photo";
|
||||
@@ -260,6 +261,7 @@ async function submit(): Promise<void> {
|
||||
break;
|
||||
}
|
||||
visible.value = false;
|
||||
emitListDataChanged(listDataEventKeys.productStockChanged, props.product.id);
|
||||
Message.success("库存操作已提交");
|
||||
emit("success");
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user