feat(wms, crm): 新增导出模式选择并修复canvas图片缩放问题

1. 为Wms异常报表页面新增多行/单行导出切换功能
2. 拆分导出菜单为单行、多行两种导出选项
3. 修复ContractExportDialog中图片缩放比例的冗余限制
This commit is contained in:
2026-06-11 14:49:31 +08:00
parent d5f00a4b0b
commit 9761faa2d2
2 changed files with 47 additions and 7 deletions

View File

@@ -489,7 +489,7 @@ export default {
actx.fillStyle = '#ffffff';
actx.fillRect(0, 0, canvasPageW, canvasTotalH);
const imgScale = Math.min(canvasPageW / img.width, canvasImageH / img.height, 1);
const imgScale = Math.min(canvasPageW / img.width, canvasImageH / img.height);
const imgDrawW = img.width * imgScale;
const imgDrawH = img.height * imgScale;
const imgX = (canvasPageW - imgDrawW) / 2;