APP
YYC
2026-02-12 57233e23e69d04672f9721def4d00c2905922d25
igdss-app/js/admin/grain-history.js
@@ -6,9 +6,9 @@
var dateTime; //日期:yyyy-MM
//查询粮情历史数据参数
var data = {
   "interfaceId": "5302",
   "sign": "10302",
   "outId": "10302",
   "interfaceId": "5204",
   "sign": "105204",
   "outId": "105204",
   "reqDateTime": new Date(),
   "tokenAuth": "",
   "data": {
@@ -19,9 +19,9 @@
};
//查询仓库列表参数
var data0 = {
   "interfaceId": "5102",
   "sign": "10102",
   "outId": "10102",
   "interfaceId": "5201",
   "sign": "10201",
   "outId": "10201",
   "reqDateTime": new Date(),
   "tokenAuth": "",
   "data": {
@@ -33,7 +33,7 @@
function init() {
   var user = JSON.parse(localStorage.getItem('user'));
   var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId'));
   url = user.url + "/api-phone/v35/gateway";
   url = user.url + "/api/phone/v1/gateway";
   data.tokenAuth = user.tokenAuth;
   data.data.deptId = selectDeptId;
   data0.tokenAuth = user.tokenAuth;
@@ -62,7 +62,7 @@
   }
   data.data.depotId = depotId;
   data.data.dateTime = dateTime;
   //请求
   mui.ajax(url, {
      type: "POST",
@@ -73,9 +73,11 @@
      success: function(result) {
         if (result.code == "0000") {
            historyList = result.data;
            console.log(JSON.stringify("000"))
            renderData();
         } else {
            renderData();
            console.log(JSON.stringify("001"))
            mui.toast(result.mag);
         }
      },
@@ -90,6 +92,7 @@
   var html = '';
   if (historyList != null && historyList.length > 0) {
      $.each(historyList, function(index, item) {
         console.log(JSON.stringify(item))
         html += '<li><div class="con"><div class="tit">检测时间: ' + item.receiveDate;
         html += '<a id="' + index + '" class="more"></a></div><div class="inner">';
         html += '<div class="info">粮食温度</div><div class="txt">';