1
cp
2025-03-27 a3bea567c554c2c57809ceed2a040baf473aa95f
1
26个文件已修改
2个文件已添加
437 ■■■■ 已修改文件
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/OrderDetlLog.java 205 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/OrderLog.java 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/mapper/OrderDetlMapper.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/mapper/OrderMapper.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/OrderDetlService.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/OrderService.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/OrderDetlServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/OrderServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/resources/mapper/wms/OrderLogMapper.xml 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/resources/mapper/wms/OrderMapper.xml 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/LocDetlController.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/MatController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/MobileController.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/OutController.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/TagController.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/task/OrderMoveHistoryScheduler.java 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/java/com/zy/asrs/wms/task/handler/OrderMoveHistoryHandler.java 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/static/js/locInPrintMat/locInPrintMat.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/static/js/mat/mat.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/static/js/order/out.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/static/js/pakStore/locCheckOut.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/views/locDetl/locDetl.html 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/views/locInPrintMat/locInPrintMat.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/views/pakStore/locCheckOut.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/views/pakStore/locDetlCheckQuery.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/views/pakStore/locDetlQuery.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-wms/src/main/webapp/views/pakStore/locDetlQuery2.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/OrderDetlLog.java
@@ -35,6 +35,7 @@
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
@@ -44,10 +45,22 @@
    private Long orderId;
    /**
     * 单据编号
     */
    @ApiModelProperty(value= "单据编号")
    private String orderNo;
    /**
     * 数量
     */
    @ApiModelProperty(value= "数量")
    private Double anfme;
    @ApiModelProperty(value= "已完成数量")
    private Double qty;
    @ApiModelProperty(value= "作业数量")
    private Double workQty;
    /**
     * 商品编码
@@ -62,10 +75,10 @@
    private String maktx;
    /**
     * 名称
     * 批号
     */
    @ApiModelProperty(value= "名称")
    private String name;
    @ApiModelProperty(value= "批号")
    private String batch;
    /**
     * 规格
@@ -80,10 +93,16 @@
    private String model;
    /**
     * 批号
     * 颜色
     */
    @ApiModelProperty(value= "批号")
    private String batch;
    @ApiModelProperty(value= "颜色")
    private String color;
    /**
     * 品牌
     */
    @ApiModelProperty(value= "品牌")
    private String brand;
    /**
     * 单位
@@ -92,40 +111,130 @@
    private String unit;
    /**
     * 商品条码
     */
    @ApiModelProperty(value= "商品条码")
    private String barcode;
    /**
     * 供应商
     */
    @ApiModelProperty(value= "供应商")
    private String supplier;
    /**
     * 单价
     */
    @ApiModelProperty(value= "单价")
    private Double unitPrice;
    private Double price;
    /**
     * sku
     */
    @ApiModelProperty(value= "sku")
    private String sku;
    /**
     * 单位量
     */
    @ApiModelProperty(value= "单位量")
    private Double units;
    /**
     * 条码
     */
    @ApiModelProperty(value= "条码")
    private String barcode;
    /**
     * 产地
     */
    @ApiModelProperty(value= "产地")
    private String origin;
    /**
     * 厂家
     */
    @ApiModelProperty(value= "厂家")
    private String manu;
    /**
     * 生产日期
     */
    @ApiModelProperty(value= "生产日期")
    private String manuDate;
    /**
     * 品项数
     */
    @ApiModelProperty(value= "品项数")
    private Integer itemNum;
    private String itemNum;
    /**
     * 数量
     * 安全库存量
     */
    @ApiModelProperty(value= "数量")
    private Double count;
    @ApiModelProperty(value= "安全库存量")
    private Double safeQty;
    /**
     * 重量
     */
    @ApiModelProperty(value= "重量")
    private Double weight;
    /**
     * 长度
     */
    @ApiModelProperty(value= "长度")
    private Double length;
    /**
     * 体积
     */
    @ApiModelProperty(value= "体积")
    private Double volume;
    /**
     * 仓库号
     */
    @ApiModelProperty(value= "仓库号")
    private String threeCode;
    /**
     * 来源单号
     */
    @ApiModelProperty(value= "来源单号")
    private String supp;
    /**
     * 来源序号
     */
    @ApiModelProperty(value= "来源序号")
    private String suppCode;
    /**
     * 是否批次 1: 是  0: 否
     */
    @ApiModelProperty(value= "是否批次 1: 是  0: 否  ")
    private Integer beBatch;
    /**
     * 保质期
     */
    @ApiModelProperty(value= "保质期")
    private String deadTime;
    /**
     * 预警天数
     */
    @ApiModelProperty(value= "预警天数")
    private Integer deadWarn;
    /**
     * 制购 1: 制造  2: 采购  3: 外协
     */
    @ApiModelProperty(value= "制购 1: 制造  2: 采购  3: 外协  ")
    private Integer source;
    /**
     * 要求检验 1: 是  0: 否
     */
    @ApiModelProperty(value= "要求检验 1: 是  0: 否  ")
    private Integer inspect;
    /**
     * 危险品 1: 是  0: 否
     */
    @ApiModelProperty(value= "危险品 1: 是  0: 否  ")
    private Integer danger;
    /**
     * 状态 1: 正常  0: 禁用  
@@ -173,31 +282,31 @@
    public OrderDetlLog() {}
    public OrderDetlLog(Long id,Long orderId,Double anfme,String matnr,String maktx,String name,String specs,String model,String batch,String unit,String barcode,String supplier,Double unitPrice,Integer itemNum,Double count,Double weight,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Long hostId) {
        this.id = id;
        this.orderId = orderId;
        this.anfme = anfme;
        this.matnr = matnr;
        this.maktx = maktx;
        this.name = name;
        this.specs = specs;
        this.model = model;
        this.batch = batch;
        this.unit = unit;
        this.barcode = barcode;
        this.supplier = supplier;
        this.unitPrice = unitPrice;
        this.itemNum = itemNum;
        this.count = count;
        this.weight = weight;
        this.status = status;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.memo = memo;
        this.hostId = hostId;
    }
//    public OrderDetlLog(Long id,Long orderId,Double anfme,String matnr,String maktx,String name,String specs,String model,String batch,String unit,String barcode,String supplier,Double unitPrice,Integer itemNum,Double count,Double weight,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Long hostId) {
//        this.id = id;
//        this.orderId = orderId;
//        this.anfme = anfme;
//        this.matnr = matnr;
//        this.maktx = maktx;
//        this.name = name;
//        this.specs = specs;
//        this.model = model;
//        this.batch = batch;
//        this.unit = unit;
//        this.barcode = barcode;
//        this.supplier = supplier;
//        this.unitPrice = unitPrice;
//        this.itemNum = itemNum;
//        this.count = count;
//        this.weight = weight;
//        this.status = status;
//        this.createBy = createBy;
//        this.createTime = createTime;
//        this.updateBy = updateBy;
//        this.updateTime = updateTime;
//        this.memo = memo;
//        this.hostId = hostId;
//    }
//    OrderDetlLog orderDetlLog = new OrderDetlLog(
//            null,    // ID[非空]
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/OrderLog.java
@@ -3,6 +3,7 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;
import com.zy.asrs.common.wms.service.CstmrService;
import com.zy.asrs.common.wms.service.DocTypeService;
import com.zy.asrs.common.wms.service.ItemService;
@@ -14,10 +15,6 @@
import java.text.SimpleDateFormat;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@@ -41,6 +38,7 @@
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
@@ -52,40 +50,47 @@
    /**
     * 订单编号
     */
    @TableField("order_no")
    @ApiModelProperty(value= "订单编号")
    private String orderNo;
    /**
     * 单据日期
     */
    @TableField("order_time")
    @ApiModelProperty(value= "单据日期")
    private String orderTime;
    /**
     * 单据类型
     */
    @TableField("doc_type")
    @ApiModelProperty(value= "单据类型")
    private Long docType;
    /**
     * 项目编号
     */
    @TableField("item_id")
    @ApiModelProperty(value= "项目编号")
    private Long itemId;
    @ApiModelProperty(value= "")
    @TableField("item_name")
    private String itemName;
    /**
     * 调拨项目编号
     */
    @ApiModelProperty(value= "调拨项目编号")
    @TableField("allot_item_id")
    private Long allotItemId;
    /**
     * 初始票据号
     */
    @ApiModelProperty(value= "初始票据号")
    @TableField("def_number")
    private String defNumber;
    /**
@@ -104,6 +109,7 @@
     * 客户
     */
    @ApiModelProperty(value= "客户")
    @TableField("cstmr_name")
    private String cstmrName;
    /**
@@ -116,12 +122,14 @@
     * 操作人员
     */
    @ApiModelProperty(value= "操作人员")
    @TableField("oper_memb")
    private String operMemb;
    /**
     * 合计金额
     */
    @ApiModelProperty(value= "合计金额")
    @TableField("total_fee")
    private Double totalFee;
    /**
@@ -134,24 +142,28 @@
     * 优惠金额
     */
    @ApiModelProperty(value= "优惠金额")
    @TableField("discount_fee")
    private Double discountFee;
    /**
     * 销售或采购费用合计
     */
    @ApiModelProperty(value= "销售或采购费用合计")
    @TableField("other_fee")
    private Double otherFee;
    /**
     * 实付金额
     */
    @ApiModelProperty(value= "实付金额")
    @TableField("act_fee")
    private Double actFee;
    /**
     * 付款类型 1: 现金  2: 记账  
     */
    @ApiModelProperty(value= "付款类型 1: 现金  2: 记账  ")
    @TableField("pay_type")
    private Integer payType;
    /**
@@ -164,18 +176,21 @@
     * 结算天数
     */
    @ApiModelProperty(value= "结算天数")
    @TableField("account_day")
    private Integer accountDay;
    /**
     * 邮费支付类型 1: 在线支付  2: 货到付款  
     */
    @ApiModelProperty(value= "邮费支付类型 1: 在线支付  2: 货到付款  ")
    @TableField("post_fee_type")
    private Integer postFeeType;
    /**
     * 邮费
     */
    @ApiModelProperty(value= "邮费")
    @TableField("post_fee")
    private Double postFee;
    /**
@@ -183,6 +198,7 @@
     */
    @ApiModelProperty(value= "付款时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("pay_time")
    private Date payTime;
    /**
@@ -190,18 +206,21 @@
     */
    @ApiModelProperty(value= "发货时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("send_time")
    private Date sendTime;
    /**
     * 物流名称
     */
    @ApiModelProperty(value= "物流名称")
    @TableField("ship_name")
    private String shipName;
    /**
     * 物流单号
     */
    @ApiModelProperty(value= "物流单号")
    @TableField("ship_code")
    private String shipCode;
    /**
@@ -220,6 +239,7 @@
     * 添加人员
     */
    @ApiModelProperty(value= "添加人员")
    @TableField("create_by")
    private Long createBy;
    /**
@@ -227,12 +247,14 @@
     */
    @ApiModelProperty(value= "添加时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改人员
     */
    @ApiModelProperty(value= "修改人员")
    @TableField("update_by")
    private Long updateBy;
    /**
@@ -240,6 +262,7 @@
     */
    @ApiModelProperty(value= "修改时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("update_time")
    private Date updateTime;
    /**
@@ -252,6 +275,7 @@
     * 授权商户
     */
    @ApiModelProperty(value= "授权商户")
    @TableField("host_id")
    private Long hostId;
    public OrderLog() {}
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/mapper/OrderDetlMapper.java
@@ -35,4 +35,5 @@
    int increaseWorkQty(@Param("orderId") Long orderId, @Param("matnr") String matnr, @Param("batch") String batch, @Param("workQty") Double workQty, @Param("hostId") Long hostId);
    int addToLogTable(OrderDetl orderDetl);
}
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/mapper/OrderMapper.java
@@ -17,5 +17,5 @@
    List<Order> selectComplete();
    int updateSettle(@Param("orderId") Long orderId, @Param("settle") Long settle, @Param("userId") Long userId, @Param("hostId") Long hostId);
    int addToLogTable(Order order);
}
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/OrderDetlService.java
@@ -24,4 +24,5 @@
    boolean increaseWorkQty(Long orderId, String matnr, String batch, Double workQty, Long hostId);
    boolean addToLogTable(OrderDetl orderDetl);
}
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/OrderService.java
@@ -29,5 +29,6 @@
    List<String> selectAllOutOrderNo(String orderNo,Long hostId);
    List<Order> selectComplete();
    boolean addToLogTable(Order order);
}
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/OrderDetlServiceImpl.java
@@ -58,4 +58,9 @@
    public boolean increaseWorkQty(Long orderId, String matnr, String batch, Double workQty, Long hostId) {
        return this.baseMapper.increaseWorkQty(orderId, matnr, batch, workQty, hostId) > 0;
    }
    @Override
    public boolean addToLogTable(OrderDetl orderDetl) {
        return this.baseMapper.addToLogTable(orderDetl) > 0;
    }
}
zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/OrderServiceImpl.java
@@ -218,4 +218,8 @@
        return orderNameListDtos;
    }
    @Override
    public boolean addToLogTable(Order order) {
        return this.baseMapper.addToLogTable(order) > 0;
    }
}
zy-asrs-common/src/main/resources/mapper/wms/OrderDetlMapper.xml
@@ -160,4 +160,7 @@
        </choose>
    </update>
    <insert id="addToLogTable">
        INSERT INTO man_order_detl_log SELECT * FROM man_order_detl WHERE id = #{id}
    </insert>
