fix(wms): 调整运单表格列宽以匹配Web端显示
修改Excel导出和页面表格的列宽配置,使两者显示一致。主要调整了第2列和第5列的宽度。
This commit is contained in:
@@ -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;
|
||||
/* 结算 */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user