销售出货平台拣配单打印增加改名和备注字段
This commit is contained in:
parent
6a7bb2c2c6
commit
5a478cb8ba
@ -84,6 +84,10 @@ public class SaleOutDetailDTO {
|
||||
@TableField(exist = false)
|
||||
private String zctKhxh;
|
||||
|
||||
// 改名
|
||||
@TableField(exist = false)
|
||||
private String zctZxsg;
|
||||
|
||||
@TableField(exist = false)
|
||||
private BigDecimal quality;
|
||||
|
||||
|
||||
@ -166,7 +166,7 @@ public class PickingController {
|
||||
@SysLog("销售出货-拣货打印")
|
||||
@PostMapping("/print")
|
||||
public R pickingPrint(@RequestBody SaleOutRequestDTO saleOutRequestDTO) {
|
||||
return R.ok(pickingService.printLabel(saleOutRequestDTO.getDocumentNo(), saleOutRequestDTO.getSeqList()));
|
||||
return R.ok(pickingService.printLabel(saleOutRequestDTO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "销售出货-出货单打印", notes = "销售出货-出货单打印")
|
||||
|
||||
@ -27,7 +27,7 @@ public interface PickingService extends IService<Picking> {
|
||||
|
||||
DocumentInventoryDto getInventoryQty(String site, String item, String batch, String sourceWarehouse, String inventoryIdOrCarrier, String documentNo, boolean verifyDefaultStorageBin);
|
||||
|
||||
String printLabel(String documentNo, List<String> seqList);
|
||||
String printLabel(SaleOutRequestDTO saleOutRequestDTO);
|
||||
|
||||
String printDeliveryLabel(SaleOutRequestDTO saleOutRequestDTO);
|
||||
|
||||
|
||||
@ -154,6 +154,9 @@ public class PickingServiceImpl extends ServiceImpl<PickingMapper, Picking> impl
|
||||
} else if (salesOrderLineConfig.getConfigItem().equals("ZCT_KHXH")) {
|
||||
// 客户型号
|
||||
saleOutDetailDTO.setZctKhxh(salesOrderLineConfig.getConfigItemValue());
|
||||
} else if (salesOrderLineConfig.getConfigItem().equals("ZCT_ZXSG")) {
|
||||
// 改名
|
||||
saleOutDetailDTO.setZctZxsg(salesOrderLineConfig.getConfigItemValue());
|
||||
}
|
||||
}
|
||||
// 计算它的数量 需求数量÷长度
|
||||
@ -183,10 +186,14 @@ public class PickingServiceImpl extends ServiceImpl<PickingMapper, Picking> impl
|
||||
|
||||
|
||||
@Override
|
||||
public String printLabel(String documentNo, List<String> seqList) {
|
||||
public String printLabel(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, "P");
|
||||
// 追加一些参数
|
||||
allParam.put("deliveryPartyAddress", saleOutRequestDTO.getDeliveryPartyAddress());
|
||||
// 拿取模板
|
||||
PrintLabelTemplate printLabelTemplate = new PrintLabelTemplate();
|
||||
printLabelTemplate.setTemplateCode("SALES_OUT_PICK_DOC");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user