zhoufan il y a 7 ans
Parent
commit
d6ccddd6f2

+ 394 - 393
WebUI/CallCenterWeb.UI/Appeal/AddAppeal.html

@@ -1,412 +1,413 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 
4
-	<head>
5
-		<meta charset="UTF-8">
6
-		<script src="../Script/Common/huayi.load.js"></script>
7
-		<script src="../Script/Common/huayi.config.js"></script>
8
-		<link href="../css/layer/need/layer.css" />
9
-		<link rel="stylesheet" href="../css/init.css" />
10
-		<title>新增诉求工单</title>
11
-		<style>
12
-			.input {
13
-				background-color: #FFF;
14
-				background-image: none;
15
-				border: 1px solid #ccc;
16
-				border-radius: 1px;
17
-				color: inherit;
18
-				padding: 6px 12px
19
-			}
20
-			
21
-			.fjnr {
22
-				padding: 0!important;
23
-				border: none!important;
24
-			}
25
-		</style>
26
-	</head>
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link href="../css/layer/need/layer.css" />
9
+    <link rel="stylesheet" href="../css/init.css" />
10
+    <title>新增诉求工单</title>
11
+    <style>
12
+        .input {
13
+            background-color: #FFF;
14
+            background-image: none;
15
+            border: 1px solid #ccc;
16
+            border-radius: 1px;
17
+            color: inherit;
18
+            padding: 6px 12px
19
+        }
27 20
 
28
-	<body>
21
+        .fjnr {
22
+            padding: 0 !important;
23
+            border: none !important;
24
+        }
29 25
 
30
-		<div class="wrapper wrapper-content animated fadeInRight">
31
-			<div class="daoHang clearfix">
32
-				<div class="dhLeft">
33
-					<sapn>
34
-						<i class="syIcon"></i>位置:
35
-						<a href="javaScript:;" id="ReIndex">首页</a>&gt;
36
-						<a href="javaScript:;">工单处理</a>&gt;
37
-						<a class="nowPosition">添加工单</a>
38
-					</sapn>
39
-				</div>
40
-				<div class="dhRight">
41
-					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
42
-				</div>
43
-			</div>
44
-			<div style="padding: 10px;" class="tj_content clearFix">
45
-				<div class="Common">
46
-					<table>
47
-						<tr>
48
-							<th class="Importent">姓名:</th>
49
-							<td>
50
-								<input type="text" id="cusname" />
51
-							</td>
52
-							<th>性别:</th>
53
-							<td>
54
-								<select class="select_" id="cussex">
55
-									<option value="">请选择</option>
56
-									<option value="0">男</option>
57
-									<option value="1">女</option>
58
-								</select>
59
-							</td>
60
-							<th>来源:</th>
61
-							<td>
62
-								<select class="select_" id="source">
63
-								</select>
64
-							</td>
65
-							<th class="Importent">投诉电话:</th>
66
-							<td>
67
-								<input type="text" id="cusphone" />
68
-							</td>
69
-						</tr>
70
-						<tr>
71
-							<th>邮箱:</th>
72
-							<td>
73
-								<input type="text" id="email" />
74
-							</td>
75
-							<th>邮编:</th>
76
-							<td>
77
-								<input type="text" id="zipcode" />
78
-							</td>
79
-							<th>联系电话:</th>
80
-							<td>
81
-								<input type="text" id="conphone" />
82
-							</td>
83
-						</tr>
84
-						<tr>
85
-							<th class="Importent">标题:</th>
86
-							<td colspan="7">
87
-								<input id="title" type="text" style="width: 100%;" />
88
-							</td>
89
-						</tr>
90
-						<tr>
91
-							<th class="Importent">内容:</th>
92
-							<td colspan="7">
93
-								<textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
94
-							</td>
95
-						</tr>
96
-						<tr>
97
-							<th class="Importent">事件地址:</th>
98
-							<td colspan="7">
99
-								<select class="select_" id="sourcearea">
100
-								</select>
101
-								<input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
102
-							</td>
103
-						</tr>
104
-						<tr>
105
-							<th>附件上传:</th>
106
-							<td colspan="7">
107
-								<div class="fileBox">
108
-									<!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
109
-								</div>
110
-								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
111
-								<!--<span class="fjnr"></span>-->
112
-								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
113
-								<input class="input" type="button" value="上传" id="scwj" />
114
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
115
-								<input type="hidden" id="file" />
116
-							</td>
117
-						</tr>
118
-						<tr>
119
-							<th>处理方式:</th>
120
-							<td colspan="7">
121
-								<input type="radio" value="1" name="banli" class="Nows" />当即办理
122
-								<input checked="true" type="radio" value="0" name="banli" class="Nows_" />网络转办
123
-							</td>
124
-						</tr>
125
-						<tr class="Nows_box Hidens">
126
-							<th>办理内容:</th>
127
-							<td colspan="7">
26
+        input, select {
27
+            vertical-align: middle;
28
+        }
29
+    </style>
30
+</head>
128 31
 
129
-								<input type="text" style="width: 100%;" id="result" />
130
-							</td>
131
-						</tr>
132
-						<tr>
133
-							<th class="Importent">主题词:</th>
134
-							<td>
135
-								<!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
136
-								<select class="select_" id="keys">
137
-									<option value=""></option>
138
-								</select>
139
-							</td>
140
-							<th>类型:</th>
141
-							<td>
142
-								<select class="select_" id="type">
143
-								</select>
144
-							</td>
145
-							<th>密级:</th>
146
-							<td>
147
-								<input checked="true" type="radio" name="mj" id="" value="0" />普通
148
-								<input type="radio" name="mj" id="" value="1" />保密
149
-							</td>
150
-							<th>紧急程度:</th>
151
-							<td>
152
-								<select class="select_" id="level">
153
-									<option value="0">选择</option>
154
-									<option value="1">普通</option>
155
-									<option value="2">紧急</option>
156
-								</select>
157
-							</td>
158
-							<!--<th class="">分管领导:</th>
159
-							<td colspan="4">
160
-								<input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
161
-							</td>-->
162
-						</tr>
163
-					</table>
164
-					<div class="btn_box">
165
-						<button class="btns BC">保存</button>
166
-						<button class="btns SavedSubmit">保存并提交</button>
167
-					</div>
32
+<body>
168 33
 
169
-				</div>
170
-			</div>
171
-		</div>
172
-		<script src="../css/laydate/laydate.js"></script>
173
-		<script src="../js/adjustHeight.js"></script>
174
-		<script>
175
-			var submit;
176
-			$(document).ready(function() {
177
-				QY($("#sourcearea"));
178
-				LY($("#source"));
179
-				LB($("#type"));
180
-				ZT($("#keys"))
181
-				//当即办理
182
-				 $(' input[name="banli"]').change(function(){
183
-					var val=$(this).val();
184
-					if(val=="1"){
185
-						$(".Nows_box").show();
186
-					}else{
187
-						$(".Nows_box").hide();
188
-					}
189
-				})
190
-				$(".BC").click(function() {
191
-					submit = 0;
192
-					Add();
193
-				})
194
-				$('.SavedSubmit').click(function() {
195
-					submit = 1;
196
-					Add();
197
-				})
198
-				//上传附件
199
-				$("#scwj").click(function() {
200
-					$("#upFile").trigger("click");
201
-				})
202
-				$("#upFile").change(function() {
203
-					upload();
204
-				})
205
-				$("#scfj").click(function() {
206
-//					$(".fjnr").text("");
207
-//					$("#scfj").hide();
208
-				})
209
-			});
34
+    <div class="wrapper wrapper-content animated fadeInRight">
35
+        <div class="daoHang clearfix">
36
+            <div class="dhLeft">
37
+                <sapn>
38
+                    <i class="syIcon"></i>位置:
39
+                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
40
+                    <a href="javaScript:;">工单处理</a>&gt;
41
+                    <a class="nowPosition">添加工单</a>
42
+                </sapn>
43
+            </div>
44
+            <div class="dhRight">
45
+                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
46
+            </div>
47
+        </div>
48
+        <div style="padding: 10px;" class="tj_content clearFix">
49
+            <div class="Common">
50
+                <table>
51
+                    <tr>
52
+                        <th class="Importent">姓名:</th>
53
+                        <td>
54
+                            <input type="text" id="cusname" />
55
+                        </td>
56
+                        <th>性别:</th>
57
+                        <td>
58
+                            <select class="select_" id="cussex">
59
+                                <option value="">请选择</option>
60
+                                <option value="0">男</option>
61
+                                <option value="1">女</option>
62
+                            </select>
63
+                        </td>
64
+                        <th>来源:</th>
65
+                        <td>
66
+                            <select class="select_" id="source"></select>
67
+                        </td>
68
+                        <th class="Importent">投诉电话:</th>
69
+                        <td>
70
+                            <input type="text" id="cusphone" />
71
+                        </td>
72
+                    </tr>
73
+                    <tr>
74
+                        <th>邮箱:</th>
75
+                        <td>
76
+                            <input type="text" id="email" />
77
+                        </td>
78
+                        <th>邮编:</th>
79
+                        <td>
80
+                            <input type="text" id="zipcode" />
81
+                        </td>
82
+                        <th>联系电话:</th>
83
+                        <td>
84
+                            <input type="text" id="conphone" />
85
+                        </td>
86
+                    </tr>
87
+                    <tr>
88
+                        <th class="Importent">标题:</th>
89
+                        <td colspan="7">
90
+                            <input id="title" type="text" style="width: 100%;" />
91
+                        </td>
92
+                    </tr>
93
+                    <tr>
94
+                        <th class="Importent">内容:</th>
95
+                        <td colspan="7">
96
+                            <textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
97
+                        </td>
98
+                    </tr>
99
+                    <tr>
100
+                        <th class="Importent">事件地址:</th>
101
+                        <td colspan="7">
102
+                            <select class="select_" id="sourcearea"></select>
103
+                            <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
104
+                        </td>
105
+                    </tr>
106
+                    <tr>
107
+                        <th>附件上传:</th>
108
+                        <td colspan="7">
109
+                            <div class="fileBox">
110
+                                <!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
111
+                            </div>
112
+                            <!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
113
+                            <!--<span class="fjnr"></span>-->
114
+                            <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
115
+                            <input class="input" type="button" value="上传" id="scwj" />
116
+                            <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
117
+                            <input type="hidden" id="file" />
118
+                        </td>
119
+                    </tr>
120
+                    <tr>
121
+                        <th>处理方式:</th>
122
+                        <td colspan="7">
123
+                            <input type="radio" value="1" name="banli" class="Nows" />当即办理
124
+                            <input checked="true" type="radio" value="0" name="banli" class="Nows_" />网络转办
125
+                        </td>
126
+                    </tr>
127
+                    <tr class="Nows_box Hidens">
128
+                        <th>办理内容:</th>
129
+                        <td colspan="7">
210 130
 
