#
luxiaotao1123
2021-02-24 9954576f3e18f705ae15ef202970ff8b547afb60
#
2个文件已修改
45 ■■■■ 已修改文件
src/main/java/zy/cloud/wms/pda/controller/MobileController.java 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/stockIn.html 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/zy/cloud/wms/pda/controller/MobileController.java
@@ -1,14 +1,17 @@
package zy.cloud.wms.pda.controller;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.annotations.ManagerAuth;
import com.core.common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import zy.cloud.wms.common.web.BaseController;
import zy.cloud.wms.manager.entity.Comb;
import zy.cloud.wms.manager.service.CombService;
import zy.cloud.wms.pda.entity.CombParam;
import zy.cloud.wms.pda.service.MobileService;
import java.util.List;
/**
 * 移动端接口控制器
@@ -20,6 +23,8 @@
    @Autowired
    private MobileService mobileService;
    @Autowired
    private CombService combService;
    /**
     * 组托
@@ -31,6 +36,16 @@
        return R.ok();
    }
    /**
     *  根据库位号查找库存明细
     */
    @PostMapping("/inStock/auth")
    @ManagerAuth
    public R getLocDetl(@RequestParam String zpallet){
        List<Comb> combs = combService.selectList(new EntityWrapper<Comb>().eq("zpallet", zpallet).eq("io_status", 1));
        return R.ok().add(combs);
    }
//    /**
//     *  根据库位号查找库存明细
src/main/webapp/views/pda/stockIn.html
@@ -125,10 +125,28 @@
    });
    function findCode(el) {
        if (el.value.length === 7) {
            $('#mat-btn').focus();
            getMat();
        if (isEmpty(el.value)) {
            return;
        }
        $.ajax({
            url: baseUrl + "/mobile/inStock/auth",
            headers: {'token': localStorage.getItem('token')},
            data: {
                zpallet: el.value
            },
            method: 'POST',
            success: function (res) {
                if (res.code === 200) {
                    if (res.data != null) {
                        console.log(res.data);
                    }
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/pda";
                } else {
                    alert(res.msg)
                }
            }
        })
    }
    function findNode(el) {