Browse Source

项目名称

zzs 3 months ago
parent
commit
052f39166f

+ 2 - 2
ruoyi-ui/src/utils/markExcel.js

@@ -575,7 +575,7 @@ export const genTechExcel = (
  * @param {*} workbook ExcelJs对象
  * @param {*} tableData 数据
  */
-export const genBidScoreExcel = (workbook, tableData, materialId) => {
+export const genBidScoreExcel = (workbook, tableData, materialId, sName) => {
   const worksheet = workbook.addWorksheet("报价得分");
   const columnWidth = [5, 34.5, 21.13, 21.13, 21.13, 21.13];
   for (let cw = 1; cw <= columnWidth.length; cw++) {
@@ -591,7 +591,7 @@ export const genBidScoreExcel = (workbook, tableData, materialId) => {
   row1.height = 32;
   row1.font = { name: "宋体", family: 4, size: 20, bold: true };
 
-  worksheet.addRow(["", ""]);
+  worksheet.addRow([`项目名称:${sName}`, ""]);
   worksheet.mergeCells("A2:C2");
   worksheet.mergeCells("D2:F2");
   const row2 = worksheet.getRow(2);

+ 1 - 1
ruoyi-ui/src/views/tender/tender1/components/CompEval.vue

@@ -315,7 +315,7 @@ export default {
         }
       }
 
-      genBidScoreExcel(workbook, quoteScore, this.plan.materialId)
+      genBidScoreExcel(workbook, quoteScore, this.plan.materialId, this.sName)
 
       const totalScore = this.totalScore
       const totalScoreLength = totalScore.length