211
-			//添加工单
212
-			function Add() {
213
-				var value = $(' input[name="banli"]:checked ').val();
214
-				var content = $("#content").val();
215
-				if (!$("#cusname").val()) {
216
-				    layer.msg("请输入姓名");
217
-				} else if (!$("#cusphone").val()) {
218
-				    layer.msg("请输入投诉电话");
219
-				} else if (!$("#title").val()) {
220
-				    layer.msg("请输入标题");
221
-				} else if (!$("#content").val()) {
222
-				    layer.msg("请输入内容");
223
-				} else if (!$("#keys").val()) {
224
-				    layer.msg("请选择主题词");
225
-				} else if (!$("#sourcearea").val()) {
226
-				    layer.msg("请选择事发区域");
227
-				} else if (value == 1 && !$('#result').val()) {
228
-				    layer.msg("请输入直办内容");
131
+                            <input type="text" style="width: 100%;" id="result" />
132
+                        </td>
133
+                    </tr>
134
+                    <tr>
135
+                        <th class="Importent">主题词:</th>
136
+                        <td>
137
+                            <!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
138
+                            <select class="select_" id="keys">
139
+                                <option value=""></option>
140
+                            </select>
141
+                        </td>
142
+                        <th>类型:</th>
143
+                        <td>
144
+                            <select class="select_" id="type"></select>
145
+                        </td>
146
+                        <th>密级:</th>
147
+                        <td>
148
+                            <input checked="true" type="radio" name="mj" id="" value="0" />普通
149
+                            <input type="radio" name="mj" id="" value="1" />保密
150
+                        </td>
151
+                        <th>紧急程度:</th>
152
+                        <td>
153
+                            <select class="select_" id="level">
154
+                                <option value="0">选择</option>
155
+                                <option value="1">普通</option>
156
+                                <option value="2">紧急</option>
157
+                            </select>
158
+                        </td>
159
+                        <!--<th class="">分管领导:</th>
160
+                        <td colspan="4">
161
+                            <input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
162
+                        </td>-->
163
+                    </tr>
164
+                </table>
165
+                <div class="btn_box">
166
+                    <button class="btns BC">保存</button>
167
+                    <button class="btns SavedSubmit">保存并提交</button>
168
+                </div>
229 169
 
230
-				} else {
231
-					$.ajax({
232
-						type: "post",
233
-						url: huayi.config.callcenter_url + "/WorkOrder/AddWorkOrder",
234
-						dataType: 'json',
235
-						async: true,
236
-						data: {
237
-							cusname: $("#cusname").val(), //=投诉人姓名
238
-							cussex: $("#cussex").val(),
239
-							cusphone: $("#cusphone").val(), //=投诉人电话
240
-							email: $("#email").val(),
241
-							zipcode: $("#zipcode").val(),
242
-							conphone: $("#conphone").val(),
243
-							title: $("#title").val(),
244
-							content: $("#content").val(),
245
-							files: $("#file").val(), //(多个用英文逗号,隔开)
246
-							sourcearea: $("#sourcearea").val(), //=事发地域id							
247
-							sourceaddress: $('#sourceaddress').val(), //=事发详细地址
248
-							source: $("#source").val(), //=来源
249
-							isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
250
-							result: $('#result').val(),
251
-							keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
252
-							type: $("#type").val(), //=类型
253
-							isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
254
-							level: $('#level').val(), //=(1普通2紧急)
255
-							issubmit: submit, //=(0保存1保存并提交)
256
-							token: $.cookie("token")
257
-						},
258
-						success: function(data) {
259
-							Clean();
260
-							$('.fileBox').html('');
261
-							layer.msg("创建工单成功");
262
-						}
263
-					});
264
-				}
265
-			}
170
+            </div>
171
+        </div>
172
+    </div>
173
+    <script src="../css/laydate/laydate.js"></script>
174
+    <script src="../js/adjustHeight.js"></script>
175
+    <script>
176
+        var submit;
177
+        $(document).ready(function () {
178
+            QY($("#sourcearea"));
179
+            LY($("#source"));
180
+            LB($("#type"));
181
+            ZT($("#keys"))
182
+            //当即办理
183
+            $(' input[name="banli"]').change(function () {
184
+                var val = $(this).val();
185
+                if (val == "1") {
186
+                    $(".Nows_box").show();
187
+                } else {
188
+                    $(".Nows_box").hide();
189
+                }
190
+            })
191
+            $(".BC").click(function () {
192
+                submit = 0;
193
+                Add();
194
+            })
195
+            $('.SavedSubmit').click(function () {
196
+                submit = 1;
197
+                Add();
198
+            })
199
+            //上传附件
200
+            $("#scwj").click(function () {
201
+                $("#upFile").trigger("click");
202
+            })
203
+            $("#upFile").change(function () {
204
+                upload();
205
+            })
206
+            $("#scfj").click(function () {
207
+                //					$(".fjnr").text("");
208
+                //					$("#scfj").hide();
209
+            })
210
+        });
266 211
 
267
-			//上传文件
268
-            function upload() {
269
-                var Files = document.getElementById("upFile").files;
270
-                if (Files.length > 0) {
271
-                    var formData = new FormData();
272
-                    for (var i = 0; i < Files.length; i++) {
273
-                        formData.append('file' + i, Files[i]);
212
+        //添加工单
213
+        function Add() {
214
+            var value = $(' input[name="banli"]:checked ').val();
215
+            var content = $("#content").val();
216
+            if (!$("#cusname").val()) {
217
+                layer.msg("请输入姓名");
218
+            } else if (!$("#cusphone").val()) {
219
+                layer.msg("请输入投诉电话");
220
+            } else if (!$("#title").val()) {
221
+                layer.msg("请输入标题");
222
+            } else if (!$("#content").val()) {
223
+                layer.msg("请输入内容");
224
+            } else if (!$("#keys").val()) {
225
+                layer.msg("请选择主题词");
226
+            } else if (!$("#sourcearea").val()) {
227
+                layer.msg("请选择事发区域");
228
+            } else if (value == 1 && !$('#result').val()) {
229
+                layer.msg("请输入直办内容");
230
+
231
+            } else {
232
+                $.ajax({
233
+                    type: "post",
234
+                    url: huayi.config.callcenter_url + "/WorkOrder/AddWorkOrder",
235
+                    dataType: 'json',
236
+                    async: true,
237
+                    data: {
238
+                        cusname: $("#cusname").val(), //=投诉人姓名
239
+                        cussex: $("#cussex").val(),
240
+                        cusphone: $("#cusphone").val(), //=投诉人电话
241
+                        email: $("#email").val(),
242
+                        zipcode: $("#zipcode").val(),
243
+                        conphone: $("#conphone").val(),
244
+                        title: $("#title").val(),
245
+                        content: $("#content").val(),
246
+                        files: $("#file").val(), //(多个用英文逗号,隔开)
247
+                        sourcearea: $("#sourcearea").val(), //=事发地域id
248
+                        sourceaddress: $('#sourceaddress').val(), //=事发详细地址
249
+                        source: $("#source").val(), //=来源
250
+                        isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
251
+                        result: $('#result').val(),
252
+                        keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
253
+                        type: $("#type").val(), //=类型
254
+                        isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
255
+                        level: $('#level').val(), //=(1普通2紧急)
256
+                        issubmit: submit, //=(0保存1保存并提交)
257
+                        token: $.cookie("token")
258
+                    },
259
+                    success: function (data) {
260
+                        Clean();
261
+                        $('.fileBox').html('');
262
+                        layer.msg("创建工单成功");
274 263
                     }
275
-                    formData.append("token", $.cookie("token"));
276
-                    $.ajax({
277
-                        url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
278
-                        type: "POST",
279
-                        data: formData,
280
-						/**
281
-						 *必须false才会自动加上正确的Content-Type
282
-						 */
283
-                        contentType: false,
284
-						/**
285
-						 * 必须false才会避开jQuery对 formdata 的默认处理
286
-						 * XMLHttpRequest会对 formdata 进行正确的处理
287
-						 */
288
-                        processData: false,
289
-                        success: function (result) {
290
-                            document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
291
-                            $("#upFile").change(function () {
292
-                                upload();
293
-                            });
294
-                            var r = $.parseJSON(result);
295
-                            if (r.state.toLowerCase() == "success") {
264
+                });
265
+            }
266
+        }
296 267
 
297
-                                var a = r.data;
298
-                                $(a).each(function (i, n) {
299
-                                    var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
300
-                                    $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
301
-                                        event.stopPropagation();
302
-                                        $(this).parent().remove();
303
-                                        file_num()
304
-                                    })
268
+        //上传文件
269
+        function upload() {
270
+            var Files = document.getElementById("upFile").files;
271
+            if (Files.length > 0) {
272
+                var formData = new FormData();
273
+                for (var i = 0; i < Files.length; i++) {
274
+                    formData.append('file' + i, Files[i]);
275
+                }
276
+                formData.append("token", $.cookie("token"));
277
+                $.ajax({
278
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
279
+                    type: "POST",
280
+                    data: formData,
281
+                    /**
282
+                     *必须false才会自动加上正确的Content-Type
283
+                     */
284
+                    contentType: false,
285
+                    /**
286
+                     * 必须false才会避开jQuery对 formdata 的默认处理
287
+                     * XMLHttpRequest会对 formdata 进行正确的处理
288
+                     */
289
+                    processData: false,
290
+                    success: function (result) {
291
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
292
+                        $("#upFile").change(function () {
293
+                            upload();
294
+                        });
295
+                        var r = $.parseJSON(result);
296
+                        if (r.state.toLowerCase() == "success") {
297
+
298
+                            var a = r.data;
299
+                            $(a).each(function (i, n) {
300
+                                var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
301
+                                $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
302
+                                    event.stopPropagation();
303
+                                    $(this).parent().remove();
304
+                                    file_num()
305 305
                                 })
306
-                                file_num();
307
-                            }
306
+                            })
307
+                            file_num();
308 308
                         }
309
-                    });
310
-                } else {
311
-                    layer.confirm('请上传文件!', {
312
-                        btn: ['确定']
313
-                    });
314
-                }
309
+                    }
310
+                });
311
+            } else {
312
+                layer.confirm('请上传文件!', {
313
+                    btn: ['确定']
314
+                });
315 315
             }
316
-			//上传文件隐藏域值
317
-			function file_num(){
318
-				var str = '';
319
-				var Str;
320
-				$('.fileBox .files').each(function(j,m){
321
-					var aa=$(m).attr("fiel-num")
322
-					console.log(aa);
323
-					str += aa + ",";
324
-					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
325
-				})
326
-				$("#file").val(Str);	
327
-			}
328
-			//来源
329
-			function LY(obj) {
330
-				obj.empty();
331
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
332
-					"token": $.cookie("token"),
333
-					id: 1
334
-				}, function(data) {
335
-					if(data.state.toLowerCase() == "success") {
336
-						var content = data.data;
337
-						$(content).each(function(i, n) {
338
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
339
-						})
316
+        }
317
+        //上传文件隐藏域值
318
+        function file_num() {
319
+            var str = '';
320
+            var Str;
321
+            $('.fileBox .files').each(function (j, m) {
322
+                var aa = $(m).attr("fiel-num")
323
+                console.log(aa);
324
+                str += aa + ",";
325
+                Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
326
+            })
327
+            $("#file").val(Str);
328
+        }
329
+        //来源
330
+        function LY(obj) {
331
+            obj.empty();
332
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
333
+                "token": $.cookie("token"),
334
+                id: 1
335
+            }, function (data) {
336
+                if (data.state.toLowerCase() == "success") {
337
+                    var content = data.data;
338
+                    $(content).each(function (i, n) {
339
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
340
+                    })
340 341
 
341
-					}
342
-				})
343
-			}
344
-			//类别
345
-			function LB(obj) {
346
-			    obj.empty();
347
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
348
-					"token": $.cookie("token"),
349
-					id: 2
350
-				}, function(data) {
351
-					if(data.state.toLowerCase() == "success") {
352
-						var content = data.data;
353
-						$(content).each(function(i, n) {
354
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
355
-						})
356
-					}
357
-				})
358
-			}
359
-			//		主题
360
-			function ZT(obj) {
361
-				obj.empty();
362
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
363
-					"token": $.cookie("token"),
364
-					id: 3
365
-				}, function(data) {
366
-					if(data.state.toLowerCase() == "success") {
367
-						var content = data.data;
368
-						$(content).each(function(i, n) {
369
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
370
-						})
371
-					}
372
-				})
373
-				
374
-			}
375
-			//区域
376
-			function QY(obj) {
377
-			    obj.empty();
378
-			    obj.append('<option selected="selected" value="">请选择</option>');
379
-				$.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
380
-					"token": $.cookie("token"),
381
-				}, function(data) {
382
-					if(data.state.toLowerCase() == "success") {
383
-						var content = data.data;
384
-						$(content).each(function(i, n) {
385
-							$("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
386
-						})
387
-					}
388
-				})
389
-			}
342
+                }
343
+            })
344
+        }
345
+        //类别
346
+        function LB(obj) {
347
+            obj.empty();
348
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
349
+                "token": $.cookie("token"),
350
+                id: 2
351
+            }, function (data) {
352
+                if (data.state.toLowerCase() == "success") {
353
+                    var content = data.data;
354
+                    $(content).each(function (i, n) {
355
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
356
+                    })
357
+                }
358
+            })
359
+        }
360
+        //		主题
361
+        function ZT(obj) {
362
+            obj.empty();
363
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
364
+                "token": $.cookie("token"),
365
+                id: 3
366
+            }, function (data) {
367
+                if (data.state.toLowerCase() == "success") {
368
+                    var content = data.data;
369
+                    $(content).each(function (i, n) {
370
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
371
+                    })
372
+                }
373
+            })
374
+
375
+        }
376
+        //区域
377
+        function QY(obj) {
378
+            obj.empty();
379
+            obj.append('<option selected="selected" value="">请选择</option>');
380
+            $.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
381
+                "token": $.cookie("token"),
382
+            }, function (data) {
383
+                if (data.state.toLowerCase() == "success") {
384
+                    var content = data.data;
385
+                    $(content).each(function (i, n) {
386
+                        $("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
387
+                    })
388
+                }
389
+            })
390
+        }
390 391
 
