修改打印模板

dev
lisai17@sina.com 2020-10-20 11:18:56 +08:00
parent 7cb018fa4e
commit dce5d61298
12 changed files with 34 additions and 13 deletions

View File

@ -3,11 +3,8 @@ package com.cowr.local.ssjygl.customer.supermarketproduct;
import com.cowr.common.view.PageParam;
import com.cowr.common.view.Result;
import com.cowr.model.CustomerSupermarketProduct;
import com.cowr.model.Sysuser;
import com.cowr.local.ssjygl.system.sysuser.SysuserSyncService;
import com.cowr.ssjygl.customer.supermarketproduct.CustomerSupermarketProductPKValidator;
import com.cowr.ssjygl.customer.supermarketproduct.CustomerSupermarketProductService;
import com.cowr.ssjygl.customer.supermarketproduct.CustomerSupermarketProductValidator;
import com.jfinal.aop.Before;
import com.jfinal.core.Controller;

View File

@ -40,6 +40,9 @@ public class ExcelHelper {
datetimePrint = CellAddresses.datetimePrint;
}
// CellStyle cellStyle = workbook.createCellStyle();
// cellStyle.setWrapText(true);
Set<Map.Entry<String, CellAddress>> entrySet = addrMap.entrySet();
for (Map.Entry<String, CellAddress> entry : entrySet) {
Object val = model.get(entry.getKey());
@ -55,7 +58,9 @@ public class ExcelHelper {
// anchor.setAnchorType(ClientAnchor.AnchorType.byId(2));
// patriarch.createPicture(anchor, workbook.addPicture(QRcodeZxingUtil.generateQRcodeByte(val.toString(), 200, "png"), XSSFWorkbook.PICTURE_TYPE_PNG));
// } else {
getCell(getRow(sheet, addr.getRow()), addr.getColumn()).setCellValue(val.toString());
Cell cell = getCell(getRow(sheet, addr.getRow()), addr.getColumn());
cell.setCellValue(val.toString());
// cell.setCellStyle(cellStyle);
// }
}

View File

@ -333,7 +333,7 @@ public class LocalOrderService {
}
origin = supermarket.getName(); // 运输起点
dest = clientName; // 运输终点
dest = StrUtil.getRecordStr(order, "customer_receiver_address"); // 运输终点
vendor = CacheData.print_vendor; // 销售方名称
vendorTaxId = CacheData.print_vendorTaxId; // 销售方纳税人识别号
@ -344,6 +344,14 @@ public class LocalOrderService {
remark = "订单号:" + StrUtil.getRecordStr(order, "sn");
}
// if(StrKit.notBlank(origin)){
// remark += "\r\n发货地" + origin;
// }
//
// if(StrKit.notBlank(dest)){
// remark += "\r\n收货地" + dest;
// }
if (order.get("total_price") != null) {
paid = String.format("%.2f", order.getBigDecimal("total_price")); // 总价
paidUp = ChineseNumberUtil.getChineseNumber(order.getBigDecimal("total_price").doubleValue()); // 总价汉字大写

View File

@ -8,7 +8,6 @@ import com.cowr.common.view.Result;
import com.cowr.local.ssjygl.order.LocalOrderService;
import com.cowr.local.ssjygl.order.orderseq.OrderSeqService;
import com.cowr.ssjygl.customer.supermarketproduct.CustomerSupermarketProductService;
import com.cowr.ssjygl.supermarket.product.SupermarketProductService;
import com.cowr.local.ssjygl.synctask.SyncTaskService;
import com.cowr.local.ssjygl.system.sysuser.SysuserSyncService;
import com.cowr.model.*;

View File

@ -17,7 +17,6 @@ import com.cowr.ssjygl.invoice.receive.InvoiceReceiveService;
import com.cowr.ssjygl.order.ordercluster.OrderclusterService;
import com.cowr.ssjygl.supermarket.product.SupermarketProductService;
import com.cowr.local.ssjygl.synctask.SyncTaskService;
import com.cowr.local.ssjygl.system.sysuser.SysuserSyncService;
import com.cowr.model.*;
import com.cowr.local.ssjygl.modifylog.ModifyLogSyncService;
import com.cowr.ssjygl.prepay.prepaycustomer.PrepayCustomerService;

View File

@ -7,7 +7,6 @@ import com.cowr.common.enums.OrderTypeEnum;
import com.cowr.common.utils.ImageUtil;
import com.cowr.common.view.Result;
import com.cowr.local.ssjygl.main.Config;
import com.cowr.local.ssjygl.order.LocalOrderService;
import com.cowr.ssjygl.customer.supermarketproduct.CustomerSupermarketProductService;
import com.cowr.ssjygl.invoice.receive.InvoiceReceiveService;
import com.cowr.ssjygl.order.OrderService;

View File

@ -19,16 +19,24 @@ current.supermarket_id=6
#落杆后,等待上磅的时间
default_scale_wait_time=5000
#最大毛重不超过 49 吨,超过 49 吨不能上高速
#2020-10-16 盐港都是小磅最大只能40
weigh.max=40
#打印用到的配置信息
print.vendor=浠水县长投环保有限公司
print.vendorTaxId=91421125MA49GYYK2B
#如果物流车辆入场重量大大超过皮重(>=10%),则认为是转运车辆
#2019-08-01 暂定 50%
weight.distinguish=0.5
#最大毛重不超过 49 吨,超过 49 吨不能上高速
#2020-10-16 盐港都是小磅最大只能40
weigh.max=40
#起步运输距离
start.trans.distance=5

View File

@ -18,16 +18,22 @@ socketio.port=12002
current.supermarket_id=6
#落杆后,等待上磅的时间
default_scale_wait_time=5000
#最大毛重不超过 49 吨,超过 49 吨不能上高速
#2020-10-16 盐港都是小磅最大只能40
weigh.max=49
#打印用到的配置信息
print.vendor=浠水县长投环保有限公司
print.vendorTaxId=91421125MA49GYYK2B
#如果物流车辆入场重量大大超过皮重(>=10%),则认为是转运车辆
#2019-08-01 暂定 50%
weight.distinguish=0.5
#最大毛重不超过 49 吨,超过 49 吨不能上高速
weigh.max=49
#起步运输距离
start.trans.distance=5