销售出货送货单打印增加物流单位和收获单位参数从前端录入

This commit is contained in:
彭枝刚 2024-12-21 14:17:35 +08:00
parent bd311031d4
commit 1c6eff0d4f
4 changed files with 14 additions and 3 deletions

View File

@ -30,4 +30,10 @@ public class SaleOutRequestDTO {
@ApiModelProperty(value="行项目集合")
private List<String> seqList;
@ApiModelProperty(value="收货单位")
private String receiverCompany;
@ApiModelProperty(value="物流单位")
private String deliveryCompany;
}

View File

@ -217,7 +217,7 @@ public class PickingController {
@SysLog("销售出货-出货单打印")
@PostMapping("/deliveryPrint")
public R deliveryPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
return R.ok(pickingService.printDeliveryLabel(saleOutRequestDTO.getDocumentNo(), saleOutRequestDTO.getSeqList()));
return R.ok(pickingService.printDeliveryLabel(saleOutRequestDTO));
}
@ApiOperation(value = "拣货清除记录", notes = "拣货清除记录")

View File

@ -30,7 +30,7 @@ public interface PickingService extends IService<Picking> {
String printLabel(String documentNo, List<String> seqList);
String printDeliveryLabel(String documentNo, List<String> seqList);
String printDeliveryLabel(SaleOutRequestDTO saleOutRequestDTO);
void reprint(List<Picking> reprintDtos);

View File

@ -203,10 +203,15 @@ public class PickingServiceImpl extends ServiceImpl<PickingMapper, Picking> impl
}
@Override
public String printDeliveryLabel(String documentNo, List<String> seqList) {
public String printDeliveryLabel(SaleOutRequestDTO saleOutRequestDTO) {
String documentNo = saleOutRequestDTO.getDocumentNo();
List<String> seqList = saleOutRequestDTO.getSeqList();
String base64String = "";
String site = TenantContextHolder.getTenantId();
Map<String, Object> allParam = assemblePrintData(site, documentNo, seqList);
// 追加一些参数
allParam.put("deliveryCompany", saleOutRequestDTO.getDeliveryCompany());
allParam.put("receiverCompany", saleOutRequestDTO.getReceiverCompany());
// 拿取模板
PrintLabelTemplate printLabelTemplate = new PrintLabelTemplate();
printLabelTemplate.setTemplateCode("SALES_OUT_DELIVERY_DOC");