feat:添加开通ai店铺订单接口、添加分类(店铺订单)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user