fbrokerform.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <div class="layui-fluid">
  2. <div class="layui-row layui-col-space15">
  3. <div class="layui-col-md12">
  4. <div class="layui-card">
  5. <div class="layui-card-header">经纪人申请信息</div>
  6. <div class="layui-card-body" pad15>
  7. <div class="layui-form layui-form-pane" lay-filter="LAY-broker-fbrokerform-edit">
  8. <input type="hidden" name="id" value="{$fbroker.id}">
  9. <div class="layui-form-item">
  10. <label class="layui-form-label"><span style="color:#f90c05;">*</span>姓名</label>
  11. <div class="layui-input-block">
  12. <input type="text" name="realname" value="{$fbroker.realname}" lay-verify="required" placeholder="请输入"
  13. autocomplete="off" class="layui-input">
  14. </div>
  15. </div>
  16. <div class="layui-form-item">
  17. <label class="layui-form-label">手机号</label>
  18. <div class="layui-input-block">
  19. <input type="text" name="mobile" value="{$fbroker.mobile}" lay-verify="phone" placeholder="请输入" autocomplete="off"
  20. class="layui-input">
  21. </div>
  22. </div>
  23. <div class="layui-form-item">
  24. <label class="layui-form-label">当前住址</label>
  25. <div class="layui-input-block">
  26. <input type="text" name="address" value="{$fbroker.address}" placeholder="请输入" autocomplete="off" class="layui-input">
  27. </div>
  28. </div>
  29. <div class="layui-form-item">
  30. <label class="layui-form-label">身份证号</label>
  31. <div class="layui-input-block">
  32. <input type="text" name="idcard" value="{$fbroker.idcard}" placeholder="请输入" autocomplete="off" class="layui-input">
  33. </div>
  34. </div>
  35. <div class="layui-form-item">
  36. <label class="layui-form-label">推荐人</label>
  37. <div class="layui-input-block">
  38. <input type="text" name="recommender" value="{$fbroker.recommender}" placeholder="请输入" autocomplete="off" class="layui-input">
  39. </div>
  40. </div>
  41. <div class="layui-form-item">
  42. <label class="layui-form-label">备注信息</label>
  43. <div class="layui-input-block">
  44. <input type="text" name="remark" value="{$fbroker.remark}" placeholder="请输入" autocomplete="off" class="layui-input">
  45. </div>
  46. </div>
  47. <div class="layui-form-item" pane>
  48. <label class="layui-form-label">状态</label>
  49. <div class="layui-input-block">
  50. <input type="radio" name="status" value="1" title="待处理" {eq name="fbroker.status|default=1" value="1" }checked{/eq}>
  51. <input type="radio" name="status" value="2" title="处理中" {eq name="fbroker.status" value="2" }checked{/eq}>
  52. <input type="radio" name="status" value="3" title="已处理" {eq name="fbroker.status" value="3" }checked{/eq}> </div>
  53. </div> <div class="layui-form-item">
  54. <label class="layui-form-label"><span style="color:#f90c05;">*</span>申请时间</label>
  55. <div class="layui-input-block">
  56. <input type="text" name="createtime" id="createtime" value="{$fbroker.createtime}" lay-verify="required"
  57. placeholder="请选择" autocomplete="off" class="layui-input">
  58. </div>
  59. </div>
  60. <div class="layui-form-item">
  61. <div class="layui-input-block">
  62. <input type="button" lay-submit lay-filter="LAY-broker-fbrokerform-edit-submit" value="确认提交" class="layui-btn">
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <script>
  73. layui.config({
  74. base: '/static/echoui/' //静态资源所在路径
  75. }).extend({
  76. index: 'lib/index' //主入口模块
  77. }).use(['index', 'form', 'laydate', 'set', 'upload'], function() {
  78. var $ = layui.$,
  79. setter = layui.setter,
  80. admin = layui.admin,
  81. form = layui.form,
  82. laydate = layui.laydate,
  83. upload = layui.upload;
  84. form.render();
  85. laydate.render({
  86. elem: '#createtime',
  87. type: 'datetime'
  88. });
  89. form.on('submit(LAY-broker-fbrokerform-edit-submit)', function(obj) {
  90. var index = parent.layer.getFrameIndex(window.name);
  91. admin.req({
  92. url: setter.baseAdminUrl + 'broker/editfbroker',
  93. data: obj.field,
  94. done: function(res) {
  95. layer.msg("提交成功", {
  96. icon: 1
  97. });
  98. parent.layui.table.reload('LAY-broker-fbrokerlist-table'); //重载表格
  99. parent.layer.close(index);
  100. }
  101. });
  102. });
  103. });
  104. </script>