|
|
@ -236,21 +236,18 @@ public class PrinterTemplate { |
|
|
|
JSONObject gunNo = new JSONObject(); |
|
|
|
JSONObject gunNo = new JSONObject(); |
|
|
|
gunNo.put("cont", "油枪:" + gasOrder.getGasGunNo()+"号"); |
|
|
|
gunNo.put("cont", "油枪:" + gasOrder.getGasGunNo()+"号"); |
|
|
|
gunNo.put("type", "text"); |
|
|
|
gunNo.put("type", "text"); |
|
|
|
gunNo.put("size", "11"); |
|
|
|
|
|
|
|
contents.add(gunNo); |
|
|
|
contents.add(gunNo); |
|
|
|
|
|
|
|
|
|
|
|
// 油品
|
|
|
|
// 油品
|
|
|
|
JSONObject oilNo = new JSONObject(); |
|
|
|
JSONObject oilNo = new JSONObject(); |
|
|
|
oilNo.put("cont", "油品:" + gasOrder.getGasOilNo()+"#"); |
|
|
|
oilNo.put("cont", "油品:" + gasOrder.getGasOilNo()+"#"); |
|
|
|
oilNo.put("type", "text"); |
|
|
|
oilNo.put("type", "text"); |
|
|
|
oilNo.put("size", "11"); |
|
|
|
|
|
|
|
contents.add(oilNo); |
|
|
|
contents.add(oilNo); |
|
|
|
|
|
|
|
|
|
|
|
// 升数
|
|
|
|
// 升数
|
|
|
|
JSONObject oilLiters = new JSONObject(); |
|
|
|
JSONObject oilLiters = new JSONObject(); |
|
|
|
oilLiters.put("cont", "升数:" + gasOrder.getGasOilLiters()+"升"); |
|
|
|
oilLiters.put("cont", "升数:" + gasOrder.getGasOilLiters()+"升"); |
|
|
|
oilLiters.put("type", "text"); |
|
|
|
oilLiters.put("type", "text"); |
|
|
|
oilLiters.put("size", "11"); |
|
|
|
|
|
|
|
contents.add(oilLiters); |
|
|
|
contents.add(oilLiters); |
|
|
|
|
|
|
|
|
|
|
|
// 升数描述
|
|
|
|
// 升数描述
|
|
|
@ -267,16 +264,14 @@ public class PrinterTemplate { |
|
|
|
|
|
|
|
|
|
|
|
// 加油金额
|
|
|
|
// 加油金额
|
|
|
|
JSONObject refuelPrice = new JSONObject(); |
|
|
|
JSONObject refuelPrice = new JSONObject(); |
|
|
|
refuelPrice.put("cont", "加油金额:" + gasOrder.getGasRefuelPrice()); |
|
|
|
refuelPrice.put("cont", "加油金额:" + gasOrder.getGasRefuelPrice()+"元"); |
|
|
|
refuelPrice.put("type", "text"); |
|
|
|
refuelPrice.put("type", "text"); |
|
|
|
refuelPrice.put("size", "11"); |
|
|
|
|
|
|
|
contents.add(refuelPrice); |
|
|
|
contents.add(refuelPrice); |
|
|
|
|
|
|
|
|
|
|
|
// 优惠金额
|
|
|
|
// 优惠金额
|
|
|
|
JSONObject discountPrice = new JSONObject(); |
|
|
|
JSONObject discountPrice = new JSONObject(); |
|
|
|
discountPrice.put("cont", "优惠金额:" + gasOrder.getTotalDeductionPrice()); |
|
|
|
discountPrice.put("cont", "优惠金额:" + gasOrder.getTotalDeductionPrice()+"元"); |
|
|
|
discountPrice.put("type", "text"); |
|
|
|
discountPrice.put("type", "text"); |
|
|
|
discountPrice.put("size", "11"); |
|
|
|
|
|
|
|
contents.add(discountPrice); |
|
|
|
contents.add(discountPrice); |
|
|
|
|
|
|
|
|
|
|
|
// 分割线
|
|
|
|
// 分割线
|
|
|
@ -287,9 +282,8 @@ public class PrinterTemplate { |
|
|
|
|
|
|
|
|
|
|
|
// 实际支付
|
|
|
|
// 实际支付
|
|
|
|
JSONObject actualPayment = new JSONObject(); |
|
|
|
JSONObject actualPayment = new JSONObject(); |
|
|
|
actualPayment.put("cont", "实际支付:" + gasOrder.getActualPayPrice()); |
|
|
|
actualPayment.put("cont", "实际支付:" + gasOrder.getActualPayPrice()+"元"); |
|
|
|
actualPayment.put("type", "text"); |
|
|
|
actualPayment.put("type", "text"); |
|
|
|
actualPayment.put("size", "11"); |
|
|
|
|
|
|
|
contents.add(actualPayment); |
|
|
|
contents.add(actualPayment); |
|
|
|
|
|
|
|
|
|
|
|
/* // 加油金额标题
|
|
|
|
/* // 加油金额标题
|
|
|
|