diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/BasProduct/service/impl/BasProductServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/BasProduct/service/impl/BasProductServiceImpl.java index 1f707f7..f7a50d2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/BasProduct/service/impl/BasProductServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/BasProduct/service/impl/BasProductServiceImpl.java @@ -74,7 +74,7 @@ public class BasProductServiceImpl implements IBasProductService BasProduct basProduct1 = basProductMapper.selectBasProductByProductId(basProduct.getProductId()); if(basProduct1 != null){ - return 0; + throw new RuntimeException("物料编号已存在"); } basProduct.setProductGuid(basProduct.getProductId()); basProduct.setSpare3(DateUtil.format(new Date(), "yyyy-MM-dd HH:mm:ss")); @@ -100,8 +100,6 @@ public class BasProductServiceImpl implements IBasProductService if (CollUtil.isNotEmpty(basProducts)){ throw new RuntimeException("物料编号已存在"); } - - return basProductMapper.updateBasProduct(basProduct); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/domain/BasRoadway.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/domain/BasRoadway.java index f716dbc..c917f75 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/domain/BasRoadway.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/domain/BasRoadway.java @@ -33,21 +33,31 @@ public class BasRoadway extends BaseEntity private String deviceId; /** 一层入库锁 */ - @Excel(name = "一层入库锁" ,dictType = "roadway_lock") + @Excel(name = "北入库锁" ,dictType = "roadway_lock") private String inLocked; /** 一层出库锁 */ - @Excel(name = "一层出库锁",dictType = "roadway_lock") + @Excel(name = "北出库锁",dictType = "roadway_lock") private String outLocked; /** 二层入库锁 */ - @Excel(name = "二层入库锁",dictType = "roadway_lock") + @Excel(name = "南入库锁",dictType = "roadway_lock") private String inLocked2; /** 二层出库锁 */ - @Excel(name = "二层出库锁",dictType = "roadway_lock") + @Excel(name = "南出库锁",dictType = "roadway_lock") private String outLocked2; + private String updateId; + + public String getUpdateId() { + return updateId; + } + + public void setUpdateId(String updateId) { + this.updateId = updateId; + } + public void setId(String id) { this.id = id; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/mapper/BasRoadwayMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/mapper/BasRoadwayMapper.java index a83399b..75a0e61 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/mapper/BasRoadwayMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/mapper/BasRoadwayMapper.java @@ -18,6 +18,7 @@ public interface BasRoadwayMapper * @return 巷道管理 */ public BasRoadway selectBasRoadwayById(String id); + public BasRoadway selectBasRoadwayByRoadwayId(String roadwayId); /** * 查询巷道管理列表 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/service/impl/BasRoadwayServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/service/impl/BasRoadwayServiceImpl.java index b4943fc..2b8a3ca 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/service/impl/BasRoadwayServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/roadway/service/impl/BasRoadwayServiceImpl.java @@ -1,6 +1,9 @@ package com.ruoyi.bas.roadway.service.impl; import java.util.List; +import java.util.UUID; + +import cn.hutool.core.collection.CollUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.bas.roadway.mapper.BasRoadwayMapper; @@ -52,6 +55,12 @@ public class BasRoadwayServiceImpl implements IBasRoadwayService @Override public int insertBasRoadway(BasRoadway basRoadway) { + BasRoadway basRoadway1 = basRoadwayMapper.selectBasRoadwayByRoadwayId(basRoadway.getRoadwayId()); + if(basRoadway1 != null){ + throw new RuntimeException("巷道编号已存在"); + } + basRoadway.setId(UUID.randomUUID().toString()); + basRoadway.setWarehouseId("01"); return basRoadwayMapper.insertBasRoadway(basRoadway); } @@ -64,6 +73,13 @@ public class BasRoadwayServiceImpl implements IBasRoadwayService @Override public int updateBasRoadway(BasRoadway basRoadway) { + BasRoadway basRoadway1 = new BasRoadway(); + basRoadway1.setUpdateId(basRoadway.getId()); + basRoadway1.setRoadwayId(basRoadway.getRoadwayId()); + List basRoadways = basRoadwayMapper.selectBasRoadwayList(basRoadway1); + if(CollUtil.isNotEmpty(basRoadways)){ + throw new RuntimeException("巷道编号已存在"); + } return basRoadwayMapper.updateBasRoadway(basRoadway); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/controller/BasTraycodeController.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/controller/BasTraycodeController.java index 2860e5f..78f9860 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/controller/BasTraycodeController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/controller/BasTraycodeController.java @@ -71,6 +71,7 @@ public class BasTraycodeController extends BaseController @PostMapping public AjaxResult add(@RequestBody BasTraycode basTraycode) { + return toAjax(basTraycodeService.insertBasTraycode(basTraycode)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/mapper/BasTraycodeMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/mapper/BasTraycodeMapper.java index cb76145..68e80a6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/mapper/BasTraycodeMapper.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/mapper/BasTraycodeMapper.java @@ -61,4 +61,6 @@ public interface BasTraycodeMapper public int deleteBasTraycodeByIds(Long[] ids); void insertBasTraycodeList(List list); + + Integer selectBasTrayCodeMax(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/IBasTraycodeService.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/IBasTraycodeService.java index 28793c1..eeae6eb 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/IBasTraycodeService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/IBasTraycodeService.java @@ -61,4 +61,6 @@ public interface IBasTraycodeService public int deleteBasTraycodeById(Long id); void insertBasTraycodeList(List traycodeList); + + Integer selectBasTrayCodeMax(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/impl/BasTraycodeServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/impl/BasTraycodeServiceImpl.java index f737b01..da128f2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/impl/BasTraycodeServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/bas/traycode/service/impl/BasTraycodeServiceImpl.java @@ -55,8 +55,29 @@ public class BasTraycodeServiceImpl implements IBasTraycodeService @Override public int insertBasTraycode(BasTraycode basTraycode) { - basTraycode.setCreateTime(DateUtils.getNowDate()); - return basTraycodeMapper.insertBasTraycode(basTraycode); + try { + Integer i = basTraycodeMapper.selectBasTrayCodeMax(); + if (i == null) { + i = 0; + } + int i1 = Integer.parseInt(basTraycode.getSpare1()); + //如果i<4位数,前面补0 + String code = ""; + for (int j = 0; j < i1; j++) { + code = String.format("%04d", i + 1 + j); + if("9999".equals( code)){ + throw new RuntimeException("已生成最大值"); + } + basTraycode.setTrayCode(code); + basTraycode.setSpare1(null); + basTraycode.setCreateTime(DateUtils.getNowDate()); + basTraycode.setSpare2("Y"); + basTraycodeMapper.insertBasTraycode(basTraycode); + } + } catch (Exception e) { + throw new RuntimeException(e); + } + return 1; } /** @@ -103,4 +124,9 @@ public class BasTraycodeServiceImpl implements IBasTraycodeService basTraycodeMapper.insertBasTraycodeList(list); } } + + @Override + public Integer selectBasTrayCodeMax() { + return basTraycodeMapper.selectBasTrayCodeMax(); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/domain/OutStockout.java b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/domain/OutStockout.java index 052d271..ae20d80 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/domain/OutStockout.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/domain/OutStockout.java @@ -91,6 +91,8 @@ public class OutStockout extends BaseEntity private String productName; + private String remark; + private List typeData; public List getTypeData() { @@ -299,6 +301,14 @@ public class OutStockout extends BaseEntity return erpStockoutId; } + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/service/impl/OutStockoutServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/service/impl/OutStockoutServiceImpl.java index 57bd90e..c830613 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/service/impl/OutStockoutServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockout/service/impl/OutStockoutServiceImpl.java @@ -131,7 +131,7 @@ public class OutStockoutServiceImpl implements IOutStockoutService outStockout.setCreateManId(username); outStockout.setStatus("1"); outStockout.setStockoutSource("0"); - outStockout.setWarehouseId("01"); +// outStockout.setWarehouseId("01"); for (int i = 0; i < detailList.size(); i++) { OutStockoutDetail outStockoutDetail = detailList.get(i); outStockoutDetail.setStockoutDetailId(stockOutId + "-" + (i + 1)); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/domain/OutStockoutDetail.java b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/domain/OutStockoutDetail.java index 4cf935e..cd3cf3f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/domain/OutStockoutDetail.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/domain/OutStockoutDetail.java @@ -14,7 +14,7 @@ import java.math.BigDecimal; * @author ruoyi * @date 2025-05-20 */ -public class OutStockoutDetail extends BaseEntity +public class OutStockoutDetail { private static final long serialVersionUID = 1L; @@ -171,6 +171,116 @@ public class OutStockoutDetail extends BaseEntity @Excel(name = "订单号") private String orderId; + private String createTime; + private String remark; + private String parentId; + private String productPrice; + private String productDrawNo; + private String productUnit; + private String productSpec; + private String productStatus; + private String createSys; + private String isUsed; + private String supplierName; + private String customerName; + + + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public String getProductPrice() { + return productPrice; + } + + public void setProductPrice(String productPrice) { + this.productPrice = productPrice; + } + + public String getProductDrawNo() { + return productDrawNo; + } + + public void setProductDrawNo(String productDrawNo) { + this.productDrawNo = productDrawNo; + } + + public String getProductUnit() { + return productUnit; + } + + public void setProductUnit(String productUnit) { + this.productUnit = productUnit; + } + + public String getProductSpec() { + return productSpec; + } + + public void setProductSpec(String productSpec) { + this.productSpec = productSpec; + } + + public String getProductStatus() { + return productStatus; + } + + public void setProductStatus(String productStatus) { + this.productStatus = productStatus; + } + + public String getCreateSys() { + return createSys; + } + + public void setCreateSys(String createSys) { + this.createSys = createSys; + } + + public String getIsUsed() { + return isUsed; + } + + public void setIsUsed(String isUsed) { + this.isUsed = isUsed; + } + + public String getSupplierName() { + return supplierName; + } + + public void setSupplierName(String supplierName) { + this.supplierName = supplierName; + } + + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + public String getVoltage() { return voltage; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/service/impl/OutStockoutDetailServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/service/impl/OutStockoutDetailServiceImpl.java index bae467f..8dd0960 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/service/impl/OutStockoutDetailServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutDetail/service/impl/OutStockoutDetailServiceImpl.java @@ -54,7 +54,7 @@ public class OutStockoutDetailServiceImpl implements IOutStockoutDetailService @Override public int insertOutStockoutDetail(OutStockoutDetail outStockoutDetail) { - outStockoutDetail.setCreateTime(DateUtils.getNowDate()); +// outStockoutDetail.setCreateTime(DateUtils.getNowDate()); return outStockoutDetailMapper.insertOutStockoutDetail(outStockoutDetail); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutFinish/domain/OutStockoutFinish.java b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutFinish/domain/OutStockoutFinish.java index 4084f29..a4970c4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutFinish/domain/OutStockoutFinish.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/out/outStockoutFinish/domain/OutStockoutFinish.java @@ -87,6 +87,16 @@ public class OutStockoutFinish extends BaseEntity private String warehouseName; + private String remark; + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark; + } + public String getCustomerName() { return customerName; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/out/productAndStock/domain/ViewProductAndStock.java b/ruoyi-admin/src/main/java/com/ruoyi/out/productAndStock/domain/ViewProductAndStock.java index 593ec2b..c0dfd8a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/out/productAndStock/domain/ViewProductAndStock.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/out/productAndStock/domain/ViewProductAndStock.java @@ -1,6 +1,5 @@ package com.ruoyi.out.productAndStock.domain; -import java.math.BigDecimal; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; @@ -8,11 +7,11 @@ import com.ruoyi.common.core.domain.BaseEntity; /** * 库存物资对象 view_product_and_stock - * + * * @author ruoyi - * @date 2025-09-12 + * @date 2025-10-21 */ -public class ViewProductAndStock extends BaseEntity +public class ViewProductAndStock { private static final long serialVersionUID = 1L; @@ -20,86 +19,122 @@ public class ViewProductAndStock extends BaseEntity @Excel(name = "序号") private Long onlyIdentity; - /** 品号 */ - @Excel(name = "品号") + /** 物料编码 */ + @Excel(name = "物料编码") private String productId; - /** 批次号 */ - @Excel(name = "批次号") + /** 批次 */ + @Excel(name = "批次") private String lotNo; - /** 品名 */ - @Excel(name = "品名") + /** 物料名称 */ + @Excel(name = "物料名称") private String productName; - /** 数量 */ - @Excel(name = "数量") - private BigDecimal quantity; + /** 库存数量 */ + @Excel(name = "库存数量") + private String quantity; /** 仓库 */ @Excel(name = "仓库") private String warehouseId; - /** 规格 */ - @Excel(name = "规格") + /** 来源 */ + @Excel(name = "来源") private String spare1; + /** 套账 */ + @Excel(name = "套账") + private String spare3; + + /** 用途 */ + @Excel(name = "用途") + private String spare4; + + /** 台次 */ + @Excel(name = "台次") + private String spare5; + + /** 入库单价 */ + @Excel(name = "入库单价") + private String spare6; + + /** 状态 */ + @Excel(name = "状态") + private String voltage; + + /** 件次 */ + @Excel(name = "件次") + private String power; + + /** 供应商 */ +// @Excel(name = "供应商") + private String phase; + + private String supplierName; + + /** 管理号 */ + @Excel(name = "管理号") + private String distribution; + + /** 合同号 */ + @Excel(name = "合同号") + private String orderId; + + /** 质量等级 */ + @Excel(name = "质量等级") + private String spare8; + + /** 单价 */ + @Excel(name = "单价") + private String price; + + /** 图号 */ + @Excel(name = "图号") + private String cargoNo; + + /** 物料状态 */ + @Excel(name = "物料状态") + private String productStatus; + + /** 常用编码 */ + @Excel(name = "常用编码") + private String parentId; + + /** 启用标识 */ + @Excel(name = "启用标识") + private String spare7; + + @Excel(name = "创建时间") + private String createTime; + + /** 创建用户 */ + @Excel(name = "创建用户") + private String createSys; + + /** 规格型号 */ + @Excel(name = "规格型号") + private String spec; + /** 单位 */ @Excel(name = "单位") - private String spare3; + private String unit; - /** 型号 */ - @Excel(name = "型号") - private String spare4; - /** 颜色 */ - @Excel(name = "颜色") - private String spare5; - - /** 序列号 */ - @Excel(name = "序列号") - private String spare6; - @Excel(name = "是否盘点") - private String spare7; - - /** 电压 */ - @Excel(name = "电压") - private String voltage; - - /** 功率 */ - @Excel(name = "功率") - private String power; - - /** 相位 */ - @Excel(name = "相位") - private String phase; - - /** 净重 */ - @Excel(name = "净重") - private BigDecimal netWeight; - - /** 毛重 */ - @Excel(name = "毛重") - private BigDecimal grossWeight; - - /** 分销 */ - @Excel(name = "分销") - private String distribution; - - /** 机型 */ - @Excel(name = "机型") - private String model; - - /** 订单号 */ - @Excel(name = "订单号") - private String orderId; - - public String getSpare7() { - return spare7; + public String getSupplierName() { + return supplierName; } - public void setSpare7(String spare7) { - this.spare7 = spare7; + public void setSupplierName(String supplierName) { + this.supplierName = supplierName; + } + + public String getCreateTime() { + return createTime; + } + + public void setCreateTime(String createTime) { + this.createTime = createTime; } public void setOnlyIdentity(Long onlyIdentity) @@ -107,191 +142,251 @@ public class ViewProductAndStock extends BaseEntity this.onlyIdentity = onlyIdentity; } - public Long getOnlyIdentity() + public Long getOnlyIdentity() { return onlyIdentity; } - public void setProductId(String productId) + public void setProductId(String productId) { this.productId = productId; } - public String getProductId() + public String getProductId() { return productId; } - public void setLotNo(String lotNo) + public void setLotNo(String lotNo) { this.lotNo = lotNo; } - public String getLotNo() + public String getLotNo() { return lotNo; } - public void setProductName(String productName) + public void setProductName(String productName) { this.productName = productName; } - public String getProductName() + public String getProductName() { return productName; } - public void setQuantity(BigDecimal quantity) + public void setQuantity(String quantity) { this.quantity = quantity; } - public BigDecimal getQuantity() + public String getQuantity() { return quantity; } - public void setWarehouseId(String warehouseId) + public void setWarehouseId(String warehouseId) { this.warehouseId = warehouseId; } - public String getWarehouseId() + public String getWarehouseId() { return warehouseId; } - public void setSpare1(String spare1) + public void setSpare1(String spare1) { this.spare1 = spare1; } - public String getSpare1() + public String getSpare1() { return spare1; } - public void setSpare3(String spare3) + public void setSpare3(String spare3) { this.spare3 = spare3; } - public String getSpare3() + public String getSpare3() { return spare3; } - public void setSpare4(String spare4) + public void setSpare4(String spare4) { this.spare4 = spare4; } - public String getSpare4() + public String getSpare4() { return spare4; } - public void setSpare5(String spare5) + public void setSpare5(String spare5) { this.spare5 = spare5; } - public String getSpare5() + public String getSpare5() { return spare5; } - public void setSpare6(String spare6) + public void setSpare6(String spare6) { this.spare6 = spare6; } - public String getSpare6() + public String getSpare6() { return spare6; } - public void setVoltage(String voltage) + public void setVoltage(String voltage) { this.voltage = voltage; } - public String getVoltage() + public String getVoltage() { return voltage; } - public void setPower(String power) + public void setPower(String power) { this.power = power; } - public String getPower() + public String getPower() { return power; } - public void setPhase(String phase) + public void setPhase(String phase) { this.phase = phase; } - public String getPhase() + public String getPhase() { return phase; } - public void setNetWeight(BigDecimal netWeight) - { - this.netWeight = netWeight; - } - - public BigDecimal getNetWeight() - { - return netWeight; - } - - public void setGrossWeight(BigDecimal grossWeight) - { - this.grossWeight = grossWeight; - } - - public BigDecimal getGrossWeight() - { - return grossWeight; - } - - public void setDistribution(String distribution) + public void setDistribution(String distribution) { this.distribution = distribution; } - public String getDistribution() + public String getDistribution() { return distribution; } - public void setModel(String model) - { - this.model = model; - } - - public String getModel() - { - return model; - } - - public void setOrderId(String orderId) + public void setOrderId(String orderId) { this.orderId = orderId; } - public String getOrderId() + public String getOrderId() { return orderId; } + public void setSpare8(String spare8) + { + this.spare8 = spare8; + } + + public String getSpare8() + { + return spare8; + } + + public void setPrice(String price) + { + this.price = price; + } + + public String getPrice() + { + return price; + } + + public void setCargoNo(String cargoNo) + { + this.cargoNo = cargoNo; + } + + public String getCargoNo() + { + return cargoNo; + } + + public void setProductStatus(String productStatus) + { + this.productStatus = productStatus; + } + + public String getProductStatus() + { + return productStatus; + } + + public void setParentId(String parentId) + { + this.parentId = parentId; + } + + public String getParentId() + { + return parentId; + } + + public void setSpare7(String spare7) + { + this.spare7 = spare7; + } + + public String getSpare7() + { + return spare7; + } + + public void setCreateSys(String createSys) + { + this.createSys = createSys; + } + + public String getCreateSys() + { + return createSys; + } + + public void setSpec(String spec) + { + this.spec = spec; + } + + public String getSpec() + { + return spec; + } + + public void setUnit(String unit) + { + this.unit = unit; + } + + public String getUnit() + { + return unit; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) @@ -309,11 +404,18 @@ public class ViewProductAndStock extends BaseEntity .append("voltage", getVoltage()) .append("power", getPower()) .append("phase", getPhase()) - .append("netWeight", getNetWeight()) - .append("grossWeight", getGrossWeight()) .append("distribution", getDistribution()) - .append("model", getModel()) .append("orderId", getOrderId()) + .append("spare8", getSpare8()) + .append("price", getPrice()) + .append("cargoNo", getCargoNo()) + .append("productStatus", getProductStatus()) + .append("parentId", getParentId()) + .append("spare7", getSpare7()) + .append("createTime", getCreateTime()) + .append("createSys", getCreateSys()) + .append("spec", getSpec()) + .append("unit", getUnit()) .toString(); } } diff --git a/ruoyi-admin/src/main/resources/mapper/bas/BasRoadwayMapper.xml b/ruoyi-admin/src/main/resources/mapper/bas/BasRoadwayMapper.xml index 0ca261a..8ac4909 100644 --- a/ruoyi-admin/src/main/resources/mapper/bas/BasRoadwayMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/bas/BasRoadwayMapper.xml @@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and out_locked = #{outLocked} and in_locked2 = #{inLocked2} and out_locked2 = #{outLocked2} + and id != #{updateId} @@ -39,6 +40,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} + + insert into bas_roadway @@ -76,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" out_locked = #{outLocked}, in_locked2 = #{inLocked2}, out_locked2 = #{outLocked2}, + where id = #{id} diff --git a/ruoyi-admin/src/main/resources/mapper/bas/BasTraycodeMapper.xml b/ruoyi-admin/src/main/resources/mapper/bas/BasTraycodeMapper.xml index 631bd54..bbf1328 100644 --- a/ruoyi-admin/src/main/resources/mapper/bas/BasTraycodeMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/bas/BasTraycodeMapper.xml @@ -97,4 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{id} + + diff --git a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailFinishMapper.xml index 0bf97cb..5887eed 100644 --- a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailFinishMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailFinishMapper.xml @@ -253,10 +253,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select d.stockout_detail_id, d.stockout_guid, d.stockout_id, d.lot_no, d.product_guid, d.product_id, d.quantity, d.quantity_x, d.quantity_j, d.assign_num, d.assign_num_x, d.assign_num_j, d.allot_quantity, d.allot_quantity_x, d.allot_quantity_j, d.price, d.remark, d.warehouse_id, d.out_id, d.bukechai_quantity, d.kechai_quantity, d.entryid, d.flat_quantity, d.fid, - d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.create_time, d.print_date, + d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.print_date, d.voltage, d.power, d.phase, d.net_weight, d.gross_weight, d.distribution, d.model, d.order_id, - p.product_name - from out_stockout_detail_finish d left join bas_product p on d.product_id = p.product_id + p.product_name,p.parent_id,p.price as product_price,p.cargo_no as product_draw_no,p.unit as product_unit,p.spec as product_spec, + p.spare1 as product_status,p.spare3 as create_time,p.spare4 as create_sys,p.spare7 as is_used, + s.supplier_name, + c.customer_name + from out_stockout_detail_finish d + left join bas_product p on d.product_id = p.product_id + left join bas_supplier s on d.supplier_id = s.supplier_no + left join bas_customer c on d.out_id = c.customer_no where stockout_guid = #{stockoutGuid} diff --git a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailMapper.xml index 340b108..2d02ed0 100644 --- a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutDetailMapper.xml @@ -45,6 +45,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + + + + + + @@ -140,7 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" spec, supplier_id, cargo_no, - create_time, + print_date, voltage, power, @@ -182,7 +193,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{spec}, #{supplierId}, #{cargoNo}, - #{createTime}, + #{printDate}, #{voltage}, #{power}, @@ -255,10 +266,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select d.stockout_detail_id, d.stockout_guid, d.stockout_id, d.lot_no, d.product_guid, d.product_id, d.quantity, d.quantity_x, d.quantity_j, d.assign_num, d.assign_num_x, d.assign_num_j, d.allot_quantity, d.allot_quantity_x, d.allot_quantity_j, d.price, d.remark, d.warehouse_id, d.out_id, d.bukechai_quantity, d.kechai_quantity, d.entryid, d.flat_quantity, d.fid, - d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.create_time, d.print_date, + d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.print_date, d.voltage, d.power, d.phase, d.net_weight, d.gross_weight, d.distribution, d.model, d.order_id, - p.product_name - from out_stockout_detail d left join bas_product p on d.product_id = p.product_id + p.product_name,p.parent_id,p.price as product_price,p.cargo_no as product_draw_no,p.unit as product_unit,p.spec as product_spec, + p.spare1 as product_status,p.spare3 as create_time,p.spare4 as create_sys,p.spare7 as is_used, + s.supplier_name, + c.customer_name + from out_stockout_detail d + left join bas_product p on d.product_id = p.product_id + left join bas_supplier s on d.supplier_id = s.supplier_no + left join bas_customer c on d.out_id = c.customer_no where d.stockout_guid = #{stockoutGuid} \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutFinishMapper.xml b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutFinishMapper.xml index b66d614..8a874bd 100644 --- a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutFinishMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutFinishMapper.xml @@ -24,10 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select stockout_guid, stockout_id, out_type, create_date, department_no, customer_no, create_man_id, status, stockout_source, warehouse_id, class_now_id, exit_id, car_number, FID, erp_stockout_id, start_date, finish_date from out_stockout_finish + select stockout_guid, stockout_id, out_type, create_date, department_no, customer_no, create_man_id, status, stockout_source, warehouse_id, class_now_id, exit_id, car_number, FID, erp_stockout_id, start_date, finish_date,remark from out_stockout_finish @@ -78,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" erp_stockout_id, start_date, finish_date, + remark, #{stockoutGuid}, @@ -97,6 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{erpStockoutId}, #{startDate}, #{finishDate}, + #{remark}, @@ -119,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" erp_stockout_id = #{erpStockoutId}, start_date = #{startDate}, finish_date = #{finishDate}, + remark = #{remark}, where stockout_guid = #{stockoutGuid} @@ -136,7 +141,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" diff --git a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutMapper.xml b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutMapper.xml index 039f7ef..c73421d 100644 --- a/ruoyi-admin/src/main/resources/mapper/out/OutStockoutMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/out/OutStockoutMapper.xml @@ -24,15 +24,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select stockout_guid, stockout_id, out_type, create_date, department_no, customer_no, create_man_id, status, stockout_source, warehouse_id, class_now_id, exit_id, car_number, FID, erp_stockout_id,start_date,finish_date from out_stockout + select stockout_guid, stockout_id, out_type, create_date, department_no, customer_no, create_man_id, status, stockout_source, warehouse_id, class_now_id, exit_id, car_number, FID, erp_stockout_id,start_date,finish_date,remark from out_stockout @@ -84,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" car_number, FID, erp_stockout_id, + remark, #{stockoutGuid}, @@ -101,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{carNumber}, #{FID}, #{erpStockoutId}, + #{remark}, @@ -123,6 +127,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" erp_stockout_id = #{erpStockoutId}, start_date = #{startDate}, finish_date = #{finishDate}, + remark = #{remark}, where stockout_guid = #{stockoutGuid} @@ -189,7 +194,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" o.start_date, o.finish_date, bw.warehouse_name, - bc.customer_name + bc.customer_name, + o.remark from out_stockout o left join bas_warehouse bw on bw.warehouse_id = o.warehouse_id left join bas_customer bc on bc.customer_no = o.customer_no diff --git a/ruoyi-admin/src/main/resources/mapper/out/ViewProductAndStockMapper.xml b/ruoyi-admin/src/main/resources/mapper/out/ViewProductAndStockMapper.xml index 2bdace2..08298c2 100644 --- a/ruoyi-admin/src/main/resources/mapper/out/ViewProductAndStockMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/out/ViewProductAndStockMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -16,32 +16,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - - - - + + + + + + + + + + + - select only_identity, product_id, lot_no, product_name, quantity, warehouse_id, spare1, spare3, spare4, spare5, spare6, voltage, power, phase, net_weight, gross_weight, distribution, model, order_id from view_product_and_stock - - - select only_identity, product_id, lot_no, product_name, quantity, warehouse_id, spare1, spare3, spare4, spare5, spare6, voltage, power, phase, net_weight, gross_weight, distribution, model, order_id from view_product_and_stock_pd + select only_identity, product_id, lot_no, product_name, quantity, warehouse_id, spare1, spare3, spare4, spare5, spare6, voltage, power, phase, distribution, order_id, spare8, price, cargo_no, product_status, parent_id, spare7, create_time, create_sys, spec, unit,supplier_name from view_product_and_stock - + - insert into view_product_and_stock @@ -108,11 +92,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" voltage, power, phase, - net_weight, - gross_weight, distribution, - model, order_id, + spare8, + price, + cargo_no, + product_status, + parent_id, + spare7, + create_time, + create_sys, + spec, + unit, + supplier_name, #{onlyIdentity}, @@ -129,11 +121,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{voltage}, #{power}, #{phase}, - #{netWeight}, - #{grossWeight}, #{distribution}, - #{model}, #{orderId}, + #{spare8}, + #{price}, + #{cargoNo}, + #{productStatus}, + #{parentId}, + #{spare7}, + #{createTime}, + #{createSys}, + #{spec}, + #{unit}, + #{supplierName}, @@ -153,11 +153,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" voltage = #{voltage}, power = #{power}, phase = #{phase}, - net_weight = #{netWeight}, - gross_weight = #{grossWeight}, distribution = #{distribution}, - model = #{model}, order_id = #{orderId}, + spare8 = #{spare8}, + price = #{price}, + cargo_no = #{cargoNo}, + product_status = #{productStatus}, + parent_id = #{parentId}, + spare7 = #{spare7}, + create_time = #{createTime}, + create_sys = #{createSys}, + spec = #{spec}, + unit = #{unit}, + supplier_name = #{supplierName}, where only_identity = #{onlyIdentity} @@ -167,9 +175,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from view_product_and_stock where only_identity in + delete from view_product_and_stock where only_identity in #{onlyIdentity} - + \ No newline at end of file diff --git a/ruoyi-ui/src/views/bas/roadway/index.vue b/ruoyi-ui/src/views/bas/roadway/index.vue index 6c1686e..80ddfdd 100644 --- a/ruoyi-ui/src/views/bas/roadway/index.vue +++ b/ruoyi-ui/src/views/bas/roadway/index.vue @@ -33,7 +33,7 @@ - + - + - + - + --> - + - + - + - + @@ -183,10 +183,7 @@ - - - - + @@ -194,8 +191,8 @@ - - + + - - + + - - + + - - + + item.id) + this.roadwayIds = selection.map(item => item.roadwayId) this.single = selection.length!==1 this.multiple = !selection.length }, @@ -398,7 +396,8 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const ids = row.id || this.ids - this.$modal.confirm('是否确认删除巷道管理编号为"' + ids + '"的数据项?').then(function() { + const roadwayIds= row.roadwayId || this.roadwayIds + this.$modal.confirm('是否确认删除巷道管理编号为"' + roadwayIds + '"的数据项?').then(function() { return delRoadway(ids) }).then(() => { this.getList() diff --git a/ruoyi-ui/src/views/bas/traycode/index.vue b/ruoyi-ui/src/views/bas/traycode/index.vue index 1e5973c..b5bde5d 100644 --- a/ruoyi-ui/src/views/bas/traycode/index.vue +++ b/ruoyi-ui/src/views/bas/traycode/index.vue @@ -25,6 +25,16 @@ @keyup.enter.native="handleQuery" /> + + + + + 搜索 @@ -91,12 +101,16 @@ - + - - - - + + + + + + - - - + + + + @@ -170,24 +171,65 @@ - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -317,7 +359,7 @@ import {listWarehouse} from "@/api/bas/warehouse"; export default { name: "OutStockWithDetail", - dicts: ['out_bill_type', 'out_bill_status'], + dicts: ['out_bill_type', 'out_bill_status', 'product_type', 'quality_type', 'turnover_type', 'sys_yes_no','account_type','origin_type','purpose_type','warehouse'], data() { return { // 遮罩层 @@ -360,8 +402,8 @@ export default { }, // 出口选项 exitOptions: [ - { exitId: '1', exitName: '一楼'}, - { exitId: '2', exitName: '二楼'}, + { exitId: '1', exitName: '北端'}, + { exitId: '2', exitName: '南端'}, ], @@ -562,7 +604,7 @@ export default { const stockoutIds = this.selectedRows.map(row => row.stockoutId) let outstock = this.selectedRows[0] if (outstock.status != "2" && outstock.status != "3") { - this.$modal.msgError('请先审核出库单') + this.$modal.msgError('单据未审核!') return } let data = {