|
|
|
@ -682,6 +682,24 @@ public class ReportLabelListServiceImpl extends ServiceImpl<ReportLabelListMappe |
|
|
|
queryParams.put("lineNo", printRequest.getLineNo()); |
|
|
|
queryParams.put("relNo", printRequest.getRelNo()); |
|
|
|
queryParams.put("lineItemNo", printRequest.getLineItemNo()); |
|
|
|
// 添加自定义字段 前端补充字段(视图无字段时用于标签替换)比如标签有一个元素是#{qty},是视图里不存在的,前端传入{ |
|
|
|
// "reportId": "xxx", |
|
|
|
// "labelType": "xxx", |
|
|
|
// "site": "55", |
|
|
|
// "userId": "admin", |
|
|
|
// "unitIds": ["A5500000001"], |
|
|
|
// "consignmentId": "1773845", |
|
|
|
// "jobNo": "71330430", |
|
|
|
// "lineNo": "19", |
|
|
|
// "relNo": "1", |
|
|
|
// "lineItemNo": 0, |
|
|
|
// "customFields": { |
|
|
|
// "QTY": 120, |
|
|
|
// "grossWeight": 15.6, |
|
|
|
// "netWeight": 14.9 |
|
|
|
// } |
|
|
|
//} |
|
|
|
// 则系统会替换customFields里的qty字段到ZPL代码里对应的位置 |
|
|
|
Map<String, Object> customFields = printRequest.getCustomFields(); |
|
|
|
if (customFields != null && !customFields.isEmpty()) { |
|
|
|
queryParams.put("customFields", customFields); |
|
|
|
|