From ce85e6d09eaafa4758ffeccacf8867969dca54ac Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期五, 09 六月 2023 15:01:00 +0800
Subject: [PATCH] apk
---
igds-app/js/admin/inout-out-record.js | 46 +++++++++++++++++++++++++++++++++++++---------
1 files changed, 37 insertions(+), 9 deletions(-)
diff --git a/igds-app/js/admin/inout-out-record.js b/igds-app/js/admin/inout-out-record.js
index bf8e389..c34aa0d 100644
--- a/igds-app/js/admin/inout-out-record.js
+++ b/igds-app/js/admin/inout-out-record.js
@@ -25,17 +25,17 @@
dateTime = getDate(new Date());
$("#dateTime").val(dateTime);
- //鑾峰彇鍏ュ簱璁板綍
+ //鑾峰彇鍑哄簱璁板綍
getOutRecordList();
}
-//鏌ヨ鍏ュ簱璁板綍
+//鏌ヨ鍑哄簱璁板綍
function getOutRecordList() {
outRecordData = null;
//璧嬪�煎弬鏁扮殑鏃ユ湡
data.data.dateTime = dateTime;
-
+ console.log(JSON.stringify(data.data), "inout-out-record")
//璇锋眰
mui.ajax(url, {
type: "POST",
@@ -45,27 +45,52 @@
data: JSON.stringify(data),
success: function(result) {
if (result.code == "0000") {
+ console.log(JSON.stringify(result))
outRecordData = result.data;
renderData();
} else {
- renderData();
mui.toast(result.mag);
+ renderData();
+
}
},
error: function() {
mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div")
}
})
+ // outRecordData = {
+ // "sum": "55",
+ // "listInout": [{
+ // "id": "98",
+ // "plateNum": "39",
+ // "depotId": "83",
+ // "depotName": "鑳藉闄呮硶楂樼瓑",
+ // "foodVariety": "quis Ut",
+ // "foodVarietyName": "琚緳娴庢潵",
+ // "recordWeight": "25",
+ // "completeTime": "1971-10-20 14:45:38"
+ // },
+ // {
+ // "id": "37",
+ // "plateNum": "50",
+ // "depotId": "16",
+ // "depotName": "鍑嗘皯闈掑叡宸�",
+ // "foodVariety": "aliquip eiusmod laborum nulla",
+ // "foodVarietyName": "鍙疯蛋鏍瑰舰",
+ // "recordWeight": "30",
+ // "completeTime": "1971-04-09 06:42:06"
+ // }
+ // ],
+ // }
}
//娓叉煋椤甸潰
function renderData() {
-
var html = '';
var sumHtml = '0';
if(outRecordData){
sumHtml = outRecordData.sum;
-
+ console.log()
var outRecordList = outRecordData.listInout;
if (outRecordList && outRecordList.length > 0) {
$.each(outRecordList, function(index, item) {
@@ -107,14 +132,17 @@
//閫夋嫨鏃ユ湡
function chooseDate() {
var dtpicker = new mui.DtPicker({
- type: "date" //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡
+ type: "date" ,//璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡
+ value: dateTime
})
+ var time = dateTime
dtpicker.show(function(e) {
dateTime = e.value;
$("#dateTime").val(dateTime);
+ if(time != dateTime){
+ getOutRecordList();
+ }
})
-
- getOutRecordList();
}
//榛樿鑾峰彇褰撳墠鏃ユ湡(yyyy-MM-dd)
--
Gitblit v1.9.3