diff --git a/admin/src/api/product.ts b/admin/src/api/product.ts index 085363fe..7dea0663 100644 --- a/admin/src/api/product.ts +++ b/admin/src/api/product.ts @@ -28,6 +28,10 @@ export function getStockAlerts() { return http.get('/admin/stock-alerts') } +export function getSpecDataCount() { + return http.get('/admin/spec-data-count') +} + export function exportSpecData(productId: number) { return http.get(`/admin/products/${productId}/spec-data/export`, { responseType: 'blob' } as any) } diff --git a/admin/src/views/Dashboard.vue b/admin/src/views/Dashboard.vue index 55a17cb5..a1984033 100644 --- a/admin/src/views/Dashboard.vue +++ b/admin/src/views/Dashboard.vue @@ -32,74 +32,38 @@
-
{{ stats.alertCount }}
-
库存预警
+
{{ stats.specCount }}
+
规格总数
- +
- - - - - - - - - - - - - - - - diff --git a/admin/src/views/order/OrderList.vue b/admin/src/views/order/OrderList.vue index 625d9097..05801926 100644 --- a/admin/src/views/order/OrderList.vue +++ b/admin/src/views/order/OrderList.vue @@ -21,6 +21,7 @@ + @@ -45,6 +46,22 @@ + +
+
发货信息
+
+
物流公司:{{ row.shipping_company }}
+
物流单号:{{ row.shipping_no }}
+
发货时间:{{ formatTime(row.shipped_at) }}
+
+
+ +
+
收货信息
+
+ 收货时间:{{ formatTime(row.received_at) }} +
+
取消/退款信息
@@ -68,6 +85,10 @@
{{ item.product_name }}
+ 款号:{{ item.style_no }} + 条形码:{{ item.barcode }} +
+
型号:{{ item.model_name }} 成色:{{ item.fineness }} 主石:{{ item.main_stone }} @@ -77,7 +98,6 @@
¥{{ Number(item.unit_price).toFixed(2) }}
-
×{{ item.quantity }}
@@ -144,13 +164,13 @@ @@ -212,6 +232,7 @@ 添加
+ 下载模板 导入 CSV @@ -242,11 +263,6 @@
- - - - - - - - - - - -
- 退货 {{ returnCheckedItems.reduce((s, i) => s + i.returnQty, 0) }} 件,退款金额 + 退货 {{ returnCheckedItems.length }} 件,退款金额 - ¥{{ returnCheckedItems.reduce((s, i) => s + i.returnQty * Number(i.unitPrice), 0).toFixed(2) }} + ¥{{ returnCheckedItems.reduce((s, i) => s + Number(i.unitPrice), 0).toFixed(2) }}
@@ -510,7 +512,7 @@