|
|
@@ -52,6 +52,35 @@
|
|
52
|
52
|
#reasons{
|
|
53
|
53
|
height: 160px;
|
|
54
|
54
|
}
|
|
|
55
|
+ #msg1,
|
|
|
56
|
+ #msg2,
|
|
|
57
|
+ #msg3,
|
|
|
58
|
+ #phone{
|
|
|
59
|
+ border:none;
|
|
|
60
|
+ border-bottom: 1px solid #ccc;
|
|
|
61
|
+ margin-bottom: 20px;
|
|
|
62
|
+ background-color: #FFFFFF;
|
|
|
63
|
+ color: #00a1cb;
|
|
|
64
|
+ }
|
|
|
65
|
+ #msg4{
|
|
|
66
|
+ width: 250px;
|
|
|
67
|
+ height: 50px;
|
|
|
68
|
+ border: none;
|
|
|
69
|
+ border-bottom: 1px solid #ccc;
|
|
|
70
|
+ margin-bottom: 20px;
|
|
|
71
|
+ vertical-align: top;
|
|
|
72
|
+ }
|
|
|
73
|
+ #msg2{
|
|
|
74
|
+ vertical-align: top;
|
|
|
75
|
+ height: 25px;
|
|
|
76
|
+ }
|
|
|
77
|
+ #msg1:focus,
|
|
|
78
|
+ #msg2:focus,
|
|
|
79
|
+ #msg3:focus,
|
|
|
80
|
+ #msg4:focus,
|
|
|
81
|
+ #phone:focus{
|
|
|
82
|
+ outline: none;
|
|
|
83
|
+ }
|
|
55
|
84
|
</style>
|
|
56
|
85
|
</head>
|
|
57
|
86
|
|
|
|
@@ -118,8 +147,14 @@
|
|
118
|
147
|
</tr>
|
|
119
|
148
|
|
|
120
|
149
|
</table>
|
|
|
150
|
+ <div class="" style="margin: 20px 0 0 10px;">
|
|
|
151
|
+ 尊敬的市民,您于<input id="msg1" type="text" disabled/>反映的<textarea id="msg2" type="text" ></textarea>问题,工单号:<input id="msg3" type="text" disabled/>,<br />
|
|
|
152
|
+ 处理结果如下:<textarea id="msg4" type="text"></textarea>如有异议,请您再次致电12345,感谢您的支持。<br />
|
|
|
153
|
+ 通知号码:<input id="phone" type="text"/>
|
|
|
154
|
+ <button class="btns sendMsg">发送短信</button>
|
|
|
155
|
+ </div>
|
|
121
|
156
|
<div class="btn_box">
|
|
122
|
|
- <button class="btns">保存</button>
|
|
|
157
|
+ <button class="btns_save">保存</button>
|
|
123
|
158
|
</div>
|
|
124
|
159
|
</div>
|
|
125
|
160
|
<input type="hidden" name="depID" id="depID" value="" />
|
|
|
@@ -128,6 +163,8 @@
|
|
128
|
163
|
var wid = helper.request.queryString("wid");
|
|
129
|
164
|
var bulletinUnits = '';//通报单位
|
|
130
|
165
|
$(document).ready(function() {
|
|
|
166
|
+ //获取工单信息
|
|
|
167
|
+ loadTEL();
|
|
131
|
168
|
//通报原因
|
|
132
|
169
|
getOrderType();
|
|
133
|
170
|
//获取单位
|
|
|
@@ -153,7 +190,7 @@
|
|
153
|
190
|
$('.isStandard').show();
|
|
154
|
191
|
}
|
|
155
|
192
|
});
|
|
156
|
|
- $(".btns").click(function(){
|
|
|
193
|
+ $(".btns_save").click(function(){
|
|
157
|
194
|
if($('#isBulletin').val() == 0){
|
|
158
|
195
|
JA(bulletinUnits);
|
|
159
|
196
|
}else if($('#isBulletin').val() == 1){
|
|
|
@@ -208,6 +245,54 @@
|
|
208
|
245
|
}
|
|
209
|
246
|
})
|
|
210
|
247
|
}
|
|
|
248
|
+ //获取工单信息
|
|
|
249
|
+ function loadTEL() {
|
|
|
250
|
+ $.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetWorkOrder', {
|
|
|
251
|
+ workorderid: wid,
|
|
|
252
|
+ "token": $.cookie("token")
|
|
|
253
|
+ }, function (result) {
|
|
|
254
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
255
|
+ var Data = result.data.data;
|
|
|
256
|
+ $('#msg3').val(Data[0].F_WorkOrderId)
|
|
|
257
|
+ $('#msg1').val(Data[0].F_CreateTime)
|
|
|
258
|
+ $('#msg2').text(Data[0].F_ComTitle)
|
|
|
259
|
+ $('#msg4').val(result.data.bldata && result.data.bldata[result.data.bldata.length-1].F_Situation)
|
|
|
260
|
+ $("#phone").val(Data[0].F_CusPhone)
|
|
|
261
|
+ }
|
|
|
262
|
+ })
|
|
|
263
|
+ }
|
|
|
264
|
+ //发送短信
|
|
|
265
|
+ $('.sendMsg').click(function(){
|
|
|
266
|
+ if(!$('#msg4').val()){
|
|
|
267
|
+ layer.msg('请填写结果')
|
|
|
268
|
+ return
|
|
|
269
|
+ }
|
|
|
270
|
+ if(!$('#phone').val()){
|
|
|
271
|
+ layer.msg('请填写通知号码')
|
|
|
272
|
+ return
|
|
|
273
|
+ }
|
|
|
274
|
+ $.ajax({
|
|
|
275
|
+ type:"post",
|
|
|
276
|
+ url:huayi.config.callcenter_url+'WorkOrder/SmsHand',
|
|
|
277
|
+ async:true,
|
|
|
278
|
+ data:{
|
|
|
279
|
+ msg1:$('#msg1').val(),
|
|
|
280
|
+ msg2:$('#msg2').val(),
|
|
|
281
|
+ msg3:$('#msg3').val(),
|
|
|
282
|
+ msg4:$('#msg4').val(),
|
|
|
283
|
+ mobile:$('#phone').val(),
|
|
|
284
|
+ token: $.cookie("token")
|
|
|
285
|
+ },
|
|
|
286
|
+ success:function(res){
|
|
|
287
|
+ res=JSON.parse(res)
|
|
|
288
|
+ if(res.state.toLowerCase()=='success'){
|
|
|
289
|
+ layer.msg('短信发送成功')
|
|
|
290
|
+ }else{
|
|
|
291
|
+ layer.msg('短信发送失败')
|
|
|
292
|
+ }
|
|
|
293
|
+ }
|
|
|
294
|
+ });
|
|
|
295
|
+ })
|
|
211
|
296
|
//获取单位
|
|
212
|
297
|
function getUnit() {
|
|
213
|
298
|
$.getJSON(huayi.config.callcenter_url + 'WorkOrder/GetAllAssignDept', {
|