From 1a2461dcbf3e3d7540678174f41948787fc07f2a Mon Sep 17 00:00:00 2001 From: xiaosuonian <913474402@qq.com> Date: Fri, 4 Jul 2025 19:50:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=92=A2=E6=9D=90=E7=A3=85=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=BF=87=E7=A3=85=E9=80=BB=E8=BE=91=E3=80=82=E9=92=A2=E6=9D=90?= =?UTF-8?q?=E7=A3=85=E5=AE=8C=E6=88=90=E4=B8=BB=E6=A6=9C=E5=8D=95=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=98=9F=E7=A9=BA=E7=AE=80=E5=8D=95=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=8D=95=E3=80=82=202.=E9=93=81=E6=B0=B4?= =?UTF-8?q?=E7=A3=85=E5=AE=8C=E6=88=90=E4=B8=BB=E6=A6=9C=E5=8D=95=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=98=9F=E7=A9=BA=E7=AE=80=E5=8D=95=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=8D=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bill/controller/PoundmstController.java | 11 +++ .../ruoyi/bill/service/IPoundmstService.java | 8 ++ .../service/impl/PoundBillServiceImpl.java | 14 ++- .../service/impl/PoundmstServiceImpl.java | 22 +++-- .../measurement/bill/PoundmstMapper.xml | 1 + ruoyi-ui/src/api/measurement/bill/poundmst.js | 9 ++ .../operation/moltenironpound/index.vue | 24 ++++- .../operation/outinpound/index.vue | 14 +-- .../operation/shortdispound/index.vue | 2 - .../operation/steelpound/index.vue | 98 ++++++++++++++++--- 10 files changed, 167 insertions(+), 36 deletions(-) diff --git a/measurement/src/main/java/com/ruoyi/bill/controller/PoundmstController.java b/measurement/src/main/java/com/ruoyi/bill/controller/PoundmstController.java index 9965c64..59e80d5 100644 --- a/measurement/src/main/java/com/ruoyi/bill/controller/PoundmstController.java +++ b/measurement/src/main/java/com/ruoyi/bill/controller/PoundmstController.java @@ -104,6 +104,17 @@ public class PoundmstController extends BaseController return toAjax(poundmstService.insertPoundmst(poundmst)); } + /** + * 完成主榜单信息 + */ + @PreAuthorize("@ss.hasPermi('measurement/bill:poundmst:add')") + @Log(title = "主榜单信息", businessType = BusinessType.INSERT) + @GetMapping(value = "/complete/{id}") + public AjaxResult complete(@PathVariable("id") String id) + { + return toAjax(poundmstService.completePoundmst(id)); + } + /** * 修改主榜单信息 */ diff --git a/measurement/src/main/java/com/ruoyi/bill/service/IPoundmstService.java b/measurement/src/main/java/com/ruoyi/bill/service/IPoundmstService.java index b72b274..41d20c9 100644 --- a/measurement/src/main/java/com/ruoyi/bill/service/IPoundmstService.java +++ b/measurement/src/main/java/com/ruoyi/bill/service/IPoundmstService.java @@ -53,6 +53,14 @@ public interface IPoundmstService extends IService */ public int updatePoundmst(Poundmst poundmst); + /** + * 完成主榜单信息 + * + * @param id 主榜单信息 + * @return 结果 + */ + public int completePoundmst(String id); + /** * 批量删除主榜单信息 * diff --git a/measurement/src/main/java/com/ruoyi/bill/service/impl/PoundBillServiceImpl.java b/measurement/src/main/java/com/ruoyi/bill/service/impl/PoundBillServiceImpl.java index 85d0945..0ed39cb 100644 --- a/measurement/src/main/java/com/ruoyi/bill/service/impl/PoundBillServiceImpl.java +++ b/measurement/src/main/java/com/ruoyi/bill/service/impl/PoundBillServiceImpl.java @@ -49,7 +49,8 @@ public class PoundBillServiceImpl extends ServiceImpl i { poundmst.initAddFields(poundmst); boolean save = save(poundmst); - //调用主榜单导入方法。 - //调用磅单回调接口。 - try { - if ("SP_InStock".equals(poundmst.getOabilltype())) - apiPostBack.makePoundmstFormData(poundmst.getId()); - } catch (IOException e) { - throw new RuntimeException("磅单:" + poundmst.getUsrcode() + "推送星空时,出现异常:"+e.getMessage()); - } if (save){ return 1; } @@ -110,6 +102,20 @@ public class PoundmstServiceImpl extends ServiceImpl i return -1; } + @Override + public int completePoundmst(String id) { + try { + //推送星空 + apiPostBack.makePoundmstFormData(id); + + //推送完成后。将单据状态设置为完成。 + + }catch (Exception e){ + throw new RuntimeException("主榜单:" + id + "推送星空时,出现异常:"+e.getMessage()); + } + return 1; + } + /** * 批量删除主榜单信息 * diff --git a/measurement/src/main/resources/mapper/measurement/bill/PoundmstMapper.xml b/measurement/src/main/resources/mapper/measurement/bill/PoundmstMapper.xml index c8455dc..e215a05 100644 --- a/measurement/src/main/resources/mapper/measurement/bill/PoundmstMapper.xml +++ b/measurement/src/main/resources/mapper/measurement/bill/PoundmstMapper.xml @@ -113,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and cangKuNumber = #{cangKuNumber} and sccjNum = #{sccjNum} + order by crtdt desc