feat(ic): 增加启源领料ID和MES回传单据号字段支持- 在MaterialOutHeadVO中设置vdef9字段存储启源领料ID

- 在MaterialOutHeadVO中设置vdef16字段存储MES回传单据号
This commit is contained in:
mzr 2025-10-13 19:56:59 +08:00
parent 0aaad1d130
commit ed57650cb2
1 changed files with 9 additions and 0 deletions

View File

@ -408,6 +408,15 @@ public class APIMaterialOutMaintainImpl implements IAPIMaterialOutMaintain {
setMaterialOutRowNum(vos);
UFDouble num = new UFDouble(paramMap.get("num").toString());
for (MaterialOutVO vo : vos) {
MaterialOutHeadVO headVo = vo.getHead();
// 设置 vdef9 启源领料id
if (MMValueCheck.isNotEmpty(paramMap.get("vdef9"))) {
headVo.setVdef9(paramMap.get("vdef9").toString());
}
// 设置 vdef16 MES回传单据号
if (MMValueCheck.isNotEmpty(paramMap.get("vdef16"))) {
headVo.setVdef16(paramMap.get("vdef16").toString());
}
// 处理行数量行数量 = 本次领料套数(启源传入)*单位主用量(备料计划)
MaterialOutBodyVO[] bodys = vo.getBodys();
for (MaterialOutBodyVO body : bodys) {