#
luxiaotao1123
2022-04-07 2e11a06eb7f79a8321613c577fa14483a43d2c76
#
2个文件已修改
49 ■■■■ 已修改文件
static/css/main.css 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/js/utils/DataShow.js 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/css/main.css
@@ -2,11 +2,12 @@
    position: absolute;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    line-height: 1;
    color:#000000;
    color: #212121;
    font-family: "黑体", serif;
    border-radius: 5px;
    display:none;
    z-index: 99;
    line-height: 130%;
}
#sidebar{
static/js/utils/DataShow.js
@@ -12,8 +12,25 @@
            $.ajax({
                url: top.baseUrl + '/three/query/loc/detl/v1?locNo=' + this.uuid,
                type: "GET",
                async: false,
                success: function (res) {
                    console.log(res);
                    if (res.code === 200) {
                        let data = res.data;
                        htmlText += '<p>库位状态:'+ data.locSts +'</p>';
                        if (data.locDetls) {
                            for (let locDetl of data.locDetls) {
                                htmlText += '<p>————————————————</p>';
                                htmlText += '<p>商品编号:'+ locDetl.matnr +'</p>';
                                htmlText += '<p>商品名称:'+ locDetl.maktx +'</p>';
                                if (locDetl.batch) {
                                    htmlText += '<p>批号:'+ locDetl.batch +'</p>';
                                }
                                htmlText += '<p>库存数量:'+ locDetl.anfme + "" + (locDetl.unit?locDetl.unit:"") +'</p>';
                            }
                        }
                    } else {
                        console.error(res.msg);
                    }
                }
            })
            break
@@ -23,14 +40,35 @@
                url: top.baseUrl + '/three/query/wrk/detl/v1?wrkNo=' + this.uuid,
                type: "GET",
                success: function (res) {
                    console.log(res);
                    if (res.code === 200) {
                        let data = res.data;
                        htmlText += '<p>任务状态:'+ data.wrkSts +'</p>';
                        if (data.sourceLocNo) {
                            htmlText += '<p>源库位:'+ data.sourceLocNo +'</p>';
                        }
                        if (data.destLocNo) {
                            htmlText += '<p>目标库位:'+ data.destLocNo +'</p>';
                        }
                        if (data.wrkDetls) {
                            for (let wrkDetl of data.wrkDetls) {
                                htmlText += '<p>————————————————</p>';
                                htmlText += '<p>商品编号:'+ wrkDetl.matnr +'</p>';
                                htmlText += '<p>商品名称:'+ wrkDetl.maktx +'</p>';
                                if (wrkDetl.batch) {
                                    htmlText += '<p>批号:'+ wrkDetl.batch +'</p>';
                                }
                                htmlText += '<p>任务数量:'+ wrkDetl.anfme + "" + (wrkDetl.unit?wrkDetl.unit:"") +'</p>';
                            }
                        }
                    } else {
                        console.error(res.msg);
                    }
                }
            })
            break
        default:
            break
    }
    return htmlText;
}