391
-			function Clean() {
392
-				$("#cusname").val(''); //=投诉人姓名
393
-				$("#cussex").val('');
394
-				$("#cusphone").val(''); //=投诉人电话
395
-				$("#email").val('');
396
-				$("#zipcode").val('');
397
-				$("#conphone").val('');
398
-				$("#title").val('');
399
-				$("#content").val('');
400
-				$("#sourcearea").val(); //=事发地域id
401
-				$('#sourceaddress').val(''); //=事发详细地址
402
-				$("input[name='baomi'][value='1']").prop("checked", true) //=(0转办1直办)
403
-				$("#type option:first").prop("selected", 'selected');
404
-				$("#level option:first").prop("selected", 'selected');
405
-				$("#keys option:first").prop("selected", 'selected');
406
-				$("#sourcearea option:first").prop("selected", 'selected');
407
-				$('#result').val('');
408
-			}
409
-		</script>
410
-	</body>
392
+        function Clean() {
393
+            $("#cusname").val(''); //=投诉人姓名
394
+            $("#cussex").val('');
395
+            $("#cusphone").val(''); //=投诉人电话
396
+            $("#email").val('');
397
+            $("#zipcode").val('');
398
+            $("#conphone").val('');
399
+            $("#title").val('');
400
+            $("#content").val('');
401
+            $("#sourcearea").val(); //=事发地域id
402
+            $('#sourceaddress').val(''); //=事发详细地址
403
+            $("input[name='baomi'][value='1']").prop("checked", true) //=(0转办1直办)
404
+            $("#type option:first").prop("selected", 'selected');
405
+            $("#level option:first").prop("selected", 'selected');
406
+            $("#keys option:first").prop("selected", 'selected');
407
+            $("#sourcearea option:first").prop("selected", 'selected');
408
+            $('#result').val('');
409
+        }
410
+    </script>
411
+</body>
411 412
 
412 413
 </html>

+ 416 - 415
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeal.html

@@ -1,434 +1,435 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 
4
-	<head>
5
-		<meta charset="UTF-8">
6
-		<script src="../Script/Common/huayi.load.js"></script>
7
-		<script src="../Script/Common/huayi.config.js"></script>
8
-		<link href="../css/layer/need/layer.css" />
9
-		<link rel="stylesheet" href="../css/init.css" />
10
-		<title>新增诉求工单</title>
11
-		<style type="text/css">
12
-			.input {
13
-				background-color: #FFF;
14
-				background-image: none;
15
-				border: 1px solid #ccc;
16
-				border-radius: 1px;
17
-				color: inherit;
18
-				padding: 6px 12px
19
-			}
20
-			
21
-			.fjnr {
22
-				padding: 0!important;
23
-				border: none!important;
24
-			}
25
-		</style>
26
-	</head>
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link href="../css/layer/need/layer.css" />
9
+    <link rel="stylesheet" href="../css/init.css" />
10
+    <title>新增诉求工单</title>
11
+    <style type="text/css">
12
+        .input {
13
+            background-color: #FFF;
14
+            background-image: none;
15
+            border: 1px solid #ccc;
16
+            border-radius: 1px;
17
+            color: inherit;
18
+            padding: 6px 12px
19
+        }
27 20
 
28
-	<body>
21
+        .fjnr {
22
+            padding: 0 !important;
23
+            border: none !important;
24
+        }
29 25
 
30
-		<div class="wrapper wrapper-content animated fadeInRight">
31
-			<div style="padding: 10px;" class="tj_content clearFix">
32
-				<div class="Common">
33
-					<table>
34
-						<tr>
35
-							<th class="Importent">姓名:</th>
36
-							<td>
37
-								<input type="text" id="cusname" />
38
-							</td>
39
-							<th>性别:</th>
40
-							<td>
41
-								<select class="select_" id="SEX">
42
-									<option value="">请选择</option>
43
-									<option value="0">男</option>
44
-									<option value="1">女</option>
45
-								</select>
46
-							</td>
47
-							<th>来源:</th>
48
-							<td>
49
-								<select class="select_" id="source">
50
-								</select>
51
-							</td>
52
-							<th class="Importent">投诉电话:</th>
53
-							<td>
54
-								<input type="text" id="cusphone" />
55
-							</td>
56
-						</tr>
57
-						<tr>
58
-							<th>邮箱:</th>
59
-							<td>
60
-								<input type="text" id="email" />
61
-							</td>
62
-							<th>邮编:</th>
63
-							<td>
64
-								<input type="text" id="zipcode" />
65
-							</td>
66
-							<th>联系电话:</th>
67
-							<td>
68
-								<input type="text" id="conphone" />
69
-							</td>
70
-						</tr>
71
-						<tr>
72
-							<th class="Importent">标题:</th>
73
-							<td colspan="7">
74
-								<input id="title" type="text" style="width: 100%;" />
75
-							</td>
76
-						</tr>
77
-						<tr>
78
-							<th class="Importent">内容:</th>
79
-							<td colspan="7">
80
-								<textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
81
-							</td>
82
-						</tr>
83
-						<tr>
84
-							<th class="Importent">事件地址:</th>
85
-							<td colspan="7">
86
-								<select class="select_" id="sourcearea">
87
-								</select>
88
-								<input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
89
-							</td>
90
-						</tr>
91
-						<tr>
92
-							<th>附件上传:</th>
93
-							<td colspan="7">
94
-								<div class="fileBox">
95
-									
96
-								</div>
97
-								<!--<span class="fjnr"></span>-->
98
-								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
99
-								<input class="input" type="button" value="上传" id="scwj" />
100
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
101
-								<input type="hidden" id="file" />
102
-							</td>
103
-						</tr>
104
-						<tr>
105
-							<th>处理方式:</th>
106
-							<td colspan="7">
107
-								<input type="radio" value="1" name="banli" class="Nows" />当即办理
108
-								<input checked="true" type="radio" value="0" name="banli" class="Nows_" />网络转办
109
-							</td>
110
-						</tr>
111
-						<tr class="Nows_box Hidens">
112
-							<th>办理内容:</th>
113
-							<td colspan="7">
26
+        input, select {
27
+            vertical-align: middle;
28
+        }
29
+    </style>
30
+</head>
114 31
 
115
-								<input type="text" style="width: 100%;" id="result" />
116
-							</td>
117
-						</tr>
118
-						<tr>
119
-							<th class="Importent">主题词:</th>
120
-							<td>
121
-								<!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
122
-								<select class="select_" id="keys">
123
-									<option value=""></option>
124
-								</select>
125
-							</td>
126
-							<th>类型:</th>
127
-							<td>
128
-								<select class="select_" id="type">
129
-								</select>
130
-							</td>
131
-							<th>密级:</th>
132
-							<td>
133
-								<input  type="radio" name="mj" id="" value="0" />普通
134
-								<input type="radio" name="mj" id="" value="1" />保密
135
-							</td>
136
-							<th>紧急程度:</th>
137
-							<td>
138
-								<select class="select_" id="level">
139
-									<option value="0">选择</option>
140
-									<option value="1">普通</option>
141
-									<option value="2">紧急</option>
142
-								</select>
143
-							</td>
144
-							<!--<th class="">分管领导:</th>
145
-							<td colspan="4">
146
-								<input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
147
-							</td>-->
148
-						</tr>
149
-					</table>
150
-					<div class="btn_box">
151
-						<button class="btns BC">保存</button>
152
-						<button class="btns SavedSubmit">保存并提交</button>
153
-					</div>
32
+<body>
154 33
 
