fix OrderFulfillmentCreate.vue style
This commit is contained in:
@@ -78,7 +78,7 @@ export function getStockOperationText(type?: StockOperationType): string {
|
||||
} as Record<string, string>)[type || ""] || "未知操作";
|
||||
}
|
||||
|
||||
export function getProductPhotoURL(item: Product): string {
|
||||
export function getProductPhotoURL(item: Pick<Product, "attachmentList">): string {
|
||||
const attachment = item.attachmentList?.find(item => item.attachType === "PHOTO" && !!item.id);
|
||||
return attachment?.id ? getAttachmentReadURL(attachment.id, 128) : "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user