Commit d7a5c71a1e0fdc33501be1f5da77ac978c024dc1

Authored by 易文鹏
1 parent 2dd44e8f

成品入库回传ERP单据后显示错误信息

src/main/java/com/huaheng/api/erp/service/TaskReturnServiceImpl.java
... ... @@ -276,6 +276,7 @@ public class TaskReturnServiceImpl implements TaskReturnService {
276 276 Integer pushErrorCount = barCodeHeader.getPushErrorCount() == null ? 0 : barCodeHeader.getPushErrorCount();
277 277 barCodeHeader.setPushErrorCount(pushErrorCount + 1);
278 278 barCodeHeader.setLocked(4);//回传失败
  279 + barCodeHeader.setErpErrorMsg(erpAjaxResult.getMsg() + erpAjaxResult.getErrorMsg());
279 280 barCodeHeaderService.updateById(barCodeHeader);
280 281 return AjaxResult.error(erpAjaxResult.getMsg() + erpAjaxResult.getErrorMsg());
281 282 }
... ...
src/main/java/com/huaheng/pc/barcode/barcodeHeader/domain/BarCodeHeader.java
... ... @@ -296,4 +296,10 @@ public class BarCodeHeader implements Serializable {
296 296 @ApiModelProperty(value = "物料单位")
297 297 private String materialUnit;
298 298  
299   -}
300 299 \ No newline at end of file
  300 + /**
  301 + * erp错误消息
  302 + */
  303 + @TableField(value = "erpErrorMsg")
  304 + @ApiModelProperty(value="erp错误消息")
  305 + public String erpErrorMsg;
  306 +}
... ...
src/main/java/com/huaheng/pc/shipment/shippingCombination/service/ShippingCombinationService.java
... ... @@ -109,7 +109,7 @@ public class ShippingCombinationService {
109 109 materialTypelam.eq(MaterialType::getCode,material.getType()).eq(MaterialType::getWarehouseCode,shipmentDetail.getWarehouseCode());
110 110 MaterialType materialType=materialTypeService.getOne(materialTypelam);
111 111 if(materialType==null){
112   - throw new ServiceException(material.getType()+"物料种类不存在");
  112 + throw new ServiceException(material.getType()+"物料类别不存在,可以到物料管理选择该物料的物料类别");
113 113 }
114 114 if(StringUtils.isNotEmpty(materialType.getAllocationRule())){
115 115 filterConfigDetailLambdaQueryWrapper.eq(FilterConfigDetail::getCode,materialType.getAllocationRule());
... ...
src/main/resources/templates/barcode/barCodeHeader/barCodeHeader.html
... ... @@ -316,6 +316,18 @@
316 316 title : '-1回传重量',
317 317 },
318 318 {
  319 + field: 'erpErrorMsg',
  320 + title: 'ERP回传错误信息',
  321 + formatter: function(value, row, index) {
  322 + var actions = [];
  323 + if(value == undefined || value == '')
  324 + value = " "
  325 + else
  326 + actions.push('<pre style="max-height:50px; white-space: pre-wrap; width:500px">'+value+ '</pre>')
  327 + return actions.join(" ")
  328 + }
  329 + },
  330 + {
319 331 field : 'firstStatus',
320 332 title : '头状态',
321 333 align: 'center',
... ...