Commit e0771e2d by 胡悦

Merge branch 'SAAS+V4.52.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.52.0

2 parents f400fe42 e68d7a8e
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-04-24 14:46:57
* @LastEditTime: 2025-04-25 17:00:20
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -35,7 +35,7 @@
<view class="footer-up flex">
<view class="sprite-icon icon-income-card"></view>
<view class="footer-label">当月收入</view>
<view class="income-mark" v-if="salaryDetail.confirmSalary">系统测算</view>
<view class="income-mark" v-if="!salaryDetail.confirmSalary">系统测算</view>
<view class="income-mark primary" v-else>应发工资</view>
</view>
<view class="footer-price">
......@@ -43,13 +43,13 @@
{{ salaryDetail.correctSalary || 0 }}
</view>
</view>
<view class="income-list" :style="{ height: 'calc(100% - 524rpx)' }">
<view class="income-list" :style="{ height: 'calc(100% - 484rpx)' }">
<template v-for="(item, index) in IncomeList">
<view class="income-item" :key="index" v-if="isShow(item.value)">
<view class="item-label" @click="handleShow(item)">{{ item.label }}</view>
<uni-icons type="help" size="18" color="#A2A2A8" @click="clickTips(item)"></uni-icons>
<view class="item-price">{{ item.showUnit }}{{ formatNumber(salaryDetail[item.value] || '0') }}</view>
<view class="item-expand" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view>
<view class="item-expand" @click="showDetail(item)" v-if="(salaryDetail[item.value] && item.tabelTh) || item.showNext"></view>
</view>
</template>
</view>
......@@ -382,7 +382,11 @@ export default {
ctx.moveTo(20, y)
ctx.lineTo(30, y)
// ctx.stroke()
i != 0 && ctx.fillText('¥' + step * i, 0, y + 5)
if (i != 0) {
ctx.setFillStyle('#808291')
ctx.fillText('¥' + step * i, 0, y + 5)
ctx.setFillStyle('#000') // 恢复默认字体颜色
}
}
// 柱状图之间的间隔
// 绘制7个粗线条 (300-20)/7 = 40,所以 i 每次要加上40 20为左右间隔
......@@ -392,7 +396,9 @@ export default {
for (var i = 0; i < this.canPersent.length; i++) {
console.log(this.canvasList[i], 'this.canvasList[i]')
// 横坐标的数据
ctx.setFillStyle('#808291')
ctx.fillText(this.canvasList[i].date, 30 + gap * i, this.height + 10)
ctx.setFillStyle('#000') // 恢复默认字体颜色
if (this.canvasList[i].num == 0) {
continue
}
......@@ -412,7 +418,7 @@ export default {
// }
ctx.beginPath()
ctx.setStrokeStyle(i == index ? 'rgba(44, 102, 247, 1)' : 'rgba(44, 102, 247, 0.2)') //设置柱状图颜色
ctx.moveTo(40 + gap * i, this.height - this.canPersent[i] - 6)
ctx.moveTo(40 + gap * i, this.height - this.canPersent[i] - 2)
ctx.lineTo(40 + gap * i, this.height - 15)
ctx.lineWidth = 10
ctx.lineCap = 'round' //设置线条样式
......
......@@ -88,7 +88,7 @@
<view class="item-label">{{ item.label }}</view>
<uni-icons type="help" size="15" color="#A2A2A8" @click="clickTips(item)"></uni-icons>
<view class="item-value">{{ item.showUnit }}{{ formatNumber(salaryDetail[item.value] || '0') }}</view>
<view class="item-next" @click="showDetail(item)" v-if="salaryDetail[item.value] && item.tabelTh"></view>
<view class="item-next" @click="showDetail(item)" v-if="(salaryDetail[item.value] && item.tabelTh) || item.showNext"></view>
</view>
</template>
</view>
......
......@@ -14,7 +14,7 @@
<view class="table-footer flex">
<text>合计:{{ detail.label }}{{ detail.exceptionDetailList && detail.exceptionDetailList.length }}次</text>
<text class="price">{{ detail.total }}</text>
<text class="total-text">{{ getCount(detail.exceptionDetailList) }}</text>
<text class="total-text">{{ getCount(detail.exceptionDetailList) }}天</text>
</view>
<view class="tips-box">{{ detail.tips }}</view>
</view>
......@@ -87,7 +87,7 @@ export default {
/* 所有单元格都有边框 */
border-top: none;
/* 除了首行外,所有行的上方无边框 */
background: #edf2ff;
background: #edf3ff;
height: 88rpx;
font-size: 26rpx;
box-sizing: border-box;
......@@ -135,10 +135,12 @@ export default {
&:first-child {
border-left: none;
border-radius: 0;
}
&:last-child {
border-right: none;
border-radius: 0;
}
}
}
......
......@@ -57,6 +57,24 @@ const WORK_TH = [
value: 'deductionDays'
}
]
const LACK_TH = [
{
title: '考勤日期',
value: 'clockInDate'
},
{
title: '类型',
value: 'attendanceType'
},
{
title: '状态',
value: 'exceptionState'
},
{
title: '扣减考勤天数',
value: 'deductionDays'
}
]
const CLOTHING_TH = [
{
title: '考勤日期',
......@@ -104,7 +122,7 @@ export default {
},
{
label: '缺卡',
th: WORK_TH,
th: LACK_TH,
tips: '当月前两次补卡不扣减,第三次开始每次扣减0.5天',
value: 3
},
......@@ -255,6 +273,7 @@ export default {
.item-num {
color: #181a1f;
font-size: 48rpx;
margin-top: 8rpx;
text {
font-size: 32rpx;
}
......
......@@ -9,19 +9,7 @@ export default {
content: '基本工资 = 职级工资÷应出勤天数×实际出勤天数',
value: 'actualBasicSalary',
recordKey: 'refundOffsetRecords',
tabelTh: [
{
title: '序号',
width: 10
},
{
title: '日期'
},
{
title: '提成',
width: 20
}
],
showNext: true,
sort: 1,
base: true
},
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @LastEditors: limin
* @LastEditTime: 2025-01-08 16:04:45
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-04-25 16:10:40
* @FilePath: \gl_tape\mixin\timeout.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const TIMER_DURATION = 40 * 60 * 1000 //40分钟
const TIMER_INTERVAL = 1 * 60 * 1000 //1分钟检一次
const TIMER_DURATION = 40 * 60 * 1000 //40分钟
const TIMER_INTERVAL = 1 * 60 * 1000 //1分钟检一次
const TIMER_TIMEOUT = TIMER_DURATION / TIMER_INTERVAL
export default {
methods: {
......@@ -26,6 +26,7 @@ export default {
this.endWatchClick()
this.stopRecorder()
}
uni.$logger.local.info('== 未触碰平板计时 ==' + this.__counter + '分钟')
this.__counter++
}, TIMER_INTERVAL)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!