| | |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/> |
| | | <title>PDA首页</title> |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js"></script> |
| | | <style> |
| | | * { |
| | | margin: 0; |
| | |
| | | } |
| | | |
| | | td { |
| | | color: white; |
| | | background-image: linear-gradient(to top, #09203f 0%, #537895 100%); |
| | | /*background-color: rgba(204,204,204,.6);*/ |
| | | border-radius: 8px; |
| | | text-align: center; |
| | | vertical-align: middle; |
| | | height: 80px; |
| | | font-size: 24px; |
| | | } |
| | | .nav-font-size { |
| | | font-size: 18px; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | | |
| | | <!-- 导航菜单 --> |
| | | <table id="navList" style="width: 100%; border-color: #e6e6e6" border="1" cellspacing="1"> |
| | | <table id="navList" style="width: 100%; border-color: #e6e6e6;" border="0" cellspacing="2"> |
| | | <tr> |
| | | <td> |
| | | <a id="comb" onclick="nav(this.id)" class="nav-select" href="#">组托</a> |
| | | <div id="combAgv" onclick="nav(this.id)" class="nav-font-size">小车组托入库</div> |
| | | </td> |
| | | <td> |
| | | <a id="combPro" onclick="nav(this.id)" class="nav-unselect" href="#">关联组托</a> |
| | | <div id="combProAgv" onclick="nav(this.id)" class="nav-font-size">小车关联组托</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <a id="stockIn" onclick="nav(this.id)" class="nav-unselect" href="#">入库</a> |
| | | <div id="comb" onclick="nav(this.id)" class="nav-font-size">立库组托入库</div> |
| | | </td> |
| | | <td> |
| | | <a id="stockOut" onclick="nav(this.id)" class="nav-unselect" href="#">出库</a> |
| | | <div id="combPro" onclick="nav(this.id)" style="font-size: 15px">立库任务单入库</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <a id="locNormalIn" onclick="nav(this.id)" class="nav-unselect" href="#">平仓入库</a> |
| | | <div id="locNormalIn1" onclick="nav(this.id)" class="nav-font-size">平仓材料入库</div> |
| | | </td> |
| | | <td> |
| | | <a id="locNormalOut" onclick="nav(this.id)" class="nav-unselect" href="#">平仓出库</a> |
| | | <div id="locNormalOut1" onclick="nav(this.id)" class="nav-font-size">平仓材料出库</div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <div id="locNormalIn" onclick="nav(this.id)" class="nav-font-size">平仓成品入库</div> |
| | | </td> |
| | | <td> |
| | | <div id="locNormalOut" onclick="nav(this.id)" class="nav-font-size">平仓成品出库</div> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | |
| | | |
| | | </body> |
| | | <script> |
| | | $(function(){ |
| | | $.ajax({ |
| | | url: baseUrl+"/user/roleId/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | console.log(res) |
| | | if (res.data.code === 'a') { |
| | | $("#combAgv").parent().hide(); |
| | | $("#combProAgv").parent().hide(); |
| | | $("#comb").parent().hide(); |
| | | $("#combPro").parent().hide(); |
| | | $("#locNormalIn").parent().hide(); |
| | | $("#locNormalOut").parent().hide(); |
| | | } else if (res.data.code === 'b') { |
| | | $("#locNormalIn1").parent().hide(); |
| | | $("#locNormalOut1").parent().hide(); |
| | | $("#locNormalIn").parent().hide(); |
| | | $("#locNormalOut").parent().hide(); |
| | | } else if (res.data.code === 'c') { |
| | | $("#combAgv").parent().hide(); |
| | | $("#combProAgv").parent().hide(); |
| | | $("#comb").parent().hide(); |
| | | $("#combPro").parent().hide(); |
| | | $("#locNormalIn1").parent().hide(); |
| | | $("#locNormalOut1").parent().hide(); |
| | | } |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | // 导航栏 |
| | | function nav(id) { |
| | | $('.nav-select').attr("class", "nav-unselect"); |
| | | $('#' + id).attr("class", "nav-select"); |
| | | $('#content').attr("src", id + ".html"); |
| | | // $('.nav-select').attr("class", "nav-unselect"); |
| | | // $('#' + id).attr("class", "nav-select"); |
| | | |
| | | if (id === 'locNormalIn1') { |
| | | $('#content').attr("src", "locNormalIn.html?areaType=1"); |
| | | } else if (id === 'locNormalOut1') { |
| | | $('#content').attr("src", "locNormalOut.html?areaType=1"); |
| | | } else { |
| | | $('#content').attr("src", id + ".html"); |
| | | } |
| | | $('#navList').css('display', 'none'); |
| | | $('#content').css('display', 'block'); |
| | | } |
| | |
| | | $('#content').css('display', 'none'); |
| | | } |
| | | </script> |
| | | </html> |
| | | </html> |