follow.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <div class="layui-fluid">
  2. <div class="layui-card">
  3. <div class="layui-card-header">用户跟进记录</div>
  4. <div class="layui-card-body">
  5. <div class="layui-form layui-form-pane" lay-filter="LAY-user-follow-edit">
  6. <input type="hidden" name="userid" value="{$user.id}">
  7. <div class="layui-form-item">
  8. <label class="layui-form-label">用户信息</label>
  9. <div class="layui-input-block">
  10. <input type="text" name="userinfo" value="{$user.nickname} - {$user.mobile}" readonly class="layui-input layui-disabled">
  11. </div>
  12. </div>
  13. <div class="layui-form-item" pane>
  14. <label class="layui-form-label">跟进方式</label>
  15. <div class="layui-input-block">
  16. <input type="radio" name="ftype" value="电话" title="电话" checked>
  17. <input type="radio" name="ftype" value="微信/QQ" title="微信/QQ">
  18. <input type="radio" name="ftype" value="其他" title="其他">
  19. </div>
  20. </div>
  21. <div class="layui-form-item">
  22. <label class="layui-form-label"><span style="color:#f90c05;">*</span>跟进备注</label>
  23. <div class="layui-input-block">
  24. <textarea name="remark" lay-verify="required" placeholder="请输入..." class="layui-textarea"></textarea>
  25. </div>
  26. </div>
  27. <div class="layui-form-item" pane>
  28. <label class="layui-form-label">跟进状态</label>
  29. <div class="layui-input-block">
  30. <input type="radio" name="followstatus" value="1" title="未跟进" {eq name="user.followstatus|default=1" value="1" }checked{/eq} />
  31. <input type="radio" name="followstatus" value="2" title="未面试" {eq name="user.followstatus" value="2" }checked{/eq} />
  32. <input type="radio" name="followstatus" value="3" title="面试通过" {eq name="user.followstatus" value="3" }checked{/eq} />
  33. <input type="radio" name="followstatus" value="4" title="面试未通过" {eq name="user.followstatus" value="4" }checked{/eq} />
  34. <input type="radio" name="followstatus" value="5" title="用户放弃" {eq name="user.followstatus" value="5" }checked{/eq} />
  35. <input type="radio" name="followstatus" value="6" title="已入职" {eq name="user.followstatus" value="6" }checked{/eq} />
  36. <input type="radio" name="followstatus" value="7" title="已离职" {eq name="user.followstatus" value="7" }checked{/eq} />
  37. </div>
  38. </div>
  39. <div class="layui-form-item">
  40. <div class="layui-input-block">
  41. <input type="button" lay-submit lay-filter="LAY-user-follow-edit-submit" value="确认" class="layui-btn">
  42. </div>
  43. </div>
  44. </div>
  45. <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  46. <legend>以往跟进记录</legend>
  47. </fieldset>
  48. <ul class="layui-timeline">
  49. {volist name="followlist" id="vo"}
  50. <li class="layui-timeline-item">
  51. <i class="layui-icon layui-timeline-axis"></i>
  52. <div class="layui-timeline-content layui-text">
  53. <h3 class="layui-timeline-title">
  54. {$vo.createtime} 【{$vo.ftype}】
  55. </h3>
  56. <p>{$vo.remark}</p>
  57. </div>
  58. </li>
  59. {/volist}
  60. <li class="layui-timeline-item">
  61. <i class="layui-icon layui-timeline-axis"></i>
  62. <div class="layui-timeline-content layui-text">
  63. <div class="layui-timeline-title">已加载完 ( 最多显示最近100条跟进记录 )</div>
  64. </div>
  65. </li>
  66. </ul>
  67. </div>
  68. </div>
  69. </div>
  70. <script>
  71. layui.config({
  72. base: '/static/echoui/' //静态资源所在路径
  73. }).extend({
  74. index: 'lib/index' //主入口模块
  75. }).use(['index', 'form', 'set', 'table'], function() {
  76. var $ = layui.$,
  77. setter = layui.setter,
  78. admin = layui.admin,
  79. form = layui.form,
  80. table = layui.table;
  81. form.render();
  82. form.on('submit(LAY-user-follow-edit-submit)', function(obj) {
  83. var index = parent.layer.getFrameIndex(window.name);
  84. admin.req({
  85. url: setter.baseWorkerUrl + 'user/editfollow',
  86. data: obj.field,
  87. done: function(res) {
  88. layer.msg("提交成功", {
  89. icon: 1
  90. });
  91. var findex = parent.layer.open({
  92. type: 2,
  93. title: '用户【{$user.nickname} - {$user.mobile}】跟进记录',
  94. content: 'follow.html?userid={$user.id}',
  95. maxmin: true,
  96. area: ['750px', '550px']
  97. });
  98. parent.layui.table.reload('LAY-user-userlist-table');
  99. parent.layer.close(index);
  100. parent.layer.full(findex);
  101. }
  102. });
  103. });
  104. });
  105. </script>