fix(wms): 调整运单表格列宽以匹配Web端显示

修改Excel导出和页面表格的列宽配置,使两者显示一致。主要调整了第2列和第5列的宽度。
This commit is contained in:
砂糖
2026-03-06 14:41:48 +08:00
parent a024be0858
commit e3727abebf

View File

@@ -834,7 +834,7 @@ export default {
worksheet.mergeCells(`I${rowIdx}:L${rowIdx}`); // 磅房I*_L*
// 4. 配置列宽完全匹配Web端
const columnWidths = [70, 40, 50, 90, 60, 70, 110, 90, 80, 70, 50, 130];
const columnWidths = [70, 60, 50, 90, 70, 70, 110, 90, 80, 70, 50, 60];
worksheet.columns = columnWidths.map((width, idx) => ({
key: `col${idx + 1}`,
width: width / 5 // exceljs的width单位是字符宽度转换为px约1px=0.072字符)
@@ -1083,7 +1083,7 @@ export default {
.waybill-table th:nth-child(2),
.waybill-table td:nth-child(2) {
width: 40px;
width: 60px;
/* 切边 */
}
@@ -1101,7 +1101,7 @@ export default {
.waybill-table th:nth-child(5),
.waybill-table td:nth-child(5) {
width: 60px;
width: 80px;
/* 结算 */
}