feat:添加开通ai店铺订单接口、添加分类(店铺订单)

This commit is contained in:
2026-06-05 12:32:40 +08:00
parent e8f59cc6c5
commit 620712828e
5 changed files with 123 additions and 68 deletions
+7 -1
View File
@@ -89,6 +89,12 @@
const titleText = firstItem?.spuName || order?.no || '-';
const qty = Number(order?.productCount ?? 0) || 0;
const statusText = formatOrderStatus(order || {});
const totalPrice = Number(order?.totalPrice ?? 0) || 0;
const totalRevenue = Number(order?.totalRevenue ?? 0) || 0;
const progress =
totalPrice > 0
? Math.max(0, Math.min(100, (totalRevenue / totalPrice) * 100))
: 0;
const timeText = sheep.$helper?.timeFormat
? sheep.$helper.timeFormat(order?.createTime, 'yy-mm-dd hh:MM:ss')
: String(order?.createTime || '');
@@ -98,7 +104,7 @@
id: order?.id,
title: titleText,
statusText,
progress: 80,
progress,
qty,
time: timeText,
total: totalYuan,