miaofuhao vor 3 Jahren
Ursprung
Commit
54fdfbe007
1 geänderte Dateien mit 21 neuen und 9 gelöschten Zeilen
  1. 21 9
      WebUI/CallCenterWeb.UI/CommonHtml/banli.html

+ 21 - 9
WebUI/CallCenterWeb.UI/CommonHtml/banli.html

59
                 </td>
59
                 </td>
60
             </tr>
60
             </tr>
61
             <tr>
61
             <tr>
62
-                <th class="Importent">理结果:</th>
62
+                <th class="Importent">理结果:</th>
63
                 <td colspan="5">
63
                 <td colspan="5">
64
-                    <textarea data-adaptheight id="situation" name="" rows="6" cols=""></textarea>
64
+                    <textarea data-adaptheight id="situation" onkeyup="OnFocusFun(this)" name="" rows="6" cols=""></textarea>
65
+                    <textarea data-adaptheight id="result"  hidden="hidden" name="" rows="6" cols=""></textarea>                  
65
                 </td>
66
                 </td>
66
             </tr>
67
             </tr>
67
             <tr>
68
             <tr>
138
                     </span>
139
                     </span>
139
                 </td>
140
                 </td>
140
             </tr>
141
             </tr>
141
-            <tr>
142
+            <tr style="display: none;">
142
                 <td>
143
                 <td>
143
                     <button class="btns handleBtn">查看办理结果</button>
144
                     <button class="btns handleBtn">查看办理结果</button>
144
                 </td>
145
                 </td>
224
                         layer.msg("联系方式不能为空");
225
                         layer.msg("联系方式不能为空");
225
                     } else if ($("#duties").val() == "") {
226
                     } else if ($("#duties").val() == "") {
226
                         layer.msg("职务不能为空");
227
                         layer.msg("职务不能为空");
227
-                    } else if ($("#result").val() == "") {
228
-                        layer.msg("请生成办理结果");
229
-                    } else {
228
+                    } 
229
+//                  else if ($("#result").val() == "") {
230
+//                      layer.msg("请生成办理结果");
231
+//                  }
232
+                    else {
230
                         State = 1;
233
                         State = 1;
234
+                        //$("#situation").val(stripscript($("#situation").val()));
235
+                        $("#result").val($("#situation").val().replace(simpleDetailStrStart, ''))
231
                         JA();
236
                         JA();
232
                     }
237
                     }
233
                 } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "2") {
238
                 } else if ($('#isProResultRadio input[name="isDisposeResult"]:checked').val() == "2") {
334
                 $("#result").val(simpleDetailStr);
339
                 $("#result").val(simpleDetailStr);
335
             });
340
             });
336
         });
341
         });
342
+        //得到焦点时触发事件 
343
+        function OnFocusFun(element) {
344
+            (element.value.indexOf(simpleDetailStrStart) === 0) || (element.value = simpleDetailStrStart);
345
+        }
337
         //交办
346
         //交办
338
         function JA() {
347
         function JA() {
339
             $.post(
348
             $.post(
345
                     AuditUser: $("#auditUser").val(), //审核领导
354
                     AuditUser: $("#auditUser").val(), //审核领导
346
                     post: $("#auditUserDuties").val(), //审核领导职务
355
                     post: $("#auditUserDuties").val(), //审核领导职务
347
                     auditContact: $("#auditContact").val(), //审核领导联系方式
356
                     auditContact: $("#auditContact").val(), //审核领导联系方式
348
-                    situation: $("#situation").val(), //处理情况
349
-                    result: $("#result").val(), //办理结果
357
+                    situation: $("#situation").val().replace(simpleDetailStrStart, ''), //处理情况
358
+//                  result: $("#result").val(), //办理结果
359
+                    result: $("#situation").val(), //办理结果
350
                     isproresult: $(
360
                     isproresult: $(
351
                         '#isProResultRadio input[name="isDisposeResult"]:checked'
361
                         '#isProResultRadio input[name="isDisposeResult"]:checked'
352
                     ).val(), //处理结果
362
                     ).val(), //处理结果
598
                         // ")反映" +
608
                         // ")反映" +
599
                         // data.F_ComTitle +
609
                         // data.F_ComTitle +
600
                         // "问题,";
610
                         // "问题,";
611
+                        $("#situation").val(simpleDetailStrStart);
601
                     }
612
                     }
602
                 }
613
                 }
603
             );
614
             );
672
                     token: $.cookie("token"),
683
                     token: $.cookie("token"),
673
                 },
684
                 },
674
                 success: function (res) {
685
                 success: function (res) {
675
-                    var res = $.parseJSON(res)
686
+                	debugger
687
+                    //var res = $.parseJSON(res)
676
                     if (res.state == "success") {
688
                     if (res.state == "success") {
677
 
689
 
678
                     } else {
690
                     } else {