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

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

	orderSend(data) {
		return request({
			url: "/admin/order/orderSend",
			method: "POST",
			data,
			type: 'store'
		});
	},

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

	printOrder(data) {
		return request({
			url: "/admin/order/printOrder",
			method: "POST",
			data,
			type: 'store'
		});
	},

	updateNotes(data) {
		return request({
			url: "/admin/order/updateNotes",
			method: "POST",
			data,
			type: 'store'
		});
	},

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

	confirmCancel(data) {
		return request({
			url: "/admin/order/confirmCancel",
			method: "POST",
			data,
			type: 'store'
		});
	},

	after_sale: {
		index(data) {
			return request({
				url: "/admin/after_sale/index",
				method: "POST",
				data,
				type: 'store'
			});
		},


		update(data) {
			return request({
				url: "/admin/after_sale/update",
				method: "POST",
				data,
				type: 'store'
			});
		},

		show(data) {
			return request({
				url: "/admin/after_sale/show",
				method: "POST",
				data,
				type: 'store'
			});
		},

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

	},


	OrderInpersonPayment: {
		orderList(data) {
			return request({
				url: "/admin/OrderInpersonPayment/orderList",
				method: "POST",
				data,
				type: 'store'
			});
		},

		GetQrItem(data) {
			return request({
				url: "/admin/OrderInpersonPayment/GetQrItem",
				method: "POST",
				data,
				type: 'store'
			});
		},
	}


};