</mapper>
zy-asrs-common/src/main/resources/mapper/wms/OrderLogMapper.xml
@@ -1,5 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zy.asrs.common.wms.mapper.OrderLogMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.asrs.common.wms.entity.Order">
        <id column="id" property="id" />
        <result column="uuid" property="uuid" />
        <result column="order_no" property="orderNo" />
        <result column="order_time" property="orderTime" />
        <result column="doc_type" property="docType" />
        <result column="item_id" property="itemId" />
        <result column="item_name" property="itemName" />
        <result column="allot_item_id" property="allotItemId" />
        <result column="def_number" property="defNumber" />
        <result column="number" property="number" />
        <result column="cstmr" property="cstmr" />
        <result column="cstmr_name" property="cstmrName" />
        <result column="tel" property="tel" />
        <result column="oper_memb" property="operMemb" />
        <result column="total_fee" property="totalFee" />
        <result column="discount" property="discount" />
        <result column="discount_fee" property="discountFee" />
        <result column="other_fee" property="otherFee" />
        <result column="act_fee" property="actFee" />
        <result column="pay_type" property="payType" />
        <result column="salesman" property="salesman" />
        <result column="account_day" property="accountDay" />
        <result column="post_fee_type" property="postFeeType" />
        <result column="post_fee" property="postFee" />
        <result column="pay_time" property="payTime" />
        <result column="send_time" property="sendTime" />
        <result column="ship_name" property="shipName" />
        <result column="ship_code" property="shipCode" />
        <result column="settle" property="settle" />
        <result column="status" property="status" />
        <result column="create_by" property="createBy" />
        <result column="create_time" property="createTime" />
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
        <result column="host_id" property="hostId" />
    </resultMap>
