| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-header">用户跟进记录</div>
- <div class="layui-card-body">
- <div class="layui-form layui-form-pane" lay-filter="LAY-user-follow-edit">
- <input type="hidden" name="userid" value="{$user.id}">
- <div class="layui-form-item">
- <label class="layui-form-label">用户信息</label>
- <div class="layui-input-block">
- <input type="text" name="userinfo" value="{$user.nickname} - {$user.mobile}" readonly class="layui-input layui-disabled">
- </div>
- </div>
- <div class="layui-form-item" pane>
- <label class="layui-form-label">跟进方式</label>
- <div class="layui-input-block">
- <input type="radio" name="ftype" value="电话" title="电话" checked>
- <input type="radio" name="ftype" value="微信/QQ" title="微信/QQ">
- <input type="radio" name="ftype" value="其他" title="其他">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>跟进备注</label>
- <div class="layui-input-block">
- <textarea name="remark" lay-verify="required" placeholder="请输入..." class="layui-textarea"></textarea>
- </div>
- </div>
- <div class="layui-form-item" pane>
- <label class="layui-form-label">跟进状态</label>
- <div class="layui-input-block">
- <input type="radio" name="followstatus" value="1" title="未跟进" {eq name="user.followstatus|default=1" value="1" }checked{/eq} />
- <input type="radio" name="followstatus" value="2" title="未面试" {eq name="user.followstatus" value="2" }checked{/eq} />
- <input type="radio" name="followstatus" value="3" title="面试通过" {eq name="user.followstatus" value="3" }checked{/eq} />
- <input type="radio" name="followstatus" value="4" title="面试未通过" {eq name="user.followstatus" value="4" }checked{/eq} />
- <input type="radio" name="followstatus" value="5" title="用户放弃" {eq name="user.followstatus" value="5" }checked{/eq} />
- <input type="radio" name="followstatus" value="6" title="已入职" {eq name="user.followstatus" value="6" }checked{/eq} />
- <input type="radio" name="followstatus" value="7" title="已离职" {eq name="user.followstatus" value="7" }checked{/eq} />
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block">
- <input type="button" lay-submit lay-filter="LAY-user-follow-edit-submit" value="确认" class="layui-btn">
- </div>
- </div>
- </div>
- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
- <legend>以往跟进记录</legend>
- </fieldset>
- <ul class="layui-timeline">
- {volist name="followlist" id="vo"}
- <li class="layui-timeline-item">
- <i class="layui-icon layui-timeline-axis"></i>
- <div class="layui-timeline-content layui-text">
- <h3 class="layui-timeline-title">
- {$vo.createtime} 【{$vo.ftype}】
- </h3>
- <p>{$vo.remark}</p>
- </div>
- </li>
- {/volist}
- <li class="layui-timeline-item">
- <i class="layui-icon layui-timeline-axis"></i>
- <div class="layui-timeline-content layui-text">
- <div class="layui-timeline-title">已加载完 ( 最多显示最近100条跟进记录 )</div>
- </div>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <script>
- layui.config({
- base: '/static/echoui/' //静态资源所在路径
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'form', 'set', 'table'], function() {
- var $ = layui.$,
- setter = layui.setter,
- admin = layui.admin,
- form = layui.form,
- table = layui.table;
- form.render();
- form.on('submit(LAY-user-follow-edit-submit)', function(obj) {
- var index = parent.layer.getFrameIndex(window.name);
- admin.req({
- url: setter.baseWorkerUrl + 'user/editfollow',
- data: obj.field,
- done: function(res) {
- layer.msg("提交成功", {
- icon: 1
- });
- var findex = parent.layer.open({
- type: 2,
- title: '用户【{$user.nickname} - {$user.mobile}】跟进记录',
- content: 'follow.html?userid={$user.id}',
- maxmin: true,
- area: ['750px', '550px']
- });
- parent.layui.table.reload('LAY-user-userlist-table');
- parent.layer.close(index);
- parent.layer.full(findex);
- }
- });
- });
- });
- </script>
|