| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- import {
- myRequest
- } from './request.js'
- // 正向订单状态数
- export function getOrderStstusAmount(data) {
- return myRequest({
- url: 'order_service/orderService/getOrderStstusAmount',
- method: 'post',
- data
- })
- }
- // 正向订单列表
- export function orderList(data) {
- return myRequest({
- url: 'order_service/orderService/orderList',
- method: 'post',
- data
- })
- }
- // 订单详情页面
- export function getOrderDetails(data) {
- return myRequest({
- url: 'order_service/orderService/getOrderDetails',
- method: 'post',
- data
- })
- }
- const pre = ""
- const apiType = "php"
- // 订单状态数
- export function getOrderStatusNumber(data) {
- return myRequest({
- url: `${pre}mer/store/order/chart`,
- method: 'GET',
- data,
- apiType
- })
- }
-
- // 订单列表
- export function getOrderList(data) {
- return myRequest({
- url: `${pre}mer/store/order/lst`,
- method: 'GET',
- data,
- apiType
- })
- }
- // 订单列表产品
- export function getOrderListProduct(order_sn) {
- const data = {
- order_sn: order_sn,
- order_type: -1,
- distribution_mode: -1,
- keywords: order_sn,
- status: "",
- date: "",
- page: 1,
- limit: 20,
- type: 1,
- username: "",
- pay_type: -1,
- ylj_status: "",
- paid: "",
- }
- return myRequest({
- url: `${pre}mer/store/order/lst`,
- method: 'GET',
- data,
- apiType
- })
- }
- // filtter
- export function getOrderListFiltter(data) {
- return myRequest({
- url: `${pre}mer/store/order/filtter`,
- method: 'GET',
- data,
- apiType
- })
- }
-
- /**
- * @description 订单 -- 发货规则
- */
-
- export function orderDeliveryRuleApi(id) {
- return myRequest({
- url: `${pre}mer/store/order/delivery/${id}/form`,
- method: 'GET',
- apiType
- })
- }
- /**
- * @description 订单 -- 发货
- */
-
- export function orderDeliveryApi(id, data) {
- return myRequest({
- url: `${pre}/mer/store/order/delivery/${id}.html`,
- method: 'POST',
- data,
- apiType
- })
- }
-
-
- /**
- * @description 订单 -- 详情
- */
-
- export function orderDetailApi(id) {
- return myRequest({
- url: `${pre}mer/store/order/detail/${id}`,
- method: 'GET',
- apiType
- })
- }
- /**
- * @description 获取物流信息
- */
- export function getExpress(id) {
- return myRequest({
- url: `${pre}mer/store/order/express/${id}`,
- method: 'GET',
- apiType
- })
- }
-
- /**售后列表 */
-
- export function getAfterSaleList(data) {
- return myRequest({
- url: `${pre}mer/store/refundorder/lst`,
- method: 'GET',
- data,
- apiType
- })
- }
- /**
- * @description 退款单获取物流信息
- */
- export function refundorderExpressApi(id) {
- return myRequest({
- url: `${pre}mer/store/refundorder/express/${id}`,
- method: 'GET',
- apiType
- })
- }
- /**
- * @description 自提
- */
- export function takeProductApi(id, data) {
- return myRequest({
- url: `${pre}mer/store/order/carry/${id}`,
- method: 'GET',
- data,
- apiType
- })
- }
-
- /**
- * @description 退款订单 -- 详情
- */
- export function refundorderDetailApi(id) {
- return myRequest({
- url: `${pre}mer/store/refundorder/detail/${id}`,
- method: 'GET',
- apiType
- })
- }
-
- /**
- * @description 退款订单
- */
- export function confirmRefundOrderApi(id, data) {
- return myRequest({
- url: `${pre}mer/store/refundorder/status/${id}`,
- data,
- method: 'POST',
- apiType
- })
- }
- /**
- * @description 退款订单 -- 确认收货
- */
- export function confirmReceiptApi(id, data) {
- return myRequest({
- url: `${pre}mer/store/refundorder/refund/${id}`,
- data,
- method: 'POST',
- apiType
- })
- }
|