| | |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="work_plan_id1" value="" /> |
| | | <input type="hidden" name="mon_work_plan_id" value="" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="work_plan_id2" value="" /> |
| | | <input type="hidden" name="tue_work_plan_id" value="" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="work_plan_id3" value="" /> |
| | | <input type="hidden" name="wed_work_plan_id" value="" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="work_plan_id4" value="" /> |
| | | <input type="hidden" name="thur_work_plan_id" value="" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="work_plan_id5" value="" /> |
| | | <input type="hidden" name="fri_work_plan_id" value="" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="work_plan_id6" value="" /> |
| | | <input type="hidden" name="sat_work_plan_id" value="" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="work_plan_id7" value="" /> |
| | | <input type="hidden" name="sun_work_plan_id" value="" /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | |
| | | {else/} |
| | | <table class="layui-table layui-table-form"> |
| | | <tr> |
| | | <td class="layui-td-gray">考勤组名称<font>*</font></td> |
| | | <td class="layui-td-gray-3">考勤组名称<font>*</font></td> |
| | | <td> |
| | | <input |
| | | type="text" |
| | |
| | | class="layui-input" |
| | | /> |
| | | </td> |
| | | <td class="layui-td-gray-3">考勤类型<font>*</font></td> |
| | | <td> |
| | | <select name="type" lay-verify="required" lay-reqText="请选择"> |
| | | <option value="" >请选择</option> |
| | | <option value="1" {eq name="1" value="$detail.type"} selected{/eq}>固定班制</option> |
| | | <option value="2" {eq name="2" value="$detail.type"} selected{/eq}>自由工时</option> |
| | | </select> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="layui-td-gray-3">参与考勤人员<font>*</font></td> |
| | | <td> |
| | | <input |
| | | type="text" |
| | | name="attendance_participants" |
| | | autocomplete="off" |
| | | readonly |
| | | lay-verify="required" |
| | | lay-reqText="请选择参与考勤人员" |
| | | placeholder="请选择参与考勤人员" |
| | | class="layui-input picker-diy" |
| | | value="{$detail.attendance_participants}" |
| | | /> |
| | | <input type="hidden" name="attendance_participants_id" value="{$detail.attendance_participants_id}" /> |
| | | </td> |
| | | <td class="layui-td-gray-3">无需考勤人员</td> |
| | | <td> |
| | | <input |
| | | type="text" |
| | | name="attendance_not_participants" |
| | | autocomplete="off" |
| | | readonly |
| | | lay-reqText="请选择无需考勤人员" |
| | | placeholder="请选择无需考勤人员" |
| | | class="layui-input picker-diy" |
| | | value="{$detail.attendance_not_participants}" |
| | | /> |
| | | <input type="hidden" name="attendance_not_participants_id" value="{$detail.attendance_not_participants_id}" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="layui-td-gray">工作日设置<font>*</font></td> |
| | | <td colspan="5"> |
| | | <table |
| | | id="timeBox" |
| | | class="layui-table layui-table-min" |
| | | style="margin: 0" |
| | | > |
| | | <tr> |
| | | <th width="50"></th> |
| | | <th width="100">工作日</th> |
| | | <th>班次时间段</th> |
| | | <th width="60">操作</th> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name="work1" lay-skin="primary" {notempty name="$detail.mon_work_plan_id"} checked {/notempty} /> |
| | | </td> |
| | | <td>周一</td> |
| | | <td style="text-align: left"> |
| | | {notempty name="$detail.mon_work_plan.id"} |
| | | <span>{$detail.mon_work_plan.name}:</span> |
| | | {notempty name="$detail.mon_work_plan.times"} |
| | | {volist name="$detail.mon_work_plan.times" id="vo"} |
| | | <span style='margin-right: 30px'>{$vo.begin_time} - {$vo.end_time}</span> |
| | | {/volist} |
| | | {/notempty} |
| | | {/notempty} |
| | | </td> |
| | | <td> |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="mon_work_plan_id" value="{$detail.mon_work_plan_id}" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name="work2" lay-skin="primary" {notempty name="$detail.tue_work_plan_id"} checked {/notempty} /> |
| | | </td> |
| | | <td>周二</td> |
| | | <td style="text-align: left"> |
| | | {notempty name="$detail.tue_work_plan.id"} |
| | | <span>{$detail.tue_work_plan.name}:</span> |
| | | {notempty name="$detail.tue_work_plan.times"} |
| | | {volist name="$detail.tue_work_plan.times" id="vo"} |
| | | <span style='margin-right: 30px'>{$vo.begin_time} - {$vo.end_time}</span> |
| | | {/volist} |
| | | {/notempty} |
| | | {/notempty} |
| | | </td> |
| | | <td> |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="tue_work_plan_id" value="{$detail.tue_work_plan_id}" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name="work3" lay-skin="primary" {notempty name="$detail.wed_work_plan_id"} checked {/notempty} /> |
| | | </td> |
| | | <td>周三</td> |
| | | <td style="text-align: left"> |
| | | {notempty name="$detail.wed_work_plan.id"} |
| | | <span>{$detail.wed_work_plan.name}:</span> |
| | | {notempty name="$detail.wed_work_plan.times"} |
| | | {volist name="$detail.wed_work_plan.times" id="vo"} |
| | | <span style='margin-right: 30px'>{$vo.begin_time} - {$vo.end_time}</span> |
| | | {/volist} |
| | | {/notempty} |
| | | {/notempty} |
| | | </td> |
| | | <td> |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="wed_work_plan_id" value="{$detail.wed_work_plan_id}" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name="work4" lay-skin="primary" {notempty name="$detail.thur_work_plan_id"} checked {/notempty} /> |
| | | </td> |
| | | <td>周四</td> |
| | | <td style="text-align: left"> |
| | | {notempty name="$detail.thur_work_plan.id"} |
| | | <span>{$detail.thur_work_plan.name}:</span> |
| | | {notempty name="$detail.thur_work_plan.times"} |
| | | {volist name="$detail.thur_work_plan.times" id="vo"} |
| | | <span style='margin-right: 30px'>{$vo.begin_time} - {$vo.end_time}</span> |
| | | {/volist} |
| | | {/notempty} |
| | | {/notempty} |
| | | </td> |
| | | <td> |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="thur_work_plan_id" value="{$detail.thur_work_plan_id}" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name="work5" lay-skin="primary" {notempty name="$detail.fri_work_plan_id"} checked {/notempty} /> |
| | | </td> |
| | | <td>周五</td> |
| | | <td style="text-align: left"> |
| | | {notempty name="$detail.fri_work_plan.id"} |
| | | <span>{$detail.fri_work_plan.name}:</span> |
| | | {notempty name="$detail.fri_work_plan.times"} |
| | | {volist name="$detail.fri_work_plan.times" id="vo"} |
| | | <span style='margin-right: 30px'>{$vo.begin_time} - {$vo.end_time}</span> |
| | | {/volist} |
| | | {/notempty} |
| | | {/notempty} |
| | | </td> |
| | | <td> |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="fri_work_plan_id" value="{$detail.fri_work_plan_id}" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name="work6" lay-skin="primary" {notempty name="$detail.sat_work_plan_id"} checked {/notempty} /> |
| | | </td> |
| | | <td>周六</td> |
| | | <td style="text-align: left"> |
| | | {notempty name="$detail.sat_work_plan.id"} |
| | | <span>{$detail.sat_work_plan.name}:</span> |
| | | {notempty name="$detail.sat_work_plan.times"} |
| | | {volist name="$detail.sat_work_plan.times" id="vo"} |
| | | <span style='margin-right: 30px'>{$vo.begin_time} - {$vo.end_time}</span> |
| | | {/volist} |
| | | {/notempty} |
| | | {/notempty} |
| | | </td> |
| | | <td> |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="sat_work_plan_id" value="{$detail.sat_work_plan_id}" /> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td> |
| | | <input type="checkbox" name="work7" lay-skin="primary" {notempty name="$detail.sun_work_plan_id"} checked {/notempty} /> |
| | | </td> |
| | | <td>周日</td> |
| | | <td style="text-align: left"> |
| | | {notempty name="$detail.sun_work_plan.id"} |
| | | <span>{$detail.sun_work_plan.name}:</span> |
| | | {notempty name="$detail.sun_work_plan.times"} |
| | | {volist name="$detail.sun_work_plan.times" id="vo"} |
| | | <span style='margin-right: 30px'>{$vo.begin_time} - {$vo.end_time}</span> |
| | | {/volist} |
| | | {/notempty} |
| | | {/notempty} |
| | | </td> |
| | | <td> |
| | | <a class="layui-btn layui-btn-xs picker-oa" data-types="workPlan" |
| | | >设置班次</a |
| | | > |
| | | <input type="hidden" name="sun_work_plan_id" value="{$detail.sun_work_plan_id}" /> |
| | | </td> |
| | | </tr> |
| | | |
| | | </table> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="layui-td-gray-3">特殊日期</td> |
| | | <td colspan="5"> |
| | | <div style="margin-bottom: 10px"> |
| | | <div id="showNecessaryTimeBox"> |
| | | <p>必须打卡日期:</p> |
| | | <div id="showNecessaryTimeList"> |
| | | {notempty name="$detail.necessaryTime"} |
| | | {volist name="$detail.necessaryTime" id="vo"} |
| | | <div class='timeItem'> |
| | | <span class='timeValue'> |
| | | {$vo.time} |
| | | </span> |
| | | <input type='hidden' name='necessaryTime[]' value="{$vo.time}" /> |
| | | <input type='hidden' name='necessaryTime_id[]' value="{$vo.id}" /> |
| | | <span class='closeBtn layui-icon'>ဆ</span> |
| | | </div> |
| | | {/volist} |
| | | {/notempty} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="margin-bottom: 10px"> |
| | | <button |
| | | class="layui-btn layui-btn-sm" |
| | | type="button" |
| | | id="addNecessaryTimeBtn" |
| | | > |
| | | + 新增必须打卡的日期 |
| | | </button> |
| | | </div> |
| | | <div style="margin-bottom: 10px"> |
| | | <div id="showUnNecessaryTimeBox"> |
| | | <p>无需打卡日期:</p> |
| | | <div id="showUnNecessaryTimeList"> |
| | | {notempty name="$detail.unNecessaryTime"} |
| | | {volist name="$detail.unNecessaryTime" id="vo"} |
| | | <div class='timeItem'> |
| | | <span class='timeValue'> |
| | | {$vo.time} |
| | | </span> |
| | | <input type='hidden' name='unNecessaryTime[]' value="{$vo.time}" /> |
| | | <input type='hidden' name='unNecessaryTime_id[]' value="{$vo.id}" /> |
| | | <span class='closeBtn layui-icon'>ဆ</span> |
| | | </div> |
| | | {/volist} |
| | | {/notempty} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div style="margin-bottom: 10px"> |
| | | <button |
| | | class="layui-btn layui-btn-sm" |
| | | type="button" |
| | | id="addUnNecessaryTimeBtn" |
| | | > |
| | | + 新增无需打卡的日期 |
| | | </button> |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | {/if} |
| | | <div class="pt-4"> |