155
-				</div>
156
-			</div>
157
-		</div>
158
-		<script src="../css/laydate/laydate.js"></script>
159
-		<script src="../js/adjustHeight.js"></script>
160
-		<script>
161
-			var wid = helper.request.queryString("wid");
162
-			var submit;
34
+    <div class="wrapper wrapper-content animated fadeInRight">
35
+        <div style="padding: 10px;" class="tj_content clearFix">
36
+            <div class="Common">
37
+                <table>
38
+                    <tr>
39
+                        <th class="Importent">姓名:</th>
40
+                        <td>
41
+                            <input type="text" id="cusname" />
42
+                        </td>
43
+                        <th>性别:</th>
44
+                        <td>
45
+                            <select class="select_" id="SEX">
46
+                                <option value="">请选择</option>
47
+                                <option value="0">男</option>
48
+                                <option value="1">女</option>
49
+                            </select>
50
+                        </td>
51
+                        <th>来源:</th>
52
+                        <td>
53
+                            <select class="select_" id="source"></select>
54
+                        </td>
55
+                        <th class="Importent">投诉电话:</th>
56
+                        <td>
57
+                            <input type="text" id="cusphone" />
58
+                        </td>
59
+                    </tr>
60
+                    <tr>
61
+                        <th>邮箱:</th>
62
+                        <td>
63
+                            <input type="text" id="email" />
64
+                        </td>
65
+                        <th>邮编:</th>
66
+                        <td>
67
+                            <input type="text" id="zipcode" />
68
+                        </td>
69
+                        <th>联系电话:</th>
70
+                        <td>
71
+                            <input type="text" id="conphone" />
72
+                        </td>
73
+                    </tr>
74
+                    <tr>
75
+                        <th class="Importent">标题:</th>
76
+                        <td colspan="7">
77
+                            <input id="title" type="text" style="width: 100%;" />
78
+                        </td>
79
+                    </tr>
80
+                    <tr>
81
+                        <th class="Importent">内容:</th>
82
+                        <td colspan="7">
83
+                            <textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
84
+                        </td>
85
+                    </tr>
86
+                    <tr>
87
+                        <th class="Importent">事件地址:</th>
88
+                        <td colspan="7">
89
+                            <select class="select_" id="sourcearea"></select>
90
+                            <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
91
+                        </td>
92
+                    </tr>
93
+                    <tr>
94
+                        <th>附件上传:</th>
95
+                        <td colspan="7">
96
+                            <div class="fileBox">
163 97
 
164
-			$(document).ready(function() {
165
-				QY($("#sourcearea"));
166
-				LY($("#source"));
167
-				LB($("#type"));
168
-				ZT($("#keys"))
169
-				//当即办理
170
-				 $(' input[name="banli"]').change(function(){
171
-					var val=$(this).val();
172
-					if(val=="1"){
173
-						$(".Nows_box").show();
174
-					}else{
175
-						$(".Nows_box").hide();
176
-					}
177
-					
178
-				})
179
-				$(".BC").click(function() {
180
-					submit = 0;
181
-					Add()
182
-				});
183
-				//上传附件
184
-				$("#scwj").click(function() {
185
-					$("#upFile").trigger("click");
186
-				})
187
-				$("#upFile").change(function() {
188
-					upload();
189
-				})
190
-//				$("#scfj").click(function() {
191
-//					$(".fjnr").text("");
192
-//					$("#scfj").hide();
193
-//				})
194
-				$(".SavedSubmit").click(function() {
195
-					submit = 1;
196
-					Add()
197
-				})
198
-				if(wid) {
199
-					$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
200
-						workorderid: wid,
201
-						"token": $.cookie("token")
202
-					}, function(result) {
203
-						if(result.state.toLowerCase() == "success") {
204
-							var Data = result.data.data;
205
-							$("#cusname").val(Data[0].F_CusName);
206
-							$("#cusphone").val(Data[0].F_CusPhone);
207
-							$("#conphone").val(Data[0].F_ConPhone);
208
-							$("#title").val(Data[0].F_ComTitle);
209
-							$('#content').val(Data[0].F_ComContent);
210
-							$('#email').val(Data[0].F_Email);
211
-							$("#zipcode").val(Data[0].F_ZipCode);
212
-							$("#result").val(Data[0].F_Result);
213
-							//x性别
214
-							$("#SEX").val(Data[0].F_CusSex+'');
215
-							//来源
216
-								$("#source").val(Data[0].F_InfoSource+'');
217
-							//事件地址
218
-								$("#sourcearea").val(Data[0].F_SourceArea+'');
219
-							//主题词
220
-								$("#keys").val(Data[0].F_Key+'');
221
-							//类型
222
-								$("#type").val(Data[0].F_InfoType+'');
223
-							//紧急程度
224
-								$("#level").val(Data[0].F_Level+'');
225
-							if(Data[0].F_IsResult == 1) {
226
-								$(".Nows_box").toggle();
227
-							}
228
-							$(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
229
-							$(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
230
-							$('#sourceaddress').val(Data[0].F_SourceAddress);
231
-							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
232
-                            $(Data[0].File).each(function (k, q) {
233
-                                var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
234
-								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
235
-									event.stopPropagation();
236
-									$(this).parent().remove();
237
-										file_num()
238
-								})
239
-								file_num()
240
-							})
241
-						}
242
-					})
98
+                            </div>
99
+                            <!--<span class="fjnr"></span>-->
100
+                            <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
101
+                            <input class="input" type="button" value="上传" id="scwj" />
102
+                            <input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
103
+                            <input type="hidden" id="file" />
104
+                        </td>
105
+                    </tr>
106
+                    <tr>
107
+                        <th>处理方式:</th>
108
+                        <td colspan="7">
109
+                            <input type="radio" value="1" name="banli" class="Nows" />当即办理
110
+                            <input checked="true" type="radio" value="0" name="banli" class="Nows_" />网络转办
111
+                        </td>
112
+                    </tr>
113
+                    <tr class="Nows_box Hidens">
114
+                        <th>办理内容:</th>
115
+                        <td colspan="7">
243 116
 
244
-				}
245
-			});
117
+                            <input type="text" style="width: 100%;" id="result" />
118
+                        </td>
119
+                    </tr>
120
+                    <tr>
121
+                        <th class="Importent">主题词:</th>
122
+                        <td>
123
+                            <!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
124
+                            <select class="select_" id="keys">
125
+                                <option value=""></option>
126
+                            </select>
127
+                        </td>
128
+                        <th>类型:</th>
129
+                        <td>
130
+                            <select class="select_" id="type"></select>
131
+                        </td>
132
+                        <th>密级:</th>
133
+                        <td>
134
+                            <input type="radio" name="mj" id="" value="0" />普通
135
+                            <input type="radio" name="mj" id="" value="1" />保密
136
+                        </td>
137
+                        <th>紧急程度:</th>
138
+                        <td>
139
+                            <select class="select_" id="level">
140
+                                <option value="0">选择</option>
141
+                                <option value="1">普通</option>
142
+                                <option value="2">紧急</option>
143
+                            </select>
144
+                        </td>
145
+                        <!--<th class="">分管领导:</th>
146
+                        <td colspan="4">
147
+                            <input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
148
+                        </td>-->
149
+                    </tr>
150
+                </table>
151
+                <div class="btn_box">
152
+                    <button class="btns BC">保存</button>
153
+                    <button class="btns SavedSubmit">保存并提交</button>
154
+                </div>
246 155
 
