From 9c324879cee66f4be0b9de62dadae446ed14e940 Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期五, 01 八月 2025 15:09:42 +0800 Subject: [PATCH] 修改PDA托盘绑定方法 --- HTML/views/WareHouseSetting/DenseLegend.html | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HTML/views/WareHouseSetting/DenseLegend.html b/HTML/views/WareHouseSetting/DenseLegend.html index 7785fea..ae08bf7 100644 --- a/HTML/views/WareHouseSetting/DenseLegend.html +++ b/HTML/views/WareHouseSetting/DenseLegend.html @@ -110,7 +110,7 @@ <div class="layouts"> <!-- 宸﹁竟鍥� --> - <div id="chartMap1" style="width:66%;height:86vh; display: flex; justify-content: space-around;"> + <div id="chartMap1" style="width:66%;height:100%; display: flex; justify-content: space-around;"> <div> <table id="tab"></table> </div> @@ -224,24 +224,24 @@ var html = ''; var list = res.data; var slots = list.SlotsVm; - for (let i = list.Col; i > 0; i--) { + for (let i = 1; i <= list.Row; i++) { html += '<tr >'; - for (let k = 1; k <= list.Row; k++) { - var statu = slots.find(r=> r.SlotColumn==i && r.SlotRow == k); + for (let k = 1; k <= list.Col; k++) { + var statu = slots.find(r=> r.SlotColumn==k && r.SlotRow == i); var d = ""; var s ="eight"; if (statu != undefined) { s= statu.SlotStatusCls; d = statu.SlotCode; - if (statu.Make =="02") { + if (statu.Make =="0") { html +='<td><button val='+d+' class="btncls " disabled></button></td>' } else { var lie=d.substr(2,2); var hang=d.substr(0,2); console.log(lie); console.log(hang); - html +='<td><div val='+d+' class="btncls divcls textSty '+ s +'" >'+lie+'<br/>'+hang+'</div></td>' + html +='<td><div val='+d+' class="btncls divcls textSty '+ s +'" >'+hang+'<br/>'+lie+'</div></td>' } -- Gitblit v1.8.0