仓位图
parent
bf4c34408e
commit
1f3ab5c81a
|
@ -3,7 +3,7 @@
|
||||||
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
|
||||||
<div class="easyui-layout" fit="true">
|
<div class="easyui-layout" fit="true">
|
||||||
<div style="padding:0px;border:0px">
|
<div style="padding:0px;border:0px">
|
||||||
<div style="margin-left:100px"> 桃红色标识此储位有货,淡绿色标识此储位为空</div>
|
<%-- <div style="margin-left:100px"> 桃红色标识此储位有货,淡绿色标识此储位为空</div>--%>
|
||||||
<div name="searchColums" style="float: left; padding-left: 0px;padding-top: 5px;">
|
<div name="searchColums" style="float: left; padding-left: 0px;padding-top: 5px;">
|
||||||
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;"
|
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;"
|
||||||
title="仓库">仓库: </span>
|
title="仓库">仓库: </span>
|
||||||
|
@ -23,11 +23,11 @@
|
||||||
</span>
|
</span>
|
||||||
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;"
|
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;"
|
||||||
title="行数">行数: </span>
|
title="行数">行数: </span>
|
||||||
<input type="text" name="hangshu" value="46" style="width: 100px; height: 30px;">
|
<input type="text" name="hangshu" value="42" style="width: 100px; height: 30px;">
|
||||||
</span>
|
</span>
|
||||||
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;"
|
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;"
|
||||||
title="列数">列数: </span>
|
title="列数">列数: </span>
|
||||||
<input type="text" name="lieshu" value="46" style="width: 100px; height: 30px;">
|
<input type="text" name="lieshu" value="34" style="width: 100px; height: 30px;">
|
||||||
</span>
|
</span>
|
||||||
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;">
|
<span style="vertical-align:middle;display:-moz-inline-box;display:inline-block;width: 90px;text-align:right;">
|
||||||
<button onclick="chaxun()">查询</button> </span>
|
<button onclick="chaxun()">查询</button> </span>
|
||||||
|
@ -83,10 +83,18 @@
|
||||||
display: inline-table;
|
display: inline-table;
|
||||||
}
|
}
|
||||||
.all{
|
.all{
|
||||||
display: inline-block;
|
/*display: inline-block;*/
|
||||||
width: 20px;
|
width: 16.5px;
|
||||||
height:20px;
|
height:16.5px;
|
||||||
|
line-height: 16.5px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-right: 1px;
|
||||||
|
margin-bottom: 1px;
|
||||||
|
}
|
||||||
|
#bottom{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -148,21 +156,22 @@
|
||||||
}
|
}
|
||||||
for(let o = 0; o < messageList.length; o++){
|
for(let o = 0; o < messageList.length; o++){
|
||||||
if(messageList[o].ynode*1 == 1){
|
if(messageList[o].ynode*1 == 1){
|
||||||
console.log(messageList[o].ynode*1 * messageList[o].xnode*1 - 1)
|
console.log(messageList[o].ynode*1 * messageList[o].xnode*1 )
|
||||||
list[messageList[o].ynode*1 * messageList[o].xnode*1 - 1] = messageList[o]
|
list[messageList[o].ynode*1 * messageList[o].xnode*1 ] = messageList[o]
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
console.log((messageList[o].ynode*1 - 1) * hangshu*1 + messageList[o].xnode*1 -1)
|
console.log((messageList[o].ynode*1 - 1) * hangshu*1 + messageList[o].xnode*1)
|
||||||
list[(messageList[o].ynode*1 - 1) * hangshu*1 + messageList[o].xnode*1 -1] = messageList[o]
|
list[(messageList[o].ynode*1 - 1) * hangshu*1 + messageList[o].xnode*1 ] = messageList[o]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(list)
|
// console.log(list)
|
||||||
//计算宽度
|
//计算宽度
|
||||||
// var width = 100 / hangshu*1
|
var width = 17.5 * hangshu*1
|
||||||
// console.log(width)
|
$("#bottom").css("width",width);
|
||||||
|
|
||||||
for (let i = 1; i < list.length; i++) {
|
for (let i = 1; i < list.length; i++) {
|
||||||
messageContent += " <a class='all' href='javascript:void(0);' style='background:" +list[i].colour+"' onclick='javascript:addtab(\"" + list[i].des + "\")';return false;'>";
|
messageContent += " <div class='all' href='javascript:void(0);' style='background:" +list[i].colour+"' onclick='javascript:addtab(\"" + list[i].des + "\")';return false;'>";
|
||||||
messageContent += list[i].tincount+ " </a> ";
|
messageContent += list[i].tincount+ " </div> ";
|
||||||
// tincount = list[i].tincount + 0;
|
// tincount = list[i].tincount + 0;
|
||||||
// if (tincount > 0) {
|
// if (tincount > 0) {
|
||||||
// messageContent += " <a class='a01 all' href='javascript:void(0);' onclick='javascript:addtab(\"" + list[i].des + "\")';return false;'>";
|
// messageContent += " <a class='a01 all' href='javascript:void(0);' onclick='javascript:addtab(\"" + list[i].des + "\")';return false;'>";
|
||||||
|
@ -174,7 +183,7 @@
|
||||||
//
|
//
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
var aList = $('.all')
|
// var aList = $('.all')
|
||||||
// console.log(aList)
|
// console.log(aList)
|
||||||
|
|
||||||
// for (var i = 0; i < messageList.length; i++) {
|
// for (var i = 0; i < messageList.length; i++) {
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<body class="gray-bg">
|
<body class="gray-bg">
|
||||||
<%--<div class="row J_mainContent" id="content-main" style="margin-left:-5px;">--%>
|
<%--<div class="row J_mainContent" id="content-main" style="margin-left:-5px;">--%>
|
||||||
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="BiController.do?homebi" frameborder="0" seamless></iframe>
|
<iframe class="J_iframe" name="iframe0" width="100%" height="100% " src="BiController.do?homebi" frameborder="0" seamless></iframe>
|
||||||
<%--</div>--%>
|
<%--</div>--%>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue