#
luxiaotao1123
2022-02-21 34d91785720a2953af54b0a621c301b2fd821a2c
#
3个文件已修改
128 ■■■■ 已修改文件
src/main/resources/mapper/WrkDetlMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/css/console.css 63 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/console.html 63 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkDetlMapper.xml
@@ -27,7 +27,7 @@
    </resultMap>
    <select id="findByWorkNo" resultMap="BaseResultMap">
        select wrk_no, matnr, maktx, anfme from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
        select wrk_no, mat_no, mat_name, qty from asr_wrk_detl where 1=1 and wrk_no = #{workNo}
    </select>
</mapper>
src/main/webapp/static/css/console.css
@@ -178,6 +178,22 @@
    font-size: 14px;
    color: #FFFFFF;
}
/* 站点 */
.site {
    color: #333;
    height: 18px;
    border: 1px solid rgb(108,167,168);
    cursor: pointer;
    width: 50px;
    text-align: center;
    background-color: rgb(120,255,129);
    font-size: 13px;
}
/*空站点*/
.site-k {
    border: 1px solid rgb(108,167,168);
    background-color: rgb(108, 167, 168);
}
/* 入库 */
.machine-put-flag {
    padding: 0 10px;
@@ -243,22 +259,9 @@
    background-repeat: no-repeat;
    margin-left: 2%;
}
/* 站点 */
.site {
    color: #333;
    height: 18px;
    border: 1px solid rgb(108,167,168);
    cursor: pointer;
    width: 50px;
    text-align: center;
    background-color: rgb(120,255,129);
    font-size: 13px;
}
.site-k {
    border: 1px solid rgb(108,167,168);
    background-color: rgb(108, 167, 168);
}
/*空站点*/
/* ------------------ 输送线总成 ------------------ */
.site-row {
    position: absolute;
@@ -267,46 +270,42 @@
/* 输送线第一列 */
.site-row-1 {
    top: 205px;
    left: 128px;
    left: 120px;
}
.site-row-1 .site {
    width: 90px;
    width: 80px;
}
/* 输送线第二列 */
.site-row-2 {
    top: 205px;
    left: 230px;
    left: 202px;
}
.site-row-2 .site {
    width: 90px;
    width: 80px;
}
.site-row-3 {
    top: 205px;
    left: 302px;
    width: 144px;
    left: 284px;
    /*width: 164px;*/
}
.site-row-3 .site {
    width: 90px;
}
.site-row-4 {
    top: 246px;
    left: 374px;
    width: 80px;
}
.site-row-5 {
    top: 71px;
    left: 446px;
    left: 448px;
}
.site-row-5 .site {
    width: 90px;
    width: 80px;
}
.site-row-6 {
    top: 71px;
    left: 518px;
    left: 530px;
}
.site-row-6 .site {
    width: 90px;
    width: 80px;
}
@@ -314,7 +313,7 @@
.main-part {
    position: absolute;
    top: 20px;
    left: 590px;
    left: 612px;
}
.main-part .lane {
    margin-top: 30px;
src/main/webapp/views/console.html
@@ -22,26 +22,34 @@
            </div>
            <!--第1列(宽度 70px) -->
            <div class="site-row site-row-1">
        <div class="site-k" style="height:39px;width:70px;"></div>
                <div id="site-173" class="site" style="height: 18px;line-height: 18px;margin-bottom: 85px">173</div>
            </div>
            <!--第2列(宽度 70px)-->
            <div class="site-row site-row-2">
                <div id="site-175" class="site" style="height: 18px;line-height: 18px;">175</div>
                <div id="site-174" class="site" style="height: 19px;line-height: 19px;">174</div>
                <div id="site-172" class="site" style="height: 18px;line-height: 18px;margin-bottom: 248px">172</div>
        <div id="site-172" class="site" style="height: 18px;line-height: 18px;">172</div>
        <div class="site-k" style="height: 246px;width:70px;"></div>
                <div id="site-182" class="site" style="height: 18px;line-height: 18px;">182</div>
            </div>
            <!-- 第3列(宽度 70px) -->
            <div class="site-row site-row-3">
                <div id="site-171" class="site" style="height: 18px;line-height: 18px;margin-bottom: 248px; ">171</div>
                <div id="site-181" class="site" style="height: 18px;line-height: 18px;margin-bottom: 44px; ">181</div>
        <div id="site-176" class="site" style="height: 18px;line-height: 18px;width:162px;">176</div>
        <div class="site-k" style="height: 19px;width:162px;"></div>
        <div>
            <div id="site-171" class="site" style="height: 18px;line-height: 18px;position: absolute;clear: right">171</div>
            <div id="site-170" class="site" style="height: 18px;line-height: 18px;width:80px;float: right">170</div>
        </div>
        <div class="site-k" style="height: 246px;width:70px;"></div>
        <div>
            <div id="site-181" class="site" style="height: 18px;line-height: 18px;position: absolute;clear: right">181</div>
            <div id="site-180" class="site" style="height: 18px;line-height: 18px;width:80px;float: right">180</div>
        </div>
            </div>
            <!-- 第4列(宽度 70px 140px) -->
            <div class="site-row site-row-4">
                <div id="site-176" class="site" style="height: 18px;line-height: 18px;width:140px;margin-bottom: 21px">176</div>
                <div id="site-170" class="site" style="height: 18px;line-height: 18px;width:70px;margin-bottom: 248px;position: relative;float: right">170</div>
                <div id="site-180" class="site" style="height: 18px;line-height: 18px;width:70px;position: relative;clear:right;float: right">180</div>
            </div>
            <!--&lt;!&ndash; 第5列(宽度 70px) &ndash;&gt;-->
            <div class="site-row site-row-5">
                <div id="site-163" class="site" style="height: 28.5px;line-height: 28.5px">163</div>
@@ -1227,31 +1235,28 @@
    $('.site').on('click',function(){
        var id = this.id.split("-")[1];
         $("#siteWindow").attr("style","display:block;");//显示div
        $("#crnWindow").attr("style","display:none;");
         $(".detailed").empty();
         $('.detailed').append(id+'站点详细信息');
         var res = {
              code: 500,
             msg: '服务器异常',
        $.ajax({
            url:baseUrl+"/console/site/detail",
            headers:{
                'token': localStorage.getItem('token')
            },
             data: {
                 siteId:id,
                 workNo:100,
                 wrkSts:'运行中',
                 autoing:'Y',
                 loading:'',
                 canining:'',
                 canouting:'',
                 ioType:'出库',
                 sourceStaNo:'站点2',
                 staNo:'站点1',
                 sourceLocNo:2,
                 locNo:2,
                siteId: id
            },
            method:'post',
            success:function (res) {
                for (var val in data) {
                    var find = $("#siteWindow").find(":input[name='" + val + "']");
                    if (find[0].type==='text') {
                        find.val(data[val]);
                    } else if (find[0].type === 'checkbox') {
                        find.attr("checked", data[val] === 'Y');
             }
         }
        http.post(baseUrl+"/console/site/detail", {siteId: id}, function (res) {
            }
        })
        // res.data
@@ -1269,9 +1274,11 @@
    $('.machine').on('click',function(){
        var id = this.id.split("-")[1];
        $("#crnWindow").attr('style','display:block;');
        $("#siteWindow").attr("style","display:none;");
        $('.detailed').empty();
        $('.detailed').append(id+'号堆垛机');
        $.post(baseUrl+"/console/crn/detail", {crnNo: id}, function (res) {
            console.log(res)
            for (var val in res.data) {
                var find = $("#crnWindow").find(":input[name='" + val + "']");
                if (find[0].type==='text') {