247
-			///修改工单
248
-			function Add() {
249
-				var value = $(' input[name="banli"]:checked ').val();
250
-				var content = $("#content").val();
251
-				if (!$("#cusname").val()) {
252
-				    layer.msg("请输入姓名");
253
-				} else if (!$("#cusphone").val()) {
254
-				    layer.msg("请输入投诉电话");
255
-				} else if (!$("#title").val()) {
256
-				    layer.msg("请输入标题");
257
-				} else if (!$("#content").val()) {
258
-				    layer.msg("请输入内容");
259
-				} else if (!$("#keys").val()) {
260
-				    layer.msg("请选择主题词");
261
-				} else if (!$("#sourcearea").val()) {
262
-				    layer.msg("请选择事发区域");
263
-				} else if (value == 1 && !$('#result').val()) {
264
-				    layer.msg("请输入直办内容");
156
+            </div>
157
+        </div>
158
+    </div>
159
+    <script src="../css/laydate/laydate.js"></script>
160
+    <script src="../js/adjustHeight.js"></script>
161
+    <script>
162
+        var wid = helper.request.queryString("wid");
163
+        var submit;
265 164
 
266
-				} else {
267
-					$.ajax({
268
-						type: "post",
269
-						url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
270
-						dataType: 'json',
271
-						async: true,
272
-						data: {
273
-							workorderid: wid,
274
-							cusname: $("#cusname").val(), //=投诉人姓名
275
-							cussex: $("#SEX").val(),
276
-							cusphone: $("#cusphone").val(), //=投诉人电话
277
-							email: $("#email").val(),
278
-							zipcode: $("#zipcode").val(),
279
-							conphone: $("#conphone").val(),
280
-							title: $("#title").val(),
281
-							content: $("#content").val(),
282
-							files: $("#file").val(), //(多个用英文逗号,隔开)
283
-							sourcearea: $("#sourcearea").val(), //=事发地域id
284
-							sourceaddress: $('#sourceaddress').val(), //=事发详细地址
285
-							source: $("#source").val(), //=来源
286
-							isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
287
-							result: $('#result').val(),
288
-							keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
289
-							type: $("#type").val(), //=类型
290
-							bigtype: $("#bigtype").val(), //=大类别
291
-							smalltype: $("#smalltype").val(), //=小类别
292
-							isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
293
-							level: $('#level').val(), //=(1普通2紧急)
294
-							issubmit: submit, //=(0保存1保存并提交)
295
-							token: $.cookie("token")
296
-						},
297
-						success: function(data) {
298
-							if(data.state.toLowerCase() == "success") {
299
-								var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
300
-								parent.layer.close(index); //再执行关闭
301
-								parent.load();
302
-								parent.layer.msg(data.message);
303
-								$('.fileBox').html('');
304
-							}
165
+        $(document).ready(function () {
166
+            QY($("#sourcearea"));
167
+            LY($("#source"));
168
+            LB($("#type"));
169
+            ZT($("#keys"))
170
+            //当即办理
171
+            $(' input[name="banli"]').change(function () {
172
+                var val = $(this).val();
173
+                if (val == "1") {
174
+                    $(".Nows_box").show();
175
+                } else {
176
+                    $(".Nows_box").hide();
177
+                }
178
+
179
+            })
180
+            $(".BC").click(function () {
181
+                submit = 0;
182
+                Add()
183
+            });
184
+            //上传附件
185
+            $("#scwj").click(function () {
186
+                $("#upFile").trigger("click");
187
+            })
188
+            $("#upFile").change(function () {
189
+                upload();
190
+            })
191
+            //				$("#scfj").click(function() {
192
+            //					$(".fjnr").text("");
193
+            //					$("#scfj").hide();
194
+            //				})
195
+            $(".SavedSubmit").click(function () {
196
+                submit = 1;
197
+                Add()
198
+            })
199
+            if (wid) {
200
+                $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
201
+                    workorderid: wid,
202
+                    "token": $.cookie("token")
203
+                }, function (result) {
204
+                    if (result.state.toLowerCase() == "success") {
205
+                        var Data = result.data.data;
206
+                        $("#cusname").val(Data[0].F_CusName);
207
+                        $("#cusphone").val(Data[0].F_CusPhone);
208
+                        $("#conphone").val(Data[0].F_ConPhone);
209
+                        $("#title").val(Data[0].F_ComTitle);
210
+                        $('#content').val(Data[0].F_ComContent);
211
+                        $('#email').val(Data[0].F_Email);
212
+                        $("#zipcode").val(Data[0].F_ZipCode);
213
+                        $("#result").val(Data[0].F_Result);
214
+                        //x性别
215
+                        $("#SEX").val(Data[0].F_CusSex + '');
216
+                        //来源
217
+                        $("#source").val(Data[0].F_InfoSource + '');
218
+                        //事件地址
219
+                        $("#sourcearea").val(Data[0].F_SourceArea + '');
220
+                        //主题词
221
+                        $("#keys").val(Data[0].F_Key + '');
222
+                        //类型
223
+                        $("#type").val(Data[0].F_InfoType + '');
224
+                        //紧急程度
225
+                        $("#level").val(Data[0].F_Level + '');
226
+                        if (Data[0].F_IsResult == 1) {
227
+                            $(".Nows_box").toggle();
228
+                        }
229
+                        $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
230
+                        $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
231
+                        $('#sourceaddress').val(Data[0].F_SourceAddress);
232
+                        $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
233
+                        $(Data[0].File).each(function (k, q) {
234
+                            var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
235
+                            $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
236
+                                event.stopPropagation();
237
+                                $(this).parent().remove();
238
+                                file_num()
239
+                            })
240
+                            file_num()
241
+                        })
242
+                    }
243
+                })
305 244
 
306
-						}
307
-					});
308
-				}
309
-			}
310
-				//上传文件隐藏域值
311
-			function file_num(){
312
-				var str = '';
313
-				var Str;
314
-				$('.fileBox .files').each(function(j,m){
315
-					var aa=$(m).attr("fiel-num")
316
-					console.log(aa);
317
-					str += aa + ",";
318
-					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
319
-				})
320
-				$("#file").val(Str);	
321
-			}
322
-			//来源
323
-			function LY(obj) {
324
-				obj.empty();
325
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
326
-					"token": $.cookie("token"),
327
-					id: 1
328
-				}, function(data) {
329
-					if(data.state.toLowerCase() == "success") {
330
-						var content = data.data;
331
-						$(content).each(function(i, n) {
332
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
333
-						})
245
+            }
246
+        });
247
+
248
+        ///修改工单
249
+        function Add() {
250
+            var value = $(' input[name="banli"]:checked ').val();
251
+            var content = $("#content").val();
252
+            if (!$("#cusname").val()) {
253
+                layer.msg("请输入姓名");
254
+            } else if (!$("#cusphone").val()) {
255
+                layer.msg("请输入投诉电话");
256
+            } else if (!$("#title").val()) {
257
+                layer.msg("请输入标题");
258
+            } else if (!$("#content").val()) {
259
+                layer.msg("请输入内容");
260
+            } else if (!$("#keys").val()) {
261
+                layer.msg("请选择主题词");
262
+            } else if (!$("#sourcearea").val()) {
263
+                layer.msg("请选择事发区域");
264
+            } else if (value == 1 && !$('#result').val()) {
265
+                layer.msg("请输入直办内容");
266
+
267
+            } else {
268
+                $.ajax({
269
+                    type: "post",
270
+                    url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
271
+                    dataType: 'json',
272
+                    async: true,
273
+                    data: {
274
+                        workorderid: wid,
275
+                        cusname: $("#cusname").val(), //=投诉人姓名
276
+                        cussex: $("#SEX").val(),
277
+                        cusphone: $("#cusphone").val(), //=投诉人电话
278
+                        email: $("#email").val(),
279
+                        zipcode: $("#zipcode").val(),
280
+                        conphone: $("#conphone").val(),
281
+                        title: $("#title").val(),
282
+                        content: $("#content").val(),
283
+                        files: $("#file").val(), //(多个用英文逗号,隔开)
284
+                        sourcearea: $("#sourcearea").val(), //=事发地域id
285
+                        sourceaddress: $('#sourceaddress').val(), //=事发详细地址
286
+                        source: $("#source").val(), //=来源
287
+                        isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
288
+                        result: $('#result').val(),
289
+                        keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
290
+                        type: $("#type").val(), //=类型
291
+                        bigtype: $("#bigtype").val(), //=大类别
292
+                        smalltype: $("#smalltype").val(), //=小类别
293
+                        isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
294
+                        level: $('#level').val(), //=(1普通2紧急)
295
+                        issubmit: submit, //=(0保存1保存并提交)
296
+                        token: $.cookie("token")
297
+                    },
298
+                    success: function (data) {
299
+                        if (data.state.toLowerCase() == "success") {
300
+                            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
301
+                            parent.layer.close(index); //再执行关闭
302
+                            parent.load();
303
+                            parent.layer.msg(data.message);
304
+                            $('.fileBox').html('');
305
+                        }
334 306
 
335
-					}
336
-				})
337
-			}
338
-			//类别
339
-			function LB(obj) {
340
-				obj.empty();
341
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
342
-					"token": $.cookie("token"),
343
-					id: 2
344
-				}, function(data) {
345
-					if(data.state.toLowerCase() == "success") {
346
-						var content = data.data;
347
-						$(content).each(function(i, n) {
348
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
349
-						})
350
-					}
351
-				})
352
-			}
353
-			//		主题
354
-			function ZT(obj) {
355
-				obj.empty();
356
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
357
-					"token": $.cookie("token"),
358
-					id: 3
359
-				}, function(data) {
360
-					if(data.state.toLowerCase() == "success") {
361
-						var content = data.data;
362
-						$(content).each(function(i, n) {
363
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
364
-						})
365
-					}
366
-				})
367
-			}
368
-			//区域
369
-			function QY(obj) {
370
-			    obj.empty();
371
-			    obj.append('<option selected="selected" value="">请选择</option>');
372
-				$.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
373
-					"token": $.cookie("token"),
374
-				}, function(data) {
375
-					if(data.state.toLowerCase() == "success") {
376
-						var content = data.data;
377
-						$(content).each(function(i, n) {
378
-							$("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
379
-						})
380
-					}
381
-				})
382
-			}
383
-			//上传文件
384
-            function upload() {
385
-                var Files = document.getElementById("upFile").files;
386
-                if (Files.length > 0) {
387
-                    var formData = new FormData();
388
-                    for (var i = 0; i < Files.length; i++) {
389
-                        formData.append('file' + i, Files[i]);
390 307
                     }
391
-                    formData.append("token", $.cookie("token"));
392
-                    $.ajax({
393
-                        url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
394
-                        type: "POST",
395
-                        data: formData,
396
-						/**
397
-						 *必须false才会自动加上正确的Content-Type
398
-						 */
399
-                        contentType: false,
400
-						/**
401
-						 * 必须false才会避开jQuery对 formdata 的默认处理
402
-						 * XMLHttpRequest会对 formdata 进行正确的处理
403
-						 */
404
-                        processData: false,
405
-                        success: function (result) {
406
-                            document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
407
-                            $("#upFile").change(function () {
408
-                                upload();
409
-                            });
410
-                            var r = $.parseJSON(result);
411
-                            if (r.state.toLowerCase() == "success") {
412
-                                var a = r.data;
413
-                                $(a).each(function (i, n) {
414
-                                    var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
415
-                                    $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
416
-                                        event.stopPropagation();
417
-                                        $(this).parent().remove();
418
-                                        file_num()
419
-                                    })
308
+                });
309
+            }
310
+        }
311
+        //上传文件隐藏域值
312
+        function file_num() {
313
+            var str = '';
314
+            var Str;
315
+            $('.fileBox .files').each(function (j, m) {
316
+                var aa = $(m).attr("fiel-num")
317
+                console.log(aa);
318
+                str += aa + ",";
319
+                Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
320
+            })
321
+            $("#file").val(Str);
322
+        }
323
+        //来源
324
+        function LY(obj) {
325
+            obj.empty();
326
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
327
+                "token": $.cookie("token"),
328
+                id: 1
329
+            }, function (data) {
330
+                if (data.state.toLowerCase() == "success") {
331
+                    var content = data.data;
332
+                    $(content).each(function (i, n) {
333
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
334
+                    })
335
+
336
+                }
337
+            })
338
+        }
339
+        //类别
340
+        function LB(obj) {
341
+            obj.empty();
342
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
343
+                "token": $.cookie("token"),
344
+                id: 2
345
+            }, function (data) {
346
+                if (data.state.toLowerCase() == "success") {
347
+                    var content = data.data;
348
+                    $(content).each(function (i, n) {
349
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
350
+                    })
351
+                }
352
+            })
353
+        }
354
+        //		主题
355
+        function ZT(obj) {
356
+            obj.empty();
357
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
358
+                "token": $.cookie("token"),
359
+                id: 3
360
+            }, function (data) {
361
+                if (data.state.toLowerCase() == "success") {
362
+                    var content = data.data;
363
+                    $(content).each(function (i, n) {
364
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
365
+                    })
366
+                }
367
+            })
368
+        }
369
+        //区域
370
+        function QY(obj) {
371
+            obj.empty();
372
+            obj.append('<option selected="selected" value="">请选择</option>');
373
+            $.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
374
+                "token": $.cookie("token"),
375
+            }, function (data) {
376
+                if (data.state.toLowerCase() == "success") {
377
+                    var content = data.data;
378
+                    $(content).each(function (i, n) {
379
+                        $("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
380
+                    })
381
+                }
382
+            })
383
+        }
384
+        //上传文件
385
+        function upload() {
386
+            var Files = document.getElementById("upFile").files;
387
+            if (Files.length > 0) {
388
+                var formData = new FormData();
389
+                for (var i = 0; i < Files.length; i++) {
390
+                    formData.append('file' + i, Files[i]);
391
+                }
392
+                formData.append("token", $.cookie("token"));
393
+                $.ajax({
394
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
395
+                    type: "POST",
396
+                    data: formData,
397
+                    /**
398
+                     *必须false才会自动加上正确的Content-Type
399
+                     */
400
+                    contentType: false,
401
+                    /**
402
+                     * 必须false才会避开jQuery对 formdata 的默认处理
403
+                     * XMLHttpRequest会对 formdata 进行正确的处理
404
+                     */
405
+                    processData: false,
406
+                    success: function (result) {
407
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
408
+                        $("#upFile").change(function () {
409
+                            upload();
410
+                        });
411
+                        var r = $.parseJSON(result);
412
+                        if (r.state.toLowerCase() == "success") {
413
+                            var a = r.data;
414
+                            $(a).each(function (i, n) {
415
+                                var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
416
+                                $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
417
+                                    event.stopPropagation();
418
+                                    $(this).parent().remove();
419
+                                    file_num()
420 420
                                 })
421
-                                file_num();
422
-                            }
421
+                            })
422
+                            file_num();
423 423
                         }
424
-                    });
425
-                } else {
426
-                    layer.confirm('请上传文件!', {
427
-                        btn: ['确定']
428
-                    });
429
-                }
424
+                    }
425
+                });
426
+            } else {
427
+                layer.confirm('请上传文件!', {
428
+                    btn: ['确定']
429
+                });
430 430
             }
