|
|
@@ -35,7 +35,7 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<text class="label">{{ todayData.startTime || '未打卡' }}</text>
|
|
|
- <text class="att_status">{{todayData.startStatus}}</text>
|
|
|
+ <text class="att_status" v-if="config.companyCode !== 'yz'">{{todayData.startStatus}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info-row" v-if="clockMultiple">
|
|
|
@@ -45,7 +45,7 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<text class="label">{{ todayData.endTimeAm || '未打卡' }}</text>
|
|
|
- <text class="att_status">{{todayData.endStatusForAm}}</text>
|
|
|
+ <text class="att_status" v-if="config.companyCode !== 'yz'">{{todayData.endStatusForAm}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info-row" v-if="clockMultiple">
|
|
|
@@ -55,7 +55,7 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<text class="label">{{ todayData.startTimePm || '未打卡' }}</text>
|
|
|
- <text class="att_status">{{todayData.startStatusForPm}}</text>
|
|
|
+ <text class="att_status" v-if="config.companyCode !== 'yz'">{{todayData.startStatusForPm}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="info-row">
|
|
|
@@ -66,7 +66,7 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<text class="label">{{ todayData.endTime || '未打卡' }}</text>
|
|
|
- <text class="att_status">{{todayData.endStatus}}</text>
|
|
|
+ <text class="att_status" v-if="config.companyCode !== 'yz'">{{todayData.endStatus}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -157,7 +157,7 @@
|
|
|
</view>
|
|
|
<text class="value">{{ goOutCount }}</text>
|
|
|
</view>
|
|
|
- <view class="statistic-item">
|
|
|
+ <view class="statistic-item" v-if="config.companyCode !== 'yz'">
|
|
|
<view>
|
|
|
<text class="ygoa_icon icon-late"></text>
|
|
|
<text class="label">迟到:</text>
|
|
|
@@ -165,7 +165,7 @@
|
|
|
|
|
|
<text class="value">{{ lateCount }}</text>
|
|
|
</view>
|
|
|
- <view class="statistic-item">
|
|
|
+ <view class="statistic-item" v-if="config.companyCode !== 'yz'">
|
|
|
<view>
|
|
|
<text class="ygoa_icon icon-leaveEarly"></text>
|
|
|
<text class="label">早退:</text>
|
|
|
@@ -218,7 +218,7 @@
|
|
|
endStatusForAm:'',//早上下班签退状态
|
|
|
startTimePm: '', // 下午上班签到时间
|
|
|
startStatusForPm:'',//下午上班签到状态
|
|
|
- })
|
|
|
+})
|
|
|
|
|
|
|
|
|
// 控制今日签到信息和图表显示的状态
|
|
|
@@ -691,16 +691,16 @@
|
|
|
"value": myWeekAttData.type6,
|
|
|
"labelText": "缺勤:" + myWeekAttData.type6 + "次"
|
|
|
},
|
|
|
- {
|
|
|
+ ...(config.companyCode !== 'yz' ? [{
|
|
|
"name": "迟到",
|
|
|
"value": myWeekAttData.type4,
|
|
|
"labelText": "迟到:" + myWeekAttData.type4 + "次"
|
|
|
- },
|
|
|
- {
|
|
|
+ }] : []),
|
|
|
+ ...(config.companyCode !== 'yz' ? [{
|
|
|
"name": "早退",
|
|
|
"value": myWeekAttData.type5,
|
|
|
"labelText": "早退:" + myWeekAttData.type5 + "次"
|
|
|
- },
|
|
|
+ }] : []),
|
|
|
{
|
|
|
"name": "出勤",
|
|
|
"value": myWeekAttData.attDays,
|
|
|
@@ -727,8 +727,10 @@
|
|
|
// const weekData = mockData.series[0].data;
|
|
|
attendanceCount.value = myWeekAttData.attDays;
|
|
|
goOutCount.value = myWeekAttData.type2;
|
|
|
- lateCount.value = myWeekAttData.type4;
|
|
|
- leaveEarlyCount.value = myWeekAttData.type5;
|
|
|
+ if(config.companyCode !== 'yz') {
|
|
|
+ lateCount.value = myWeekAttData.type4;
|
|
|
+ leaveEarlyCount.value = myWeekAttData.type5;
|
|
|
+ }
|
|
|
absenteeismCount.value = myWeekAttData.type6;
|
|
|
resolve(mockData)
|
|
|
}).catch(error => {
|
|
|
@@ -759,12 +761,16 @@
|
|
|
// 遍历 myMonthAttData 并收集指定类型的值
|
|
|
myMonthAttData.forEach(item => {
|
|
|
data1.push(item.type6);
|
|
|
- data2.push(item.type4);
|
|
|
- data3.push(item.type5);
|
|
|
+ if(config.companyCode !== 'yz') {
|
|
|
+ data2.push(item.type4);
|
|
|
+ data3.push(item.type5);
|
|
|
+ }
|
|
|
attendanceCount.value += item.attDays;
|
|
|
goOutCount.value += item.type2;
|
|
|
- lateCount.value += item.type4;
|
|
|
- leaveEarlyCount.value += item.type5;
|
|
|
+ if(config.companyCode !== 'yz') {
|
|
|
+ lateCount.value += item.type4;
|
|
|
+ leaveEarlyCount.value += item.type5;
|
|
|
+ }
|
|
|
absenteeismCount.value += item.type6;
|
|
|
});
|
|
|
|
|
|
@@ -773,17 +779,17 @@
|
|
|
let categoriesArr=generateWeekArray(myMonthAttData.length)
|
|
|
// console.log(categoriesArr);
|
|
|
const mockData = {
|
|
|
- categories: categoriesArr,
|
|
|
+ categories: categoriesArr,
|
|
|
series: [{
|
|
|
name: "缺勤",
|
|
|
data: data1
|
|
|
- }, {
|
|
|
+ }, ...(config.companyCode !== 'yz' ? [{
|
|
|
name: "迟到",
|
|
|
data: data2
|
|
|
}, {
|
|
|
name: "早退",
|
|
|
data: data3
|
|
|
- }]
|
|
|
+ }] : [])]
|
|
|
};
|
|
|
updateChart(mockData)
|
|
|
})
|