import {
	request
} from "@/utils/request";

export default {
	orderList(data) {
		return request({
			url: "/shop/order/orderList",
			method: "POST",
			data,
			type: "mall",
		});
	},

	orderSend(data) {
		return request({
			url: "/shop/order/orderSend",
			method: "POST",
			data,
			type: "mall",
		});
	},

	GetExpressList(data) {
		return request({
			url: "/admin/order/GetExpressList",
			method: "POST",
			data,
			type: "mall",
		});
	},

	printOrder(data) {
		return request({
			url: "/shop/order/printOrder",
			method: "POST",
			data,
			type: "mall",
		});
	},

	updateNotes(data) {
		return request({
			url: "/shop/order/updateNotes",
			method: "POST",
			data,
			type: "mall",
		});
	},

	// 核销记录
	checkLog(data) {
		return request({
			url: "/shop/shop/checkLog",
			method: "POST",
			data,
			type: "mall",
		});
	},

	confirmCancel(data) {
		return request({
			url: "/shop/order/confirmCancel",
			method: "POST",
			data,
			type: "mall",
		});
	},

	after_sale: {
		index(data) {
			return request({
				url: "/shop/after_sale/index",
				method: "POST",
				data,
				type: "mall",
			});
		},


		update(data) {
			return request({
				url: "/shop/after_sale/update",
				method: "POST",
				data,
				type: "mall",
			});
		},

		show(data) {
			return request({
				url: "/shop/after_sale/show",
				method: "POST",
				data,
				type: "mall",
			});
		},

		express(data) {
			return request({
				url: "/client/common/express",
				method: "POST",
				data,
				type: "mall",
			});
		},
		enums(data) {
			return request({
				url: "/client/after_sale/enums",
				method: "POST",
				data,
				type: "mall",
			});
		},

	},

	OrderInpersonPayment: {
		orderList(data) {
			return request({
				url: "/shop/OrderInpersonPayment/orderList",
				method: "POST",
				data,
				type: "mall",
			});
		},

		GetQrItem(data) {
			return request({
				url: "/shop/OrderInpersonPayment/GetQrItem",
				method: "POST",
				data,
				type: "mall",
			});
		},
	}

};