reply.blade.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @extends('admin/layout')
  2. @section('content')
  3. <body class="gray-bg">
  4. <div class="wrapper wrapper-content animated fadeInRight">
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <div class="ibox float-e-margins">
  8. <div class="ibox-content">
  9. @php
  10. $evaluate=$siteProcess->evaluate??[];
  11. @endphp
  12. <form class="form-horizontal">
  13. <div class="form-group">
  14. <label class="col-sm-6 control-label" style="font-weight: normal">总分10分:非常满意10分,满意8-9分,不满意7分及以下</label>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">评分:</label>
  18. <label class="col-sm-4 control-label"
  19. style="text-align: left">{{$evaluate['score']??''}}</label>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-sm-2 control-label">客户反馈:</label>
  23. <label class="col-sm-8 control-label"
  24. style="text-align: left">{{$evaluate['feedback']??''}}</label>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label" for="reply"><span
  28. class="red">* </span>回访记录:</label>
  29. <div class="col-sm-8">
  30. <textarea name="feedback_reply" id="reply" rows="6"
  31. class="form-control">{{$siteProcess->reply}}</textarea>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <div class="col-sm-offset-2 col-sm-8">
  36. <button class="btn btn-sm btn-primary" type="button" onclick="units.save()">提交
  37. </button>
  38. <button class="btn btn-sm btn-white closeLayer" type="button">取消</button>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </body>
  48. @endsection
  49. @section('footer')
  50. <script>
  51. var units = {
  52. save: function () {
  53. var data = {reply: $("#reply").val()};
  54. var config = {
  55. url: '/admin/process/reply/' + "{{$siteProcess->id}}",
  56. type: 'put',
  57. data: data
  58. };
  59. config.success = function (result) {
  60. layer.msg(result.message, {icon: 1, time: 1000}, function () {
  61. parent.window.location.reload();
  62. tips.closeParentLayer();
  63. });
  64. };
  65. tips.ajax(config);
  66. }
  67. };
  68. </script>
  69. @endsection