diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/WarehouseOutOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/AftersalesWarehouseOutController.java similarity index 95% rename from ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/WarehouseOutOrderController.java rename to ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/AftersalesWarehouseOutController.java index 6d7c72c8..a11d8b61 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/WarehouseOutOrderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/controller/AftersalesWarehouseOutController.java @@ -2,10 +2,9 @@ package com.ruoyi.aftersales.controller; import java.util.List; -import com.ruoyi.aftersales.domain.AftersalesOrder; -import com.ruoyi.aftersales.domain.vo.SelectDeviceVO; import com.ruoyi.aftersales.domain.vo.SelectMaterialsVO; import com.ruoyi.aftersales.domain.vo.SelectShippingDeviceVO; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -17,8 +16,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.aftersales.domain.WarehouseOutOrder; -import com.ruoyi.aftersales.service.IWarehouseOutOrderService; +import com.ruoyi.aftersales.service.IAftersalesWarehouseOutService; import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.utils.poi.ExcelUtil; @@ -32,12 +30,12 @@ import com.ruoyi.common.core.page.TableDataInfo; */ @Controller @RequestMapping("/aftersales/warehouseOutOrder") -public class WarehouseOutOrderController extends BaseController +public class AftersalesWarehouseOutController extends BaseController { private String prefix = "aftersales/warehouseOutOrder"; @Autowired - private IWarehouseOutOrderService warehouseOutOrderService; + private IAftersalesWarehouseOutService warehouseOutOrderService; @RequiresPermissions("aftersales:warehouseOutOrder:view") @GetMapping() diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IWarehouseOutOrderService.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAftersalesWarehouseOutService.java similarity index 94% rename from ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IWarehouseOutOrderService.java rename to ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAftersalesWarehouseOutService.java index eb6a33c6..f044a02d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IWarehouseOutOrderService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAftersalesWarehouseOutService.java @@ -1,10 +1,10 @@ package com.ruoyi.aftersales.service; import java.util.List; -import com.ruoyi.aftersales.domain.WarehouseOutOrder; -import com.ruoyi.aftersales.domain.vo.SelectDeviceVO; + import com.ruoyi.aftersales.domain.vo.SelectMaterialsVO; import com.ruoyi.aftersales.domain.vo.SelectShippingDeviceVO; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; /** * 出库单Service接口 @@ -12,7 +12,7 @@ import com.ruoyi.aftersales.domain.vo.SelectShippingDeviceVO; * @author 刘晓旭 * @date 2024-04-23 */ -public interface IWarehouseOutOrderService +public interface IAftersalesWarehouseOutService { /** * 查询出库单 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/WarehouseOutOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesWarehouseOutServiceImpl.java similarity index 96% rename from ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/WarehouseOutOrderServiceImpl.java rename to ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesWarehouseOutServiceImpl.java index 656c8eb2..8ceb3275 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/WarehouseOutOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesWarehouseOutServiceImpl.java @@ -12,14 +12,12 @@ import com.ruoyi.common.utils.ShiroUtils; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.system.domain.SysSalesOrderChild; import com.ruoyi.system.mapper.SysSalesOrderChildMapper; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; +import com.ruoyi.warehouse.mapper.WarehouseOutOrderMapper; import lombok.extern.slf4j.Slf4j; -import net.bytebuddy.implementation.bytecode.Throw; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.security.core.parameters.P; import org.springframework.stereotype.Service; -import com.ruoyi.aftersales.mapper.WarehouseOutOrderMapper; -import com.ruoyi.aftersales.domain.WarehouseOutOrder; -import com.ruoyi.aftersales.service.IWarehouseOutOrderService; +import com.ruoyi.aftersales.service.IAftersalesWarehouseOutService; import com.ruoyi.common.core.text.Convert; /** @@ -30,7 +28,7 @@ import com.ruoyi.common.core.text.Convert; */ @Service @Slf4j -public class WarehouseOutOrderServiceImpl implements IWarehouseOutOrderService +public class AftersalesWarehouseOutServiceImpl implements IAftersalesWarehouseOutService { @Autowired private WarehouseOutOrderMapper warehouseOutOrderMapper; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java index c42a71ab..770b6054 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java @@ -352,9 +352,6 @@ public class QualityRefundsExchangesController extends BaseController return toAjax(qualityRefundsExchangesService.returnBeforeStorageDetail(qualityRefundsExchanges)); } - - - /** * 入库后退货-选择供应商-无供应商 */ @@ -391,4 +388,51 @@ public class QualityRefundsExchangesController extends BaseController + /** + * 入库前退货-确认收货 + */ + @GetMapping("/beforeConfirmDelivery/{refundsExchangesId}") + public String beforeConfirmDelivery(@PathVariable("refundsExchangesId") Long refundsExchangesId, ModelMap mmap) + { + QualityRefundsExchanges qualityRefundsExchanges = qualityRefundsExchangesService.selectQualityRefundsExchangesById(refundsExchangesId); + mmap.put("qualityRefundsExchanges", qualityRefundsExchanges); + return prefix + "/beforeConfirmDelivery"; + } + + /** + * 保存入库前退货-确认收货 + */ + @RequiresPermissions("quality:refundsExchanges:beforeConfirmDelivery") + @Log(title = "品质管理退换货单", businessType = BusinessType.UPDATE) + @PostMapping("/beforeConfirmDelivery") + @ResponseBody + public AjaxResult beforeConfirmDeliverySave(@RequestBody QualityRefundsExchanges qualityRefundsExchanges) + { + return toAjax(qualityRefundsExchangesService.updateBeforeConfirmDelivery(qualityRefundsExchanges)); + } + + + /** + * 入库后退货-确认收货 + */ + @GetMapping("/afterConfirmDelivery/{refundsExchangesId}") + public String afterConfirmDelivery(@PathVariable("refundsExchangesId") Long refundsExchangesId, ModelMap mmap) + { + QualityRefundsExchanges qualityRefundsExchanges = qualityRefundsExchangesService.selectQualityRefundsExchangesById(refundsExchangesId); + mmap.put("qualityRefundsExchanges", qualityRefundsExchanges); + return prefix + "/afterConfirmDelivery"; + } + + /** + * 保存入库后退货-确认收货 + */ + @RequiresPermissions("quality:refundsExchanges:afterConfirmDelivery") + @Log(title = "品质管理退换货单", businessType = BusinessType.UPDATE) + @PostMapping("/afterConfirmDelivery") + @ResponseBody + public AjaxResult afterConfirmDeliverySave(@RequestBody QualityRefundsExchanges qualityRefundsExchanges) + { + return toAjax(qualityRefundsExchangesService.updateBeforeConfirmDelivery(qualityRefundsExchanges)); + } + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchanges.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchanges.java index aa42ff63..74804b68 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchanges.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchanges.java @@ -38,6 +38,10 @@ public class QualityRefundsExchanges extends BaseEntity @Excel(name = "采购状态") private String qualityPurchaseStatus; + /** 收货状态 */ + @Excel(name = "收货状态") + private String qualityDeliveryStatus; + /** 关联订单号 */ @Excel(name = "关联订单号") private String relatedOrderCode; @@ -120,7 +124,16 @@ public class QualityRefundsExchanges extends BaseEntity { return qualityPurchaseStatus; } - public void setRelatedOrderCode(String relatedOrderCode) + + public String getQualityDeliveryStatus() { + return qualityDeliveryStatus; + } + + public void setQualityDeliveryStatus(String qualityDeliveryStatus) { + this.qualityDeliveryStatus = qualityDeliveryStatus; + } + + public void setRelatedOrderCode(String relatedOrderCode) { this.relatedOrderCode = relatedOrderCode; } @@ -208,6 +221,7 @@ public class QualityRefundsExchanges extends BaseEntity .append("refundsExchangesStatus", getRefundsExchangesStatus()) .append("qualityWarehouseStatus", getQualityWarehouseStatus()) .append("qualityPurchaseStatus", getQualityPurchaseStatus()) + .append("qualityDeliveryStatus",getQualityDeliveryStatus()) .append("relatedOrderCode", getRelatedOrderCode()) .append("inStorageCode", getInStorageCode()) .append("warehouseStorageType", getWarehouseStorageType()) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchangesDetail.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchangesDetail.java index 21e87de8..a7340459 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchangesDetail.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/domain/QualityRefundsExchangesDetail.java @@ -38,6 +38,10 @@ public class QualityRefundsExchangesDetail extends BaseEntity @Excel(name = "采购状态") private String qualityPurchaseStatus; + /** 收货状态 */ + @Excel(name = "收货状态") + private String qualityDeliveryStatus; + /** 关联订单号 */ @Excel(name = "关联订单号") private String relatedOrderCode; @@ -183,7 +187,16 @@ public class QualityRefundsExchangesDetail extends BaseEntity { return qualityPurchaseStatus; } - public void setRelatedOrderCode(String relatedOrderCode) + + public String getQualityDeliveryStatus() { + return qualityDeliveryStatus; + } + + public void setQualityDeliveryStatus(String qualityDeliveryStatus) { + this.qualityDeliveryStatus = qualityDeliveryStatus; + } + + public void setRelatedOrderCode(String relatedOrderCode) { this.relatedOrderCode = relatedOrderCode; } @@ -401,6 +414,7 @@ public class QualityRefundsExchangesDetail extends BaseEntity .append("refundsExchangesStatus", getRefundsExchangesStatus()) .append("qualityWarehouseStatus", getQualityWarehouseStatus()) .append("qualityPurchaseStatus", getQualityPurchaseStatus()) + .append("qualityDeliveryStatus",getQualityDeliveryStatus()) .append("relatedOrderCode", getRelatedOrderCode()) .append("inStorageCode", getInStorageCode()) .append("qualityReturnNode", getQualityReturnNode()) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java index 410365e1..e0c30d8a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java @@ -84,4 +84,9 @@ public interface IQualityRefundsExchangesService * 保存入库后退货-选择供应商-无供应商 */ int updateAfterNoConfirmSupplier(QualityRefundsExchanges qualityRefundsExchanges); + + /** + * 保存入库前退货-确认供应商 + */ + int updateBeforeConfirmDelivery(QualityRefundsExchanges qualityRefundsExchanges); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java index c9f0b5dd..7a2baa4c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java @@ -208,6 +208,31 @@ public class QualityRefundsExchangesServiceImpl implements IQualityRefundsExchan return updateRows; } + /** + * 保存入库前退货-确认供应商 + */ + @Override + public int updateBeforeConfirmDelivery(QualityRefundsExchanges qualityRefundsExchanges) { + + String loginName = ShiroUtils.getLoginName(); + List refundsExchangesDetails = qualityRefundsExchanges.getRefundsExchangesDetails(); + if (StringUtils.isEmpty(refundsExchangesDetails)){ + log.warn("换货单[{}]无关联的物料详情信息", qualityRefundsExchanges.getRefundsExchangesCode()); + } + + int updateRows = 0; + for (QualityRefundsExchangesDetail refundsExchangesDetail : refundsExchangesDetails) { + refundsExchangesDetail.setRefundsExchangesCode(qualityRefundsExchanges.getRefundsExchangesCode()); + refundsExchangesDetail.setUpdateBy(loginName); + refundsExchangesDetail.setUpdateTime(new Date()); + + //更新数据库记录 + updateRows += refundsExchangesDetailMapper.updateQualityRefundsExchangesDetail(refundsExchangesDetail); + + } + return updateRows; + } + /** *退换货单号: diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java new file mode 100644 index 00000000..35de1cf3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/controller/WarehouseOutOrderController.java @@ -0,0 +1,154 @@ +package com.ruoyi.warehouse.controller; + +import java.util.List; + +import com.ruoyi.warehouse.domain.WarehouseOutOrderDetail; +import com.ruoyi.warehouse.service.IWarehouseOutOrderDetailService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.*; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; +import com.ruoyi.warehouse.service.IWarehouseOutOrderService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 仓库出库单Controller + * + * @author 刘晓旭 + * @date 2024-06-04 + */ +@Controller +@RequestMapping("/warehouse/warehouseOutOrder") +public class WarehouseOutOrderController extends BaseController +{ + private String prefix = "warehouse/warehouseOutOrder"; + + @Autowired + private IWarehouseOutOrderService warehouseOutOrderService; + + @Autowired + private IWarehouseOutOrderDetailService outOrderDetailService; + + @RequiresPermissions("warehouse:warehouseOutOrder:view") + @GetMapping() + public String warehouseOutOrder() + { + return prefix + "/warehouseOutOrder"; + } + + /** + * 查询仓库出库单列表 + */ + @RequiresPermissions("warehouse:warehouseOutOrder:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(WarehouseOutOrder warehouseOutOrder) + { + startPage(); + List list = warehouseOutOrderService.selectWarehouseOutOrderList(warehouseOutOrder); + return getDataTable(list); + } + + /** + * 导出仓库出库单列表 + */ + @RequiresPermissions("warehouse:warehouseOutOrder:export") + @Log(title = "仓库出库单", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(WarehouseOutOrder warehouseOutOrder) + { + List list = warehouseOutOrderService.selectWarehouseOutOrderList(warehouseOutOrder); + ExcelUtil util = new ExcelUtil(WarehouseOutOrder.class); + return util.exportExcel(list, "仓库出库单数据"); + } + + /** + * 新增仓库出库单 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存仓库出库单 + */ + @RequiresPermissions("warehouse:warehouseOutOrder:add") + @Log(title = "仓库出库单", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(WarehouseOutOrder warehouseOutOrder) + { + return toAjax(warehouseOutOrderService.insertWarehouseOutOrder(warehouseOutOrder)); + } + + /** + * 修改仓库出库单 + */ + @GetMapping("/edit/{outOrderId}") + public String edit(@PathVariable("outOrderId") Long outOrderId, ModelMap mmap) + { + WarehouseOutOrder warehouseOutOrder = warehouseOutOrderService.selectWarehouseOutOrderById(outOrderId); + mmap.put("warehouseOutOrder", warehouseOutOrder); + return prefix + "/edit"; + } + + /** + * 修改保存仓库出库单 + */ + @RequiresPermissions("warehouse:warehouseOutOrder:edit") + @Log(title = "仓库出库单", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(WarehouseOutOrder warehouseOutOrder) + { + return toAjax(warehouseOutOrderService.updateWarehouseOutOrder(warehouseOutOrder)); + } + + /** + * 销售单-准备物料 + */ + @GetMapping("/prepareMaterial/{outOrderId}") + public String prepareMaterial(@PathVariable("outOrderId") Long outOrderId, ModelMap mmap) + { + WarehouseOutOrder warehouseOutOrder = warehouseOutOrderService.selectWarehouseOutOrderById(outOrderId); + mmap.put("warehouseOutOrder", warehouseOutOrder); + return prefix + "/prepareMaterial"; + } + + /** + * 修改保存销售单-准备物料 + */ + @RequiresPermissions("warehouse:warehouseOutOrder:prepareMaterial") + @Log(title = "仓库出库单", businessType = BusinessType.UPDATE) + @PostMapping("/prepareMaterial") + @ResponseBody + public AjaxResult prepareMaterialSave(@RequestBody WarehouseOutOrder warehouseOutOrder) + { + return toAjax(warehouseOutOrderService.updatePrepareMaterial(warehouseOutOrder)); + } + + + /** + * 销售单-准备物料 物料相关信息 + */ + @PostMapping("/getMaterialListByOutOrderCode") + @ResponseBody + public TableDataInfo getMaterialListByOutOrderCode(WarehouseOutOrder warehouseOutOrder) + { + startPage(); + List list = outOrderDetailService.selectOutOrderDetailListByCode(warehouseOutOrder); + return getDataTable(list); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/domain/WarehouseOutOrder.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseOutOrder.java similarity index 79% rename from ruoyi-admin/src/main/java/com/ruoyi/aftersales/domain/WarehouseOutOrder.java rename to ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseOutOrder.java index 0f39126a..ca862021 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/domain/WarehouseOutOrder.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseOutOrder.java @@ -1,6 +1,8 @@ -package com.ruoyi.aftersales.domain; +package com.ruoyi.warehouse.domain; import java.util.Date; +import java.util.List; + import com.fasterxml.jackson.annotation.JsonFormat; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; @@ -8,10 +10,10 @@ import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; /** - * 出库单对象 warehouse_out_order + * 仓库出库单对象 warehouse_out_order * * @author 刘晓旭 - * @date 2024-04-23 + * @date 2024-06-04 */ public class WarehouseOutOrder extends BaseEntity { @@ -42,15 +44,21 @@ public class WarehouseOutOrder extends BaseEntity @Excel(name = "订单类型") private String warehouseOrderType; + /** 委外单号 */ + private String outMakeCode; + /** 出库类型 */ + @Excel(name = "出库类型") private String warehouseOutType; + /** 请购单号 */ + private String requisitioningCode; + /** 业务人员 */ @Excel(name = "业务人员") private String businessName; /** 售后人员 */ - @Excel(name = "售后人员") private String aftersalesName; /** 仓库员 */ @@ -75,6 +83,7 @@ public class WarehouseOutOrder extends BaseEntity private Integer enterpriseSum; /** 出库数 */ + @Excel(name = "出库数") private Integer outOrderSum; /** 出库对象 */ @@ -94,27 +103,33 @@ public class WarehouseOutOrder extends BaseEntity /** 申请人员 */ private String applyName; + /** 供应商ID */ + private String supplierCode; + /** 计划交付时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "计划交付时间", width = 30, dateFormat = "yyyy-MM-dd") private Date planDeliveryTime; + /** 供应商名称 */ + private String supplierName; + /** 交付条件 */ - @Excel(name = "交付条件") private String deliveryCondition; /** 收货地址 */ - @Excel(name = "收货地址") private String deliveryAddress; /** 联系人 */ - @Excel(name = "联系人") private String deliveryName; /** 联系电话 */ - @Excel(name = "联系电话") private String deliveryNumber; + /** 送货日期 */ + private Date deliveryDate; + + /** 仓库出库单详情*/ + private List warehouseOutOrderDetailList; + public void setOutOrderId(Long outOrderId) { this.outOrderId = outOrderId; @@ -178,6 +193,15 @@ public class WarehouseOutOrder extends BaseEntity { return warehouseOrderType; } + public void setOutMakeCode(String outMakeCode) + { + this.outMakeCode = outMakeCode; + } + + public String getOutMakeCode() + { + return outMakeCode; + } public void setWarehouseOutType(String warehouseOutType) { this.warehouseOutType = warehouseOutType; @@ -187,6 +211,15 @@ public class WarehouseOutOrder extends BaseEntity { return warehouseOutType; } + public void setRequisitioningCode(String requisitioningCode) + { + this.requisitioningCode = requisitioningCode; + } + + public String getRequisitioningCode() + { + return requisitioningCode; + } public void setBusinessName(String businessName) { this.businessName = businessName; @@ -313,6 +346,15 @@ public class WarehouseOutOrder extends BaseEntity { return applyName; } + public void setSupplierCode(String supplierCode) + { + this.supplierCode = supplierCode; + } + + public String getSupplierCode() + { + return supplierCode; + } public void setPlanDeliveryTime(Date planDeliveryTime) { this.planDeliveryTime = planDeliveryTime; @@ -322,6 +364,15 @@ public class WarehouseOutOrder extends BaseEntity { return planDeliveryTime; } + public void setSupplierName(String supplierName) + { + this.supplierName = supplierName; + } + + public String getSupplierName() + { + return supplierName; + } public void setDeliveryCondition(String deliveryCondition) { this.deliveryCondition = deliveryCondition; @@ -349,15 +400,33 @@ public class WarehouseOutOrder extends BaseEntity { return deliveryName; } - public void setDeliveryNumber(String deliveryNumber) + public void setDeliveryNumber(String deliveryNumber) { this.deliveryNumber = deliveryNumber; } - public String getDeliveryNumber() + public String getDeliveryNumber() { return deliveryNumber; } + public void setDeliveryDate(Date deliveryDate) + { + this.deliveryDate = deliveryDate; + } + + public Date getDeliveryDate() + { + return deliveryDate; + } + + + public List getWarehouseOutOrderDetailList() { + return warehouseOutOrderDetailList; + } + + public void setWarehouseOutOrderDetailList(List warehouseOutOrderDetailList) { + this.warehouseOutOrderDetailList = warehouseOutOrderDetailList; + } @Override public String toString() { @@ -369,7 +438,9 @@ public class WarehouseOutOrder extends BaseEntity .append("relatedOrderCode", getRelatedOrderCode()) .append("salesOrderCode", getSalesOrderCode()) .append("warehouseOrderType", getWarehouseOrderType()) + .append("outMakeCode", getOutMakeCode()) .append("warehouseOutType", getWarehouseOutType()) + .append("requisitioningCode", getRequisitioningCode()) .append("businessName", getBusinessName()) .append("aftersalesName", getAftersalesName()) .append("warehouseName", getWarehouseName()) @@ -384,15 +455,20 @@ public class WarehouseOutOrder extends BaseEntity .append("customerId", getCustomerId()) .append("customerName", getCustomerName()) .append("applyName", getApplyName()) + .append("supplierCode", getSupplierCode()) .append("planDeliveryTime", getPlanDeliveryTime()) + .append("supplierName", getSupplierName()) .append("deliveryCondition", getDeliveryCondition()) .append("deliveryAddress", getDeliveryAddress()) .append("deliveryName", getDeliveryName()) .append("deliveryNumber", getDeliveryNumber()) .append("createBy", getCreateBy()) .append("createTime", getCreateTime()) + .append("deliveryDate", getDeliveryDate()) .append("updateBy", getUpdateBy()) .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .append("warehouseOutOrderDetailList",getWarehouseOutOrderDetailList()) .toString(); } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseOutOrderDetail.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseOutOrderDetail.java new file mode 100644 index 00000000..777e0796 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/domain/WarehouseOutOrderDetail.java @@ -0,0 +1,663 @@ +package com.ruoyi.warehouse.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 出库单详情对象 warehouse_out_order_detail + * + * @author 刘晓旭 + * @date 2024-06-04 + */ +public class WarehouseOutOrderDetail extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 出库单详情Id */ + private Long outOrderDetailId; + + /** 出库单号 */ + @Excel(name = "出库单号") + private String outOrderCode; + + /** 关联生产订单号 */ + @Excel(name = "关联生产订单号") + private String makeNo; + + /** 出库状态 */ + @Excel(name = "出库状态") + private String warehouseOutStatus; + + /** 关联订单号(多种订单类型) */ + @Excel(name = "关联订单号", readConverterExp = "多=种订单类型") + private String relatedOrderCode; + + /** 关联销售订单编号 */ + @Excel(name = "关联销售订单编号") + private String salesOrderCode; + + /** 出库订单类型 */ + @Excel(name = "出库订单类型") + private String warehouseOrderType; + + /** 委外单号 */ + @Excel(name = "委外单号") + private String outMakeCode; + + /** 请购单号 */ + @Excel(name = "请购单号") + private String requisitioningCode; + + /** 出库类型 */ + @Excel(name = "出库类型") + private String warehouseOutType; + + /** 业务人员 */ + @Excel(name = "业务人员") + private String businessName; + + /** 售后人员 */ + @Excel(name = "售后人员") + private String aftersalesName; + + /** 仓库人员 */ + @Excel(name = "仓库人员") + private String warehouseName; + + /** 出货设备id */ + @Excel(name = "出货设备id") + private String shippingDeviceId; + + /** 料号 */ + @Excel(name = "料号") + private String materialNo; + + /** 物料名称 */ + @Excel(name = "物料名称") + private String materialName; + + /** 物料类型 */ + @Excel(name = "物料类型") + private String materialType; + + /** 物料图片地址 */ + @Excel(name = "物料图片地址") + private String materialPhotourl; + + /** 物料品牌 */ + @Excel(name = "物料品牌") + private String materialBrand; + + /** 物料单位 */ + @Excel(name = "物料单位") + private String materialUnit; + + /** 物料描述 */ + @Excel(name = "物料描述") + private String materialDescribe; + + /** 物料加工方式 */ + @Excel(name = "物料加工方式") + private String materialProcessMethod; + + /** 物料型号 */ + @Excel(name = "物料型号") + private String materialModel; + + /** 物料规格 */ + @Excel(name = "物料规格") + private String materialSpecification; + + /** 物料数合计 */ + @Excel(name = "物料数合计") + private Integer materialSum; + + /** 数量合计 */ + @Excel(name = "数量合计") + private Integer enterpriseSum; + + /** 生产订单数 */ + @Excel(name = "生产订单数") + private Integer makeNum; + + /** 出库数 */ + @Excel(name = "出库数") + private Integer outOrderSum; + + /** 已出库数 */ + @Excel(name = "已出库数") + private Integer hasOutOrderSum; + + /** 申请出库数 */ + @Excel(name = "申请出库数") + private Integer applyOutOrderSum; + + /** 准备出库数 */ + @Excel(name = "准备出库数") + private Integer prepareOutOrderSum; + + /** 实际出库数 */ + @Excel(name = "实际出库数") + private Integer actualOutOrderSum; + + /** 出库对象 */ + @Excel(name = "出库对象") + private String outOrderName; + + /** 出库时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date outOrderTime; + + /** 供应商ID */ + @Excel(name = "供应商ID") + private String supplierCode; + + /** 供应商名称 */ + @Excel(name = "供应商名称") + private String supplierName; + + /** 客户ID */ + @Excel(name = "客户ID") + private String customerId; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 计划交付时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "计划交付时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date planDeliveryTime; + + /** 送货日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "送货日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date deliveryDate; + + /** 交付条件 */ + @Excel(name = "交付条件") + private String deliveryCondition; + + /** 申请人 */ + @Excel(name = "申请人") + private String applyName; + + /** 收货地址 */ + @Excel(name = "收货地址") + private String deliveryAddress; + + /** 收货联系人 */ + @Excel(name = "收货联系人") + private String deliveryName; + + /** 收货电话 */ + @Excel(name = "收货电话") + private String deliveryNumber; + + public void setOutOrderDetailId(Long outOrderDetailId) + { + this.outOrderDetailId = outOrderDetailId; + } + + public Long getOutOrderDetailId() + { + return outOrderDetailId; + } + public void setOutOrderCode(String outOrderCode) + { + this.outOrderCode = outOrderCode; + } + + public String getOutOrderCode() + { + return outOrderCode; + } + public void setMakeNo(String makeNo) + { + this.makeNo = makeNo; + } + + public String getMakeNo() + { + return makeNo; + } + public void setWarehouseOutStatus(String warehouseOutStatus) + { + this.warehouseOutStatus = warehouseOutStatus; + } + + public String getWarehouseOutStatus() + { + return warehouseOutStatus; + } + public void setRelatedOrderCode(String relatedOrderCode) + { + this.relatedOrderCode = relatedOrderCode; + } + + public String getRelatedOrderCode() + { + return relatedOrderCode; + } + public void setSalesOrderCode(String salesOrderCode) + { + this.salesOrderCode = salesOrderCode; + } + + public String getSalesOrderCode() + { + return salesOrderCode; + } + public void setWarehouseOrderType(String warehouseOrderType) + { + this.warehouseOrderType = warehouseOrderType; + } + + public String getWarehouseOrderType() + { + return warehouseOrderType; + } + public void setOutMakeCode(String outMakeCode) + { + this.outMakeCode = outMakeCode; + } + + public String getOutMakeCode() + { + return outMakeCode; + } + public void setRequisitioningCode(String requisitioningCode) + { + this.requisitioningCode = requisitioningCode; + } + + public String getRequisitioningCode() + { + return requisitioningCode; + } + public void setWarehouseOutType(String warehouseOutType) + { + this.warehouseOutType = warehouseOutType; + } + + public String getWarehouseOutType() + { + return warehouseOutType; + } + public void setBusinessName(String businessName) + { + this.businessName = businessName; + } + + public String getBusinessName() + { + return businessName; + } + public void setAftersalesName(String aftersalesName) + { + this.aftersalesName = aftersalesName; + } + + public String getAftersalesName() + { + return aftersalesName; + } + public void setWarehouseName(String warehouseName) + { + this.warehouseName = warehouseName; + } + + public String getWarehouseName() + { + return warehouseName; + } + public void setShippingDeviceId(String shippingDeviceId) + { + this.shippingDeviceId = shippingDeviceId; + } + + public String getShippingDeviceId() + { + return shippingDeviceId; + } + public void setMaterialNo(String materialNo) + { + this.materialNo = materialNo; + } + + public String getMaterialNo() + { + return materialNo; + } + public void setMaterialName(String materialName) + { + this.materialName = materialName; + } + + public String getMaterialName() + { + return materialName; + } + public void setMaterialType(String materialType) + { + this.materialType = materialType; + } + + public String getMaterialType() + { + return materialType; + } + public void setMaterialPhotourl(String materialPhotourl) + { + this.materialPhotourl = materialPhotourl; + } + + public String getMaterialPhotourl() + { + return materialPhotourl; + } + public void setMaterialBrand(String materialBrand) + { + this.materialBrand = materialBrand; + } + + public String getMaterialBrand() + { + return materialBrand; + } + public void setMaterialUnit(String materialUnit) + { + this.materialUnit = materialUnit; + } + + public String getMaterialUnit() + { + return materialUnit; + } + public void setMaterialDescribe(String materialDescribe) + { + this.materialDescribe = materialDescribe; + } + + public String getMaterialDescribe() + { + return materialDescribe; + } + public void setMaterialProcessMethod(String materialProcessMethod) + { + this.materialProcessMethod = materialProcessMethod; + } + + public String getMaterialProcessMethod() + { + return materialProcessMethod; + } + public void setMaterialModel(String materialModel) + { + this.materialModel = materialModel; + } + + public String getMaterialModel() + { + return materialModel; + } + public void setMaterialSpecification(String materialSpecification) + { + this.materialSpecification = materialSpecification; + } + + public String getMaterialSpecification() + { + return materialSpecification; + } + public void setMaterialSum(Integer materialSum) + { + this.materialSum = materialSum; + } + + public Integer getMaterialSum() + { + return materialSum; + } + public void setEnterpriseSum(Integer enterpriseSum) + { + this.enterpriseSum = enterpriseSum; + } + + public Integer getEnterpriseSum() + { + return enterpriseSum; + } + public void setMakeNum(Integer makeNum) + { + this.makeNum = makeNum; + } + + public Integer getMakeNum() + { + return makeNum; + } + public void setOutOrderSum(Integer outOrderSum) + { + this.outOrderSum = outOrderSum; + } + + public Integer getOutOrderSum() + { + return outOrderSum; + } + public void setHasOutOrderSum(Integer hasOutOrderSum) + { + this.hasOutOrderSum = hasOutOrderSum; + } + + public Integer getHasOutOrderSum() + { + return hasOutOrderSum; + } + public void setApplyOutOrderSum(Integer applyOutOrderSum) + { + this.applyOutOrderSum = applyOutOrderSum; + } + + public Integer getApplyOutOrderSum() + { + return applyOutOrderSum; + } + public void setPrepareOutOrderSum(Integer prepareOutOrderSum) + { + this.prepareOutOrderSum = prepareOutOrderSum; + } + + public Integer getPrepareOutOrderSum() + { + return prepareOutOrderSum; + } + public void setActualOutOrderSum(Integer actualOutOrderSum) + { + this.actualOutOrderSum = actualOutOrderSum; + } + + public Integer getActualOutOrderSum() + { + return actualOutOrderSum; + } + public void setOutOrderName(String outOrderName) + { + this.outOrderName = outOrderName; + } + + public String getOutOrderName() + { + return outOrderName; + } + public void setOutOrderTime(Date outOrderTime) + { + this.outOrderTime = outOrderTime; + } + + public Date getOutOrderTime() + { + return outOrderTime; + } + public void setSupplierCode(String supplierCode) + { + this.supplierCode = supplierCode; + } + + public String getSupplierCode() + { + return supplierCode; + } + public void setSupplierName(String supplierName) + { + this.supplierName = supplierName; + } + + public String getSupplierName() + { + return supplierName; + } + public void setCustomerId(String customerId) + { + this.customerId = customerId; + } + + public String getCustomerId() + { + return customerId; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setPlanDeliveryTime(Date planDeliveryTime) + { + this.planDeliveryTime = planDeliveryTime; + } + + public Date getPlanDeliveryTime() + { + return planDeliveryTime; + } + public void setDeliveryDate(Date deliveryDate) + { + this.deliveryDate = deliveryDate; + } + + public Date getDeliveryDate() + { + return deliveryDate; + } + public void setDeliveryCondition(String deliveryCondition) + { + this.deliveryCondition = deliveryCondition; + } + + public String getDeliveryCondition() + { + return deliveryCondition; + } + public void setApplyName(String applyName) + { + this.applyName = applyName; + } + + public String getApplyName() + { + return applyName; + } + public void setDeliveryAddress(String deliveryAddress) + { + this.deliveryAddress = deliveryAddress; + } + + public String getDeliveryAddress() + { + return deliveryAddress; + } + public void setDeliveryName(String deliveryName) + { + this.deliveryName = deliveryName; + } + + public String getDeliveryName() + { + return deliveryName; + } + public void setDeliveryNumber(String deliveryNumber) + { + this.deliveryNumber = deliveryNumber; + } + + public String getDeliveryNumber() + { + return deliveryNumber; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("outOrderDetailId", getOutOrderDetailId()) + .append("outOrderCode", getOutOrderCode()) + .append("makeNo", getMakeNo()) + .append("warehouseOutStatus", getWarehouseOutStatus()) + .append("relatedOrderCode", getRelatedOrderCode()) + .append("salesOrderCode", getSalesOrderCode()) + .append("warehouseOrderType", getWarehouseOrderType()) + .append("outMakeCode", getOutMakeCode()) + .append("requisitioningCode", getRequisitioningCode()) + .append("warehouseOutType", getWarehouseOutType()) + .append("businessName", getBusinessName()) + .append("aftersalesName", getAftersalesName()) + .append("warehouseName", getWarehouseName()) + .append("shippingDeviceId", getShippingDeviceId()) + .append("materialNo", getMaterialNo()) + .append("materialName", getMaterialName()) + .append("materialType", getMaterialType()) + .append("materialPhotourl", getMaterialPhotourl()) + .append("materialBrand", getMaterialBrand()) + .append("materialUnit", getMaterialUnit()) + .append("materialDescribe", getMaterialDescribe()) + .append("materialProcessMethod", getMaterialProcessMethod()) + .append("materialModel", getMaterialModel()) + .append("materialSpecification", getMaterialSpecification()) + .append("materialSum", getMaterialSum()) + .append("enterpriseSum", getEnterpriseSum()) + .append("makeNum", getMakeNum()) + .append("outOrderSum", getOutOrderSum()) + .append("hasOutOrderSum", getHasOutOrderSum()) + .append("applyOutOrderSum", getApplyOutOrderSum()) + .append("prepareOutOrderSum", getPrepareOutOrderSum()) + .append("actualOutOrderSum", getActualOutOrderSum()) + .append("outOrderName", getOutOrderName()) + .append("outOrderTime", getOutOrderTime()) + .append("supplierCode", getSupplierCode()) + .append("supplierName", getSupplierName()) + .append("customerId", getCustomerId()) + .append("customerName", getCustomerName()) + .append("planDeliveryTime", getPlanDeliveryTime()) + .append("deliveryDate", getDeliveryDate()) + .append("deliveryCondition", getDeliveryCondition()) + .append("applyName", getApplyName()) + .append("deliveryAddress", getDeliveryAddress()) + .append("deliveryName", getDeliveryName()) + .append("deliveryNumber", getDeliveryNumber()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderDetailMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderDetailMapper.java new file mode 100644 index 00000000..22396f9c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderDetailMapper.java @@ -0,0 +1,84 @@ +package com.ruoyi.warehouse.mapper; + +import java.util.List; + +import com.ruoyi.warehouse.domain.WarehouseOutOrder; +import com.ruoyi.warehouse.domain.WarehouseOutOrderDetail; + +/** + * 出库单详情Mapper接口 + * + * @author 刘晓旭 + * @date 2024-06-04 + */ +public interface WarehouseOutOrderDetailMapper +{ + /** + * 查询出库单详情 + * + * @param outOrderDetailId 出库单详情ID + * @return 出库单详情 + */ + public WarehouseOutOrderDetail selectWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 查询出库单详情列表 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 出库单详情集合 + */ + public List selectWarehouseOutOrderDetailList(WarehouseOutOrderDetail warehouseOutOrderDetail); + + /** + * 新增出库单详情 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 结果 + */ + public int insertWarehouseOutOrderDetail(WarehouseOutOrderDetail warehouseOutOrderDetail); + + /** + * 修改出库单详情 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 结果 + */ + public int updateWarehouseOutOrderDetail(WarehouseOutOrderDetail warehouseOutOrderDetail); + + /** + * 删除出库单详情 + * + * @param outOrderDetailId 出库单详情ID + * @return 结果 + */ + public int deleteWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 批量删除出库单详情 + * + * @param outOrderDetailIds 需要删除的数据ID + * @return 结果 + */ + public int deleteWarehouseOutOrderDetailByIds(String[] outOrderDetailIds); + + /** + * 作废出库单详情 + * + * @param outOrderDetailId 出库单详情ID + * @return 结果 + */ + public int cancelWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 恢复出库单详情 + * + * @param outOrderDetailId 出库单详情ID + * @return 结果 + */ + public int restoreWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 销售单-准备物料 物料相关信息 + */ + List selectOutOrderDetailListByCode(String outOrderCode); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/WarehouseOutOrderMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java similarity index 58% rename from ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/WarehouseOutOrderMapper.java rename to ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java index 9600a657..33fd32fc 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/WarehouseOutOrderMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/mapper/WarehouseOutOrderMapper.java @@ -1,58 +1,58 @@ -package com.ruoyi.aftersales.mapper; +package com.ruoyi.warehouse.mapper; import java.util.List; -import com.ruoyi.aftersales.domain.WarehouseOutOrder; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; /** - * 出库单Mapper接口 + * 仓库出库单Mapper接口 * * @author 刘晓旭 - * @date 2024-04-23 + * @date 2024-06-04 */ public interface WarehouseOutOrderMapper { /** - * 查询出库单 + * 查询仓库出库单 * - * @param outOrderId 出库单ID - * @return 出库单 + * @param outOrderId 仓库出库单ID + * @return 仓库出库单 */ public WarehouseOutOrder selectWarehouseOutOrderById(Long outOrderId); /** - * 查询出库单列表 + * 查询仓库出库单列表 * - * @param warehouseOutOrder 出库单 - * @return 出库单集合 + * @param warehouseOutOrder 仓库出库单 + * @return 仓库出库单集合 */ public List selectWarehouseOutOrderList(WarehouseOutOrder warehouseOutOrder); /** - * 新增出库单 + * 新增仓库出库单 * - * @param warehouseOutOrder 出库单 + * @param warehouseOutOrder 仓库出库单 * @return 结果 */ public int insertWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder); /** - * 修改出库单 + * 修改仓库出库单 * - * @param warehouseOutOrder 出库单 + * @param warehouseOutOrder 仓库出库单 * @return 结果 */ public int updateWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder); /** - * 删除出库单 + * 删除仓库出库单 * - * @param outOrderId 出库单ID + * @param outOrderId 仓库出库单ID * @return 结果 */ public int deleteWarehouseOutOrderById(Long outOrderId); /** - * 批量删除出库单 + * 批量删除仓库出库单 * * @param outOrderIds 需要删除的数据ID * @return 结果 @@ -60,17 +60,17 @@ public interface WarehouseOutOrderMapper public int deleteWarehouseOutOrderByIds(String[] outOrderIds); /** - * 作废出库单 + * 作废仓库出库单 * - * @param outOrderId 出库单ID + * @param outOrderId 仓库出库单ID * @return 结果 */ public int cancelWarehouseOutOrderById(Long outOrderId); /** - * 恢复出库单 + * 恢复仓库出库单 * - * @param outOrderId 出库单ID + * @param outOrderId 仓库出库单ID * @return 结果 */ public int restoreWarehouseOutOrderById(Long outOrderId); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseOutOrderDetailService.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseOutOrderDetailService.java new file mode 100644 index 00000000..d22b4a00 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseOutOrderDetailService.java @@ -0,0 +1,82 @@ +package com.ruoyi.warehouse.service; + +import java.util.List; + +import com.ruoyi.warehouse.domain.WarehouseOutOrder; +import com.ruoyi.warehouse.domain.WarehouseOutOrderDetail; + +/** + * 出库单详情Service接口 + * + * @author 刘晓旭 + * @date 2024-06-04 + */ +public interface IWarehouseOutOrderDetailService +{ + /** + * 查询出库单详情 + * + * @param outOrderDetailId 出库单详情ID + * @return 出库单详情 + */ + public WarehouseOutOrderDetail selectWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 查询出库单详情列表 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 出库单详情集合 + */ + public List selectWarehouseOutOrderDetailList(WarehouseOutOrderDetail warehouseOutOrderDetail); + + /** + * 新增出库单详情 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 结果 + */ + public int insertWarehouseOutOrderDetail(WarehouseOutOrderDetail warehouseOutOrderDetail); + + /** + * 修改出库单详情 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 结果 + */ + public int updateWarehouseOutOrderDetail(WarehouseOutOrderDetail warehouseOutOrderDetail); + + /** + * 批量删除出库单详情 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWarehouseOutOrderDetailByIds(String ids); + + /** + * 删除出库单详情信息 + * + * @param outOrderDetailId 出库单详情ID + * @return 结果 + */ + public int deleteWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 作废出库单详情 + * @param outOrderDetailId 出库单详情ID + * @return + */ + int cancelWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 恢复出库单详情 + * @param outOrderDetailId 出库单详情ID + * @return + */ + int restoreWarehouseOutOrderDetailById(Long outOrderDetailId); + + /** + * 销售单-准备物料 物料相关信息 + */ + List selectOutOrderDetailListByCode(WarehouseOutOrder warehouseOutOrder); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseOutOrderService.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseOutOrderService.java new file mode 100644 index 00000000..99c54b75 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/IWarehouseOutOrderService.java @@ -0,0 +1,80 @@ +package com.ruoyi.warehouse.service; + +import java.util.List; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; + +/** + * 仓库出库单Service接口 + * + * @author 刘晓旭 + * @date 2024-06-04 + */ +public interface IWarehouseOutOrderService +{ + /** + * 查询仓库出库单 + * + * @param outOrderId 仓库出库单ID + * @return 仓库出库单 + */ + public WarehouseOutOrder selectWarehouseOutOrderById(Long outOrderId); + + /** + * 查询仓库出库单列表 + * + * @param warehouseOutOrder 仓库出库单 + * @return 仓库出库单集合 + */ + public List selectWarehouseOutOrderList(WarehouseOutOrder warehouseOutOrder); + + /** + * 新增仓库出库单 + * + * @param warehouseOutOrder 仓库出库单 + * @return 结果 + */ + public int insertWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder); + + /** + * 修改仓库出库单 + * + * @param warehouseOutOrder 仓库出库单 + * @return 结果 + */ + public int updateWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder); + + /** + * 批量删除仓库出库单 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteWarehouseOutOrderByIds(String ids); + + /** + * 删除仓库出库单信息 + * + * @param outOrderId 仓库出库单ID + * @return 结果 + */ + public int deleteWarehouseOutOrderById(Long outOrderId); + + /** + * 作废仓库出库单 + * @param outOrderId 仓库出库单ID + * @return + */ + int cancelWarehouseOutOrderById(Long outOrderId); + + /** + * 恢复仓库出库单 + * @param outOrderId 仓库出库单ID + * @return + */ + int restoreWarehouseOutOrderById(Long outOrderId); + + /** + * 修改保存销售单-准备物料 + */ + int updatePrepareMaterial(WarehouseOutOrder warehouseOutOrder); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderDetailServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderDetailServiceImpl.java new file mode 100644 index 00000000..051fcf33 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderDetailServiceImpl.java @@ -0,0 +1,143 @@ +package com.ruoyi.warehouse.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.warehouse.mapper.WarehouseOutOrderDetailMapper; +import com.ruoyi.warehouse.domain.WarehouseOutOrderDetail; +import com.ruoyi.warehouse.service.IWarehouseOutOrderDetailService; +import com.ruoyi.common.core.text.Convert; + +/** + * 出库单详情Service业务层处理 + * + * @author 刘晓旭 + * @date 2024-06-04 + */ +@Service +@Slf4j +public class WarehouseOutOrderDetailServiceImpl implements IWarehouseOutOrderDetailService +{ + @Autowired + private WarehouseOutOrderDetailMapper warehouseOutOrderDetailMapper; + + /** + * 查询出库单详情 + * + * @param outOrderDetailId 出库单详情ID + * @return 出库单详情 + */ + @Override + public WarehouseOutOrderDetail selectWarehouseOutOrderDetailById(Long outOrderDetailId) + { + return warehouseOutOrderDetailMapper.selectWarehouseOutOrderDetailById(outOrderDetailId); + } + + /** + * 查询出库单详情列表 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 出库单详情 + */ + @Override + public List selectWarehouseOutOrderDetailList(WarehouseOutOrderDetail warehouseOutOrderDetail) + { + return warehouseOutOrderDetailMapper.selectWarehouseOutOrderDetailList(warehouseOutOrderDetail); + } + + /** + * 新增出库单详情 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 结果 + */ + @Override + public int insertWarehouseOutOrderDetail(WarehouseOutOrderDetail warehouseOutOrderDetail) + { + String loginName = ShiroUtils.getLoginName(); + warehouseOutOrderDetail.setCreateBy(loginName); + warehouseOutOrderDetail.setCreateTime(DateUtils.getNowDate()); + return warehouseOutOrderDetailMapper.insertWarehouseOutOrderDetail(warehouseOutOrderDetail); + } + + /** + * 修改出库单详情 + * + * @param warehouseOutOrderDetail 出库单详情 + * @return 结果 + */ + @Override + public int updateWarehouseOutOrderDetail(WarehouseOutOrderDetail warehouseOutOrderDetail) + { + String loginName = ShiroUtils.getLoginName(); + warehouseOutOrderDetail.setUpdateBy(loginName); + warehouseOutOrderDetail.setUpdateTime(DateUtils.getNowDate()); + return warehouseOutOrderDetailMapper.updateWarehouseOutOrderDetail(warehouseOutOrderDetail); + } + + /** + * 删除出库单详情对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWarehouseOutOrderDetailByIds(String ids) + { + return warehouseOutOrderDetailMapper.deleteWarehouseOutOrderDetailByIds(Convert.toStrArray(ids)); + } + + /** + * 删除出库单详情信息 + * + * @param outOrderDetailId 出库单详情ID + * @return 结果 + */ + @Override + public int deleteWarehouseOutOrderDetailById(Long outOrderDetailId) + { + return warehouseOutOrderDetailMapper.deleteWarehouseOutOrderDetailById(outOrderDetailId); + } + + /** + * 作废出库单详情 + * + * @param outOrderDetailId 出库单详情ID + * @return 结果 + */ + @Override + public int cancelWarehouseOutOrderDetailById(Long outOrderDetailId) + { + return warehouseOutOrderDetailMapper.cancelWarehouseOutOrderDetailById(outOrderDetailId); + } + + /** + * 恢复出库单详情信息 + * + * @param outOrderDetailId 出库单详情ID + * @return 结果 + */ + @Override + public int restoreWarehouseOutOrderDetailById(Long outOrderDetailId) + { + return warehouseOutOrderDetailMapper.restoreWarehouseOutOrderDetailById(outOrderDetailId); + } + + /** + * 销售单-准备物料 物料相关信息 + */ + @Override + public List selectOutOrderDetailListByCode(WarehouseOutOrder warehouseOutOrder) { + + String outOrderCode = warehouseOutOrder.getOutOrderCode(); + if (StringUtils.isEmpty(outOrderCode)){ + log.warn("销售单-准备物料,出库单号为空:{}",outOrderCode); + } + return warehouseOutOrderDetailMapper.selectOutOrderDetailListByCode(outOrderCode); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderServiceImpl.java new file mode 100644 index 00000000..99caf11a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/warehouse/service/impl/WarehouseOutOrderServiceImpl.java @@ -0,0 +1,153 @@ +package com.ruoyi.warehouse.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import com.ruoyi.common.utils.StringUtils; +import com.ruoyi.warehouse.domain.WarehouseOutOrderDetail; +import com.ruoyi.warehouse.mapper.WarehouseOutOrderDetailMapper; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.warehouse.mapper.WarehouseOutOrderMapper; +import com.ruoyi.warehouse.domain.WarehouseOutOrder; +import com.ruoyi.warehouse.service.IWarehouseOutOrderService; +import com.ruoyi.common.core.text.Convert; + +/** + * 仓库出库单Service业务层处理 + * + * @author 刘晓旭 + * @date 2024-06-04 + */ +@Service +@Slf4j +public class WarehouseOutOrderServiceImpl implements IWarehouseOutOrderService +{ + @Autowired + private WarehouseOutOrderMapper warehouseOutOrderMapper; + + @Autowired + private WarehouseOutOrderDetailMapper outOrderDetailMapper; + + /** + * 查询仓库出库单 + * + * @param outOrderId 仓库出库单ID + * @return 仓库出库单 + */ + @Override + public WarehouseOutOrder selectWarehouseOutOrderById(Long outOrderId) + { + return warehouseOutOrderMapper.selectWarehouseOutOrderById(outOrderId); + } + + /** + * 查询仓库出库单列表 + * + * @param warehouseOutOrder 仓库出库单 + * @return 仓库出库单 + */ + @Override + public List selectWarehouseOutOrderList(WarehouseOutOrder warehouseOutOrder) + { + return warehouseOutOrderMapper.selectWarehouseOutOrderList(warehouseOutOrder); + } + + /** + * 新增仓库出库单 + * + * @param warehouseOutOrder 仓库出库单 + * @return 结果 + */ + @Override + public int insertWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder) + { + String loginName = ShiroUtils.getLoginName(); + warehouseOutOrder.setCreateBy(loginName); + warehouseOutOrder.setCreateTime(DateUtils.getNowDate()); + return warehouseOutOrderMapper.insertWarehouseOutOrder(warehouseOutOrder); + } + + /** + * 修改仓库出库单 + * + * @param warehouseOutOrder 仓库出库单 + * @return 结果 + */ + @Override + public int updateWarehouseOutOrder(WarehouseOutOrder warehouseOutOrder) + { + String loginName = ShiroUtils.getLoginName(); + warehouseOutOrder.setUpdateBy(loginName); + warehouseOutOrder.setUpdateTime(DateUtils.getNowDate()); + return warehouseOutOrderMapper.updateWarehouseOutOrder(warehouseOutOrder); + } + + /** + * 删除仓库出库单对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteWarehouseOutOrderByIds(String ids) + { + return warehouseOutOrderMapper.deleteWarehouseOutOrderByIds(Convert.toStrArray(ids)); + } + + /** + * 删除仓库出库单信息 + * + * @param outOrderId 仓库出库单ID + * @return 结果 + */ + @Override + public int deleteWarehouseOutOrderById(Long outOrderId) + { + return warehouseOutOrderMapper.deleteWarehouseOutOrderById(outOrderId); + } + + /** + * 作废仓库出库单 + * + * @param outOrderId 仓库出库单ID + * @return 结果 + */ + @Override + public int cancelWarehouseOutOrderById(Long outOrderId) + { + return warehouseOutOrderMapper.cancelWarehouseOutOrderById(outOrderId); + } + + /** + * 恢复仓库出库单信息 + * + * @param outOrderId 仓库出库单ID + * @return 结果 + */ + @Override + public int restoreWarehouseOutOrderById(Long outOrderId) + { + return warehouseOutOrderMapper.restoreWarehouseOutOrderById(outOrderId); + } + + /** + * 修改保存销售单-准备物料 + * */ + @Override + public int updatePrepareMaterial(WarehouseOutOrder warehouseOutOrder) { + + List warehouseOutOrderDetailList = warehouseOutOrder.getWarehouseOutOrderDetailList(); + if (StringUtils.isEmpty(warehouseOutOrderDetailList)){ + log.warn("保存销售单-准备物料,物料列表信息为空:{}",warehouseOutOrder); + } + int updateRows = 0; + for (WarehouseOutOrderDetail warehouseOutOrderDetail : warehouseOutOrderDetailList) { + + //更新数据库记录 + updateRows += outOrderDetailMapper.updateWarehouseOutOrderDetail(warehouseOutOrderDetail); + } + return updateRows; + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/quality/QualityRefundsExchangesDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/quality/QualityRefundsExchangesDetailMapper.xml index 18a547ba..63cdbc5c 100644 --- a/ruoyi-admin/src/main/resources/mapper/quality/QualityRefundsExchangesDetailMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/quality/QualityRefundsExchangesDetailMapper.xml @@ -10,6 +10,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + @@ -41,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select refunds_exchanges_detail_id, refunds_exchanges_code, refunds_exchanges_status, quality_warehouse_status, quality_purchase_status, related_order_code, in_storage_code, quality_return_node, material_total, num_total, supplier_code, supplier_name, customer_contact, contact_number, supplier_address, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, refunds_exchanges_num, quality_unqualified_num ,delivery_inspection_time, inspection_time ,quality_remark, remark, create_by, create_time, update_by, update_time from quality_refunds_exchanges_detail + select refunds_exchanges_detail_id, refunds_exchanges_code, refunds_exchanges_status, quality_warehouse_status, quality_purchase_status, quality_delivery_status , related_order_code, in_storage_code, quality_return_node, material_total, num_total, supplier_code, supplier_name, customer_contact, contact_number, supplier_address, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, refunds_exchanges_num, quality_unqualified_num ,delivery_inspection_time, inspection_time ,quality_remark, remark, create_by, create_time, update_by, update_time from quality_refunds_exchanges_detail @@ -55,6 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" refunds_exchanges_status, quality_warehouse_status, quality_purchase_status, + quality_delivery_status, related_order_code, in_storage_code, warehouse_storage_type, @@ -74,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{refundsExchangesStatus}, #{qualityWarehouseStatus}, #{qualityPurchaseStatus}, + #{qualityDeliveryStatus}, #{relatedOrderCode}, #{inStorageCode}, #{warehouseStorageType}, @@ -97,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" refunds_exchanges_status = #{refundsExchangesStatus}, quality_warehouse_status = #{qualityWarehouseStatus}, quality_purchase_status = #{qualityPurchaseStatus}, + quality_delivery_status = #{qualityDeliveryStatus}, related_order_code = #{relatedOrderCode}, in_storage_code = #{inStorageCode}, warehouse_storage_type = #{warehouseStorageType}, diff --git a/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderDetailMapper.xml new file mode 100644 index 00000000..2b4b0fcf --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderDetailMapper.xml @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select out_order_detail_id, out_order_code, make_no, warehouse_out_status, related_order_code, sales_order_code, warehouse_order_type, out_make_code, requisitioning_code, warehouse_out_type, business_name, aftersales_name, warehouse_name, shipping_device_id, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, material_model, material_specification, material_sum, enterprise_sum, make_num, out_order_sum, has_out_order_sum, apply_out_order_sum, prepare_out_order_sum, actual_out_order_sum, out_order_name, out_order_time, supplier_code, supplier_name, customer_id, customer_name, plan_delivery_time, delivery_date, delivery_condition, apply_name, delivery_address, delivery_name, delivery_number, remark, create_by, create_time, update_by, update_time from warehouse_out_order_detail + + + + + + + + + + + insert into warehouse_out_order_detail + + out_order_code, + make_no, + warehouse_out_status, + related_order_code, + sales_order_code, + warehouse_order_type, + out_make_code, + requisitioning_code, + warehouse_out_type, + business_name, + aftersales_name, + warehouse_name, + shipping_device_id, + material_no, + material_name, + material_type, + material_photoUrl, + material_brand, + material_unit, + material_describe, + material_process_method, + material_model, + material_specification, + material_sum, + enterprise_sum, + make_num, + out_order_sum, + has_out_order_sum, + apply_out_order_sum, + prepare_out_order_sum, + actual_out_order_sum, + out_order_name, + out_order_time, + supplier_code, + supplier_name, + customer_id, + customer_name, + plan_delivery_time, + delivery_date, + delivery_condition, + apply_name, + delivery_address, + delivery_name, + delivery_number, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{outOrderCode}, + #{makeNo}, + #{warehouseOutStatus}, + #{relatedOrderCode}, + #{salesOrderCode}, + #{warehouseOrderType}, + #{outMakeCode}, + #{requisitioningCode}, + #{warehouseOutType}, + #{businessName}, + #{aftersalesName}, + #{warehouseName}, + #{shippingDeviceId}, + #{materialNo}, + #{materialName}, + #{materialType}, + #{materialPhotourl}, + #{materialBrand}, + #{materialUnit}, + #{materialDescribe}, + #{materialProcessMethod}, + #{materialModel}, + #{materialSpecification}, + #{materialSum}, + #{enterpriseSum}, + #{makeNum}, + #{outOrderSum}, + #{hasOutOrderSum}, + #{applyOutOrderSum}, + #{prepareOutOrderSum}, + #{actualOutOrderSum}, + #{outOrderName}, + #{outOrderTime}, + #{supplierCode}, + #{supplierName}, + #{customerId}, + #{customerName}, + #{planDeliveryTime}, + #{deliveryDate}, + #{deliveryCondition}, + #{applyName}, + #{deliveryAddress}, + #{deliveryName}, + #{deliveryNumber}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update warehouse_out_order_detail + + out_order_code = #{outOrderCode}, + make_no = #{makeNo}, + warehouse_out_status = #{warehouseOutStatus}, + related_order_code = #{relatedOrderCode}, + sales_order_code = #{salesOrderCode}, + warehouse_order_type = #{warehouseOrderType}, + out_make_code = #{outMakeCode}, + requisitioning_code = #{requisitioningCode}, + warehouse_out_type = #{warehouseOutType}, + business_name = #{businessName}, + aftersales_name = #{aftersalesName}, + warehouse_name = #{warehouseName}, + shipping_device_id = #{shippingDeviceId}, + material_no = #{materialNo}, + material_name = #{materialName}, + material_type = #{materialType}, + material_photoUrl = #{materialPhotourl}, + material_brand = #{materialBrand}, + material_unit = #{materialUnit}, + material_describe = #{materialDescribe}, + material_process_method = #{materialProcessMethod}, + material_model = #{materialModel}, + material_specification = #{materialSpecification}, + material_sum = #{materialSum}, + enterprise_sum = #{enterpriseSum}, + make_num = #{makeNum}, + out_order_sum = #{outOrderSum}, + has_out_order_sum = #{hasOutOrderSum}, + apply_out_order_sum = #{applyOutOrderSum}, + prepare_out_order_sum = #{prepareOutOrderSum}, + actual_out_order_sum = #{actualOutOrderSum}, + out_order_name = #{outOrderName}, + out_order_time = #{outOrderTime}, + supplier_code = #{supplierCode}, + supplier_name = #{supplierName}, + customer_id = #{customerId}, + customer_name = #{customerName}, + plan_delivery_time = #{planDeliveryTime}, + delivery_date = #{deliveryDate}, + delivery_condition = #{deliveryCondition}, + apply_name = #{applyName}, + delivery_address = #{deliveryAddress}, + delivery_name = #{deliveryName}, + delivery_number = #{deliveryNumber}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where out_order_detail_id = #{outOrderDetailId} + + + + delete from warehouse_out_order_detail where out_order_detail_id = #{outOrderDetailId} + + + + delete from warehouse_out_order_detail where out_order_detail_id in + + #{outOrderDetailId} + + + + + update warehouse_out_order_detail set del_flag = '1' where out_order_detail_id = #{outOrderDetailId} + + + + update warehouse_out_order_detail set del_flag = '0' where out_order_detail_id = #{outOrderDetailId} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/aftersales/WarehouseOutOrderMapper.xml b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml similarity index 82% rename from ruoyi-admin/src/main/resources/mapper/aftersales/WarehouseOutOrderMapper.xml rename to ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml index 391d1506..ec7f8d83 100644 --- a/ruoyi-admin/src/main/resources/mapper/aftersales/WarehouseOutOrderMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/warehouse/WarehouseOutOrderMapper.xml @@ -2,7 +2,7 @@ - + @@ -12,7 +12,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + @@ -27,19 +29,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + - select out_order_id, out_order_code, make_no, warehouse_out_status, related_order_code, sales_order_code, warehouse_order_type, warehouse_out_type, business_name, aftersales_name, warehouse_name, shipping_device_id, material_no, material_name, material_sum, enterprise_sum, out_order_sum, out_order_name, out_order_time, customer_id, customer_name, apply_name, plan_delivery_time, delivery_condition, delivery_address, delivery_name, delivery_number, create_by, create_time, update_by, update_time from warehouse_out_order + select out_order_id, out_order_code, make_no, warehouse_out_status, related_order_code, sales_order_code, warehouse_order_type, out_make_code, warehouse_out_type, requisitioning_code, business_name, aftersales_name, warehouse_name, shipping_device_id, material_no, material_name, material_sum, enterprise_sum, out_order_sum, out_order_name, out_order_time, customer_id, customer_name, apply_name, supplier_code, plan_delivery_time, supplier_name, delivery_condition, delivery_address, delivery_name, delivery_number, create_by, create_time, delivery_date, update_by, update_time, remark from warehouse_out_order @@ -69,7 +78,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" related_order_code, sales_order_code, warehouse_order_type, + out_make_code, warehouse_out_type, + requisitioning_code, business_name, aftersales_name, warehouse_name, @@ -84,15 +95,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" customer_id, customer_name, apply_name, + supplier_code, plan_delivery_time, + supplier_name, delivery_condition, delivery_address, delivery_name, delivery_number, create_by, create_time, + delivery_date, update_by, update_time, + remark, #{outOrderCode}, @@ -101,7 +116,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{relatedOrderCode}, #{salesOrderCode}, #{warehouseOrderType}, + #{outMakeCode}, #{warehouseOutType}, + #{requisitioningCode}, #{businessName}, #{aftersalesName}, #{warehouseName}, @@ -116,15 +133,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{customerId}, #{customerName}, #{applyName}, + #{supplierCode}, #{planDeliveryTime}, + #{supplierName}, #{deliveryCondition}, #{deliveryAddress}, #{deliveryName}, #{deliveryNumber}, #{createBy}, #{createTime}, + #{deliveryDate}, #{updateBy}, #{updateTime}, + #{remark}, @@ -137,7 +158,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" related_order_code = #{relatedOrderCode}, sales_order_code = #{salesOrderCode}, warehouse_order_type = #{warehouseOrderType}, + out_make_code = #{outMakeCode}, warehouse_out_type = #{warehouseOutType}, + requisitioning_code = #{requisitioningCode}, business_name = #{businessName}, aftersales_name = #{aftersalesName}, warehouse_name = #{warehouseName}, @@ -152,15 +175,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" customer_id = #{customerId}, customer_name = #{customerName}, apply_name = #{applyName}, + supplier_code = #{supplierCode}, plan_delivery_time = #{planDeliveryTime}, + supplier_name = #{supplierName}, delivery_condition = #{deliveryCondition}, delivery_address = #{deliveryAddress}, delivery_name = #{deliveryName}, delivery_number = #{deliveryNumber}, create_by = #{createBy}, create_time = #{createTime}, + delivery_date = #{deliveryDate}, update_by = #{updateBy}, update_time = #{updateTime}, + remark = #{remark}, where out_order_id = #{outOrderId} diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/afterConfirmDelivery.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/afterConfirmDelivery.html new file mode 100644 index 00000000..6c64b32a --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/afterConfirmDelivery.html @@ -0,0 +1,275 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/beforeConfirmDelivery.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/beforeConfirmDelivery.html new file mode 100644 index 00000000..beb720a7 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/beforeConfirmDelivery.html @@ -0,0 +1,275 @@ + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html index c6865a8c..71880fcc 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/refundsExchanges.html @@ -87,6 +87,9 @@ var beforeHasConfirmSupplierFlag = [[${@permission.hasPermi('quality:refundsExchanges:beforeHasConfirmSupplier')}]]; var afterNoConfirmSupplierFlag = [[${@permission.hasPermi('quality:refundsExchanges:afterNoConfirmSupplier')}]]; + var beforeConfirmDeliveryFlag = [[${@permission.hasPermi('quality:refundsExchanges:beforeConfirmDelivery')}]]; + var afterConfirmDeliveryFlag = [[${@permission.hasPermi('quality:refundsExchanges:afterConfirmDelivery')}]]; + var refundsExchangesStatusDatas = [[${@dict.getType('refunds_exchanges_status')}]]; var qualityWarehouseStatusDatas = [[${@dict.getType('quality_warehouse_status')}]]; var qualityPurchaseStatusDatas = [[${@dict.getType('quality_purchase_status')}]]; @@ -204,13 +207,18 @@ /*入库前退换货-确认供应商-已有供应商*/ if (row.qualityReturnNode == 0){ actions.push('确认供应商 '); + actions.push('确认收货 '); + } /*入库后退货-确认供应商-没有供应商*/ if (row.qualityReturnNode == 1){ actions.push('确认供应商 '); + actions.push('确认收货 '); + } + return actions.join(''); } }] @@ -270,6 +278,19 @@ $.modal.open("确认供应商",url); } + + /*入库前退货-确认收货*/ + function beforeConfirmDelivery(refundsExchangesId){ + var url = ctx + 'quality/refundsExchanges/beforeConfirmDelivery/' + refundsExchangesId; + $.modal.open("确认收货",url); + } + + /*入库后退货-确认收货*/ + function afterConfirmDelivery(refundsExchangesId){ + var url = ctx + 'quality/refundsExchanges/afterConfirmDelivery/' + refundsExchangesId; + $.modal.open("确认收货",url); + } + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html index f8125ea6..10fb5961 100644 --- a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/returnAfterStorageDetail.html @@ -1,7 +1,7 @@ - + diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/add.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/add.html new file mode 100644 index 00000000..6568aa39 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/add.html @@ -0,0 +1,252 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/edit.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/edit.html new file mode 100644 index 00000000..3bcb1b00 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/edit.html @@ -0,0 +1,253 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/prepareMaterial.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/prepareMaterial.html new file mode 100644 index 00000000..b863d282 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/prepareMaterial.html @@ -0,0 +1,226 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/warehouseOutOrder.html b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/warehouseOutOrder.html new file mode 100644 index 00000000..f1ffab32 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/warehouse/warehouseOutOrder/warehouseOutOrder.html @@ -0,0 +1,192 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file