YYC
2023-06-09 5132d695e4edc00e2a80f7bf40b5164be34e9499
igds-app/js/admin/work-record.js
@@ -15,7 +15,7 @@
   var user = JSON.parse(localStorage.getItem('user'));
   url = user.url + "/api-phone/v35/gateway";
   data.tokenAuth = user.tokenAuth;
   data.data.userName = user.userName;
   data.data.userName = user.username;
   console.log(JSON.stringify(data.data),"work-record")
   getRecordList();
}
@@ -35,7 +35,7 @@
            renderRecordList();
         } else {
            renderRecordList();
            mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
            mui.toast(result.msg, '提示', ["确定"], function() {}, "div");
         }
      },
      error: function() {
@@ -43,55 +43,57 @@
         mui.alert('系统繁忙,请重新登录尝试!', '提示', ["确定"], function() {}, "div");
      }
   })
   recordList = [{
         "id": "59",
         "deptName": "1号仓",
         "status": "10",
         "applyUserName": "郝军",
         "type": "exercitation reprehenderit sint",
         "startTime": "1974-07-05 21:56",
         "endTime": "2013-08-19 05:43",
         "info": "sed adipisicing quis irure",
         "depotId": "90",
         "depotName": "即传状新五际"
      },
      {
         "id": "39",
         "deptName": "1号仓",
         "status": "20",
         "applyUserName": "袁强",
         "type": "sed et sit irure eu",
         "startTime": "2015-10-25 12:30",
         "endTime": "1971-04-18 19:34",
         "info": "reprehenderit qui quis pariatur anim",
         "depotId": "89",
         "depotName": "当入物还算"
      },
      {
         "id": "55",
         "deptName": "3号仓",
         "status": "20",
         "applyUserName": "宋丽",
         "type": "in",
         "startTime": "1994-10-12 18:25",
         "endTime": "2008-01-19 00:26",
         "info": "ex ullamco id dolor",
         "depotId": "42",
         "depotName": "新常技位中"
      },
      {
         "id": "50",
         "deptName": "2号仓",
         "status": "10",
         "applyUserName": "黄超",
         "type": "nostrud elit",
         "startTime": "2018-07-07 10:25",
         "endTime": "2000-11-07 10:02",
         "info": "et minim",
         "depotId": "53",
         "depotName": "人离它军题"
      }
   ]
   // recordList = [{
   //       "id": "59",
   //       "deptName": "1号仓",
   //       "status": "10",
   //       "applyUserName": "郝军",
   //       "type": "exercitation reprehenderit sint",
   //       "startTime": "1974-07-05 21:56",
   //       "endTime": "2013-08-19 05:43",
   //       "info": "sed adipisicing quis irure",
   //       "depotId": "90",
   //       "depotName": "即传状新五际"
   //    },
   //    {
   //       "id": "39",
   //       "deptName": "1号仓",
   //       "status": "20",
   //       "applyUserName": "袁强",
   //       "type": "sed et sit irure eu",
   //       "startTime": "2015-10-25 12:30",
   //       "endTime": "1971-04-18 19:34",
   //       "info": "reprehenderit qui quis pariatur anim",
   //       "depotId": "89",
   //       "depotName": "当入物还算"
   //    },
   //    {
   //       "id": "55",
   //       "deptName": "3号仓",
   //       "status": "20",
   //       "applyUserName": "宋丽",
   //       "type": "in",
   //       "startTime": "1994-10-12 18:25",
   //       "endTime": "2008-01-19 00:26",
   //       "info": "ex ullamco id dolor",
   //       "depotId": "42",
   //       "depotName": "新常技位中"
   //    },
   //    {
   //       "id": "50",
   //       "deptName": "2号仓",
   //       "status": "10",
   //       "applyUserName": "黄超",
   //       "type": "nostrud elit",
   //       "startTime": "2018-07-07 10:25",
   //       "endTime": "2000-11-07 10:02",
   //       "info": "et minim",
   //       "depotId": "53",
   //       "depotName": "人离它军题"
   //    }
   // ]
}
function renderRecordList() {
@@ -105,13 +107,11 @@
         } else if (item.status == '20') { // 待审核
            html += '<img src="images/icons/g-i28.png" alt=""></span>'
         }
         html += '<div class="title">所属分库:<b>' + item.deptName +
            '</b></div><div class="box"><ul class="gd-list">';
         html += '<div class="title"><b></b></div><div class="box"><ul class="gd-list">';
         html += '<li><a href="" class="con"style="background-image: url(images/icons/a-bg12.png);">';
         html += '<div class="tit">业务类型:</div><div class="name">' + item.type + '</div></a></li>';
         html += '<li><a href="" class="con"style="background-image: url(images/icons/a-bg13.png);">';
         html += '<div class="tit">关联仓库:</div><div class="name">' + (item.depotName == null ? "--" : item
            .depotName) + '</div></a></li></ul>';
         html += '<div class="tit">关联仓库:</div><div class="name">' + (item.depotName == null ? "--" : item.depotName) + '</div></a></li></ul>';
         html += '<div class="time"><p>有效开始时间: <span>' + item.startTime + '</span></p><p>有效结束时间: <span>' +
            item.endTime + '</span></p></div>';
      })
@@ -137,7 +137,7 @@
}
mui('.mui-scroll-wrapper').scroll({
   indicators: false, //是否显示滚动条
   indicators: true, //是否显示滚动条
   deceleration: 0.0006, //阻尼系数,系数越小滑动越灵敏
   bounce: false, //是否启用回弹
   deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006