Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ export default {
// 生成文件名
const now = new Date();
const dateStr = `${now.getFullYear()}${String(now.getMonth() + 1).padStart(2, '0')}${String(now.getDate()).padStart(2, '0')}_${String(now.getHours()).padStart(2, '0')}${String(now.getMinutes()).padStart(2, '0')}${String(now.getSeconds()).padStart(2, '0')}`;
const fileName = `${sheetName}_${dateStr}.xlsx`;
const fileName = `${sheetName || '模块修改记录'}_${dateStr}.xlsx`;

// 下载文件
XLSX.writeFile(workbook, fileName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ export default {
// 不分页的导出
noPage: true
},
`goodsOrder_${new Date().getTime()}.xlsx`
`订单目录_${new Date().getTime()}.xlsx`
);
},
// 表头拖动结束后更新虚拟滚动表头布局
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import FileSaver from 'file-saver';

export const common_excel = {
methods: {
excelExport(unnecessaryColumns = [], fileName = 'table') {
excelExport(unnecessaryColumns = [], fileName = '表格导出') {
// 延迟执行,确保DOM完全渲染
this.$nextTick(() => {
this._performExcelExport(unnecessaryColumns, fileName);
});
},

_performExcelExport(unnecessaryColumns = [], fileName = 'table') {
_performExcelExport(unnecessaryColumns = [], fileName = '表格导出') {
// 尝试多个可能的表格ID
const possibleTableIds = ['#educe-table', '#printBox'];
let table = null;
Expand Down Expand Up @@ -92,7 +92,8 @@ export const common_excel = {
var wbout = XLSX.write(wb, { bookType: 'xlsx', type: 'array' });

try {
FileSaver.saveAs(new Blob([wbout], { type: 'application/octet-stream' }), `${fileName}.xlsx`);
const safeFileName = fileName || '表格导出';
FileSaver.saveAs(new Blob([wbout], { type: 'application/octet-stream' }), `${safeFileName || '表格导出'}.xlsx`);
} catch (e) {
if (typeof console !== 'undefined') console.log(e, wbout);
}
Expand Down
2 changes: 1 addition & 1 deletion order-UI/packages/order-system/src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ export default {
startTime: this.queryParams.startTime,
endTime: this.queryParams.endTime
},
`todayOrderList${new Date().getTime()}.xlsx`
`今日订单列表_${new Date().getTime()}.xlsx`
);
},
handleClose() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
{
...this.queryParams
},
`inventory_out_${new Date().getTime()}.xlsx`
`库存出库明细_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export default {
{
...this.queryParams
},
`job_${new Date().getTime()}.xlsx`
`任务列表_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default {
{
...this.queryParams
},
`log_${new Date().getTime()}.xlsx`
`任务日志_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default {
{
...this.queryParams
},
`logininfor_${new Date().getTime()}.xlsx`
`登录日志_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default {
{
...this.queryParams
},
`operlog_${new Date().getTime()}.xlsx`
`操作日志_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export default {
{
...this.queryParams
},
`OilCardConsume_${new Date().getTime()}.xlsx`
`油卡消费_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default {
/** 导出按钮操作 */
handleExport() {
// 使用模拟地址,因为后端还没有完善
this.download('/statistics/export/todaySelfCompanyMoneySummary?endTime=' + this.queryParams.endTime, null, `selfCompanyMoneySummary_${new Date().getTime()}.xlsx`);
this.download('/statistics/export/todaySelfCompanyMoneySummary?endTime=' + this.queryParams.endTime, null, `本司资金日报_${new Date().getTime()}.xlsx`);
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ export default {
{
...this.queryParams
},
`invoiceIn_${new Date().getTime()}.xlsx`
`全部发票_${new Date().getTime()}.xlsx`
);
},
/** 计算表格合计行 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default {
{
...this.queryParams
},
`orderFreight_${new Date().getTime()}.xlsx`
`运费申请_${new Date().getTime()}.xlsx`
);
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default {
{
...this.queryParams
},
`auditInfo_${new Date().getTime()}.xlsx`
`审批信息_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default {
{
...this.queryParams
},
`auditflow_${new Date().getTime()}.xlsx`
`审批流程_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export default {
{
...this.queryParams
},
`BalanceAccounts_${new Date().getTime()}.xlsx`
`结算对账_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ export default {
{
...this.queryParams
},
`bankAccount_${new Date().getTime()}.xlsx`
`银行账户_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export default {
{
...this.queryParams
},
`bankAccountChange_${new Date().getTime()}.xlsx`
`银行账户变动_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ export default {
{
...this.queryParams
},
`borrowedMoney_${new Date().getTime()}.xlsx`
`借款明细_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ export default {
{
...this.queryParams
},
`breakout_${new Date().getTime()}.xlsx`
`出库拆解_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ export default {
{
...this.queryParams
},
`BusinessTrip_${new Date().getTime()}.xlsx`
`出差申请_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ export default {
{
...this.queryParams
},
`carApply_${new Date().getTime()}.xlsx`
`用车申请_${new Date().getTime()}.xlsx`
);
},
/** 派车审核操作 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export default {
{
...this.queryParams
},
`cars_${new Date().getTime()}.xlsx`
`车辆档案_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ export default {
{
...this.queryParams
},
`lendMoney_${new Date().getTime()}.xlsx`
`押金-厂家_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ export default {
{
...this.queryParams
},
`lendMoney_${new Date().getTime()}.xlsx`
`押金-全部_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ export default {
{
...this.queryParams
},
`lendMoney_${new Date().getTime()}.xlsx`
`押金-个人_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ export default {
{
...this.queryParams
},
`lendMoney_${new Date().getTime()}.xlsx`
`押金-客户_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export default {
{
...this.queryParams
},
`company_${new Date().getTime()}.xlsx`
`客户信息_${new Date().getTime()}.xlsx`
);
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export default {
{
...this.queryParams
},
`cars_${new Date().getTime()}.xlsx`
`公司车辆_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ export default {
{
...this.queryParams
},
`company_${new Date().getTime()}.xlsx`
`供应商信息_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default {
{
...this.queryParams
},
`config_${new Date().getTime()}.xlsx`
`参数配置_${new Date().getTime()}.xlsx`
);
},
/** 刷新缓存按钮操作 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ export default {
{
...this.queryParams
},
`CustomerVisit_${new Date().getTime()}.xlsx`
`客户拜访_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export default {
{
...this.queryParams
},
`depositMoney_${new Date().getTime()}.xlsx`
`存款记录_${new Date().getTime()}.xlsx`
);
},
/** 日期范围选择处理 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ export default {
// 不分页的导出
noPage: true
},
`detail_all_${new Date().getTime()}.xlsx`
`库存明细全量_${new Date().getTime()}.xlsx`
);
},
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export default {
{
...this.queryParams
},
`data_${new Date().getTime()}.xlsx`
`字典数据_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default {
{
...this.queryParams
},
`type_${new Date().getTime()}.xlsx`
`字典类型_${new Date().getTime()}.xlsx`
);
},
/** 刷新缓存按钮操作 */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ export default {
{
...this.queryParams
},
`exWarehouse_${new Date().getTime()}.xlsx`
`出库列表_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ export default {
{
...this.queryParams
},
`fixedAssets_${new Date().getTime()}.xlsx`
`固定资产_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ export default {
{
...this.queryParams
},
`fleet_${new Date().getTime()}.xlsx`
`车队信息_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export default {
{
...this.queryParams
},
`payment_${new Date().getTime()}.xlsx`
`收款记录_${new Date().getTime()}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export default {
{
...this.queryParams
},
`giftIn_${this.parseTime(new Date(), '{y}{m}{d}_{h}{i}{s}')}.xlsx`
`礼品入库_${this.parseTime(new Date(), '{y}{m}{d}_{h}{i}{s}')}.xlsx`
);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ export default {
{
...this.queryParams
},
`giftOut_${this.parseTime(new Date(), '{y}{m}{d}_{h}{i}{s}')}.xlsx`
`礼品出库_${this.parseTime(new Date(), '{y}{m}{d}_{h}{i}{s}')}.xlsx`
);
},
/** 对方类型变化处理 */
Expand Down
Loading
Loading