From 0adbc72b09cbc1fd3c0f59cb65c3c476d65adc15 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期三, 17 五月 2023 18:36:02 +0800
Subject: [PATCH] 工单申请

---
 igds-app/js/admin/warn-list.js |   96 +++++++++++++++++++++++------------------------
 1 files changed, 47 insertions(+), 49 deletions(-)

diff --git a/igds-app/js/admin/warn-list.js b/igds-app/js/admin/warn-list.js
index 8c7519c..10422bb 100644
--- a/igds-app/js/admin/warn-list.js
+++ b/igds-app/js/admin/warn-list.js
@@ -69,49 +69,45 @@
 			mui.alert("绯荤粺绻佸繖,璇烽噸璇曪紒", "鎻愮ず", ["纭畾"], function() {}, "div")
 		}
 	})
-	// warnData ={
-	//    "data": [
-	//        {
-	//            "id": "88",
-	//            "name": "鎷夌洰浜涜皟",
-	//            "type": "nostrud",
-	//            "eventType": "cillumreprehenderitest",
-	//            "level": "1",
-	//            "status": "40",
-	//            "time": "2006-11-01 14:01:36",
-	//            "info": "dolor",
-	//            "depotId": "6",
-	//            "depotName": "",
-	// 		"remark":"00000"
-	//        },
-	//        {
-	//            "id": "56",
-	//            "name": "娉曢兘璞″彨涓庡眬",
-	//            "type": "cillumreprehenderitUt",
-	//            "eventType": "in",
-	//            "level": "2",
-	//            "status": "20",
-	//            "time": "1981-02-18 22:28:23",
-	//            "info": "deserunt Excepteur aliqua veniam commodo",
-	//            "depotId": "28",
-	//            "depotName": "榫欑敤鏀圭礌",
-	// 		"remark":"1111"
-	//        },{
-	//     "id": "72",
-	//     "name": "鍗庢灄涔濆埆",
-	//     "type": "exdeseruntcillumeu",
-	//     "eventType": "aliqua sint dolor aute",
-	//     "level": "1",
-	//     "status": "10",
-	//     "time": "1978-07-23 12:17:27",
-	//     "info": "deserunt nostrud id tempor",
-	//     "depotId": "70",
-	//     "depotName": "鍘垮織閫夊彧",
-	// 	"remark":""
-	//   }
-	//    ]
-	// }
-
+	warnList = [{
+			"id": "88",
+			"name": "鎷夌洰浜涜皟",
+			"type": "nostrud",
+			"eventType": "cillumreprehenderitest",
+			"level": "1",
+			"status": "40",
+			"time": "2006-11-01 14:01:36",
+			"info": "dolor",
+			"depotId": "6",
+			"depotName": "",
+			"remark": "00000"
+		},
+		{
+			"id": "56",
+			"name": "娉曢兘璞″彨涓庡眬",
+			"type": "cillumreprehenderitUt",
+			"eventType": "in",
+			"level": "2",
+			"status": "20",
+			"time": "1981-02-18 22:28:23",
+			"info": "deserunt Excepteur aliqua veniam commodo",
+			"depotId": "28",
+			"depotName": "榫欑敤鏀圭礌",
+			"remark": "1111"
+		}, {
+			"id": "72",
+			"name": "鍗庢灄涔濆埆",
+			"type": "exdeseruntcillumeu",
+			"eventType": "aliqua sint dolor aute",
+			"level": "1",
+			"status": "10",
+			"time": "1978-07-23 12:17:27",
+			"info": "deserunt nostrud id tempor",
+			"depotId": "70",
+			"depotName": "鍘垮織閫夊彧",
+			"remark": ""
+		}
+	]
 
 	renderWarn();
 }
@@ -223,11 +219,11 @@
 	dataPop.data.id = warnId;
 	var html = ''
 	if (status == '10') {
-		html += '<button type="button" class="mui-btn cancel"  onclick="handleWarn("1")">蹇界暐</button>'
-		html += '<button type="button" class="mui-btn confirm" onclick="handleWarn("2")">澶勭悊</button>'
+		html += '<div type="button" class="mui-btn cancel"  onclick="handleWarn(\'' + 1 + '\')">蹇界暐</div>'
+		html += '<div type="button" class="mui-btn confirm" onclick="handleWarn(\'' + 2 + '\')">澶勭悊</div>'
 	}
 	$("#handleWarn").html(html);
-	$("#textareaPop").val(remark)
+	document.getElementById("textareaPop").value = remark;
 	$('#m-pop').css('display', 'flex');
 }
 //璀﹀憡澶勭悊
@@ -240,7 +236,8 @@
 		dataPop.data.status = '30'
 		// mui.toast("璀﹀憡澶勭悊");
 	}
-	dataPop.data.remark = mui("#textareaPop")[0].value;
+	dataPop.data.remark = document.getElementById("textareaPop").value;
+	console.log(JSON.stringify(dataPop.data),"warn-list")
 	//璇锋眰
 	mui.ajax(url, {
 		type: "POST",
@@ -250,10 +247,11 @@
 		data: JSON.stringify(dataPop),
 		success: function(result) {
 			if (result.code == "0000") {
-				console.log(JSON.stringify(result))
+				mui.toast(result.msg);
+				// console.log(JSON.stringify(result))
 			} else {
 				mui.toast(result.msg);
-				console.log(JSON.stringify(result))
+				// console.log(JSON.stringify(result))
 			}
 		},
 		error: function() {

--
Gitblit v1.9.3