431
-		</script>
432
-	</body>
431
+        }
432
+    </script>
433
+</body>
433 434
 
434 435
 </html>

+ 435 - 432
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeals.html

@@ -1,446 +1,449 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 
4
-	<head>
5
-		<meta charset="UTF-8">
6
-		<script src="../Script/Common/huayi.load.js"></script>
7
-		<script src="../Script/Common/huayi.config.js"></script>
8
-		<link href="../css/layer/need/layer.css" />
9
-		<link rel="stylesheet" href="../css/init.css" />
10
-		<title>新增诉求工单</title>
11
-		<style>
12
-				.input {
13
-				background-color: #FFF;
14
-				background-image: none;
15
-				border: 1px solid #ccc;
16
-				border-radius: 1px;
17
-				color: inherit;
18
-				padding: 6px 12px
19
-			}
20
-			
21
-			.fjnr {
22
-				padding: 0!important;
23
-				border: none!important;
24
-			}
25
-			.Source{
26
-				width: 171px;
27
-    display: block;
28
-    height: 32px;
29
-			}
30
-		</style>
31
-	</head>
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <script src="../Script/Common/huayi.load.js"></script>
7
+    <script src="../Script/Common/huayi.config.js"></script>
8
+    <link href="../css/layer/need/layer.css" />
9
+    <link rel="stylesheet" href="../css/init.css" />
10
+    <title>新增诉求工单</title>
11
+    <style>
12
+        .input {
13
+            background-color: #FFF;
14
+            background-image: none;
15
+            border: 1px solid #ccc;
16
+            border-radius: 1px;
17
+            color: inherit;
18
+            padding: 6px 12px
19
+        }
32 20
 
33
-	<body>
21
+        .fjnr {
22
+            padding: 0 !important;
23
+            border: none !important;
24
+        }
34 25
 
35
-		<div class="wrapper wrapper-content animated fadeInRight">
36
-			<div style="padding: 10px;" class="tj_content clearFix">
37
-				<div class="Common">
38
-					<table>
39
-						<tr>
40
-							<th class="Importent">姓名:</th>
41
-							<td>
42
-								<input type="text" id="cusname" />
43
-							</td>
44
-							<th>性别:</th>
45
-							<td>
46
-								<select class="select_" id="SEX">
47
-									<option value="">请选择</option>
48
-									<option value="0">男</option>
49
-									<option value="1">女</option>
50
-								</select>
51
-							</td>
52
-							<th>来源:</th>
53
-							<td>
54
-								<!--<select class="select_" id="source">
55
-								</select>-->
56
-								<span class="Source"></span>
57
-								<input type="hidden" id="source" readonly="readonly" />
58
-							</td>
59
-							<th class="Importent">投诉电话:</th>
60
-							<td>
61
-								<input type="text" id="cusphone" />
62
-							</td>
63
-						</tr>
64
-						<tr>
65
-							<th>邮箱:</th>
66
-							<td>
67
-								<input type="text" id="email" />
68
-							</td>
69
-							<th>邮编:</th>
70
-							<td>
71
-								<input type="text" id="zipcode" />
72
-							</td>
73
-							<th>联系电话:</th>
74
-							<td>
75
-								<input type="text" id="conphone" />
76
-							</td>
77
-						</tr>
78
-						<tr>
79
-							<th class="Importent">标题:</th>
80
-							<td colspan="7">
81
-								<input id="title" type="text" style="width: 100%;" />
82
-							</td>
83
-						</tr>
84
-						<tr>
85
-							<th class="Importent">内容:</th>
86
-							<td colspan="7">
87
-								<textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
88
-							</td>
89
-						</tr>
90
-						<tr>
91
-							<th class="Importent">事件地址:</th>
92
-							<td colspan="7">
93
-								<select class="select_" id="sourcearea">
94
-								</select>
95
-								<input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
96
-							</td>
97
-						</tr>
98
-						<tr>
99
-							<th>附件上传:</th>
100
-							<td colspan="7">
101
-								<div class="fileBox">
102
-									
103
-								</div>
104
-								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
105
-								<!--<span class="fjnr"></span>-->
106
-								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
107
-								<input class="input" type="button" value="上传" id="scwj" />
108
-								<!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
109
-								<input type="hidden" id="file" />
110
-							</td>
111
-						</tr>
112
-						<tr>
113
-							<th>处理方式:</th>
114
-							<td colspan="7">
115
-								<input type="radio" value="1" name="banli" class="Nows" />当即办理
116
-								<input checked="true" type="radio" value="0" name="banli" class="Nows_" />网络转办
117
-							</td>
118
-						</tr>
119
-						<tr class="Nows_box Hidens">
120
-							<th>办理内容:</th>
121
-							<td colspan="7">
26
+        .Source {
27
+            width: 171px;
28
+            display: block;
29
+            height: 32px;
30
+        }
122 31
 
123
-								<input type="text" style="width: 100%;" id="result" />
124
-							</td>
125
-						</tr>
126
-						<tr>
127
-							<th class="Importent">主题词:</th>
128
-							<td>
129
-								<!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
130
-								<select class="select_" id="keys">
131
-									<option value=""></option>
132
-								</select>
133
-							</td>
134
-							<th>类型:</th>
135
-							<td>
136
-								<select class="select_" id="type">
137
-								</select>
138
-							</td>
139
-							<th>密级:</th>
140
-							<td >
141
-								<input checked="true" type="radio" name="mj" id="" value="0" />普通
142
-								<input type="radio" name="mj" id="" value="1" />保密
143
-							</td>
144
-							<th>紧急程度:</th>
145
-							<td>
146
-								<select class="select_" id="level">
147
-									<option value="">选择</option>
148
-									<option value="0">普通</option>
149
-									<option value="1">紧急</option>
150
-								</select>
151
-							</td>
152
-							<!--<th class="">分管领导:</th>
153
-							<td colspan="4">
154
-								<input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
155
-							</td>-->
156
-						</tr>
157
-					</table>
158
-					<div class="btn_box">
159
-						<button class="btns BC">保存</button>
160
-						<button class="btns SavedSubmit">保存并提交</button>
161
-					</div>
32
+        input, select {
33
+            vertical-align: middle;
34
+        }
35
+    </style>
36
+</head>
162 37
 
163
-				</div>
164
-			</div>
165
-		</div>
166
-		<script src="../css/laydate/laydate.js"></script>
167
-		<script src="../js/adjustHeight.js"></script>
168
-		<script>
169
-			var wid = helper.request.queryString("wid");
170
-			var submit;
38
+<body>
171 39
 
172
-			$(document).ready(function() {
173
-				QY($("#sourcearea"));
174
-				LY($("#source"));
175
-				LB($("#type"));
176
-				ZT($("#keys"))
177
-				//当即办理
178
-				 $(' input[name="banli"]').change(function(){
179
-					var val=$(this).val();
180
-					if(val=="1"){
181
-						$(".Nows_box").show();
182
-					}else{
183
-						$(".Nows_box").hide();
184
-					}
185
-					
186
-				})
187
-				$(".BC").click(function() {
188
-					submit = 0;
189
-					Add()
190
-				});
191
-				//上传附件
192
-				$("#scwj").click(function() {
193
-					$("#upFile").trigger("click");
194
-				})
195
-				$("#upFile").change(function() {
196
-					upload();
197
-				})
198
-//				$("#scfj").click(function() {
199
-//					$(".fjnr").text("");
200
-//					$("#scfj").hide();
201
-//				})
202
-				$(".SavedSubmit").click(function() {
203
-					submit = 1;
204
-					Add()
205
-				})
206
-				if(wid) {
207
-					$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
208
-						workorderid: wid,
209
-						"token": $.cookie("token")
210
-					}, function(result) {
211
-						if(result.state.toLowerCase() == "success") {
212
-							var Data = result.data.data;
213
-							$("#cusname").val(Data[0].F_CusName);
214
-							$("#cusphone").val(Data[0].F_CusPhone);
215
-							$("#conphone").val(Data[0].F_ConPhone);
216
-							$("#title").val(Data[0].F_ComTitle);
217
-							$('#content').val(Data[0].F_ComContent);
218
-							$('#email').val(Data[0].F_Email);
219
-							$("#zipcode").val(Data[0].F_ZipCode);
220
-							$("#result").val(Data[0].F_Result);
221
-							 //x性别
222
-							$("#SEX").val(Data[0].F_CusSex+'');
223
-							//来源
224
-								$("#source").val(Data[0].F_InfoSource+'');
225
-							//事件地址
226
-							$(".Source").text(Data[0].SourceName);
227
-								$("#sourcearea").val(Data[0].F_SourceArea+'');
228
-							//主题词
229
-								$("#keys").val(Data[0].F_Key+'');
230
-							//类型
231
-								$("#type").val(Data[0].F_InfoType+'');
232
-							//紧急程度
233
-								$("#level").val(Data[0].F_Level+'')
234
-							if(Data[0].F_IsResult == 1) {
235
-								$(".Nows_box").toggle();
236
-							}
237
-							$(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
238
-							$(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
239
-                            $('#sourceaddress').val(Data[0].F_SourceAddress);
240
-							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
241
-							$(Data[0].File).each(function(k,q){
242
-								var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName.substring(19) +'<i class="fa fa-remove del_file"></i></span>'
243
-								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
244
-									event.stopPropagation();
245
-									$(this).parent().remove();
246
-										file_num()
247
-								})
248
-								file_num()
249
-							})
250
-						}
251
-					})
40
+    <div class="wrapper wrapper-content animated fadeInRight">
41
+        <div style="padding: 10px;" class="tj_content clearFix">
42
+            <div class="Common">
43
+                <table>
44
+                    <tr>
45
+                        <th class="Importent">姓名:</th>
46
+                        <td>
47
+                            <input type="text" id="cusname" />
48
+                        </td>
49
+                        <th>性别:</th>
50
+                        <td>
51
+                            <select class="select_" id="SEX">
52
+                                <option value="">请选择</option>
53
+                                <option value="0">男</option>
54
+                                <option value="1">女</option>
55
+                            </select>
56
+                        </td>
57
+                        <th>来源:</th>
58
+                        <td>
59
+                            <!--<select class="select_" id="source">
60
+                            </select>-->
61
+                            <span class="Source"></span>
62
+                            <input type="hidden" id="source" readonly="readonly" />
63
+                        </td>
64
+                        <th class="Importent">投诉电话:</th>
65
+                        <td>
66
+                            <input type="text" id="cusphone" />
67
+                        </td>
68
+                    </tr>
69
+                    <tr>
70
+                        <th>邮箱:</th>
71
+                        <td>
72
+                            <input type="text" id="email" />
73
+                        </td>
74
+                        <th>邮编:</th>
75
+                        <td>
76
+                            <input type="text" id="zipcode" />
77
+                        </td>
78
+                        <th>联系电话:</th>
79
+                        <td>
80
+                            <input type="text" id="conphone" />
81
+                        </td>
82
+                    </tr>
83
+                    <tr>
84
+                        <th class="Importent">标题:</th>
85
+                        <td colspan="7">
86
+                            <input id="title" type="text" style="width: 100%;" />
87
+                        </td>
88
+                    </tr>
89
+                    <tr>
90
+                        <th class="Importent">内容:</th>
91
+                        <td colspan="7">
92
+                            <textarea data-adaptheight id="content" name="" rows="" cols="" style="width: 100%;"></textarea>
93
+                        </td>
94
+                    </tr>
95
+                    <tr>
96
+                        <th class="Importent">事件地址:</th>
97
+                        <td colspan="7">
98
+                            <select class="select_" id="sourcearea"></select>
99
+                            <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
100
+                        </td>
101
+                    </tr>
102
+                    <tr>
103
+                        <th>附件上传:</th>
104
+                        <td colspan="7">
105
+                            <div class="fileBox">
252 106
 
253
-				}
254
-			});
107
+                            </div>
108
+                            <!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
109
+                            <!--<span class="fjnr"></span>-->
110
+                            <input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
111
+                            <input class="input" type="button" value="上传" id="scwj" />
112
+                            <!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
113
+                            <input type="hidden" id="file" />
114
+                        </td>
115
+                    </tr>
116
+                    <tr>
117
+                        <th>处理方式:</th>
118
+                        <td colspan="7">
119
+                            <input type="radio" value="1" name="banli" class="Nows" />当即办理
120
+                            <input checked="true" type="radio" value="0" name="banli" class="Nows_" />网络转办
121
+                        </td>
122
+                    </tr>
123
+                    <tr class="Nows_box Hidens">
124
+                        <th>办理内容:</th>
125
+                        <td colspan="7">
255 126
 
