From 42ef69a6a50f5431fe718ebde2bf646ca2a17609 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 02 四月 2026 09:56:04 +0800
Subject: [PATCH] 密码加密,地磅抓拍
---
igdss-app/js/admin/grain-quantity.js | 49 +++++++++++++++++++++++--------------------------
1 files changed, 23 insertions(+), 26 deletions(-)
diff --git a/igdss-app/js/admin/grain-quantity.js b/igdss-app/js/admin/grain-quantity.js
index 4c7aa6a..0d3d493 100644
--- a/igdss-app/js/admin/grain-quantity.js
+++ b/igdss-app/js/admin/grain-quantity.js
@@ -2,18 +2,18 @@
var uploadUrl = null;
var quantityList = null;
var ImgFile = null;
-var dateTime;
+var dateTime1;
var length;
var currentImageIndex;
//鐢靛瓙宸℃洿璁板綍
var data = {
"interfaceId": "5207",
"outId": "10207",
- "reqDateTime": new Date(),
+ "reqdateTime1": new Date(),
"tokenAuth": "",
"data": {
"deptId": "",
- "dateTime": "",
+ "dateTime1": "",
}
};
@@ -21,7 +21,7 @@
var data2 = {
"interfaceId": "5208",
"outId": "10208",
- "reqDateTime": new Date(),
+ "reqdateTime1": new Date(),
"tokenAuth": "",
"data": {
"id": "",
@@ -35,8 +35,8 @@
data.tokenAuth = user.tokenAuth;
data2.tokenAuth = user.tokenAuth;
data.data.deptId = selectDeptId;
- dateTime = getDate(new Date())
- document.getElementById("date").value = dateTime;
+ dateTime1 = getDate(new Date())
+ document.getElementById("date").value = dateTime1;
//鑾峰彇鏁伴噺妫�娴嬪垪琛�
getQuantityList()
@@ -50,20 +50,16 @@
if (month > 0 && month <= 9) {
month = "0" + month;
}
- day = date.getDate();
- if (day > 0 && day <= 9) {
- day = "0" + day;
- }
- return year + "-" + month + "-" + day
+ return year + "-" + month
}
//鍔犲噺澶╂暟
function addAndReduceMonth(tag) {
- var date = new Date(dateTime);
- date = date.setDate(date.getDate() + tag);
+ var date = new Date(dateTime1);
+ date = date.setMonth(date.getMonth() + tag);
date = new Date(date);
- dateTime = getDate(date);
- document.getElementById("date").value = dateTime;
+ dateTime1 = getDate(date);
+ document.getElementById("date").value = dateTime1;
//鑾峰彇鏁伴噺妫�娴嬪垪琛�
getQuantityList()
}
@@ -71,16 +67,16 @@
//閫夋嫨鏃ユ湡
function chooseDate() {
var dtpicker = new mui.DtPicker({
- type: "date", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡
+ type: "month", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡
// beginDate: new Date(2015, 04, 25), //璁剧疆寮�濮嬫棩鏈�
// endDate: new Date(2016, 04, 25), //璁剧疆缁撴潫鏃ユ湡
- value: dateTime
+ value: dateTime1
})
- var time = dateTime;
+ var time = dateTime1;
dtpicker.show(function(e) {
- dateTime = e.value;
+ dateTime1 = e.value;
document.getElementById("date").value = e.value
- if (time != dateTime) {
+ if (time != dateTime1) {
getQuantityList();
}
})
@@ -88,7 +84,7 @@
//鑾峰彇鏁伴噺妫�娴嬪垪琛�
function getQuantityList() {
//璧嬪�煎弬鏁扮殑鏃ユ湡
- data.data.dateTime = dateTime;
+ data.data.dateTime1 = dateTime1;
console.log(JSON.stringify(data.data), "鏁伴噺妫�娴�", "grain-quantity")
mui.ajax(url, {
type: "POST",
@@ -101,6 +97,7 @@
quantityList = result.data;
renderPatrol();
} else {
+ quantityList = ''
renderPatrol();
mui.toast(result.msg);
console.log(JSON.stringify(result))
@@ -117,14 +114,14 @@
var html = '';
if (quantityList && quantityList.length > 0) {
$.each(quantityList, function(index, item) {
- html += '<li><div class="item"><div class="top"><div class="text">'+item.deptName+'</div><div class="r-btn" id = '+item.batchId+'>杩囩▼鎶撴媿</div></div>'
- html += '<div class="top-tit"><div class="text">'+item.remark+'</div></div>';
- html += '<div class="cards"><div class="cd"><div class="con user"><div class="tit">妫�娴嬮噸閲�</div><div class="txt">'+item.weight+' KG</div></div></div>'
- html += '<div class="cd"><div class="con loc"><div class="tit">鏃堕棿</div><div class="txt">'+item.receiveDate+'</div></div></div></div></div></li>';
+ html += '<li><div class="item"><div class="top"><div class="text">'+(item.deptName == null?"--":item.deptName)+'</div><div class="r-btn" id = '+item.batchId+'>杩囩▼鎶撴媿</div></div>'
+ html += '<div class="top-tit"><div class="text">'+(item.remark == null?"--":item.remark)+'</div></div>';
+ html += '<div class="cards"><div class="cd"><div class="con user"><div class="tit">妫�娴嬮噸閲�</div><div class="txt">'+(item.weight == null?"--":item.weight)+' KG</div></div></div>'
+ html += '<div class="cd"><div class="con loc"><div class="tit">鏃堕棿</div><div class="txt">'+(item.receiveDate == null?"--":item.receiveDate)+'</div></div></div></div></div></li>';
})
} else {
html +=
- '<li><div class="notItem"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤宸ュ崟瀹℃牳淇℃伅</div></div></li>';
+ '<li><div class="notItem"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤鏁伴噺鐩戞祴淇℃伅</div></div></li>';
}
$("#recordList").html(html)
--
Gitblit v1.9.3