/*
 * @Author: zc
 * @description 业务管理-省退回
 */
import request from '@/utils/request';
/**
 * @description 省退回申请列表
 * @param {object} params
 */
export const returnList = (params: object) => {
	return request({
		url: `/api/v1/Order/send_back`,
		method: 'get',
		params,
	});
};
/**
 * @description 省退回申请新增
 * @param {object} data
 */
export const returnAdd = (data: object) => {
	return request({
		url: `/api/v1/Order/send_back/apply`,
		method: 'post',
		data,
	});
};
/**
 * @description 省退回申请审核
 * @param {object} data
 */
export const returnAudit = (data: object) => {
	return request({
		url: `/api/v1/Order/send_back/audit`,
		method: 'post',
		data,
	});
};
/**
 * @description 省退回申请返回结果
 * @param {object} id
 */
export const returnResult = (id: string) => {
	return request({
		url: `/api/v1/Order/send_back/result`,
		method: 'get',
	});
};
/**
 * @description 省退回申请详情
 * @param {object} id
 */
export const returnDetail = (id: string) => {
	return request({
		url: `/api/v1/Order/send_back/${id}`,
		method: 'get',
	});
};
/**
 * @description 工单退回审核列表
 * @param {object} params
 */
export const returnAuditList = (params: object) => {
	return request({
		url: `/api/v1/Order/order_previous_list`,
		method: 'get',
		params,
	});
}
/**
 * @description 工单退回审核
 * @param {object} data
 */
export const returnAuditAdd = (data: object) => {
	return request({
		url: `/api/v1/Order/order_previous_audit`,
		method: 'post',
		data,
	});
}
/**
 * @description 工单退回详情
 * @param {string} id
 */
export const returnAuditDetail = (id: string) => {
	return request({
		url: `/api/v1/Order/order_previous/${id}`,
		method: 'get',
	});
}