YYC
2023-06-19 bbeea3379807b3c7e03f99621aae5c1e2367f69b
igds-app/js/admin/inout-real.js
@@ -37,6 +37,7 @@
      data: JSON.stringify(data),
      success: function(result) {
         if (result.code == "0000") {
            console.log(JSON.stringify(result))
            recordData = result.data;
            renderData();
         } else {
@@ -53,6 +54,7 @@
//渲染页面
function renderData() {
   var html = '';
   console.log(JSON.stringify(recordData))
   if (recordData) {
      $("#inSumNum").html(recordData.inSumNum);
      $("#inCompleteNum").html(recordData.inCompleteNum);
@@ -69,14 +71,14 @@
               '</span></div>';
            html += '<ul class="g-listb2">';
            html += '<li><div class="con" style="background-image: url(images/icons/g-i24.png);">';
            html += '车牌号:<b>' + (item.plateNum == null ? "" : item.plateNum) + '</b></div></li>';
            html += '车牌号:<b>' + (item.plateNum == null ? "-" : item.plateNum) + '</b></div></li>';
            html += '<li><div class="con" style="background-image: url(images/icons/g-i25.png);">';
            html += '仓库名称:<b>' + (item.depotId == null ? "" : item.depotId) + '</b></div></li>';
            html += '仓库名称:<b>' + (item.depotName == null ? "-" : item.depotName) + '</b></div></li>';
            html += '<li><div class="con" style="background-image: url(images/icons/g-i32.png);">';
            html += '粮食品种:<b>' + (item.foodVariety == null ? "" : item.foodVariety) + '</b></div></li>';
            html += '粮食品种:<b>' + (item.foodVarietyName == null ? "-" : item.foodVarietyName) + '</b></div></li>';
            html += '<li><div class="con" style="background-image: url(images/icons/g-i24.png);">';
            html += '结算重量:<span><em>' + (item.recordWeight == null ? "" : item.recordWeight) +
               '</em>KG</span></div></li>';
            html += '当前流程:<span>' + (item.progressName == null ? "-" : item.progressName) +
               '</span></div></li>';
            html += '</ul></div>';
         })
      } else {
@@ -89,7 +91,7 @@
      $("#outSumNum").html("0");
      $("#outCompleteNum").html("0");
      $("#perOutComplete").html("0");
      $("#time").html("更新时间:" + recordData.time);
      $("#time").html("更新时间:2023-01-01 00:00:00");
      html += '<div class="id" style="text-align: center;">暂无实时信息</div>';
   }
   $("#listInout").html(html);