From 3ae0e7359245e9ce2dd78de1664de3b3c3507e01 Mon Sep 17 00:00:00 2001
From: zmj <1493694146@qq.com>
Date: Wed, 5 Jun 2024 18:05:48 +0800
Subject: [PATCH] (Update API paths, adjust configurations, and optimize user
and order management functions)
---
src/api/goodsList.ts | 12 +-
src/api/store_order.ts | 24 +++
src/components/orderDetail/index.vue | 194 +++++++++----------
src/views/store/store_product/detail.vue | 63 +++---
src/views/store/store_product/index.vue | 49 +++--
src/views/store_order/index.vue | 157 ++++++++++-----
src/views/store_order/recharge.vue | 170 ++++++++++++++++
src/views/store_order/refund.vue | 147 ++++++++++++++
src/views/store_product_unit/index.vue | 11 +-
src/views/store_product_unit/myMap/index.vue | 5 +-
10 files changed, 626 insertions(+), 206 deletions(-)
create mode 100644 src/api/store_order.ts
create mode 100644 src/views/store_order/recharge.vue
create mode 100644 src/views/store_order/refund.vue
diff --git a/src/api/goodsList.ts b/src/api/goodsList.ts
index 77208f6..190bc77 100644
--- a/src/api/goodsList.ts
+++ b/src/api/goodsList.ts
@@ -6,10 +6,16 @@ export function apiGoodsListLists(params: any) {
}
// 库存管理
-export function apiGoodsListDetail(params: any) {
- return request.get({ url: '/consult_target.consult_decision/add12', params })
+export function apiStoreProductAttrValue(params: any) {
+ return request.get({ url: '/store_product_attr_value/storeProductAttrValue/lists', params })
}
+// 加减库存
+export function apiStoreProductStock(params: any) {
+ return request.post({ url: '/store_product/storeProduct/stock', params })
+}
+
+
// 库存管理
export function apiGoodsTypeLists(params: any) {
return request.get({ url: '/consult_target.consult_decision/add54', params })
@@ -20,3 +26,5 @@ export function apiGoodsTypeLists(params: any) {
export function apiStatus(params: any) {
return request.post({ url: '/store_product/storeProduct/status', params })
}
+
+//
\ No newline at end of file
diff --git a/src/api/store_order.ts b/src/api/store_order.ts
new file mode 100644
index 0000000..961edd7
--- /dev/null
+++ b/src/api/store_order.ts
@@ -0,0 +1,24 @@
+import request from '@/utils/request'
+
+
+export function apiStoreOrderLists(params: any) {
+ return request.get({ url: '/store_order/storeOrder/lists', params })
+}
+
+export function apiStoreOrderTitle() {
+ return request.get({ url: '/store_order/storeOrder/title' })
+}
+
+export function apiStoreOrderDetail(params: any) {
+ return request.get({ url: '/store_order/storeOrder/detail', params })
+}
+
+
+export function apiStoreRefundOrderLists(params: any) {
+ return request.get({ url: '/store_order/storeRefundOrder/lists', params })
+}
+
+export function apiStoreRefundOrderDetail(params: any) {
+ return request.get({ url: '/store_order/storeRefundOrder/detail', params })
+}
+
diff --git a/src/components/orderDetail/index.vue b/src/components/orderDetail/index.vue
index 63619c1..5fc2cd8 100644
--- a/src/components/orderDetail/index.vue
+++ b/src/components/orderDetail/index.vue
@@ -10,35 +10,35 @@
{{ item.cart_info.name }}
+¥{{ item.cart_info.price }} x {{ item.cart_info.cart_num }}
+