|
|
@@ -87,10 +87,25 @@
|
|
87
|
87
|
<th class="Importent">事件地址:</th>
|
|
88
|
88
|
<td colspan="7">
|
|
89
|
89
|
<select class="select_" id="sourcearea"></select>
|
|
90
|
|
- <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:66%" />
|
|
91
|
90
|
</td>
|
|
92
|
91
|
</tr>
|
|
93
|
92
|
<tr>
|
|
|
93
|
+ <th class="Importent"></th>
|
|
|
94
|
+ <td colspan="7">
|
|
|
95
|
+ <input id="sourceaddress" type="text" placeholder="输入详细地址" style="width:50%; padding-left: 15px;" />
|
|
|
96
|
+ </td>
|
|
|
97
|
+ </tr>
|
|
|
98
|
+ <tr>
|
|
|
99
|
+ <th class="Importent"></th>
|
|
|
100
|
+ <td colspan="7">
|
|
|
101
|
+ <div style="width:710px">
|
|
|
102
|
+ <div id="myMap" style="width:100%;height:400px;"></div>
|
|
|
103
|
+ <input type="hidden" class="store_Lng" value="115.659773"/>
|
|
|
104
|
+ <input type="hidden" class="store_Lat" value="34.395449"/>
|
|
|
105
|
+ </div>
|
|
|
106
|
+ </td>
|
|
|
107
|
+ </tr>
|
|
|
108
|
+ <tr>
|
|
94
|
109
|
<th>附件上传:</th>
|
|
95
|
110
|
<td colspan="7">
|
|
96
|
111
|
<div class="fileBox">
|
|
|
@@ -159,12 +174,13 @@
|
|
159
|
174
|
</div>
|
|
160
|
175
|
</div>
|
|
161
|
176
|
</div>
|
|
|
177
|
+ <script src="https://api.map.baidu.com/api?v=2.0&ak=ZG4gLQZUD6Eq1K11cqlYAR4by8CKgLyu&callback=mapinit"></script>
|
|
162
|
178
|
<script src="../css/laydate/laydate.js"></script>
|
|
163
|
179
|
<script src="../js/adjustHeight.js"></script>
|
|
|
180
|
+ <script src="../js/appeal/index.js"></script>
|
|
164
|
181
|
<script>
|
|
165
|
182
|
var wid = helper.request.queryString("wid");
|
|
166
|
183
|
var submit;
|
|
167
|
|
-
|
|
168
|
184
|
$(document).ready(function () {
|
|
169
|
185
|
QY($("#sourcearea"));
|
|
170
|
186
|
LY($("#source"));
|
|
|
@@ -178,7 +194,6 @@
|
|
178
|
194
|
} else {
|
|
179
|
195
|
$(".Nows_box").hide();
|
|
180
|
196
|
}
|
|
181
|
|
-
|
|
182
|
197
|
})
|
|
183
|
198
|
$(".BC").click(function () {
|
|
184
|
199
|
submit = 0;
|
|
|
@@ -200,50 +215,62 @@
|
|
200
|
215
|
Add()
|
|
201
|
216
|
})
|
|
202
|
217
|
if (wid) {
|
|
203
|
|
- $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
|
|
204
|
|
- workorderid: wid,
|
|
205
|
|
- "token": $.cookie("token")
|
|
206
|
|
- }, function (result) {
|
|
207
|
|
- if (result.state.toLowerCase() == "success") {
|
|
208
|
|
- var Data = result.data.data;
|
|
209
|
|
- $("#cusname").val(Data[0].F_CusName);
|
|
210
|
|
- $("#cusphone").val(Data[0].F_CusPhone);
|
|
211
|
|
- $("#conphone").val(Data[0].F_ConPhone);
|
|
212
|
|
- $("#title").val(Data[0].F_ComTitle);
|
|
213
|
|
- $('#content').val(Data[0].F_ComContent);
|
|
214
|
|
- $('#email').val(Data[0].F_Email);
|
|
215
|
|
- $("#zipcode").val(Data[0].F_ZipCode);
|
|
216
|
|
- $("#result").val(Data[0].F_Result);
|
|
217
|
|
- //x性别
|
|
218
|
|
- $("#SEX").val(Data[0].F_CusSex + '');
|
|
219
|
|
- //来源
|
|
220
|
|
- $("#source").val(Data[0].F_InfoSource + '');
|
|
221
|
|
- //事件地址
|
|
222
|
|
- $("#sourcearea").val(Data[0].F_SourceArea + '');
|
|
223
|
|
- //主题词
|
|
224
|
|
- $("#keys").val(Data[0].F_Key + '');
|
|
225
|
|
- //类型
|
|
226
|
|
- $("#type").val(Data[0].F_InfoType + '');
|
|
227
|
|
- //紧急程度
|
|
228
|
|
- $("#level").val(Data[0].F_Level + '');
|
|
229
|
|
- if (Data[0].F_IsResult == 1) {
|
|
230
|
|
- $(".Nows_box").toggle();
|
|
|
218
|
+ $.ajax({
|
|
|
219
|
+ type: "get",
|
|
|
220
|
+ url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
|
|
|
221
|
+ dataType: 'json',
|
|
|
222
|
+ async: false,
|
|
|
223
|
+ data: {
|
|
|
224
|
+ workorderid: wid,
|
|
|
225
|
+ token: $.cookie("token")
|
|
|
226
|
+ },
|
|
|
227
|
+ success: function (data) {
|
|
|
228
|
+ if (data.state.toLowerCase() == "success") {
|
|
|
229
|
+ var Data = data.data.data;
|
|
|
230
|
+ $("#cusname").val(Data[0].F_CusName);
|
|
|
231
|
+ $("#cusphone").val(Data[0].F_CusPhone);
|
|
|
232
|
+ $("#conphone").val(Data[0].F_ConPhone);
|
|
|
233
|
+ $("#title").val(Data[0].F_ComTitle);
|
|
|
234
|
+ $('#content').val(Data[0].F_ComContent);
|
|
|
235
|
+ $('#email').val(Data[0].F_Email);
|
|
|
236
|
+ $("#zipcode").val(Data[0].F_ZipCode);
|
|
|
237
|
+ $("#result").val(Data[0].F_Result);
|
|
|
238
|
+ $(".store_Lng").val(Data[0].F_Longitude);
|
|
|
239
|
+ $(".store_Lat").val(Data[0].F_Latitude);
|
|
|
240
|
+ //x性别
|
|
|
241
|
+ $("#SEX").val(Data[0].F_CusSex + '');
|
|
|
242
|
+ //来源
|
|
|
243
|
+ $("#source").val(Data[0].F_InfoSource + '');
|
|
|
244
|
+ //事件地址
|
|
|
245
|
+ $("#sourcearea").val(Data[0].F_SourceArea + '');
|
|
|
246
|
+ //主题词
|
|
|
247
|
+ $("#keys").val(Data[0].F_Key + '');
|
|
|
248
|
+ //类型
|
|
|
249
|
+ $("#type").val(Data[0].F_InfoType + '');
|
|
|
250
|
+ //紧急程度
|
|
|
251
|
+ $("#level").val(Data[0].F_Level + '');
|
|
|
252
|
+ if (Data[0].F_IsResult == 1) {
|
|
|
253
|
+ $(".Nows_box").toggle();
|
|
|
254
|
+ }
|
|
|
255
|
+ $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
|
|
|
256
|
+ $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
|
|
|
257
|
+ $('#sourceaddress').val(Data[0].F_SourceAddress);
|
|
|
258
|
+ $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
|
|
|
259
|
+ $(Data[0].File).each(function (k, q) {
|
|
|
260
|
+ var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
|
|
|
261
|
+ $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
|
|
|
262
|
+ event.stopPropagation();
|
|
|
263
|
+ $(this).parent().remove();
|
|
|
264
|
+ file_num()
|
|
|
265
|
+ })
|
|
|
266
|
+ file_num()
|
|
|
267
|
+ })
|
|
231
|
268
|
}
|
|
232
|
|
- $(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
|
|
233
|
|
- $(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
|
|
234
|
|
- $('#sourceaddress').val(Data[0].F_SourceAddress);
|
|
235
|
|
- $('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
|
|
236
|
|
- $(Data[0].File).each(function (k, q) {
|
|
237
|
|
- var strs = '<span class="files" fiel-num="' + q.F_FileId + '">' + q.F_FileName.substring(19) + '<i class="fa fa-remove del_file"></i></span>'
|
|
238
|
|
- $(strs).appendTo($('.fileBox')).find('.del_file').click(function (event) {
|
|
239
|
|
- event.stopPropagation();
|
|
240
|
|
- $(this).parent().remove();
|
|
241
|
|
- file_num()
|
|
242
|
|
- })
|
|
243
|
|
- file_num()
|
|
244
|
|
- })
|
|
|
269
|
+
|
|
245
|
270
|
}
|
|
246
|
|
- })
|
|
|
271
|
+ });
|
|
|
272
|
+
|
|
|
273
|
+
|
|
247
|
274
|
|
|
248
|
275
|
}
|
|
249
|
276
|
});
|