From 3dac744226f363275816f2c4cb01e3ccccec0b42 Mon Sep 17 00:00:00 2001 From: xs Date: Sat, 2 Nov 2024 16:59:13 +0800 Subject: [PATCH] =?UTF-8?q?3.4.3=201=E3=80=81=E5=9C=A8=E9=87=87=E8=B4=AD?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=92=8C=E9=94=80=E5=94=AE=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E5=B7=B2=E7=BB=91=E5=AE=9A=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E6=9F=A5=E7=9C=8B=202=E3=80=81=E5=9C=A8?= =?UTF-8?q?=E7=89=A9=E6=96=99=E4=BF=A1=E6=81=AF=E3=80=81=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E3=80=81=E4=BE=9B=E5=BA=94=E5=95=86=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E3=80=81=E9=94=80=E5=94=AE=E8=AE=A2=E5=8D=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=92=8C=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=A2=9E=E5=8A=A0=E5=90=8C=E6=AD=A5=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E5=8F=AF=E4=BB=8EERP=E7=AB=8B?= =?UTF-8?q?=E5=8D=B3=E5=90=8C=E6=AD=A5=203=E3=80=81=E5=8E=9F=E6=9D=90?= =?UTF-8?q?=E6=96=99=E6=9D=A1=E7=A0=81=E5=92=8C=E7=94=9F=E4=BA=A7=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E9=80=89=E6=8B=A9=E4=BF=A1=E6=81=AF=E6=97=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0radiobox=204=E3=80=81=E5=88=A0=E9=99=A4=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=8C=89=E9=92=AE=E5=92=8Cright-toolbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/core/enums/WmsLocationStatus.java | 5 +- .../mes/controller/MesMobileController.java | 1 + .../controller/MesSaleOrderController.java | 16 ++- .../com/hw/mes/domain/MesBasePalletInfo.java | 11 ++ .../impl/MesBasePalletInfoServiceImpl.java | 1 + .../mapper/mes/MesBasePalletInfoMapper.xml | 2 + .../mapper/mes/MesOrderBindMapper.xml | 2 + .../system/controller/SysMenuController.java | 16 ++- .../com/hw/system/mapper/SysMenuMapper.java | 16 +++ .../hw/system/service/ISysMenuService.java | 8 ++ .../service/impl/SysMenuServiceImpl.java | 24 ++++ .../resources/mapper/system/SysMenuMapper.xml | 19 ++++ .../mapper/wms/WmsRawOutstockMapper.xml | 1 + hw-ui/src/api/mes/saleOrder.js | 10 ++ hw-ui/src/views/dms/bom/index.vue | 2 +- hw-ui/src/views/dms/checkplan/index.vue | 20 ++-- hw-ui/src/views/dms/debugging/index.vue | 20 ++-- .../src/views/dms/dmsBaseAlarmRule/index.vue | 23 ++-- .../views/dms/dmsBaseInspectProject/index.vue | 20 ++-- .../views/dms/dmsBaseInspectRoute/index.vue | 20 ++-- .../dms/dmsBaseInspectStandard/index.vue | 20 ++-- .../views/dms/dmsBaseMaintProject/index.vue | 21 ++-- .../views/dms/dmsBillsLubeDetail/index.vue | 20 ++-- .../views/dms/dmsBillsMaintDetail/index.vue | 20 ++-- hw-ui/src/views/dms/dmsFiles/index.vue | 21 ++-- hw-ui/src/views/dms/dmsInfo/index.vue | 20 ++-- hw-ui/src/views/dms/dmsPlanInspect/index.vue | 20 ++-- .../views/dms/dmsRecordAlarmInfo/index.vue | 23 ++-- .../src/views/dms/dmsRecordInspect/index.vue | 20 ++-- hw-ui/src/views/dms/dmsRecordLube/index.vue | 20 ++-- hw-ui/src/views/dms/dmsRepair/index.vue | 20 ++-- hw-ui/src/views/dms/info/index.vue | 20 ++-- hw-ui/src/views/dms/install/index.vue | 20 ++-- hw-ui/src/views/dms/knowledgeLube/index.vue | 20 ++-- hw-ui/src/views/dms/knowledgeRepair/index.vue | 20 ++-- hw-ui/src/views/dms/konwledgeMaint/index.vue | 20 ++-- hw-ui/src/views/dms/ledger/index.vue | 20 ++-- hw-ui/src/views/dms/lubeDetail/index.vue | 2 +- hw-ui/src/views/dms/lubeStandard/index.vue | 20 ++-- hw-ui/src/views/dms/lubeStation/index.vue | 22 ++-- .../dms/operate/devicedepreciation/index.vue | 21 ++-- hw-ui/src/views/dms/param/index.vue | 20 ++-- hw-ui/src/views/dms/purchase/index.vue | 22 ++-- hw-ui/src/views/dms/shutReason/index.vue | 21 ++-- hw-ui/src/views/dms/shutType/index.vue | 21 ++-- .../views/dms/specialDeviceParam/index.vue | 20 ++-- hw-ui/src/views/dms/standard/index.vue | 20 ++-- hw-ui/src/views/dms/station/index.vue | 20 ++-- hw-ui/src/views/dms/suplier/index.vue | 21 ++-- .../views/ems/base/Energystatistics/index.vue | 10 +- .../ems/base/HistoryElectricity/index.vue | 2 +- .../ems/base/baseCollectDeviceInfo/index.vue | 2 +- .../base/baseMonitorInfoIOTDevice/index.vue | 2 +- .../views/ems/base/basepublicuser/index.vue | 24 ++-- .../src/views/ems/base/businessType/index.vue | 2 +- .../src/views/ems/base/dnbThreshold/index.vue | 20 ++-- .../views/ems/base/exception/data/index.vue | 20 ++-- hw-ui/src/views/ems/base/info/index.vue | 20 ++-- .../src/views/ems/base/lineMonitor/index.vue | 20 ++-- hw-ui/src/views/ems/base/loss/index.vue | 22 ++-- hw-ui/src/views/ems/base/threshold/index.vue | 20 ++-- hw-ui/src/views/ems/base/type/index.vue | 40 +++---- .../src/views/ems/base/typeRelation/index.vue | 20 ++-- hw-ui/src/views/mes/materialinfo/index.vue | 25 ++++- .../views/mes/materialinfo/selectMaterial.vue | 24 +++- .../views/mes/productOrder/addSaleOrder.vue | 29 ++++- hw-ui/src/views/mes/productOrder/index.vue | 14 +-- hw-ui/src/views/mes/projectinfo/index.vue | 27 ++++- .../src/views/mes/purchaseOrder/bindOrder.vue | 20 +++- hw-ui/src/views/mes/purchaseOrder/index.vue | 97 +++++++++++++++- .../mes/purchaseOrder/selectOrderBind.vue | 44 ++++++-- .../views/mes/saleOrder/bindingPurchase.vue | 46 +++++++- hw-ui/src/views/mes/saleOrder/index.vue | 52 +++++++++ hw-ui/src/views/mes/saleOrder/orderBinds.vue | 105 ++++++++++++++++++ hw-ui/src/views/mes/supplierInfo/index.vue | 93 ++++++++++------ hw-ui/src/views/wms/info/rawinstock/index.vue | 2 +- 76 files changed, 1079 insertions(+), 535 deletions(-) create mode 100644 hw-ui/src/views/mes/saleOrder/orderBinds.vue diff --git a/hw-common/hw-common-core/src/main/java/com/hw/common/core/enums/WmsLocationStatus.java b/hw-common/hw-common-core/src/main/java/com/hw/common/core/enums/WmsLocationStatus.java index 17a1161..79b9065 100644 --- a/hw-common/hw-common-core/src/main/java/com/hw/common/core/enums/WmsLocationStatus.java +++ b/hw-common/hw-common-core/src/main/java/com/hw/common/core/enums/WmsLocationStatus.java @@ -11,9 +11,10 @@ import java.util.stream.Collectors; */ public enum WmsLocationStatus { - NORMAL("1", "正常"), AUTOLOCK("2", "自动锁定"), MANUALLOCK("3", "人工锁定"), + NORMAL("1", "正常"), AUTOLOCK("2", "自动锁定(入库锁定)"), MANUALLOCK("3", "人工锁定"), MOVELOCK("4", "移库锁定"), MERGELOCK("5", "合库锁定"), - OUTLOCK("6", "出库锁定"),OUTSIDELOCATIONABNORMAL("8", "因浅库位异常导致深库位不可用"),ABNORMAL("9", "异常"); + OUTLOCK("6", "出库锁定"),RETURN_OUTLOCK("7", "退货出库锁定"), + OUTSIDELOCATIONABNORMAL("8", "因浅库位异常导致深库位不可用"),ABNORMAL("9", "异常"); private final String code; private final String info; diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMobileController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMobileController.java index f6d58d0..3e4afad 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMobileController.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesMobileController.java @@ -44,6 +44,7 @@ public class MesMobileController extends BaseController { @GetMapping("/getMesPalletInfos") public TableDataInfo getMesPalletInfos(MesBasePalletInfo mesBasePalletInfo) { startPage(); + mesBasePalletInfo.setBindFlag("1"); List list = mesBasePalletInfoService.selectMesBasePalletInfoList(mesBasePalletInfo); return getDataTable(list); } diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesSaleOrderController.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesSaleOrderController.java index 641b5da..99b2001 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesSaleOrderController.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/controller/MesSaleOrderController.java @@ -6,8 +6,10 @@ import javax.servlet.http.HttpServletResponse; import com.hw.common.core.domain.R; import com.hw.common.security.annotation.InnerAuth; import com.hw.mes.api.domain.MesBaseBarcodeInfo; +import com.hw.mes.api.domain.MesOrderBind; import com.hw.mes.api.domain.MesSaleOrderRelate; import com.hw.mes.api.domain.vo.MesSaleOrderTransferVo; +import com.hw.mes.service.IMesOrderBindService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -38,7 +40,8 @@ import com.hw.common.core.web.page.TableDataInfo; public class MesSaleOrderController extends BaseController { @Autowired private IMesSaleOrderService mesSaleOrderService; - + @Autowired + private IMesOrderBindService mesOrderBindService; /** * 查询销售订单信息列表 @@ -103,6 +106,17 @@ public class MesSaleOrderController extends BaseController { } + + @GetMapping("/listOrderBinds") + public TableDataInfo listOrderBinds(MesOrderBind mesOrderBind) { + startPage(); + List list = mesOrderBindService.selectMesOrderBindJoinList(mesOrderBind); + return getDataTable(list); + } + + + + /** * 库存转销售订单 */ diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBasePalletInfo.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBasePalletInfo.java index c8bfb09..c3dcc18 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBasePalletInfo.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/domain/MesBasePalletInfo.java @@ -43,6 +43,9 @@ public class MesBasePalletInfo extends BaseEntity @Excel(name = "绑定数量") private BigDecimal bindAmount; + private String bindFlag; + + public void setPalletInfoId(Long palletInfoId) { this.palletInfoId = palletInfoId; @@ -107,6 +110,14 @@ public class MesBasePalletInfo extends BaseEntity return bindAmount; } + public String getBindFlag() { + return bindFlag; + } + + public void setBindFlag(String bindFlag) { + this.bindFlag = bindFlag; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBasePalletInfoServiceImpl.java b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBasePalletInfoServiceImpl.java index d5d59e2..a9ad3d4 100644 --- a/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBasePalletInfoServiceImpl.java +++ b/hw-modules/hw-mes/src/main/java/com/hw/mes/service/impl/MesBasePalletInfoServiceImpl.java @@ -191,6 +191,7 @@ public class MesBasePalletInfoServiceImpl implements IMesBasePalletInfoService { mesBasePalletInfo.setMaterialBarcode(materialBarcode); mesBasePalletInfo.setMaterialId(mesBaseBarcodeInfo.getMaterialId()); + mesBasePalletInfo.setMaterialCode(mesBasePalletInfo.getMaterialCode()); mesBasePalletInfo.setMaterialName(mesBaseBarcodeInfo.getMaterialName()); mesBasePalletInfo.setUpdateBy(userName); mesBasePalletInfo.setUpdateTime(currentDate); diff --git a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBasePalletInfoMapper.xml b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBasePalletInfoMapper.xml index ce650cb..e0237c3 100644 --- a/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBasePalletInfoMapper.xml +++ b/hw-modules/hw-mes/src/main/resources/mapper/mes/MesBasePalletInfoMapper.xml @@ -28,7 +28,9 @@ and pallet_info_code = #{palletInfoCode} and material_barcode = #{materialBarcode} + and material_barcode is not null + order by update_time desc + + + + + + diff --git a/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsRawOutstockMapper.xml b/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsRawOutstockMapper.xml index 1dc8714..544dedf 100644 --- a/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsRawOutstockMapper.xml +++ b/hw-modules/hw-wms/src/main/resources/mapper/wms/WmsRawOutstockMapper.xml @@ -110,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and begin_time = #{beginTime} and end_time = #{endTime} + order by apply_date desc