</mapper>
zy-asrs-common/src/main/resources/mapper/wms/OrderMapper.xml
@@ -75,6 +75,9 @@
          and status = 1
        order by create_time asc
    </select>
    <insert id="addToLogTable">
        INSERT INTO man_order_log SELECT * FROM man_order WHERE id = #{id}
    </insert>
</mapper>
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/LocDetlController.java
@@ -109,8 +109,11 @@
        List<LocDetl> locDetls=new ArrayList<>();
        for (LocDetl l:list
             ) {
            String new_String = l.getMatnr().replace("\"","");
            l.setMatnr(new_String);
            if(Cools.isEmpty(l.getMaktx())){
                continue;
            }
            String new_String = l.getMaktx().replace("\"","");
            l.setMaktx(new_String);
            locDetls.add(l);
        }
        return R.ok(exportSupport(locDetls, fields));
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/MatController.java
@@ -194,6 +194,7 @@
        }
        OrderDetl orderDetl = new OrderDetl();
        orderDetl.sync(mat);
        orderDetl.setBatch("");
        orderDetl.setAnfme(0.0D);
        return R.ok().add(orderDetl);
    }
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/MobileController.java
@@ -496,7 +496,18 @@
        ArrayList<Long> orderIds = new ArrayList<>();
        for (Order order : orders) {
            Date currentDate = new Date();
            Calendar calendar = Calendar.getInstance();
            calendar.setTime(currentDate);
            calendar.add(Calendar.MONTH, -1);
            Date previousMonthDate = calendar.getTime();
            int result=previousMonthDate.compareTo(order.getCreateTime());
            if(result<0){
            orderIds.add(order.getId());
            }
        }
        //搜索明细
