From ea6bc6a90863e8800db77091810c647aa9328963 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期二, 30 五月 2023 16:27:42 +0800
Subject: [PATCH] 通风操作
---
igds-app/js/admin/work-audit.js | 92 ++++++++++++++++++++++++++++++++++++++--------
1 files changed, 76 insertions(+), 16 deletions(-)
diff --git a/igds-app/js/admin/work-audit.js b/igds-app/js/admin/work-audit.js
index 186708c..16a56ff 100644
--- a/igds-app/js/admin/work-audit.js
+++ b/igds-app/js/admin/work-audit.js
@@ -30,12 +30,13 @@
data.tokenAuth = user.tokenAuth;
data1.tokenAuth = user.tokenAuth;
data.data.deptId = selectDeptId;
-
+
getAuditList();
}
//鑾峰彇宸ュ崟瀹℃牳鍒楄〃
function getAuditList() {
+ console.log(JSON.stringify(data.data),"work-aduit","宸ュ崟瀹℃牳鍒楄〃")
mui.ajax(url, {
type: "POST",
dataType: "json",
@@ -50,15 +51,63 @@
} else {
renderAuditList();
mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div");
-
}
},
error: function() {
renderAuditList();
mui.alert('绯荤粺绻佸繖,璇烽噸鏂扮櫥褰曞皾璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div");
-
+
}
})
+ auditList = [{
+ "id": "59",
+ "deptName": "1鍙蜂粨",
+ "applyUser": "in anim exercitation",
+ "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鍙蜂粨",
+ "applyUser": "dolor laboris",
+ "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鍙蜂粨",
+ "applyUser": "quis",
+ "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鍙蜂粨",
+ "applyUser": "dolor",
+ "applyUserName": "榛勮秴",
+ "type": "nostrud elit",
+ "startTime": "2018-07-07 10:25",
+ "endTime": "2000-11-07 10:02",
+ "info": "et minim",
+ "depotId": "53",
+ "depotName": "浜虹瀹冨啗棰�"
+ }
+ ]
}
function renderAuditList() {
@@ -66,25 +115,29 @@
if (auditList && auditList.length > 0) {
$.each(auditList, function(index, item) {
html += '<li><div class="con"><div class="top"><div class="left">';
- html += '<div class="line"><div class="t">鐢宠浜�: </div><div class="v">' + item.applyUserName + '</div></div>';
- html += '<div class="line"><div class="t">鎵�灞炲垎搴�:</div><div class="v">' + (item.deptName == null ? "" : item.deptName) + '</div></div></div>';
+ html += '<div class="line"><div class="t">鐢宠浜�: </div><div class="v">' + item.applyUserName +'</div></div></div>';
html += '<div class="right"><div class="icon" info="' + item.info + '"><img src="images/icons/g-i26.png" alt=""></div></div></div>';
- html += '<div class="box"><ul class="gd-list"><li><a href="" class="con" style="background-image: url(images/icons/a-bg12.png);">';
+ html +=
+ '<div class="box"><ul class="gd-list"><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">鏈夋晥鏈�: ' + item.startTime + '鑷�' + item.endTime + ' </div>';
- html += '<div class="btns" id="'+ item.id +'"><a href="" class="btn refuse">鎷掔粷</a><a href="" class="btn adopt">閫氳繃</a></div>';
+ html += '<div class="btns"><a href="" id = "' + item.id +
+ '" class="btn refuse">鎷掔粷</a><a href="" id = "' + item.id + '" class="btn adopt">閫氳繃</a></div>';
html += '</div></div></div></li>';
})
} else {
- html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤宸ュ崟瀹℃牳淇℃伅</div></div></li>';
+ html +=
+ '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤宸ュ崟瀹℃牳淇℃伅</div></div></li>';
}
$("#handleList").html(html);
}
//宸ュ崟瀹℃牳
function workAudit() {
+ console.log(JSON.stringify(data1.data),"work-aduit","宸ュ崟瀹℃牳")
mui.ajax(url, {
type: "POST",
dataType: "json",
@@ -96,7 +149,7 @@
workAuditData = result.data;
// console.log(JSON.stringify(auditList))
} else {
- mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div");
+ mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div");
}
},
error: function() {
@@ -106,29 +159,36 @@
}
//鎷掔粷
-mui(".mui-scroll").on("tap",".wp ul li .refuse",function(){
+mui(".mui-scroll").on("tap", ".wp ul li .refuse", function() {
var id = this.getAttribute("id");
+ console.log(id)
data1.data.id = id
data1.data.status = '10'
workAudit();
- console.log("鎷掔粷")
})
//閫氳繃
-mui(".mui-scroll").on("tap",".wp ul li .adopt",function(){
+mui(".mui-scroll").on("tap", ".wp ul li .adopt", function() {
var id = this.getAttribute("id");
+ console.log(id)
data1.data.id = id
data1.data.status = '20'
workAudit();
- console.log("閫氳繃")
})
//鏌ョ湅鐢宠鍐呭
-mui(".mui-scroll").on("tap",".wp ul li .icon",function(){
+mui(".mui-scroll").on("tap", ".wp ul li .icon", function() {
var info = this.getAttribute("info")
- mui.alert(info, '宸ュ崟鍐呭', ["纭畾"], function() {}, "div");
+ // mui.alert(info, '宸ュ崟鍐呭', ["纭畾"], function() {}, "div");
+ $("#textareaPop").val(info)
+ $('#m-pop').css('display', 'flex');
console.log("鐢宠鍐呭")
})
+//鍏抽棴寮圭獥
+function closePop() {
+ $("#m-pop").css('display', 'none');
+}
+
mui('.mui-scroll-wrapper').scroll({
indicators: false, //鏄惁鏄剧ず婊氬姩鏉�
deceleration: 0.0006, //闃诲凹绯绘暟,绯绘暟瓒婂皬婊戝姩瓒婄伒鏁�
--
Gitblit v1.9.3