From 50b4e3b9f0fe9489847cb4ffc1709b02a98942db Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Thu, 28 Jul 2022 15:11:38 +0800 Subject: [PATCH] =?UTF-8?q?UNIAPP=20-=E6=8E=A5=E5=8F=A3=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wm/controller/WmInQmIController.java | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zzjee/wm/controller/WmInQmIController.java b/src/main/java/com/zzjee/wm/controller/WmInQmIController.java index 4339e9b9..c55399f1 100644 --- a/src/main/java/com/zzjee/wm/controller/WmInQmIController.java +++ b/src/main/java/com/zzjee/wm/controller/WmInQmIController.java @@ -1115,9 +1115,18 @@ public class WmInQmIController extends BaseController { WmImNoticeIEntity wmImNoticeIEntity = systemService.get(WmImNoticeIEntity.class, wmInQmI.getImNoticeItem()); if (wmImNoticeIEntity != null) { wmInQmI.setGoodsId(wmImNoticeIEntity.getGoodsCode()); + wmInQmI.setImNoticeId(wmImNoticeIEntity.getImNoticeId()); + wmInQmI.setGoodsUnit(wmImNoticeIEntity.getGoodsUnit()); + wmInQmI.setBaseUnit(wmImNoticeIEntity.getBaseUnit()); + wmInQmI.setGoodsBatch(wmInQmI.getProData()); + wmInQmI.setBaseGoodscount(wmInQmI.getQmOkQuat()); + wmInQmI.setBaseQmcount(wmInQmI.getQmOkQuat()); + wmInQmI.setImQuat(wmImNoticeIEntity.getGoodsCount()); try { - WmImNoticeHEntity wmImNoticeHEntity = systemService.findUniqueByProperty(WmImNoticeHEntity.class, "noticeId", wmInQmI.getImNoticeId()); + WmImNoticeHEntity wmImNoticeHEntity = systemService.findUniqueByProperty(WmImNoticeHEntity.class, "noticeId", wmImNoticeIEntity.getImNoticeId()); wmInQmI.setCusCode(wmImNoticeHEntity.getCusCode()); + wmInQmI.setImCusCode(wmImNoticeHEntity.getImCusCode()); + if (StringUtil.isNotEmpty(wmInQmI.getCusCode())) { MdCusEntity mdcus = systemService.findUniqueByProperty(MdCusEntity.class, "keHuBianMa", wmInQmI.getCusCode()); @@ -1172,6 +1181,20 @@ public class WmInQmIController extends BaseController { systemService.updateEntitie(mdGoodsEntity); } } + + try { + wmInQmI.setTinTj(String.valueOf(Double.parseDouble(mvgoods + .getTiJiCm()) + * Double.parseDouble(wmInQmI.getQmOkQuat()))); + wmInQmI.setTinZhl(String.valueOf(Double.parseDouble(mvgoods + .getZhlKg()) + * Double.parseDouble(wmInQmI.getQmOkQuat()))); + } catch (Exception e) { + // TODO: handle exception + } + + wmInQmI.setGoodsUnit(mvgoods.getShlDanWei()); + } } catch (Exception e) { }