| | |
| | | <th>当前速度</th> |
| | | <th>负载状态</th> |
| | | <th>顶升位置</th> |
| | | <th>运行方向</th> |
| | | <th>运行方向2</th> |
| | | <th>充电状态</th> |
| | | <th>故障状态</th> |
| | | <th>故障码</th> |
| | | <th>管制状态</th> |
| | | <th>低电量</th> |
| | |
| | | <th>充放电循环次数</th> |
| | | <th>剩余电量</th> |
| | | <th>总电量</th> |
| | | <th>总里程数</th> |
| | | <th>作业标记</th> |
| | | <th>当前库位</th> |
| | | <th>令牌</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | |
| | | </div> |
| | | |
| | | <div style="margin-top: 10px;"> |
| | | <button class="item" onclick="shuttleOperator(18)">搬运货物</button> |
| | | <button class="item" onclick="shuttleOperator(14)">移动到目标库位</button> |
| | | <button class="item" onclick="shuttleOperator(23)">移动到目标库位(任务)</button> |
| | | <button class="item" onclick="shuttleOperator(9)">搬运货物</button> |
| | | <button class="item" onclick="shuttleOperator(4)">移动到目标库位</button> |
| | | <button class="item" onclick="shuttleOperator(5)">移动到目标库位(任务)</button> |
| | | <!-- <button class="item" onclick="shuttleOperator(16)">移动到提升机</button>--> |
| | | </div> |
| | | </div> |
| | |
| | | <span class="select-title">相关指令</span> |
| | | <div class="select-container" style="height: auto;padding: 30px 10px 10px 10px;"> |
| | | <div class="button-group"> |
| | | <button class="item" onclick="shuttleOperator(3)">托盘顶升</button> |
| | | <button class="item" onclick="shuttleOperator(4)">托盘下降</button> |
| | | <button class="item" onclick="shuttleOperator(15)">充电开关</button> |
| | | <button class="item" onclick="shuttleOperator(9)">复位</button> |
| | | <button class="item" onclick="shuttleOperator(21)">管制</button> |
| | | <button class="item" onclick="shuttleOperator(22)">取消管制</button> |
| | | <button class="item" onclick="shuttleOperator(1)">托盘顶升</button> |
| | | <button class="item" onclick="shuttleOperator(2)">托盘下降</button> |
| | | <button class="item" onclick="shuttleOperator(6)">充电开关</button> |
| | | <button class="item" onclick="shuttleOperator(3)">复位</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | for (let i=1;i<=table.length;i++){ |
| | | // $("#mode-"+table[i-1].shuttleNo).html(table[i-1].statusVal===0?'联机':'脱机'); |
| | | let tr = tableEl.find("tr").eq(i); |
| | | let suspendState; |
| | | if (table[i - 1]['extend'] != undefined) { |
| | | suspendState = table[i-1]['extend'].suspendState |
| | | } |
| | | |
| | | setVal(tr.children("td").eq(0), table[i-1].shuttleNo); |
| | | setVal(tr.children("td").eq(1), table[i-1].protocolStatus$); |
| | | setVal(tr.children("td").eq(2), table[i-1].free$); |
| | | setVal(tr.children("td").eq(3), table[i-1].workingMode$); |
| | | setVal(tr.children("td").eq(4), table[i-1].point$); |
| | | setVal(tr.children("td").eq(5), table[i-1].point$$); |
| | | setVal(tr.children("td").eq(6), table[i-1].powerPercent$); |
| | | setVal(tr.children("td").eq(2), table[i-1].deviceStatus$); |
| | | setVal(tr.children("td").eq(3), table[i-1].mode$); |
| | | setVal(tr.children("td").eq(4), table[i-1].currentLocNo); |
| | | setVal(tr.children("td").eq(5), table[i-1].currentCode); |
| | | setVal(tr.children("td").eq(6), table[i-1].batteryPower); |
| | | setVal(tr.children("td").eq(7), table[i-1].speed); |
| | | setVal(tr.children("td").eq(8), table[i-1].loadState$); |
| | | setVal(tr.children("td").eq(9), table[i-1].liftPosition$); |
| | | setVal(tr.children("td").eq(10), table[i-1].runDir$); |
| | | setVal(tr.children("td").eq(11), table[i-1].runDir2$); |
| | | setVal(tr.children("td").eq(12), table[i-1].chargState$); |
| | | setVal(tr.children("td").eq(13), table[i-1].errState$); |
| | | setVal(tr.children("td").eq(14), table[i-1].errCode$); |
| | | setVal(tr.children("td").eq(15), table[i-1].suspendState$); |
| | | setVal(tr.children("td").eq(16), table[i-1].lowerPower); |
| | | setVal(tr.children("td").eq(8), table[i-1].hasPallet$); |
| | | setVal(tr.children("td").eq(9), table[i-1].hasLift$); |
| | | setVal(tr.children("td").eq(10), table[i-1].hasCharge$); |
| | | setVal(tr.children("td").eq(11), table[i-1].statusErrorCode$); |
| | | setVal(tr.children("td").eq(12), suspendState); |
| | | setVal(tr.children("td").eq(13), table[i-1].lowerPower); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | |
| | | } |
| | | for (var i=1;i<=table.length;i++){ |
| | | var tr = tableEl.find("tr").eq(i); |
| | | let maxCellVoltage; |
| | | let minCellVoltage; |
| | | let voltage; |
| | | let chargeCycleTimes; |
| | | let surplusQuantity; |
| | | let countQuantity; |
| | | if (table[i - 1]['extend'] != undefined) { |
| | | maxCellVoltage = table[i-1]['extend'].maxCellVoltage |
| | | minCellVoltage = table[i-1]['extend'].minCellVoltage |
| | | voltage = table[i-1]['extend'].voltage |
| | | chargeCycleTimes = table[i-1]['extend'].chargeCycleTimes |
| | | surplusQuantity = table[i-1]['extend'].surplusQuantity |
| | | countQuantity = table[i-1]['extend'].countQuantity |
| | | } |
| | | |
| | | setVal(tr.children("td").eq(0), table[i-1].shuttleNo); |
| | | setVal(tr.children("td").eq(1), table[i-1].taskNo); |
| | | setVal(tr.children("td").eq(2), table[i-1].sourceLocNo); |
| | | setVal(tr.children("td").eq(3), table[i-1].locNo); |
| | | setVal(tr.children("td").eq(4), table[i-1].maxCellVoltage$); |
| | | setVal(tr.children("td").eq(5), table[i-1].minCellVoltage$); |
| | | setVal(tr.children("td").eq(6), table[i-1].voltage$); |
| | | setVal(tr.children("td").eq(7), table[i-1].chargeCycleTimes); |
| | | setVal(tr.children("td").eq(8), table[i-1].surplusQuantity); |
| | | setVal(tr.children("td").eq(9), table[i-1].countQuantity); |
| | | setVal(tr.children("td").eq(10), table[i-1].statusSum ? table[i - 1].statusSum.mileage : ''); |
| | | setVal(tr.children("td").eq(11), table[i-1].pakMk$); |
| | | setVal(tr.children("td").eq(12), table[i-1].currentLocNo); |
| | | setVal(tr.children("td").eq(13), table[i-1].token); |
| | | setVal(tr.children("td").eq(4), maxCellVoltage); |
| | | setVal(tr.children("td").eq(5), minCellVoltage); |
| | | setVal(tr.children("td").eq(6), voltage); |
| | | setVal(tr.children("td").eq(7), chargeCycleTimes); |
| | | setVal(tr.children("td").eq(8), surplusQuantity); |
| | | setVal(tr.children("td").eq(9), countQuantity); |
| | | setVal(tr.children("td").eq(10), table[i-1].pakMk$); |
| | | if (table[i-1].shuttleNo == parseInt($('input[name="shuttleSelect"]:checked').val())) { |
| | | $("#runSpeedText").text(table[i-1].runSpeed) |
| | | $("#chargeLineText").text(table[i-1].chargeLine + "%") |