You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.4 KiB
62 lines
1.4 KiB
import http from '../utils/http/index.js'
|
|
|
|
/**
|
|
* 获取客户订单列表
|
|
* @param {object} data 获取验证码参数
|
|
* @returns {Promise<object[]>}
|
|
* swagger: http://api-ops-yyt-test.qniao.cn//base-paper-trading/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E5%8E%9F%E7%BA%B8%E8%AE%A2%E5%8D%95/getCustomerOrderListPageUsingGET
|
|
*/
|
|
export const getOrderList = (data) => {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/customer/order/list/page',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取待确认订单详情
|
|
* @param {object} data customerOrderId,userId
|
|
* @returns {Promise<object[]>}
|
|
*/
|
|
export const getPreOrderInfo = (data) => {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/customer/to/be/confirmed/order',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取企业默认收货地址
|
|
* @param {object} data enterpriseId
|
|
* @returns {Promise<object[]>}
|
|
*/
|
|
export const getDefaultAddress = (data) => {
|
|
return http.get({
|
|
url: '/uec/get/default-enterprise-shipping-address',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 确认订单
|
|
* @param {object} data
|
|
* @returns {Promise<object>}
|
|
*/
|
|
export const submitClientOrder = (data) => {
|
|
return http.post({
|
|
url: '/base-paper-trading/customer/submit/order',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取客户订单详情
|
|
* @param {object} data customerOrderId
|
|
* @returns {Promise<object>}
|
|
*/
|
|
export const getClientOrderInfo = (data) => {
|
|
return http.get({
|
|
url: '/base-paper-trading/get/customer/order/details',
|
|
data
|
|
})
|
|
}
|