自动化立体仓库 - WMS系统
18516761980
2022-11-30 f0c28c1962d5635db98c79fa9f05a55d43894d11
#回退11-14部分代码
7个文件已修改
40 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/OutController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/OrderDetlMapper.xml 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/order/order.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/order/out.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/order/out.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/OutController.java
@@ -67,7 +67,6 @@
            List<LocDetl> locDetls = locDetlService.queryStock(orderDetl.getMatnr(), orderDetl.getBatch(), null, exist);
            System.out.println(locDetls);
            for (LocDetl locDetl : locDetls) {
                if (issued > 0) {
                    LocDto locDto = new LocDto(locDetl.getLocNo(), locDetl.getMatnr(), locDetl.getMaktx(), locDetl.getBatch(), orderDetl.getOrderNo(),
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -812,7 +812,7 @@
                    boolean flag = true;
                    List<OrderDetl> orderDetls = orderDetlService.selectList(new EntityWrapper<OrderDetl>().eq("order_no",wrkDetl.getOrderNo()));
                    for(OrderDetl orderDetl : orderDetls){
                        if(orderDetl.getQty() > 0){
                        if(orderDetl.getWorkQty() > 0){
                            flag = false;
                        }
                    }
src/main/resources/mapper/LocDetlMapper.xml
@@ -282,18 +282,6 @@
        desc
    </select>
    <select id="queryStockOther" resultMap="BaseResultMap">
            select a.*
    from asr_loc_detl a
    left join asr_loc_mast b on a.loc_no = b.loc_no
    where 1=1
    and b.loc_sts = 'F'
    and a.matnr=  #{matnr}
    <if test="locNo !=null and locNo !=''">
    and a.loc_no !=  #{locNo}
    </if>
    </select>
    <select id="queryStockAnfme" resultType="java.lang.Double">
        select sum(anfme) as count from man_loc_detl
         where 1=1
src/main/resources/mapper/OrderDetlMapper.xml
@@ -127,7 +127,7 @@
    <update id="increase">
        update man_order_detl
        set work_qty = work_qty + #{qty}
        set qty = qty + #{qty}
        where 1=1
        and order_id = #{orderId}
        and matnr = #{matnr}
@@ -147,7 +147,14 @@
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr}
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </update>
    <update id="modifyStatus">
@@ -191,14 +198,6 @@
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </update>
    <update id="increaseWorkQtytest">
        update man_order_detl
        set work_qty = work_qty + #{anfme}
        where 1=1
        and order_no = #{orderNo}
        and matnr = #{matnr};
    </update>
</mapper>
src/main/webapp/static/js/order/order.js
@@ -199,7 +199,7 @@
                    }
                    layer.load(2);
                    $.ajax({
                        url: baseUrl+"/order/form/" + (isExpAdd?"add":"modify") + "/authtest",
                        url: baseUrl+"/order/form/" + (isExpAdd?"add":"modify") + "/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: JSON.stringify({
                            orderId: Number(data.field.id),
src/main/webapp/static/js/order/out.js
@@ -127,7 +127,7 @@
        let loadIndex = layer.load(2);
        console.log("1111")
        $.ajax({
            url: baseUrl + "/out/pakout/preview/authtest",
            url: baseUrl + "/out/pakout/preview/auth",
            headers: {'token': localStorage.getItem('token')},
            contentType: 'application/json;charset=UTF-8',
            data: JSON.stringify(ids),
src/main/webapp/views/order/out.html
@@ -152,7 +152,7 @@
<!-- 行工具栏 -->
<script type="text/html" id="operate">
    {{#if (d.anfme > d.workQty){ }}
    {{#if (d.anfme > d.qty){ }}
    <a class="layui-btn layui-btn-xs layui-btn-danger btn-pakoutPreview" lay-event="pakoutPreview"><i class="layui-icon layui-icon-prev-circle"></i>出库</a>
    {{# } }}
</script>