parent
99c802a8d5
commit
18a96d910c
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* @Author: ch
|
||||
* @Date: 2022-03-29 17:38:17
|
||||
* @LastEditors: ch
|
||||
* @LastEditTime: 2022-03-29 18:07:01
|
||||
* @Description: file content
|
||||
*/
|
||||
import {ToAsyncAwait, Request} from '@/common/utils';
|
||||
|
||||
import orderList from '@/mock/orderList'
|
||||
|
||||
const ApiGetOrderList = (params) => ToAsyncAwait(new Promise((resolve)=>resolve(orderList.data)))
|
||||
// ToAsyncAwait(Request.get('/app/tradeOrder/page', params));
|
||||
|
||||
export {
|
||||
// 获取订单列表
|
||||
ApiGetOrderList
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* @Author: ch
|
||||
* @Date: 2022-03-29 16:47:32
|
||||
* @LastEditors: ch
|
||||
* @LastEditTime: 2022-03-29 17:14:26
|
||||
* @Description: file content
|
||||
*/
|
||||
|
||||
import Enum from "@/common/plugins/enum"
|
||||
const DictOrderStatus = new Enum([
|
||||
{key : '1', name : '待支付'},
|
||||
{key : '2', name : '已关闭'},
|
||||
{key : '3', name : '待发货'},
|
||||
{key : '4', name : '已发货'},
|
||||
{key : '6', name : '已收货'},
|
||||
{key : '7', name : '已完成'}
|
||||
])
|
||||
|
||||
export {
|
||||
DictOrderStatus
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
{
|
||||
"code": "SUCCESS",
|
||||
"message": "操作成功",
|
||||
"traceId": null,
|
||||
"data": {
|
||||
"records": [
|
||||
{
|
||||
"orderId": null,
|
||||
"orderStatus": null,
|
||||
"orderStatusDesc": null,
|
||||
"totalAmount": null,
|
||||
"payAmount": null,
|
||||
"products": [
|
||||
{
|
||||
"orderProductId": null,
|
||||
"orderId": null,
|
||||
"productId": null,
|
||||
"productSkuId": null,
|
||||
"productName": null,
|
||||
"productImageUrl": null,
|
||||
"skuDescribe": null,
|
||||
"quantity": null,
|
||||
"realAmount": null,
|
||||
"detailStatus": null,
|
||||
"detailStatusDesc": null
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"total": 0,
|
||||
"size": 10,
|
||||
"current": 1,
|
||||
"orders": [],
|
||||
"optimizeCountSql": true,
|
||||
"searchCount": true,
|
||||
"countId": null,
|
||||
"maxLimit": null,
|
||||
"pages": 0
|
||||
}
|
||||
}
|
Loading…
Reference in new issue