Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/master'

heguanxun 9 mēneši atpakaļ
vecāks
revīzija
b007dc950d

+ 3 - 2
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyfrontlinewarehouse/service/impl/QyFrontlineWarehouseServiceImpl.java

@@ -197,13 +197,14 @@ public class QyFrontlineWarehouseServiceImpl extends ServiceImpl<QyFrontlineWare
 
         //创建表格
         PdfPTable pdfPTable = CommonPdfUtil.createPdfPTable(7);
-
+//        //设置列宽
+//        pdfPTable.setWidths(new float[]{2f,6f,3f,2f,2f,3f,5f});
         //设置表头
         PdfPCell firstHead = CommonPdfUtil.createCenterPdfPCell(headName, 2, 7, CommonPdfUtil.BOLDFONT);
         pdfPTable.addCell(firstHead);
 
         //设置账册编号
-        PdfPCell accountCodeCell = CommonPdfUtil.createCenterPdfPCell(qyFrontlineWarehouse.getAccountCode(), 1, 7, CommonPdfUtil.NORMALFONT);
+        PdfPCell accountCodeCell = CommonPdfUtil.createCenterPdfPCell("NO:"+qyFrontlineWarehouse.getAccountCode(), 1, 7, CommonPdfUtil.NORMALFONT);
         //设置文字居右
         accountCodeCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
         pdfPTable.addCell(accountCodeCell);