|
|
@@ -7,201 +7,155 @@
|
|
|
@component('personnel.menu')@endcomponent
|
|
|
</div>
|
|
|
<div class="d-none container-fluid" id="list">
|
|
|
- <form method="GET" action="{{url('personnel/laborReport/')}}" id="optionSubmit">
|
|
|
- <table class="table table-sm table-bordered m-0 text-nowrap">
|
|
|
- <tr v-if="isBeingFilterConditions">
|
|
|
- <td colspan="10"><div class="col" style="padding:0">
|
|
|
- <a href="{{url('personnel/laborReport')}}"><span class="btn btn-warning text-dark">清除过滤条件</span></a>
|
|
|
- </div></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="9">
|
|
|
- <select name="paginate" v-model="filterData.paginate" class="tooltipTarget form-control-sm" style="vertical-align: middle" @change="setPaginate">
|
|
|
- <option value="50">每页显示50条</option>
|
|
|
- <option value="100">每页显示100条</option>
|
|
|
- <option value="200">每页显示200条</option>
|
|
|
- <option value="500">每页显示500条</option>
|
|
|
- <option value="1000">每页显示1000条</option>
|
|
|
- </select></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td >
|
|
|
- <input style="max-width: 200px" name="created_at_start" type="date" v-model="filterData.created_at_start" :class="filterData.created_at_start?'bg-warning':''" class="form-control form-control-sm tooltipTarget" title="选择显示指定日期的起始时间">
|
|
|
- <input style="max-width: 200px" type="date" name="created_at_end" v-model="filterData.created_at_end" :class="filterData.created_at_end?'bg-warning':''" class="form-control form-control-sm tooltipTarget" title="选择显示指定日期的结束时间">
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div class="form-inline">
|
|
|
- <input type="text" class="form-control form-control-sm tooltipTarget" placeholder="小组"
|
|
|
- style="width:70px" @input="owner_seek"
|
|
|
- title="输入关键词快速定位下拉列表,回车确定">
|
|
|
- <select name="user_workgroup_id" id="user_workgroup_id" :class="filterData.user_workgroup_id?'bg-warning':''" v-model="filterData.user_workgroup_id" @change="setUserWorkGroup"
|
|
|
- class="form-control form-control-sm tooltipTarget" title="选择要显示的工作组">
|
|
|
- @foreach($userWorkGroups as $userWorkGroup)
|
|
|
- <option value="{{$userWorkGroup->id}}">{{$userWorkGroup->name}}</option>
|
|
|
- @endforeach
|
|
|
- </select>
|
|
|
- <input hidden type="submit" >
|
|
|
- </div>
|
|
|
- <input type="text" name="mobile_phone" class="form-control form-control-sm tooltipTarget" v-model="filterData.mobile_phone" :class="filterData.mobile_phone?'bg-warning':''" style="max-width: 200px" placeholder="电话号">
|
|
|
- </td>
|
|
|
- <td >
|
|
|
- <input :class="filterData.enter_number?'bg-warning':''" type="text" title="支持15内模糊搜索与15天外精确搜索" name="enter_number" class="form-control form-control-sm tooltipTarget" style="max-width: 200px" v-model="filterData.enter_number" placeholder="进厂编号">
|
|
|
- <input :class="filterData.identity_number?'bg-warning':''" type="text" title="支持15内模糊搜索与15天外精确搜索" name="identity_number" class="form-control form-control-sm tooltipTarget" style="max-width: 200px" v-model="filterData.identity_number" placeholder="身份证号"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td colspan="9">
|
|
|
- <span class="dropdown">
|
|
|
- <button class="btn btn-outline-dark btn-sm form-control-sm dropdown-toggle tooltipTarget" :class="[checkData>0?'btn-dark text-light':'']"
|
|
|
- data-toggle="dropdown" title="导出所有页将会以搜索条件得到的过滤结果,将其全部记录(每一页)导出">
|
|
|
- 导出Excel
|
|
|
- </button>
|
|
|
- <div class="dropdown-menu">
|
|
|
- <a class="dropdown-item" @click="laborReportExport(1)" href="javascript:">导出勾选内容</a>
|
|
|
- <a class="dropdown-item" @click="laborReportExport(2)" href="javascript:">导出所有页</a>
|
|
|
- </div>
|
|
|
- </span>
|
|
|
- <input hidden type="submit" >
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- </form>
|
|
|
-
|
|
|
- <table class="table table-sm table-hover table-striped d-none d-sm-block p-0 text-nowrap table-bordered" >
|
|
|
- <tr>
|
|
|
- <th class="text-center">
|
|
|
- <label for="all">
|
|
|
- <input id="all" type="checkbox" @click="checkAll($event)">全选
|
|
|
- </label>
|
|
|
- </th>
|
|
|
- <th class="text-center">序号</th>
|
|
|
- {{-- <th>ID</th>--}}
|
|
|
- <th class="text-center">操作</th>
|
|
|
- <th class="text-center">进场时间</th>
|
|
|
- <th class="text-center">退场时间</th>
|
|
|
- <th class="text-center" style="background-color: rgb(241, 234, 190)">进厂编号</th>
|
|
|
- <th class="text-center" style="background-color: rgb(241, 234, 190)">小组</th>
|
|
|
- <th class="text-center" style="background-color: rgb(241, 234, 190)">临时工</th>
|
|
|
- <th class="text-center" style="background-color: rgb(241, 234, 190)">电话</th>
|
|
|
- <th class="text-center" style="background-color: rgb(241, 234, 190)">身份证号</th>
|
|
|
- <th class="text-center" style="background-color: rgb(241, 234, 190)">劳务所</th>
|
|
|
- <th class="text-center">进组时间</th>
|
|
|
- <th class="text-center">退组时间</th>
|
|
|
- <th class="text-center">审核时间</th>
|
|
|
- <th class="text-center">审核人</th>
|
|
|
- <th class="text-center">晚饭打卡(分)</th>
|
|
|
- <th class="text-center">在线时长</th>
|
|
|
- <th class="text-center">本次工作时长</th>
|
|
|
- <th class="text-center">备注</th>
|
|
|
- </tr>
|
|
|
- <tr v-for="(laborReport,i) in laborReports" @click="selectedColor(laborReport.id)" :style="{'font-weight': laborReport.id==selectedStyle?'bold':''}">
|
|
|
- <td>
|
|
|
- <input class="checkItem" type="checkbox" :value="laborReport.id" v-model="checkData">
|
|
|
- </td>
|
|
|
- <td>@{{ i+1 }}</td>
|
|
|
- <td >
|
|
|
- @can('人事管理-门卫审核')
|
|
|
- <span >
|
|
|
- <span v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</span>
|
|
|
- <span v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{laborReport.sequence}}/@{{laborReport.amountOfJoined}}</span>
|
|
|
- <button v-else class="btn btn-sm btn-outline-secondary" @click="guardClockAudit(laborReport.id,laborReport.userDutyCheckId)">门卫审核</button>
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <span v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</span>
|
|
|
- <span v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{ laborReport.sequence }}/@{{ laborReport.amountOfJoined }}</span>
|
|
|
- <span v-else class="text-center"><b class="text-danger">门卫未审核</b></span>
|
|
|
- @endcan
|
|
|
-
|
|
|
- @can('人事管理-组长审核')
|
|
|
- <span>
|
|
|
- <button v-if="laborReport.groupUserId&&!laborReport.is_exportGroup" @click="groupExport(laborReport.id,laborReport.name)" class="btn btn-sm btn-outline-danger">退组</button>
|
|
|
- <span v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</span>
|
|
|
- <span v-else-if="laborReport.is_export" class="text-black">已退场</span>
|
|
|
- <button v-else-if="laborReport.userWorkGroupId" @click="groupClockAudit(laborReport.id,laborReport.userWorkgroupNeedRemark)" class="btn btn-sm btn-outline-primary">组长审核</button>
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <span v-if="laborReport.groupUserId&&!laborReport.is_exportGroup"><b class="text-success">在组</b></span>
|
|
|
- <span v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</span>
|
|
|
- <span v-else-if="laborReport.is_export" class="text-black">已退场</span>
|
|
|
- <span v-else-if="laborReport.userWorkGroupId" class="text-center"><b class="text-danger">组长未审核</b></span>
|
|
|
- @endcan
|
|
|
- </td>
|
|
|
- <td class="text-muted">@{{laborReport.enter_at}}</td>
|
|
|
- <td >@{{ laborReport.exit_at }}</td>
|
|
|
- <td class="text-muted">@{{laborReport.enterNumber}}</td>
|
|
|
- <td>@{{laborReport.userWorkGroupName}}</td>
|
|
|
- <td >@{{laborReport.name}}</td>
|
|
|
- <td class="text-muted">@{{laborReport.mobilePhone}}</td>
|
|
|
- <td class="text-muted">@{{laborReport.identityNumber}}</td>
|
|
|
- <td class="text-muted">@{{laborReport.laborCompany}}</td>
|
|
|
- <td>@{{laborReport.checkInAt}}</td>
|
|
|
- <td class="text-muted">@{{laborReport.checkOutAt}}</td>
|
|
|
- <td class="text-muted">@{{laborReport.verifyAt}}</td>
|
|
|
- <td class="text-muted"><span v-if="laborReport.verifyPerson">@{{laborReport.verifyPerson}}</span></td>
|
|
|
- <td class="text-muted"><span v-if="laborReport.relax_time">@{{laborReport.relax_time}}</span></td>
|
|
|
+ <div id="form_div"></div>
|
|
|
+ <span class="dropdown">
|
|
|
+ <button class="btn btn-outline-dark btn-sm form-control-sm dropdown-toggle tooltipTarget mt-1 mb-1" :class="[checkData.length>0?'btn-dark text-light':'']"
|
|
|
+ data-toggle="dropdown" title="导出所有页将会以搜索条件得到的过滤结果,将其全部记录(每一页)导出">
|
|
|
+ 导出Excel
|
|
|
+ </button>
|
|
|
+ <div class="dropdown-menu">
|
|
|
+ <a class="dropdown-item" @click="laborReportExport(false)" href="javascript:">导出勾选内容</a>
|
|
|
+ <a class="dropdown-item" @click="laborReportExport(true)" href="javascript:">导出所有页</a>
|
|
|
+ </div>
|
|
|
+ </span>
|
|
|
+ <table class="table table-sm table-hover table-striped d-none d-sm-block p-0 text-nowrap table-bordered" >
|
|
|
+ <tr>
|
|
|
+ <th class="text-center">
|
|
|
+ <label for="all">
|
|
|
+ <input id="all" type="checkbox" @click="checkAll($event)">全选
|
|
|
+ </label>
|
|
|
+ </th>
|
|
|
+ <th class="text-center">序号</th>
|
|
|
+ {{-- <th>ID</th>--}}
|
|
|
+ <th class="text-center">操作</th>
|
|
|
+ <th class="text-center">进场时间</th>
|
|
|
+ <th class="text-center">退场时间</th>
|
|
|
+ <th class="text-center" style="background-color: rgb(241, 234, 190)">进厂编号</th>
|
|
|
+ <th class="text-center" style="background-color: rgb(241, 234, 190)">小组</th>
|
|
|
+ <th class="text-center" style="background-color: rgb(241, 234, 190)">临时工</th>
|
|
|
+ <th class="text-center" style="background-color: rgb(241, 234, 190)">电话</th>
|
|
|
+ <th class="text-center" style="background-color: rgb(241, 234, 190)">身份证号</th>
|
|
|
+ <th class="text-center" style="background-color: rgb(241, 234, 190)">劳务所</th>
|
|
|
+ <th class="text-center">进组时间</th>
|
|
|
+ <th class="text-center">退组时间</th>
|
|
|
+ <th class="text-center">审核时间</th>
|
|
|
+ <th class="text-center">审核人</th>
|
|
|
+ <th class="text-center">晚饭打卡(分)</th>
|
|
|
+ <th class="text-center">在线时长</th>
|
|
|
+ <th class="text-center">本次工作时长</th>
|
|
|
+ <th class="text-center">备注</th>
|
|
|
+ </tr>
|
|
|
+ <tr v-for="(laborReport,i) in laborReports" @click="selectedColor(laborReport.id)" :style="{'font-weight': laborReport.id==selectedStyle?'bold':''}">
|
|
|
+ <td>
|
|
|
+ <input class="checkItem" type="checkbox" :value="laborReport.id" v-model="checkData">
|
|
|
+ </td>
|
|
|
+ <td>@{{ i+1 }}</td>
|
|
|
+ <td >
|
|
|
+ @can('人事管理-门卫审核')
|
|
|
+ <span >
|
|
|
+ <span v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</span>
|
|
|
+ <span v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{laborReport.sequence}}/@{{laborReport.amountOfJoined}}</span>
|
|
|
+ <button v-else class="btn btn-sm btn-outline-secondary" @click="guardClockAudit(laborReport.id,laborReport.userDutyCheckId)">门卫审核</button>
|
|
|
+ </span>
|
|
|
+ @else
|
|
|
+ <span v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</span>
|
|
|
+ <span v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{ laborReport.sequence }}/@{{ laborReport.amountOfJoined }}</span>
|
|
|
+ <span v-else class="text-center"><b class="text-danger">门卫未审核</b></span>
|
|
|
+ @endcan
|
|
|
+
|
|
|
+ @can('人事管理-组长审核')
|
|
|
+ <span>
|
|
|
+ <button v-if="laborReport.groupUserId&&!laborReport.is_exportGroup" @click="groupExport(laborReport.id,laborReport.name)" class="btn btn-sm btn-outline-danger">退组</button>
|
|
|
+ <span v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</span>
|
|
|
+ <span v-else-if="laborReport.is_export" class="text-black">已退场</span>
|
|
|
+ <button v-else-if="laborReport.userWorkGroupId" @click="groupClockAudit(laborReport.id,laborReport.userWorkgroupNeedRemark)" class="btn btn-sm btn-outline-primary">组长审核</button>
|
|
|
+ </span>
|
|
|
+ @else
|
|
|
+ <span v-if="laborReport.groupUserId&&!laborReport.is_exportGroup"><b class="text-success">在组</b></span>
|
|
|
+ <span v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</span>
|
|
|
+ <span v-else-if="laborReport.is_export" class="text-black">已退场</span>
|
|
|
+ <span v-else-if="laborReport.userWorkGroupId" class="text-center"><b class="text-danger">组长未审核</b></span>
|
|
|
+ @endcan
|
|
|
+ </td>
|
|
|
+ <td class="text-muted">@{{laborReport.enter_at}}</td>
|
|
|
+ <td >@{{ laborReport.exit_at }}</td>
|
|
|
+ <td class="text-muted">@{{laborReport.enterNumber}}</td>
|
|
|
+ <td>@{{laborReport.userWorkGroupName}}</td>
|
|
|
+ <td >@{{laborReport.name}}</td>
|
|
|
+ <td class="text-muted">@{{laborReport.mobilePhone}}</td>
|
|
|
+ <td class="text-muted">@{{laborReport.identityNumber}}</td>
|
|
|
+ <td class="text-muted">@{{laborReport.laborCompany}}</td>
|
|
|
+ <td>@{{laborReport.checkInAt}}</td>
|
|
|
+ <td class="text-muted">@{{laborReport.checkOutAt}}</td>
|
|
|
+ <td class="text-muted">@{{laborReport.verifyAt}}</td>
|
|
|
+ <td class="text-muted"><span v-if="laborReport.verifyPerson">@{{laborReport.verifyPerson}}</span></td>
|
|
|
+ <td class="text-muted"><span v-if="laborReport.relax_time">@{{laborReport.relax_time}}</span></td>
|
|
|
{{-- <td class="text-muted"><span v-if="laborReport.onlineDuration">@{{laborReport.onlineDuration}}</span></td>--}}
|
|
|
- <td class="text-muted"><span v-if="laborReport.thisRecordOnlineTime">@{{laborReport.thisRecordOnlineTime}}</span></td>
|
|
|
- <td><span v-if="laborReport.thisRecordWorkingTime">@{{laborReport.thisRecordWorkingTime}}</span></td>
|
|
|
+ <td class="text-muted"><span v-if="laborReport.thisRecordOnlineTime">@{{laborReport.thisRecordOnlineTime}}</span></td>
|
|
|
+ <td><span v-if="laborReport.thisRecordWorkingTime">@{{laborReport.thisRecordWorkingTime}}</span></td>
|
|
|
{{-- <td><span v-if="laborReport.workingDuration">@{{laborReport.workingDuration}}</span></td>--}}
|
|
|
- <td><span v-if="laborReport.remark">@{{laborReport.remark}}</span></td>
|
|
|
- </tr>
|
|
|
- </table>
|
|
|
- <table class="table table-striped table-sm table-bordered table-hover p-0 d-block d-sm-none" style="background: rgb(255, 255, 255);">
|
|
|
- <tbody>
|
|
|
- <tr v-for="laborReport in laborReports">
|
|
|
- <td style="filter:grayscale(30%); ">
|
|
|
- <div class="pl-3 mt-1">
|
|
|
- <div style="transform:scale(1)" class="pl-0">
|
|
|
- <span class="mr-3 text-nowrap">
|
|
|
- <span >操作:</span>
|
|
|
+ <td><span v-if="laborReport.remark">@{{laborReport.remark}}</span></td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <table class="table table-striped table-sm table-bordered table-hover p-0 d-block d-sm-none" style="background: rgb(255, 255, 255);">
|
|
|
+ <tbody>
|
|
|
+ <tr v-for="laborReport in laborReports">
|
|
|
+ <td style="filter:grayscale(30%); ">
|
|
|
+ <div class="pl-3 mt-1">
|
|
|
+ <div style="transform:scale(1)" class="pl-0">
|
|
|
+ <span class="mr-3 text-nowrap">
|
|
|
+ <span >操作:</span>
|
|
|
+ <span >
|
|
|
+ @can('人事管理-门卫审核')
|
|
|
<span >
|
|
|
- @can('人事管理-门卫审核')
|
|
|
- <span >
|
|
|
- <b v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</b>
|
|
|
- <b v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{laborReport.sequence}}/@{{laborReport.amountOfJoined}}</b>
|
|
|
- <button v-else style="transform:scale(1.1)" class="btn btn-lg btn-outline-secondary" @click="guardClockAudit(laborReport.id,laborReport.userDutyCheckId)">门卫审核</button>
|
|
|
- </span>
|
|
|
- @else
|
|
|
- <b v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</b>
|
|
|
- <b v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{ laborReport.sequence }}/@{{ laborReport.amountOfJoined }}</b>
|
|
|
- <span v-else class="text-center"><b class="text-danger">门卫未审核</b></span>
|
|
|
- @endcan
|
|
|
-
|
|
|
- @can('人事管理-组长审核')
|
|
|
- <span>
|
|
|
- <button v-if="laborReport.groupUserId&&!laborReport.is_exportGroup" @click="groupExport(laborReport.id,laborReport.name)" style="transform:scale(1.1)" class="btn btn-lg btn-danger">退组</button>
|
|
|
- <b v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</b>
|
|
|
- <b v-else-if="laborReport.is_export" class="text-black">已退场</b>
|
|
|
- <button v-else-if="laborReport.userWorkGroupId" @click="groupClockAudit(laborReport.id,laborReport.userWorkgroupNeedRemark)" class="btn btn-lg btn-outline-primary" style="transform:scale(1.1)" >组长审核</button>
|
|
|
+ <b v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</b>
|
|
|
+ <b v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{laborReport.sequence}}/@{{laborReport.amountOfJoined}}</b>
|
|
|
+ <button v-else style="transform:scale(1.1)" class="btn btn-lg btn-outline-secondary" @click="guardClockAudit(laborReport.id,laborReport.userDutyCheckId)">门卫审核</button>
|
|
|
+ </span>
|
|
|
+ @else
|
|
|
+ <b v-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined==1" class="text-success">已审核</b>
|
|
|
+ <b v-else-if="laborReport.userDutyCheckVerifyUserId&&laborReport.amountOfJoined&&laborReport.sequence" class="text-black"> @{{ laborReport.sequence }}/@{{ laborReport.amountOfJoined }}</b>
|
|
|
+ <span v-else class="text-center"><b class="text-danger">门卫未审核</b></span>
|
|
|
+ @endcan
|
|
|
+
|
|
|
+ @can('人事管理-组长审核')
|
|
|
+ <span>
|
|
|
+ <button v-if="laborReport.groupUserId&&!laborReport.is_exportGroup" @click="groupExport(laborReport.id,laborReport.name)" style="transform:scale(1.1)" class="btn btn-lg btn-danger">退组</button>
|
|
|
+ <b v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</b>
|
|
|
+ <b v-else-if="laborReport.is_export" class="text-black">已退场</b>
|
|
|
+ <button v-else-if="laborReport.userWorkGroupId" @click="groupClockAudit(laborReport.id,laborReport.userWorkgroupNeedRemark)" class="btn btn-lg btn-outline-primary" style="transform:scale(1.1)" >组长审核</button>
|
|
|
+ </span>
|
|
|
+ @else
|
|
|
+ <span v-if="laborReport.groupUserId&&!laborReport.is_exportGroup"><b class="text-success">在组</b></span>
|
|
|
+ <b v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</b>
|
|
|
+ <b v-else-if="laborReport.is_export" class="text-black">已退场</b>
|
|
|
+ <span v-else-if="laborReport.userWorkGroupId" class="text-center"><b class="text-danger">组长未审核</b></span>
|
|
|
+ @endcan
|
|
|
+ </span>
|
|
|
</span>
|
|
|
- @else
|
|
|
- <span v-if="laborReport.groupUserId&&!laborReport.is_exportGroup"><b class="text-success">在组</b></span>
|
|
|
- <b v-else-if="laborReport.groupUserId&&laborReport.is_exportGroup&&!laborReport.is_export" class="text-info">已退组</b>
|
|
|
- <b v-else-if="laborReport.is_export" class="text-black">已退场</b>
|
|
|
- <span v-else-if="laborReport.userWorkGroupId" class="text-center"><b class="text-danger">组长未审核</b></span>
|
|
|
- @endcan
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- <span class="mr-3 text-nowrap"><span class="text-black">进场时间:</span><span class="text-black-50">@{{laborReport.enter_at }}</span></span>
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">退场时间:</span><span style="color:#af7651">@{{ laborReport.exit_at }}</span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">进场编号:</span><span style="color:#af7651">@{{ laborReport.enterNumber }}</span></span>--}}
|
|
|
- <span class="mr-3 text-nowrap"><span class="text-black">小组:</span><span class="text-black-50">@{{laborReport.userWorkGroupName }}</span></span>
|
|
|
- <span class="mr-3 text-nowrap"><span class="text-black">临时工:</span><span class="text-black-50">@{{ laborReport.name }} </span></span>
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">电话:</span><span style="color:#af7651" v-if="">@{{ laborReport.mobilePhone }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">身份证号:</span><span style="color:#af7651" v-if="">@{{ laborReport.identityNumber }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">劳务所:</span><span style="color:#af7651" v-if="">@{{ laborReport.laborCompany }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">进组时间:</span><span style="color:#af7651" v-if="">@{{ laborReport.checkInAt }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">退组时间:</span><span style="color:#af7651" v-if="">@{{ laborReport.checkOutAt }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">审核时间:</span><span style="color:#af7651" v-if="">@{{ laborReport.verifyAt }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">审核人:</span><span style="color:#af7651" v-if="">@{{ laborReport.verifyPerson }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">晚饭打卡(分):</span><span style="color:#af7651" v-if="">@{{ laborReport.relax_time }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">在线时长:</span><span style="color:#af7651" v-if="">@{{ laborReport.onlineDuration }} </span></span>--}}
|
|
|
- {{-- <span class="mr-3 text-nowrap"><span class="text-black">本次工作时长:</span><span style="color:#af7651" v-if="">@{{ laborReport.workingDuration }} </span></span>--}}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ <span class="mr-3 text-nowrap"><span class="text-black">进场时间:</span><span class="text-black-50">@{{laborReport.enter_at }}</span></span>
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">退场时间:</span><span style="color:#af7651">@{{ laborReport.exit_at }}</span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">进场编号:</span><span style="color:#af7651">@{{ laborReport.enterNumber }}</span></span>--}}
|
|
|
+ <span class="mr-3 text-nowrap"><span class="text-black">小组:</span><span class="text-black-50">@{{laborReport.userWorkGroupName }}</span></span>
|
|
|
+ <span class="mr-3 text-nowrap"><span class="text-black">临时工:</span><span class="text-black-50">@{{ laborReport.name }} </span></span>
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">电话:</span><span style="color:#af7651" v-if="">@{{ laborReport.mobilePhone }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">身份证号:</span><span style="color:#af7651" v-if="">@{{ laborReport.identityNumber }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">劳务所:</span><span style="color:#af7651" v-if="">@{{ laborReport.laborCompany }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">进组时间:</span><span style="color:#af7651" v-if="">@{{ laborReport.checkInAt }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">退组时间:</span><span style="color:#af7651" v-if="">@{{ laborReport.checkOutAt }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">审核时间:</span><span style="color:#af7651" v-if="">@{{ laborReport.verifyAt }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">审核人:</span><span style="color:#af7651" v-if="">@{{ laborReport.verifyPerson }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">晚饭打卡(分):</span><span style="color:#af7651" v-if="">@{{ laborReport.relax_time }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">在线时长:</span><span style="color:#af7651" v-if="">@{{ laborReport.onlineDuration }} </span></span>--}}
|
|
|
+ {{-- <span class="mr-3 text-nowrap"><span class="text-black">本次工作时长:</span><span style="color:#af7651" v-if="">@{{ laborReport.workingDuration }} </span></span>--}}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <div class="text-info h5 btn btn">{{$laborReports->count()}}/@{{ sum }}</div>
|
|
|
+ {{--{{$laborReports->appends($request)->links()}}--}}
|
|
|
{{-- 选择晚饭时长弹框 --}}
|
|
|
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
|
<div class="modal-dialog">
|
|
|
@@ -279,6 +233,8 @@
|
|
|
@endsection
|
|
|
|
|
|
@section('lastScript')
|
|
|
+ <script type="text/javascript" src="{{asset('js/queryForm/export.js')}}"></script>
|
|
|
+ <script type="text/javascript" src="{{asset('js/queryForm/queryForm200724.js')}}"></script>
|
|
|
<script>
|
|
|
@if(isset($request))
|
|
|
let request={!! json_encode($request) !!};
|
|
|
@@ -310,18 +266,17 @@
|
|
|
],
|
|
|
i:0,
|
|
|
userWorkGroups:[
|
|
|
- @foreach($userWorkGroups as $userWorkGroup)
|
|
|
- {id:'{{$userWorkGroup->id}}',name:'{{$userWorkGroup->name}}'},
|
|
|
+ @foreach($userWorkGroups as $userWorkGroup)
|
|
|
+ {name:'{{$userWorkGroup->id}}',value:'{{$userWorkGroup->name}}'},
|
|
|
@endforeach
|
|
|
],
|
|
|
- filterData:
|
|
|
- {paginate:'50',created_at_start:'',created_at_end:'',enter_number:'',identity_number:'',user_workgroup_id: '',mobile_phone:''},
|
|
|
checkData:[],
|
|
|
permittingWorkgroups:{!! $permittingWorkgroups !!},
|
|
|
relax_time:'',dateTime:'',selectedStyle:'',
|
|
|
+ sum:{!! $sum !!},
|
|
|
},
|
|
|
mounted:function(){
|
|
|
- initEcho();
|
|
|
+ /* initEcho();
|
|
|
//进场
|
|
|
Echo.channel('{{$laravelEchoPrefix}}userDutyCheck').listen('ImportEvent',(e)=>{
|
|
|
window.location.reload();
|
|
|
@@ -355,10 +310,26 @@
|
|
|
window.location.reload();
|
|
|
}, 500);
|
|
|
});
|
|
|
- });
|
|
|
- this.initInputs();
|
|
|
+ });*/
|
|
|
$(".tooltipTarget").tooltip({'trigger':'hover'});
|
|
|
$('#list').removeClass('d-none');
|
|
|
+ let data=[
|
|
|
+ [
|
|
|
+ {name:'created_at_start',type:'dataTime',tip:'选择显示指定日期的起始时间'},
|
|
|
+ {name:'user_workgroup_id',type:'search_select',tip:['',''],placeholder:['小组',''],data:this.userWorkGroups},
|
|
|
+ {name:'enter_number',type:'input',tip:'进场编号:支持15天内模糊搜索,15天外精确搜索',placeholder: '进场编号'},
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ {name:'created_at_end',type:'dataTime',tip:'选择显示指定日期的结束时间'},
|
|
|
+ {name:'mobile_phone',type:'input',tip:'',placeholder: '电话号'},
|
|
|
+ {name:'identity_number',type:'input',tip:'',placeholder: '身份证号'},
|
|
|
+ ],
|
|
|
+ ];
|
|
|
+ this.form = new query({
|
|
|
+ el:"#form_div",
|
|
|
+ condition:data,
|
|
|
+ });
|
|
|
+ this.form.init();
|
|
|
},
|
|
|
watch:{
|
|
|
checkData:{
|
|
|
@@ -372,34 +343,7 @@
|
|
|
deep:true
|
|
|
}
|
|
|
},
|
|
|
- computed:{
|
|
|
- isBeingFilterConditions:function(){
|
|
|
-
|
|
|
- for(let key in this.filterData){
|
|
|
- if(this.filterData[key]){
|
|
|
- if(key==='paginate')continue;
|
|
|
- return true
|
|
|
- }
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
-
|
|
|
- },
|
|
|
methods:{
|
|
|
- initInputs:function(){
|
|
|
- let data=this;
|
|
|
- let uriParts =decodeURI(location.href).split("?");
|
|
|
- if(uriParts.length>1){
|
|
|
- let params = uriParts[1].split('&');
|
|
|
- params.forEach(function(paramPair){
|
|
|
- let pair=paramPair.split('=');
|
|
|
- let key = pair[0], val = pair[1];
|
|
|
- $('input[name="'+key+'"]').val(val);
|
|
|
- $('select[name="'+key+'"]').val(val);
|
|
|
- decodeURI(data.filterData[key]=val);
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
selectedColor(id){
|
|
|
if (id==this.selectedStyle){
|
|
|
this.selectedStyle='';
|
|
|
@@ -407,16 +351,6 @@
|
|
|
}
|
|
|
this.selectedStyle=id;
|
|
|
},
|
|
|
- setPaginate:function(e){
|
|
|
- this.filterData.paginate=e.target.value;
|
|
|
- var form = document.getElementById("optionSubmit");
|
|
|
- form.submit();
|
|
|
- },
|
|
|
- setUserWorkGroup:function (e){
|
|
|
- this.filterData.user_workgroup_id=e.target.value;
|
|
|
- var form = document.getElementById("optionSubmit");
|
|
|
- form.submit();
|
|
|
- },
|
|
|
checkAll(e){
|
|
|
if (e.target.checked){
|
|
|
this.laborReports.forEach((el,i)=>{
|
|
|
@@ -428,22 +362,10 @@
|
|
|
this.checkData = [];
|
|
|
}
|
|
|
},
|
|
|
- laborReportExport(e){
|
|
|
- let val=e;
|
|
|
- let data=this.filterData;
|
|
|
- if (val==1){
|
|
|
- if (this.checkData&&this.checkData.length<=0){
|
|
|
- tempTip.setDuration(4000);
|
|
|
- tempTip.showSuccess('没有勾选任何记录');
|
|
|
- }else{
|
|
|
- location.href="{{url('laborReport/export').'/'}}"+this.checkData;
|
|
|
- }
|
|
|
- } else {
|
|
|
- location.href="{{url('laborReport/export/-1?created_at_start=')}}"+
|
|
|
- data.created_at_start+"&created_at_end="+data.created_at_end+"&enter_number="+
|
|
|
- data.enter_number+"&identity_number="+data.identity_number+"&user_workgroup_id="+data.user_workgroup_id+
|
|
|
- "&mobile_phone="+data.mobile_phone;
|
|
|
- }
|
|
|
+ laborReportExport(checkAllSign){
|
|
|
+ let url = '{{url('laborReport/export')}}';
|
|
|
+ let token='{{ csrf_token() }}';
|
|
|
+ excelExport(checkAllSign,this.checkData,url,this.sum,token);
|
|
|
},
|
|
|
//门卫审核
|
|
|
guardClockAudit(id,userDutyCheckId){
|