|
@@ -3,13 +3,14 @@
|
|
|
|
|
|
<table class="shift-table">
|
|
|
<tr style="height:60px;">
|
|
|
- <th style="width:60px;">{{departmentName}}</th>
|
|
|
+ <!-- <th style="width:60px;">{{departmentName}}</th> -->
|
|
|
+ <th style="width:60px;">日期</th>
|
|
|
<th v-for="(item, index) in scheduleList" :key="index" style="width:92px;">{{item.scheduleName}}</th>
|
|
|
<!-- <th style="width:92px;">中班</th>
|
|
|
<th style="width:92px;">晚班</th> -->
|
|
|
</tr>
|
|
|
<tr v-if="workScheduleList.length==0">
|
|
|
- <td colspan="4">{{ noDataText }}</td>
|
|
|
+ <td colspan="5">{{ noDataText }}</td>
|
|
|
</tr>
|
|
|
<tr v-for="(item, index) in workScheduleList" :key="index">
|
|
|
<td>{{dateFormat(item.workeDate)}}</td>
|
|
@@ -34,6 +35,13 @@
|
|
|
</div>
|
|
|
<div class="add-btn" @click="addP(item.workeDate, item.workScheduleId, '晚班', item.evenShiftEmpList)">添加</div>
|
|
|
</td>
|
|
|
+ <td v-if="item.lateNightShiftEmpList">
|
|
|
+ <div class="peo-muster" v-for="(item1, index1) in item.lateNightShiftEmpList" :key="index1">
|
|
|
+ <span>{{item1.name}}({{item1.tagName}}{{item1.startPartTime?timeFormat(item1.startPartTime)+'-'+timeFormat(item1.endPartTime):''}})</span>
|
|
|
+ <img v-show="item1.storeDepartmentName==null" src="../assets/img/reduce.png" alt="" @click="removeP(item.workScheduleId, '深夜班', item1.employeeId)">
|
|
|
+ </div>
|
|
|
+ <div class="add-btn" @click="addP(item.workeDate, item.workScheduleId, '深夜班', item.lateNightShiftEmpList)">添加</div>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
@@ -50,7 +58,7 @@
|
|
|
<span @click="timePopShowFun(0, item.employeeId, item.startPartTime_object)"><span style="color:black;">上班时间:</span>{{item.startPartTime_object?showTimeHM(item.startPartTime_object):'选择时间'}}</span>
|
|
|
<span @click="timePopShowFun(1, item.employeeId, item.endPartTime_object)"><span style="color:black;">下班时间:</span>{{item.endPartTime_object?showTimeHM(item.endPartTime_object):'选择时间'}}</span>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="select-sure" @click.stop="sureP()">确定</div>
|
|
|
</div>
|
|
@@ -287,6 +295,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
that.departmentName = res.data.data.departmentName;
|
|
|
+ document.title = that.departmentName + '批量排班';
|
|
|
that.simpleEmployeeDTOS = res.data.data.simpleEmployeeDTOS;
|
|
|
that.simpleEmployeeDTOS.forEach(element => {
|
|
|
element.startPartTime = '';
|
|
@@ -305,7 +314,6 @@ export default {
|
|
|
console.log(err)
|
|
|
that.loadShow = true;
|
|
|
});
|
|
|
-
|
|
|
},
|
|
|
//标准时间转换时分
|
|
|
showTimeHM(value) {
|
|
@@ -418,7 +426,7 @@ img{
|
|
|
height: 100vh;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
- align-items: center;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
.dialog-bg{
|
|
|
position: absolute;
|
|
@@ -482,7 +490,7 @@ img{
|
|
|
}
|
|
|
.peo-box{
|
|
|
width: auto;
|
|
|
- height: 160px;
|
|
|
+ height: 320px;
|
|
|
overflow-y: scroll;
|
|
|
}
|
|
|
.peo-list{
|
|
@@ -518,4 +526,4 @@ img{
|
|
|
line-height: 30px;
|
|
|
text-align: left;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|