256
-			///修改工单
257
-			function Add() {
258
-				var value = $(' input[name="banli"]:checked ').val();
259
-				var content = $("#content").val();
260
-				if (!$("#cusname").val()) {
261
-				    layer.msg("请输入姓名");
262
-				} else if (!$("#cusphone").val()) {
263
-				    layer.msg("请输入投诉电话");
264
-				} else if (!$("#title").val()) {
265
-				    layer.msg("请输入标题");
266
-				} else if (!$("#content").val()) {
267
-				    layer.msg("请输入内容");
268
-				} else if (!$("#keys").val()) {
269
-				    layer.msg("请选择主题词");
270
-				} else if (!$("#sourcearea").val()) {
271
-				    layer.msg("请选择事发区域");
272
-				} else if (value == 1 && !$('#result').val()) {
273
-				    layer.msg("请输入直办内容");
127
+                            <input type="text" style="width: 100%;" id="result" />
128
+                        </td>
129
+                    </tr>
130
+                    <tr>
131
+                        <th class="Importent">主题词:</th>
132
+                        <td>
133
+                            <!--<input id="keys" type="text" placeholder="输入主题词" style="width:100%" />-->
134
+                            <select class="select_" id="keys">
135
+                                <option value=""></option>
136
+                            </select>
137
+                        </td>
138
+                        <th>类型:</th>
139
+                        <td>
140
+                            <select class="select_" id="type"></select>
141
+                        </td>
142
+                        <th>密级:</th>
143
+                        <td>
144
+                            <input checked="true" type="radio" name="mj" id="" value="0" />普通
145
+                            <input type="radio" name="mj" id="" value="1" />保密
146
+                        </td>
147
+                        <th>紧急程度:</th>
148
+                        <td>
149
+                            <select class="select_" id="level">
150
+                                <option value="">选择</option>
151
+                                <option value="0">普通</option>
152
+                                <option value="1">紧急</option>
153
+                            </select>
154
+                        </td>
155
+                        <!--<th class="">分管领导:</th>
156
+                        <td colspan="4">
157
+                            <input id="splituser" type="text" placeholder="" style="width:100%" readonly="readonly" />
158
+                        </td>-->
159
+                    </tr>
160
+                </table>
161
+                <div class="btn_box">
162
+                    <button class="btns BC">保存</button>
163
+                    <button class="btns SavedSubmit">保存并提交</button>
164
+                </div>
274 165
 
275
-				}
276
-				else {
277
-					$.ajax({
278
-						type: "post",
279
-						url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrderBySource",
280
-						dataType: 'json',
281
-						async: true,
282
-						data: {
283
-							workorderid: wid,
284
-							cusname: $("#cusname").val(), //=投诉人姓名
285
-							cussex: $("#SEX").val(),
286
-							cusphone: $("#cusphone").val(), //=投诉人电话
287
-							email: $("#email").val(),
288
-							zipcode: $("#zipcode").val(),
289
-							conphone: $("#conphone").val(),
290
-							title: $("#title").val(),
291
-							content: $("#content").val(),
292
-							files: $("#file").val(), //(多个用英文逗号,隔开)
293
-							sourcearea: $("#sourcearea").val(), //=事发地域id
294
-							sourceaddress: $('#sourceaddress').val(), //=事发详细地址
295
-							source: $("#source").val(), //=来源
296
-							isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
297
-							result: $('#result').val(),
298
-							keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
299
-//							splituser: 5, //分管领导id(多个用英文逗号,隔开)
300
-							type: $("#type").val(), //=类型
301
-							bigtype: $("#bigtype").val(), //=大类别
302
-							smalltype: $("#smalltype").val(), //=小类别
303
-							isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
304
-							level: $('#level').val(), //=(1普通2紧急3特急)
305
-							issubmit: submit, //=(0保存1保存并提交)
306
-							token: $.cookie("token")
307
-						},
308
-						success: function(data) {
309
-							if(data.state.toLowerCase() == "success") {
310
-								var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
311
-								parent.layer.close(index); //再执行关闭
312
-								parent.load();
313
-								parent.layer.msg(data.message);
314
-									$('.fileBox').html('');
315
-							}
166
+            </div>
167
+        </div>
168
+    </div>
169
+    <script src="../css/laydate/laydate.js"></script>
170
+    <script src="../js/adjustHeight.js"></script>
171
+    <script>
172
+        var wid = helper.request.queryString("wid");
173
+        var submit;
316 174
 
317
-						}
318
-					});
319
-				}
320
-			}
321
-			//来源
322
-			function LY(obj) {
323
-				obj.empty();
324
-				//obj.append('<option selected="selected" value="1">请选择</option>');
325
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
326
-					"token": $.cookie("token"),
327
-					id: 1
328
-				}, function(data) {
329
-					if(data.state.toLowerCase() == "success") {
330
-						var content = data.data;
331
-						$(content).each(function(i, n) {
332
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
333
-						})
334
-						 
335
-					}
336
-				})
337
-			}
338
-			//类别
339
-			function LB(obj) {
340
-				obj.empty();
341
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
342
-					"token": $.cookie("token"),
343
-					id: 2
344
-				}, function(data) {
345
-					if(data.state.toLowerCase() == "success") {
346
-						var content = data.data;
347
-						$(content).each(function(i, n) {
348
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
349
-						})
350
-					}
351
-				})
352
-			}
353
-			//		主题
354
-			function ZT(obj) {
355
-				obj.empty();
356
-				$.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
357
-					"token": $.cookie("token"),
358
-					id: 3
359
-				}, function(data) {
360
-					if(data.state.toLowerCase() == "success") {
361
-						var content = data.data;
362
-						$(content).each(function(i, n) {
363
-							$("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
364
-						})
365
-					}
366
-				})
367
-			}
368
-			//区域
369
-			function QY(obj) {
370
-			    obj.empty();
371
-			    obj.append('<option selected="selected" value="">请选择</option>');
372
-				$.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
373
-					"token": $.cookie("token"),
374
-				}, function(data) {
375
-					if(data.state.toLowerCase() == "success") {
376
-						var content = data.data;
377
-						$(content).each(function(i, n) {
378
-							$("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
379
-						})
380
-					}
381
-				})
382
-			}
383
-			function upload() {
384
-				var Files = document.getElementById("upFile").files;
385
-				if(Files.length > 0) {
386
-					var formData = new FormData();
387
-					for(var i = 0; i < Files.length; i++) {
388
-						formData.append('file' + i, Files[i]);
389
-					}
390
-					formData.append("token", $.cookie("token"));
391
-					$.ajax({
392
-						url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
393
-						type: "POST",
394
-						data: formData,
395
-						/**
396
-						 *必须false才会自动加上正确的Content-Type
397
-						 */
398
-						contentType: false,
399
-						/**
400
-						 * 必须false才会避开jQuery对 formdata 的默认处理
401
-						 * XMLHttpRequest会对 formdata 进行正确的处理
402
-						 */
403
-						processData: false,
404
-						success: function(result) {
405
-							document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
406
-							$("#upFile").change(function() {
407
-								upload();
408
-							});
409
-							var r = $.parseJSON(result);
410
-							if(r.state.toLowerCase() == "success") {
411
-//								$(".fjnr").text(r.data[0].F_FileName);
412
-								var a = r.data;
413
-								$(a).each(function(i, n) {
414
-									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName.substring(19) +'<i class="fa fa-remove del_file"></i></span>'
415
-									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
416
-									event.stopPropagation();
417
-									$(this).parent().remove();
418
-										file_num();
419
-									})
420
-								})
421
-								file_num();
422
-							}
423
-						}
424
-					});
425
-				} else {
426
-					layer.confirm('请上传文件!', {
427
-						btn: ['确定']
428
-					});
429
-				}
430
-			}
431
-					//上传文件隐藏域值
432
-			function file_num(){
433
-				var str = '';
434
-				var Str;
435
-				$('.fileBox .files').each(function(j,m){
436
-					var aa=$(m).attr("fiel-num")
437
-					console.log(aa);
438
-					str += aa + ",";
439
-					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
440
-				})
441
-				$("#file").val(Str);	
442
-			}
443
-		</script>
444
-	</body>
175
+        $(document).ready(function () {
176
+            QY($("#sourcearea"));
177
+            LY($("#source"));
178
+            LB($("#type"));
179
+            ZT($("#keys"))
180
+            //当即办理
181
+            $(' input[name="banli"]').change(function () {
182
+                var val = $(this).val();
183
+                if (val == "1") {
184
+                    $(".Nows_box").show();
185
+                } else {
186
+                    $(".Nows_box").hide();
187
+                }
188
+
189
+            })
190
+            $(".BC").click(function () {
191
+                submit = 0;
192
+                Add()
193
+            });
194
+            //上传附件
195
+            $("#scwj").click(function () {
196
+                $("#upFile").trigger("click");
197
+            })
198
+            $("#upFile").change(function () {
199
+                upload();
200
+            })
201
+            //				$("#scfj").click(function() {
202
+            //					$(".fjnr").text("");
203
+            //					$("#scfj").hide();
204
+            //				})
205
+            $(".SavedSubmit").click(function () {
206
+                submit = 1;
207
+                Add()
208
+            })
209
+            if (wid) {
210
+                $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
211
+                    workorderid: wid,
212
+                    "token": $.cookie("token")
213
+                }, function (result) {
214
+                    if (result.state.toLowerCase() == "success") {
215
+                        var Data = result.data.data;
216
+                        $("#cusname").val(Data[0].F_CusName);
217
+                        $("#cusphone").val(Data[0].F_CusPhone);
218
+                        $("#conphone").val(Data[0].F_ConPhone);
219
+                        $("#title").val(Data[0].F_ComTitle);
220
+                        $('#content').val(Data[0].F_ComContent);
221
+                        $('#email').val(Data[0].F_Email);
222
+                        $("#zipcode").val(Data[0].F_ZipCode);
223
+                        $("#result").val(Data[0].F_Result);
224
+                        //x性别
225
+                        $("#SEX").val(Data[0].F_CusSex + '');
226
+                        //来源
227
+                        $("#source").val(Data[0].F_InfoSource + '');
228
+                        //事件地址
229
+                        $(".Source").text(Data[0].SourceName);
230
+                        $("#sourcearea").val(Data[0].F_SourceArea + '');
231
+                        //主题词
232
+                        $("#keys").val(Data[0].F_Key + '');
233
+                        //类型
234
+                        $("#type").val(Data[0].F_InfoType + '');
235
+                        //紧急程度
236
+                        $("#level").val(Data[0].F_Level + '')
237
+                        if (Data[0].F_IsResult == 1) {
238
+                            $(".Nows_box").toggle();
239
+                        }
240
+                        $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
241
+                        $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
242
+                        $('#sourceaddress').val(Data[0].F_SourceAddress);
243
+                        $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
244
+                        $(Data[0].File).each(function (k, q) {
245
+                            var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
246
+                            $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
247
+                                event.stopPropagation();
248
+                                $(this).parent().remove();
249
+                                file_num()
250
+                            })
251
+                            file_num()
252
+                        })
253
+                    }
254
+                })
255
+
256
+            }
257
+        });
258
+
259
+        ///修改工单
260
+        function Add() {
261
+            var value = $(' input[name="banli"]:checked ').val();
262
+            var content = $("#content").val();
263
+            if (!$("#cusname").val()) {
264
+                layer.msg("请输入姓名");
265
+            } else if (!$("#cusphone").val()) {
266
+                layer.msg("请输入投诉电话");
267
+            } else if (!$("#title").val()) {
268
+                layer.msg("请输入标题");
269
+            } else if (!$("#content").val()) {
270
+                layer.msg("请输入内容");
271
+            } else if (!$("#keys").val()) {
272
+                layer.msg("请选择主题词");
273
+            } else if (!$("#sourcearea").val()) {
274
+                layer.msg("请选择事发区域");
275
+            } else if (value == 1 && !$('#result').val()) {
276
+                layer.msg("请输入直办内容");
277
+
278
+            }
279
+            else {
280
+                $.ajax({
281
+                    type: "post",
282
+                    url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrderBySource",
283
+                    dataType: 'json',
284
+                    async: true,
285
+                    data: {
286
+                        workorderid: wid,
287
+                        cusname: $("#cusname").val(), //=投诉人姓名
288
+                        cussex: $("#SEX").val(),
289
+                        cusphone: $("#cusphone").val(), //=投诉人电话
290
+                        email: $("#email").val(),
291
+                        zipcode: $("#zipcode").val(),
292
+                        conphone: $("#conphone").val(),
293
+                        title: $("#title").val(),
294
+                        content: $("#content").val(),
295
+                        files: $("#file").val(), //(多个用英文逗号,隔开)
296
+                        sourcearea: $("#sourcearea").val(), //=事发地域id
297
+                        sourceaddress: $('#sourceaddress').val(), //=事发详细地址
298
+                        source: $("#source").val(), //=来源
299
+                        isresult: $(' input[name="banli"]:checked ').val(), //=(0转办1直办)
300
+                        result: $('#result').val(),
301
+                        keys: $("#keys").val(), //=关键词id(多个用英文逗号,隔开)
302
+                        //							splituser: 5, //分管领导id(多个用英文逗号,隔开)
303
+                        type: $("#type").val(), //=类型
304
+                        bigtype: $("#bigtype").val(), //=大类别
305
+                        smalltype: $("#smalltype").val(), //=小类别
306
+                        isprotect: $(' input[name="mj"]:checked ').val(), //=(0普通1保密)
307
+                        level: $('#level').val(), //=(1普通2紧急3特急)
308
+                        issubmit: submit, //=(0保存1保存并提交)
309
+                        token: $.cookie("token")
310
+                    },
311
+                    success: function (data) {
312
+                        if (data.state.toLowerCase() == "success") {
313
+                            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
314
+                            parent.layer.close(index); //再执行关闭
315
+                            parent.load();
316
+                            parent.layer.msg(data.message);
317
+                            $('.fileBox').html('');
318
+                        }
319
+
320
+                    }
321
+                });
322
+            }
323
+        }
324
+        //来源
325
+        function LY(obj) {
326
+            obj.empty();
327
+            //obj.append('<option selected="selected" value="1">请选择</option>');
328
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
329
+                "token": $.cookie("token"),
330
+                id: 1
331
+            }, function (data) {
332
+                if (data.state.toLowerCase() == "success") {
333
+                    var content = data.data;
334
+                    $(content).each(function (i, n) {
335
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
336
+                    })
337
+
338
+                }
339
+            })
340
+        }
341
+        //类别
342
+        function LB(obj) {
343
+            obj.empty();
344
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
345
+                "token": $.cookie("token"),
346
+                id: 2
347
+            }, function (data) {
348
+                if (data.state.toLowerCase() == "success") {
349
+                    var content = data.data;
350
+                    $(content).each(function (i, n) {
351
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
352
+                    })
353
+                }
354
+            })
355
+        }
356
+        //		主题
357
+        function ZT(obj) {
358
+            obj.empty();
359
+            $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
360
+                "token": $.cookie("token"),
361
+                id: 3
362
+            }, function (data) {
363
+                if (data.state.toLowerCase() == "success") {
364
+                    var content = data.data;
365
+                    $(content).each(function (i, n) {
366
+                        $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(obj);
367
+                    })
368
+                }
369
+            })
370
+        }
371
+        //区域
372
+        function QY(obj) {
373
+            obj.empty();
374
+            obj.append('<option selected="selected" value="">请选择</option>');
375
+            $.getJSON(huayi.config.callcenter_url + "Area/GetAreaListById", {
376
+                "token": $.cookie("token"),
377
+            }, function (data) {
378
+                if (data.state.toLowerCase() == "success") {
379
+                    var content = data.data;
380
+                    $(content).each(function (i, n) {
381
+                        $("<option value='" + n.F_AreaId + "'>" + n.F_AreaName + "</option>").appendTo(obj);
382
+                    })
383
+                }
384
+            })
385
+        }
386
+        function upload() {
387
+            var Files = document.getElementById("upFile").files;
388
+            if (Files.length > 0) {
389
+                var formData = new FormData();
390
+                for (var i = 0; i < Files.length; i++) {
391
+                    formData.append('file' + i, Files[i]);
392
+                }
393
+                formData.append("token", $.cookie("token"));
394
+                $.ajax({
395
+                    url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
396
+                    type: "POST",
397
+                    data: formData,
398
+                    /**
399
+                     *必须false才会自动加上正确的Content-Type
400
+                     */
401
+                    contentType: false,
402
+                    /**
403
+                     * 必须false才会避开jQuery对 formdata 的默认处理
404
+                     * XMLHttpRequest会对 formdata 进行正确的处理
405
+                     */
406
+                    processData: false,
407
+                    success: function (result) {
408
+                        document.getElementById("upFile").outerHTML = document.getElementById("upFile").outerHTML;
409
+                        $("#upFile").change(function () {
410
+                            upload();
411
+                        });
412
+                        var r = $.parseJSON(result);
413
+                        if (r.state.toLowerCase() == "success") {
414
+                            //								$(".fjnr").text(r.data[0].F_FileName);
415
+                            var a = r.data;
416
+                            $(a).each(function (i, n) {
417
+                                var strs = '<span class="files" fiel-num="' + n.F_FileId + '">' + n.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
418
+                                $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
419
+                                    event.stopPropagation();
420
+                                    $(this).parent().remove();
421
+                                    file_num();
422
+                                })
423
+                            })
424
+                            file_num();
425
+                        }
426
+                    }
427
+                });
428
+            } else {
429
+                layer.confirm('请上传文件!', {
430
+                    btn: ['确定']
431
+                });
432
+            }
433
+        }
434
+        //上传文件隐藏域值
435
+        function file_num() {
436
+            var str = '';
437
+            var Str;
438
+            $('.fileBox .files').each(function (j, m) {
439
+                var aa = $(m).attr("fiel-num")
440
+                console.log(aa);
441
+                str += aa + ",";
442
+                Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
443
+            })
444
+            $("#file").val(Str);
445
+        }
446
+    </script>
447
+</body>
445 448
 
446 449
 </html>

+ 2 - 2
WebUI/CallCenterWeb.UI/CommonHtml/PrintPreview-1.html

@@ -311,8 +311,8 @@
311 311
 		                    if(qst){
312 312
 			                    var qs = qst.substring(0,qst.indexOf(' '));
313 313
 		                    	$('.QSHJ').text(qs);	
314
-		                    }
315
-		                    var qst0 = content.jbdata[0].F_LimitTime;//办理时限
314
+                            }
315
+                            var qst0 = content.jbdata[content.jbdata.length-1].F_LimitTime;//办理时限
316 316
 							if(qst0){
317 317
 		                    	var qs0 = qst0.substring(0,qst0.indexOf(' '));
318 318
 		                    	$('.BLSX').html(qs0);