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