增加导出功能
This commit is contained in:
@@ -142,7 +142,7 @@ export async function exportAsync(options = {}) {
|
||||
const extraIgnore = (options.filterOpts && options.filterOpts.ignoreKeys) || []
|
||||
const filterOpts = {
|
||||
...(options.filterOpts || {}),
|
||||
ignoreKeys: ['orderStatuses', ...extraIgnore]
|
||||
ignoreKeys: ['orderStatuses', 'exportFields', ...extraIgnore]
|
||||
}
|
||||
if (!hasListFilter(query, filterOpts)) {
|
||||
ElMessage.warning(options.filterMessage || '\u8bf7\u5148\u8bbe\u7f6e\u5217\u8868\u67e5\u8be2\u6761\u4ef6\u540e\u518d\u5bfc\u51fa')
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
/** Excel export field options (prop must match backend export-row Java field names). */
|
||||
|
||||
export const ORDER_SOURCE_EXPORT_FIELDS = [
|
||||
{ prop: 'orderId', label: '客户订单号' },
|
||||
{ prop: 'orgOrderId', label: '运单号' },
|
||||
{ prop: 'transferOrderId', label: '转单号' },
|
||||
{ prop: 'trackId', label: '轨迹ID' },
|
||||
{ prop: 'orderStatusLabel', label: '订单状态' },
|
||||
{ prop: 'customerCode', label: '客户代码' },
|
||||
{ prop: 'customerName', label: '客户名称' },
|
||||
{ prop: 'productCode', label: '产品代码' },
|
||||
{ prop: 'productName', label: '产品名称' },
|
||||
{ prop: 'productFloorCode', label: '产品底级代码' },
|
||||
{ prop: 'country', label: '国家代码' },
|
||||
{ prop: 'countryName', label: '国家/地区' },
|
||||
{ prop: 'consigneePostcode', label: '收件人邮编' },
|
||||
{ prop: 'confirmWeight', label: '客户确认重' },
|
||||
{ prop: 'dimensionalWeightFactor', label: '计费重' },
|
||||
{ prop: 'volumeWeight', label: '体积重' },
|
||||
{ prop: 'weight', label: '实重' },
|
||||
{ prop: 'pickupDate', label: '提货时间' }
|
||||
]
|
||||
|
||||
export const ORDER_BILL_EXPORT_FIELDS = [
|
||||
{ prop: 'orderNo', label: '订单号' },
|
||||
{ prop: 'trackingNo', label: '运单号' },
|
||||
{ prop: 'transferNo', label: '转单号' },
|
||||
{ prop: 'customerName', label: '客户' },
|
||||
{ prop: 'customerCode', label: '客户代码' },
|
||||
{ prop: 'productCode', label: '产品代码' },
|
||||
{ prop: 'productName', label: '产品名称' },
|
||||
{ prop: 'countryCode', label: '国家代码' },
|
||||
{ prop: 'countryName', label: '国家/地区' },
|
||||
{ prop: 'pieces', label: '件数' },
|
||||
{ prop: 'weight', label: '计费重' },
|
||||
{ prop: 'volumeWeight', label: '体积重' },
|
||||
{ prop: 'receiveWeight', label: '实重' },
|
||||
{ prop: 'destPostcode', label: '收件人邮编' },
|
||||
{ prop: 'orderStatusLabel', label: '订单状态' },
|
||||
{ prop: 'billingFailStatusLabel', label: '计费状态' },
|
||||
{ prop: 'bizDate', label: '计费时间' },
|
||||
{ prop: 'orderTime', label: '下单时间' },
|
||||
{ prop: 'pickupDate', label: '提货时间' },
|
||||
{ prop: 'belongSaler', label: '销售员' },
|
||||
{ prop: 'settlementMan', label: '结算员' },
|
||||
{ prop: 'serviceMan', label: '客服员' }
|
||||
]
|
||||
|
||||
export const BILLING_BILL_EXPORT_FIELDS = [
|
||||
{ prop: 'orderNo', label: '订单号' },
|
||||
{ prop: 'trackingNo', label: '运单号' },
|
||||
{ prop: 'transferNo', label: '转单号' },
|
||||
{ prop: 'customerName', label: '客户' },
|
||||
{ prop: 'customerCode', label: '客户代码' },
|
||||
{ prop: 'productCode', label: '产品代码' },
|
||||
{ prop: 'productName', label: '产品名称' },
|
||||
{ prop: 'countryCode', label: '国家代码' },
|
||||
{ prop: 'countryName', label: '国家/地区' },
|
||||
{ prop: 'pieces', label: '件数' },
|
||||
{ prop: 'chargeWeight', label: '计费重' },
|
||||
{ prop: 'weight', label: '原计费重' },
|
||||
{ prop: 'receiveWeight', label: '收货重' },
|
||||
{ prop: 'incomeTotal', label: '应收总额' },
|
||||
{ prop: 'payTotal', label: '应付总额' },
|
||||
{ prop: 'matchSourceLabel', label: '计价来源' },
|
||||
{ prop: 'billingFailStatusLabel', label: '计费状态' },
|
||||
{ prop: 'customerActiveStatusLabel', label: '客户状态' },
|
||||
{ prop: 'creditArrearsStatusLabel', label: '额度欠费' },
|
||||
{ prop: 'bizDate', label: '计费时间' },
|
||||
{ prop: 'orderTime', label: '下单时间' },
|
||||
{ prop: 'belongSaler', label: '销售员' },
|
||||
{ prop: 'settlementMan', label: '结算员' },
|
||||
{ prop: 'serviceMan', label: '客服员' }
|
||||
]
|
||||
Reference in New Issue
Block a user