@@ -505,6 +516,7 @@
        wrapper1.eq(OrderDetl::getHostId, getHostId());
        wrapper1.in(OrderDetl::getOrderId, orderIds);
        wrapper1.orderByDesc(OrderDetl::getCreateTime);
//        wrapper1.last("LIMIT 1000");
        if (!Cools.isEmpty(matnr)) {
            wrapper1.like(OrderDetl::getMatnr, matnr);
        }
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/OutController.java
@@ -89,11 +89,17 @@
                if (issued >0){
                    List<LocDetl> locDetls = locDetlService.queryStock(orderDetl.getMatnr(), orderDetl.getBatch(), hostId);
                    for (LocDetl locDetl : locDetls) {
                        //过滤掉在已被标记的库位号
                        boolean boo=false;
                        for (HashMap.Entry<String,Integer> entry:hm.entrySet()){
                            if(locDetl.getLocNo().equals(entry.getKey())){
                                continue;
                                boo=true;
                                break;
                            }
                        }
                        if (boo){
                            continue;
                        }
                        List<LocDetl> locMats = locDetlService.list(new LambdaQueryWrapper<LocDetl>()
                                .eq(LocDetl::getLocNo, locDetl.getLocNo())
                                .eq(LocDetl::getHostId, hostId));
zy-asrs-wms/src/main/java/com/zy/asrs/wms/controller/TagController.java
@@ -223,6 +223,11 @@
            if (Cools.isEmpty(mat)){
                return R.error("品号:"+locInPrintMat.getMatnr()+"不存在,请先新增商品档案!!!").add("品号:"+locInPrintMat.getMatnr()+"不存在,请先新增商品档案!!!");
            }
            int count=1;
            if(!Cools.isEmpty(locInPrintMat.getAnfme())){
                count=locInPrintMat.getAnfme().intValue();
            }
            for(int i=1;i<=count;i++){
            // 打印数据注入
            MatPrint print = new MatPrint();
            print.setMatnr(mat.getMatnr());
@@ -251,6 +256,8 @@
//            print.setOwner(locInPrintMat.getOwner$());
            print.setId(locInPrintMat.getId());
            res.add(print);
            }
            locInPrintMat.setUpdateTime(new Date());
            locInPrintMat.setUpdateBy(getUserId());
            locInPrintMat.setStatus(2);
zy-asrs-wms/src/main/java/com/zy/asrs/wms/task/OrderMoveHistoryScheduler.java
New file
@@ -0,0 +1,20 @@
package com.zy.asrs.wms.task;
import com.zy.asrs.wms.task.handler.OrderMoveHistoryHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class OrderMoveHistoryScheduler {
    @Autowired
    private OrderMoveHistoryHandler orderMoveHistoryHandler;
    /**
     * 将已完成order和orderDetl移动到log表
     */
//    @Scheduled(cron = "0 * * * * ?")
    public void execute(){
        orderMoveHistoryHandler.start();
    }
}
zy-asrs-wms/src/main/java/com/zy/asrs/wms/task/handler/OrderMoveHistoryHandler.java
New file
@@ -0,0 +1,59 @@
package com.zy.asrs.wms.task.handler;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sun.org.apache.xpath.internal.operations.Or;
import com.zy.asrs.common.wms.entity.Order;
import com.zy.asrs.common.wms.entity.OrderDetl;
import com.zy.asrs.common.wms.service.OrderDetlService;
import com.zy.asrs.common.wms.service.OrderService;
import com.zy.asrs.framework.common.Cools;
import com.zy.asrs.wms.task.AbstractHandler;
import com.zy.asrs.wms.task.core.ReturnT;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;
@Service
@Slf4j
public class OrderMoveHistoryHandler extends AbstractHandler<String> {
    @Autowired
    private OrderService orderService;
    @Autowired
    private OrderDetlService orderDetlService;
    public ReturnT<String> start(){
        List<Order> settleEqual6 = orderService.list(new LambdaQueryWrapper<Order>()
                .in(Order::getSettle, 6,7));
        for (Order order : settleEqual6) {
            List<OrderDetl> orderDetls = orderDetlService.list(new LambdaQueryWrapper<OrderDetl>()
                    .eq(OrderDetl::getOrderNo, order.getOrderNo()));
            moveBoth(order,orderDetls);
            log.info("已完成单据移动至历史表成功 =====>" +order);
        }
        return SUCCESS;
    }
    private void moveBoth(Order order, List<OrderDetl> orderDetls){
        Date now = new Date();
        if (!Cools.isEmpty(orderDetls)) {
            for (OrderDetl orderDetl : orderDetls) {
                orderDetl.setUpdateBy(0L);
                orderDetl.setUpdateTime(now);
                orderDetlService.addToLogTable(orderDetl);
                orderDetlService.remove(new LambdaQueryWrapper<OrderDetl>()
                        .eq(OrderDetl::getId,orderDetl.getId()));
            }
        }
        if (!Cools.isEmpty(order)){
            order.setUpdateBy(0L);
            order.setUpdateTime(now);
            orderService.addToLogTable(order);
            orderService.remove(new LambdaQueryWrapper<Order>()
                    .eq(Order::getId,order.getId()));
        }
    }
}
zy-asrs-wms/src/main/webapp/static/js/locInPrintMat/locInPrintMat.js
@@ -35,6 +35,7 @@
            // ,{field: 'anfme', align: 'center',title: '重量(kg)', width:100,hide: false}
            // ,{field: 'locNo', align: 'center',title: '库位号', width:120,hide: false}
            ,{field: 'maktx', align: 'center',title: '品名',hide: false}
            ,{field: 'anfme', align: 'center',title: '數量',hide: false}
            // ,{field: 'owner$', align: 'center',title: '货主',hide: false}
            // ,{field: 'createTime$', align: 'center',title: '入库时间', width:120,hide: false}
            // ,{field: 'createBy$', align: 'center',title: '入库人员', width:100,hide: false}
zy-asrs-wms/src/main/webapp/static/js/mat/mat.js
@@ -52,7 +52,7 @@
        url: baseUrl+'/mat/page/auth',
        page: true,
        limit: 16,
        limits: [16, 30, 50, 100, 200, 500,1000,2000],
        limits: [16, 30, 50, 100, 200, 500,1000,2000,10000,100000],
        toolbar: '#toolbar',
        cellMinWidth: 50,
        height: 'full-105',
zy-asrs-wms/src/main/webapp/static/js/order/out.js
@@ -35,7 +35,7 @@
            ,{field: 'matnr', align: 'center',title: '品号', width: 160}
            ,{field: 'maktx', align: 'center',title: '名称', width: 200}
            ,{field: 'batch', align: 'center',title: '序列码'}
            ,{field: 'origin', align: 'center',title: '仓库号'}
            // ,{field: 'origin', align: 'center',title: '仓库号'}
            // ,{field: 'anfme', align: 'center',title: '数量'}
            // ,{field: 'qty', align: 'center',title: '作业数量', style: 'font-weight: bold'}
            ,{field: 'enableQty', align: 'center',title: '待出数量', style: 'font-weight: bold'}
zy-asrs-wms/src/main/webapp/static/js/pakStore/locCheckOut.js
@@ -25,6 +25,7 @@
        headers: {token: localStorage.getItem('token')},
        data: [],
        even: true,
        limit: 1000,
        toolbar: '#toolbar',
        cellMinWidth: 50,
        cols: [getCol()],
zy-asrs-wms/src/main/webapp/views/locDetl/locDetl.html
@@ -71,7 +71,8 @@
</div>
<script type="text/html" id="toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="margin-top: 10px">导出</button>
        <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="
        margin-top: 10px">导出</button>
    </div>
</script>
zy-asrs-wms/src/main/webapp/views/locInPrintMat/locInPrintMat.html
@@ -281,9 +281,9 @@
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注: </label>
                    <label class="layui-form-label">數量: </label>
                    <div class="layui-input-block">
                        <input class="layui-input" name="memo" placeholder="请输入备注">
                        <input class="layui-input" name="anfme" placeholder="请输入數量">
                    </div>
                </div>
            </div>
zy-asrs-wms/src/main/webapp/views/pakStore/locCheckOut.html
@@ -126,7 +126,7 @@
<script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
<script type="text/javascript" src="../../static/js/pakStore/locCheckOut.js" charset="utf-8"></script>
<script type="text/javascript" src="../../static/js/pakStore/locCheckOut.js?v=2" charset="utf-8"></script>
<div id="resetLocDiv" style="margin: 20px 0 10px 30px; display: none">
    <div class="layui-form layui-form-pane">
        <!-- 排 -->
zy-asrs-wms/src/main/webapp/views/pakStore/locDetlCheckQuery.html
@@ -137,8 +137,8 @@
            headers: {token: localStorage.getItem('token')},
            url: baseUrl+'/stock/out/list/auth',
            page: true,
            limit: 20,
            limits: [20, 50, 100, 200, 500],
            limit: 100,
            limits: [100, 200, 500],
            even: true,
            toolbar: '#toolbar',
            cellMinWidth: 50,
zy-asrs-wms/src/main/webapp/views/pakStore/locDetlQuery.html
@@ -154,8 +154,8 @@
            headers: {token: localStorage.getItem('token')},
            url: baseUrl+'/stock/out/list/auth',
            page: true,
            limits: [16, 30, 50, 100, 200, 500],
            limit: 16,
            limits: [100, 200, 500],
            limit: 100,
            even: true,
            toolbar: '#toolbar',
            cellMinWidth: 50,
zy-asrs-wms/src/main/webapp/views/pakStore/locDetlQuery2.html
@@ -127,8 +127,8 @@
            headers: {token: localStorage.getItem('token')},
            url: baseUrl+'/stock/out/list/auth/v2',
            page: true,
            limits: [16, 30, 50, 100, 200, 500],
            limit: 16,
            limits: [100, 200, 500],
            limit: 100,
            even: true,
            toolbar: '#toolbar',
            cellMinWidth: 50,