style(api): 统一代码风格并修复语法问题
- 统一import语句的空格格式 - 修复分号缺失问题 - 调整函数参数换行格式以符合规范 - 删除多余空行保持代码整洁 - 修复字符串拼接的换行格式问题
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import request from '@/utils/request';
|
||||
import type {ApiResult} from '@/api';
|
||||
import type {ShopDealerOrder, ShopDealerOrderParam} from './model';
|
||||
import {utils, writeFile} from 'xlsx';
|
||||
import {message} from 'ant-design-vue';
|
||||
import {getTenantId} from '@/utils/domain';
|
||||
import {listShopDealerOrder} from "@/api/shop/shopDealerOrder";
|
||||
import {MODULES_API_URL} from "@/config/setting";
|
||||
import type { ApiResult } from '@/api';
|
||||
import type { ShopDealerOrder, ShopDealerOrderParam } from './model';
|
||||
import { utils, writeFile } from 'xlsx';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { getTenantId } from '@/utils/domain';
|
||||
import { listShopDealerOrder } from '@/api/shop/shopDealerOrder';
|
||||
import { MODULES_API_URL } from '@/config/setting';
|
||||
|
||||
/**
|
||||
* 导入分销商订单
|
||||
@@ -89,19 +89,19 @@ export async function exportSdyDealerOrder(params?: ShopDealerOrderParam) {
|
||||
|
||||
// 设置列宽
|
||||
sheet['!cols'] = [
|
||||
{wch: 15}, // 订单ID
|
||||
{wch: 12}, // 买家用户ID
|
||||
{wch: 12}, // 订单总金额
|
||||
{wch: 15}, // 一级分销商ID
|
||||
{wch: 12}, // 一级佣金
|
||||
{wch: 15}, // 二级分销商ID
|
||||
{wch: 12}, // 二级佣金
|
||||
{wch: 15}, // 三级分销商ID
|
||||
{wch: 12}, // 三级佣金
|
||||
{wch: 10}, // 订单状态
|
||||
{wch: 10}, // 结算状态
|
||||
{wch: 20}, // 结算时间
|
||||
{wch: 20} // 创建时间
|
||||
{ wch: 15 }, // 订单ID
|
||||
{ wch: 12 }, // 买家用户ID
|
||||
{ wch: 12 }, // 订单总金额
|
||||
{ wch: 15 }, // 一级分销商ID
|
||||
{ wch: 12 }, // 一级佣金
|
||||
{ wch: 15 }, // 二级分销商ID
|
||||
{ wch: 12 }, // 二级佣金
|
||||
{ wch: 15 }, // 三级分销商ID
|
||||
{ wch: 12 }, // 三级佣金
|
||||
{ wch: 10 }, // 订单状态
|
||||
{ wch: 10 }, // 结算状态
|
||||
{ wch: 20 }, // 结算时间
|
||||
{ wch: 20 } // 创建时间
|
||||
];
|
||||
|
||||
message.destroy();
|
||||
@@ -113,7 +113,6 @@ export async function exportSdyDealerOrder(params?: ShopDealerOrderParam) {
|
||||
message.destroy();
|
||||
message.success(`成功导出 ${list.length} 条记录`);
|
||||
}, 1000);
|
||||
|
||||
} catch (error: any) {
|
||||
message.destroy();
|
||||
message.error(error.message || '导出失败,请重试');
|
||||
|
||||
Reference in New Issue
Block a user