| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <div class="layui-fluid">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md12">
- <div class="layui-card">
- <div class="layui-card-header">供人信息</div>
- <div class="layui-card-body" pad15>
- <div class="layui-form layui-form-pane" lay-filter="LAY-supply-supplyform-edit">
- <input type="hidden" name="id" value="{$supply.id}">
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>劳务公司</label>
- <div class="layui-input-block">
- <select name="workerid" lay-search lay-verify="required">
- <option value="">请选择劳务公司(可搜索)...</option>
- {volist name="workerlist" id="vo"}
- <option value="{$vo.id}" {$supply.workerid==$vo.id ? 'selected' : '' }>{$vo.title}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>男性人数</label>
- <div class="layui-input-block">
- <input type="number" name="mnumber" value="{$supply.mnumber}" lay-verify="required" placeholder="请输入数字..."
- autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>女性人数</label>
- <div class="layui-input-block">
- <input type="number" name="wnumber" value="{$supply.wnumber}" lay-verify="required" placeholder="请输入数字..."
- autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>年龄范围</label>
- <div class="layui-input-block">
- <input type="text" name="agegroup" value="{$supply.agegroup}" lay-verify="required" placeholder="请输入..."
- autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item" id="LAY-supply-supplyform-edit-areapicker">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>人员所在地</label>
- <div class="layui-input-inline">
- <select name="province" class="province-selector" data-value="{$supply.province}" lay-filter="province-2"
- lay-verify="required">
- <option value="">请选择省</option>
- </select>
- </div>
- <div class="layui-input-inline">
- <select name="city" class="city-selector" data-value="{$supply.city}" lay-filter="city-2" lay-verify="required">
- <option value="">请选择市</option>
- </select>
- </div>
- <div class="layui-input-inline">
- <select name="district" class="district-selector" data-value="{$supply.district}" lay-filter="district-2"
- lay-verify="required">
- <option value="">请选择区</option>
- </select>
- </div>
- </div>
-
- <div class="layui-form-item" pane>
- <label class="layui-form-label">期望工作地</label>
- <div class="layui-input-block">
- {volist name="provincelist" id="vo"}
- <input type="checkbox" name="descity[]" value="{$vo.value}" title="{$vo.title}" {in name="vo.title" value="$supply.descity"}checked{/in} />
- {/volist}
- </div>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>可到岗日期</label>
- <div class="layui-input-block">
- <input type="text" name="candate" id="candate" value="{$supply.candate}" lay-verify="required" placeholder="请选择..."
- autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>咨询电话</label>
- <div class="layui-input-block">
- <input type="text" name="telephone" value="{$supply.telephone}" lay-verify="required" placeholder="请输入..." autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">情况说明</label>
- <div class="layui-input-block">
- <textarea name="remark" placeholder="请输入..." rows="6" class="layui-textarea">{$supply.remark}</textarea>
- </div>
- </div>
- <div class="layui-form-item" pane>
- <label class="layui-form-label">状态</label>
- <div class="layui-input-block">
- <input type="radio" name="status" value="1" title="待修改" {eq name="supply.status|default=1" value="1"}checked{/eq}>
- <input type="radio" name="status" value="2" title="待审核" {eq name="supply.status" value="2"}checked{/eq}>
- <input type="radio" name="status" value="3" title="已上架" {eq name="supply.status" value="3"}checked{/eq}>
- <input type="radio" name="status" value="4" title="已停供" {eq name="supply.status" value="4"}checked{/eq}>
- <input type="radio" name="status" value="5" title="已下架" {eq name="supply.status" value="5"}checked{/eq}>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">推荐</label>
- <div class="layui-input-block">
- <select name="priority">
- <option value="0" {$supply.priority===0 ? 'selected' : '' }>不推荐</option>
- <option value="1" {$supply.priority===1 ? 'selected' : '' }>推荐一</option>
- <option value="2" {$supply.priority===2 ? 'selected' : '' }>推荐二</option>
- <option value="3" {$supply.priority===3 ? 'selected' : '' }>推荐三</option>
- <option value="4" {$supply.priority===4 ? 'selected' : '' }>推荐四</option>
- <option value="5" {$supply.priority===5 ? 'selected' : '' }>推荐五</option>
- <option value="6" {$supply.priority===6 ? 'selected' : '' }>推荐六</option>
- <option value="7" {$supply.priority===7 ? 'selected' : '' }>推荐七</option>
- <option value="8" {$supply.priority===8 ? 'selected' : '' }>推荐八</option>
- <option value="9" {$supply.priority===9 ? 'selected' : '' }>推荐九</option>
- </select>
- <div class="layui-form-mid layui-word-aux">推荐值值越大越靠前</div>
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>更新时间</label>
- <div class="layui-input-block">
- <input type="text" name="updatetime" id="updatetime" value="{$supply.updatetime|default=time()|date='Y-m-d H:i:s'}" lay-verify="required"
- placeholder="请选择..." autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:#f90c05;">*</span>创建时间</label>
- <div class="layui-input-block">
- <input type="text" name="createtime" id="createtime" value="{$supply.createtime|default=time()|date='Y-m-d H:i:s'}" lay-verify="required"
- placeholder="请选择..." autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">浏览量</label>
- <div class="layui-input-block">
- <input type="text" name="volume" value="{$supply.volume|default=0}" lay-verify="number" placeholder="请输入..."
- autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block">
- <input type="button" lay-submit lay-filter="LAY-supply-supplyform-edit-submit" value="确认提交" class="layui-btn">
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- layui.config({
- base: '/static/echoui/' //静态资源所在路径
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'form', 'set', 'layedit', 'laydate', 'upload', 'inputTags', 'layarea'], function() {
- var $ = layui.$,
- setter = layui.setter,
- admin = layui.admin,
- layedit = layui.layedit,
- laydate = layui.laydate,
- form = layui.form,
- inputTags = layui.inputTags,
- upload = layui.upload,
- layarea = layui.layarea;
- form.render();
- inputTags.render({
- elem: '#inputTags',
- content: {:json_encode($supply.tags)} == null ? [] : {:json_encode($supply.tags)},
- aldaBtn: true,
- count: 6,
- done: function(value) {}
- });
-
- layarea.render({
- elem: '#LAY-supply-supplyform-edit-areapicker',
- data: {
- province: '福建省',
- city: '福州市',
- district: '马尾区',
- }
- });
- laydate.render({
- elem: '#candate',
- type: 'date',
- format: 'yyyy-MM-dd'
- });
- laydate.render({
- elem: '#updatetime',
- type: 'datetime'
- });
- laydate.render({
- elem: '#createtime',
- type: 'datetime'
- });
- form.on('submit(LAY-supply-supplyform-edit-submit)', function(obj) {
- var index = parent.layer.getFrameIndex(window.name);
- admin.req({
- url: setter.baseAdminUrl + 'supply/editsupply',
- data: obj.field,
- type: 'post',
- done: function(res) {
- layer.msg("提交成功", {
- icon: 1
- });
- parent.layui.table.reload('LAY-supply-supplylist-table'); //重载表格
- parent.layer.close(index);
- }
- });
- });
- });
- </script>
|