-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck5.html
158 lines (147 loc) · 4.52 KB
/
check5.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
<style type="text/css">
.mui-table h4,
.mui-table h5,
.mui-table .mui-h5,
.mui-table .mui-h6,
.mui-table p {
margin-top: 0;
}
.mui-table h4 {
line-height: 21px;
font-weight: 500;
}
.mui-table .oa-icon {
position: absolute;
right: 0;
bottom: 0;
}
.mui-table .oa-icon-star-filled {
color: #f14e41;
}
textarea.noscrollbars {
overflow: hidden;
width: 100%;
height: 80px;
}
html,
body {
background-color: #efeff4;
}
.title {
margin: 20px 15px 10px;
color: #6d6d72;
font-size: 15px;
}
a:link {
color: #000000;
}
</style>
</head>
<body>
<div class="mui-content">
<div id="showMethod" style="position:fixed; top:0; left:0;width: 100%; height: 100%; background-color: #FFF; overflow-y: auto;">
<header id="header" class="mui-bar" style="height: 44px;display: block;">
<a class="mui-icon mui-icon-back mui-pull-left" style="color: #999; " onclick="gotoMain()"></a>
<!--<a id="gocheck3" class="mui-icon mui-pull-right" style="color: #999;font-size: 20px ;margin-top: 10px;">上一步</a>-->
<h1 class="mui-title">相关内容</h1>
</header>
<div id="" style="margin-top: 45px;">
<fieldset>
<legend>详细信息</legend>
<p id="WarnResolveId" style="display: none;"></p>
<p id="CoverNo"></p>
<p id="Info"></p>
<p id="Siturtion"></p>
<p id="Progress"></p>
</fieldset>
<div id="p" style="margin: 0px auto; width: 98%;">
<!--<p class='mui-content-padded'>:</p>-->
<!--<textarea id="Method" class="noscrollbars" onkeyup="autoGrow(this);"></textarea>-->
<button class="mui-btn mui-btn-block mui-btn-primary" onclick="gos(6)">采购完成</button>
</div>
</div>
</div>
</div>
<script src="js/mui.min.js"></script>
<!--<script src="js/jquery.min.js"></script>-->
<script src="js/baseData.js"></script>
<script type="text/javascript">
//正则表达式方法解析url中的数据
function GetQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r != null) return unescape(r[2]);
return null;
};
var id = GetQueryString("WarnResolveId");
if(id != null) {
checkinfo(id);
}
function checkinfo(id) {
mui.ajax({
type: "get",
url: baseUrl + "/WarnResolve/getinfo" + "?WarnResolveId=" + id,
dataType: "json",
success: function(data) {
if(data != null) {
var datas = eval(data);
document.getElementById('WarnResolveId').innerText = datas.WarnResolveId;
document.getElementById('CoverNo').innerText = "井盖编号:" + datas.CoverNo;
//document.getElementById('STime').innerText="时间:"+formatyn(datas.STime);
document.getElementById('Info').innerText = "详细内容:" + datas.Info;
document.getElementById('Siturtion').innerText = "现场情况:" + datas.Siturtion;
document.getElementById('Progress').innerText = "处理进度:" + datas.Progress;
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
plus.nativeUI.toast("获取数据失败,请稍后重试");
}
});
}
function gos(status) {
var btnArray = ['否', '是'];
mui.confirm('填写完成提交,确定?', '', btnArray, function(e) {
if(e.index == 1) {
var wrid = document.getElementById('WarnResolveId').innerText;
var Progress = ";采购完成";
mui.ajax({
type: "get",
url: baseUrl + "/WarnResolve/gos",
dataType: "json",
data: {
id: wrid,
Progress: Progress,
Status:status
},
success: function(data) {
if(data != null) {
var datas = eval(data);
if(datas.status == "success") {
plus.nativeUI.toast("提交成功");
//返回到index
mui.openWindow({
url: "index.html",
})
} else {
plus.nativeUI.toast("提交数据出错请重试");
}
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
plus.nativeUI.toast("提交数据出错请重试");
}
});
}else{}})
}
</script>
</body>
</html>