Merge branch 'main' of https://gitea.lihaink.cn/mkm/shop-applet
This commit is contained in:
commit
ba7056e3be
66
api/order.js
66
api/order.js
|
@ -141,8 +141,8 @@ export function getOtherOrderDetail(uni) {
|
||||||
* 未付款订单详情
|
* 未付款订单详情
|
||||||
* @param string uni
|
* @param string uni
|
||||||
*/
|
*/
|
||||||
export function groupOrderDetail(uni,product_type) {
|
export function groupOrderDetail(uni, product_type) {
|
||||||
return request.get('order/group_order_detail/' + uni+'?product_type=' + product_type);
|
return request.get('order/group_order_detail/' + uni + '?product_type=' + product_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 支付状态订单
|
// 支付状态订单
|
||||||
|
@ -245,11 +245,15 @@ export function postOrderComputed(key, data) {
|
||||||
|
|
||||||
// 生成订单
|
// 生成订单
|
||||||
export function orderCreate(data) {
|
export function orderCreate(data) {
|
||||||
return request.post("order/create", data, { noAuth: true });
|
return request.post("order/create", data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// 新的生成订单
|
// 新的生成订单
|
||||||
export function createOrder(data) {
|
export function createOrder(data) {
|
||||||
return request.post("v2/order/create", data, { noAuth: true });
|
return request.post("v2/order/create", data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// 生成其他订单
|
// 生成其他订单
|
||||||
export function createOtherOrder(data) {
|
export function createOtherOrder(data) {
|
||||||
|
@ -257,37 +261,51 @@ export function createOtherOrder(data) {
|
||||||
}
|
}
|
||||||
// 未支付订单
|
// 未支付订单
|
||||||
export function groupOrderList(data) {
|
export function groupOrderList(data) {
|
||||||
return request.get("order/group_order_list", data, { noAuth: true });
|
return request.get("order/group_order_list", data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 批量退款列表
|
// 批量退款列表
|
||||||
export function refundBatch(id) {
|
export function refundBatch(id) {
|
||||||
return request.get("refund/batch_product/" + id, { noAuth: true });
|
return request.get("refund/batch_product/" + id, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退款商品
|
// 退款商品
|
||||||
export function refundProduct(id, data) {
|
export function refundProduct(id, data) {
|
||||||
return request.get("refund/product/" + id, data, { noAuth: true });
|
return request.get("refund/product/" + id, data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 申请退款
|
// 申请退款
|
||||||
export function refundApply(id, data) {
|
export function refundApply(id, data) {
|
||||||
return request.post("refund/apply/" + id, data, { noAuth: true });
|
return request.post("refund/apply/" + id, data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退款理由
|
// 退款理由
|
||||||
export function refundMessage() {
|
export function refundMessage() {
|
||||||
return request.get("common/refund_message", { noAuth: true });
|
return request.get("common/refund_message", {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退款列表
|
// 退款列表
|
||||||
export function refundList(data) {
|
export function refundList(data) {
|
||||||
return request.get("refund/list", data, { noAuth: true });
|
return request.get("refund/list", data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退款详情
|
// 退款详情
|
||||||
export function refundDetail(id) {
|
export function refundDetail(id) {
|
||||||
return request.get("refund/detail/" + id, { noAuth: true });
|
return request.get("refund/detail/" + id, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 物流列表
|
// 物流列表
|
||||||
|
@ -297,17 +315,23 @@ export function expressList() {
|
||||||
|
|
||||||
// 退回商品提交
|
// 退回商品提交
|
||||||
export function refundBackGoods(id, data) {
|
export function refundBackGoods(id, data) {
|
||||||
return request.post("refund/back_goods/" + id, data, { noAuth: true });
|
return request.post("refund/back_goods/" + id, data, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退款记录删除
|
// 退款记录删除
|
||||||
export function refundDel(id) {
|
export function refundDel(id) {
|
||||||
return request.post("refund/del/" + id, { noAuth: true });
|
return request.post("refund/del/" + id, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退款记录删除
|
// 退款记录删除
|
||||||
export function refundExpress(id) {
|
export function refundExpress(id) {
|
||||||
return request.get("refund/express/" + id, { noAuth: true });
|
return request.get("refund/express/" + id, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 核销二维码
|
// 核销二维码
|
||||||
|
@ -341,7 +365,9 @@ export function getReceiptOrder(id) {
|
||||||
* @param object data
|
* @param object data
|
||||||
*/
|
*/
|
||||||
export function getCallBackUrlApi(key) {
|
export function getCallBackUrlApi(key) {
|
||||||
return request.get('common/pay_key/' + key, {}, { noAuth: true });
|
return request.get('common/pay_key/' + key, {}, {
|
||||||
|
noAuth: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 发票订单
|
* 发票订单
|
||||||
|
@ -370,5 +396,13 @@ export function refundCancelApi(id) {
|
||||||
* @param object data
|
* @param object data
|
||||||
*/
|
*/
|
||||||
export function refundlist(data) {
|
export function refundlist(data) {
|
||||||
return request.get(`refund/list`,data);
|
return request.get(`refund/list`, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 售后
|
||||||
|
* @param object data
|
||||||
|
*/
|
||||||
|
export function uploadVoucherApi(data) {
|
||||||
|
return request.get(`other_order/upload/:${data.id}`, data);
|
||||||
}
|
}
|
|
@ -385,7 +385,8 @@
|
||||||
orderTake,
|
orderTake,
|
||||||
otherOrderTake,
|
otherOrderTake,
|
||||||
applyInvoiceApi,
|
applyInvoiceApi,
|
||||||
refundList
|
refundList,
|
||||||
|
uploadVoucherApi
|
||||||
} from '@/api/order.js';
|
} from '@/api/order.js';
|
||||||
import {
|
import {
|
||||||
getUserInfo
|
getUserInfo
|
||||||
|
@ -669,7 +670,20 @@
|
||||||
uploadVoucher(item) {
|
uploadVoucher(item) {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$util.uploadImageOne('upload/image', res => {
|
that.$util.uploadImageOne('upload/image', res => {
|
||||||
const path = res.data.path;
|
uni.showLoading({
|
||||||
|
title: "上传中..."
|
||||||
|
})
|
||||||
|
uploadVoucherApi({
|
||||||
|
id: item.order_id,
|
||||||
|
url: res.data.path
|
||||||
|
}).then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
|
this.$util.Tips({
|
||||||
|
title: "上传成功"
|
||||||
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
uni.hideLoading();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue