
import request from '/@/utils/request';
/**
 * 公共参数
 * @method getList 获取列表
 * @method getcaptcha 获取后端公共密钥
 */
export function getCons() {
    return {
        getList: (params?: object) => {
            return request({
                url: 'forms/provincial',
                method: 'get',
                params,
            });
        },
        // 退回
        examineup: (params?: object) => {
            return request({
                url: 'forms/provincial/examine',
                method: 'get',
                params,
            });
        },
        downloadstate: (urls: string) => {
            return request({
                url: urls,
                method: 'get',
            });
        },
        download: (urls: string) => {
            return request({
                url: urls,
                method: 'get',
                responseType: 'blob',
            });
        },
        downloadUrl: (id: string, type: string | number, areaCode: string) => {
            return import.meta.env.VITE_API_URL + 'forms/provincial/exportExcel/?id=' + id + '&reportType=' + type + '&areaCode=' + areaCode
        },
        getdetail: (params?: object) => {
            return request({
                url: 'forms/provincial/' + params,
                method: 'get',
            });
        },
    };
}
