refactor(contract): 统一合同编号字段名从contractNo改为contractCode
修改多个组件中合同编号字段名以保持一致性,移除未使用的props和清理冗余代码
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<!-- 合同名称和编号 -->
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
|
||||
<div style="font-weight: bold;">{{ row.contractName }}</div>
|
||||
<div style="font-size: 12px; color: #606266;">{{ row.contractNo }}</div>
|
||||
<div style="font-size: 12px; color: #606266;">{{ row.contractCode }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 供方和需方 -->
|
||||
@@ -144,7 +144,7 @@ export default {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
contractName: undefined,
|
||||
contractNo: undefined,
|
||||
contractCode: undefined,
|
||||
supplier: undefined,
|
||||
customer: undefined,
|
||||
signTime: undefined,
|
||||
@@ -230,7 +230,7 @@ export default {
|
||||
|
||||
// 合同编号
|
||||
worksheet.mergeCells('G2:H2');
|
||||
worksheet.getCell('G2').value = `合同编号:${row.contractNo || ''}`;
|
||||
worksheet.getCell('G2').value = `合同编号:${row.contractCode || ''}`;
|
||||
worksheet.getCell('G2').alignment = { horizontal: 'right', vertical: 'middle' };
|
||||
|
||||
// 供方信息
|
||||
@@ -692,7 +692,7 @@ export default {
|
||||
// 5. 导出文件
|
||||
const buffer = await workbook.xlsx.writeBuffer();
|
||||
const blob = new Blob([buffer], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
||||
saveAs(blob, `合同_${row.contractNo || row.contractName || '未命名'}.xlsx`);
|
||||
saveAs(blob, `合同_${row.contractCode || row.contractName || '未命名'}.xlsx`);
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user