Commit 5950ceff by 杨明

历史收入

1 parent ccff65c3

2.31 MB | W: | H:

2.32 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

3.22 KB | W: | H:

2.14 KB | W: | H:

assets/spritesmith/lssl-icon.png
assets/spritesmith/lssl-icon.png
assets/spritesmith/lssl-icon.png
assets/spritesmith/lssl-icon.png
  • 2-up
  • Swipe
  • Onion skin
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 10:31:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-03-05 15:08:42
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-04-17 16:31:35
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-03-14 14:54:11
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-04-17 17:06:46
* @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,13 +35,15 @@
<view class="footer-up flex">
<view class="sprite-icon icon-income-card"></view>
<view class="footer-label">当月收入</view>
<view class="income-mark">系统测算</view>
<!-- <view class="income-mark primary">应发工资</view> -->
</view>
<view class="footer-price">
<text>¥</text>
{{ salaryDetail.correctSalary || 0 }}
</view>
</view>
<view class="income-list">
<view class="income-list" :style="{ height: 'calc(100% - 524rpx)' }">
<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>
......@@ -51,10 +53,24 @@
</view>
</template>
</view>
<view class="income-tips">
<view class="sprite-icon icon-tips-b"></view>
<text>以上未包括 个人所得税、社保等事项</text>
<view class="footer-bottom">
<view class="income-time flex">
<view class="sprite-icon icon-time-icon"></view>
生成时间
</view>
<!-- <view class="income-tips">
<view class="sprite-icon icon-tips-b"></view>
<text>人工核验冲减,并已扣除个人所得税和社保</text>
</view> -->
<view class="income-warning">
<view class="sprite-icon icon-warning-icon"></view>
<text>以上测算未包括 个人所得税、社保等事项</text>
</view>
<view class="finish-box flex-center">
<view class="sprite-icon icon-finish-icon"></view>
已提交申诉
</view>
<!-- <view class="verify-btn" @click="handleVerify">我要校核</view> -->
</view>
</template>
<view class="empty-body" v-else>
......@@ -68,18 +84,34 @@
<Detail @close="show = false" :show="show" :detail="detail" :tabelTh="detail.tabelTh" :tabelTr="detail.tabelTr"></Detail>
<Question @close="tipsShow = false" :show="tipsShow" :detail="tipsDetail"></Question>
<Dailog @close="showVerify = false" v-if="showVerify" width="1640rpx" title="工资测算校核" icon="income-count">
<template slot="content">
<view class="dailog-body">
<view class="form-item">
<view class="form-label">校核月份:</view>
</view>
<view class="form-item">
<view class="form-label">校核说明:</view>
<textarea class="textarea-box" placeholder="请填写校核说明" />
</view>
<view class="form-btn">提交校核</view>
</view>
</template>
</Dailog>
</view>
</template>
<script>
import Detail from './Detail'
import point from '@/mixin/point'
import Dailog from './Dailog.vue'
import Question from './Question.vue'
import firstTime from '@/mixin/firstTime'
export default {
mixins: [point, firstTime],
components: {
Detail,
Dailog,
Question
},
data() {
......@@ -87,6 +119,7 @@ export default {
title: '学习数据',
show: false,
tipsShow: false,
showVerify: false,
tipsDetail: {},
salaryDetail: {},
detail: {},
......@@ -135,6 +168,9 @@ export default {
}
return true
},
handleVerify() {
this.showVerify = true
},
getDetail(date) {
uni.$api.pointApi.pageStat({ salaryMonthBegin: `${this.year}-01`, salaryMonthEnd: `${this.year}-12` }).then(res => {
const list = res.list || []
......@@ -402,16 +438,8 @@ export default {
margin-left: 24rpx;
}
}
.income-tips {
font-size: 24rpx;
color: #2c66f7;
display: flex;
align-items: center;
margin: 44rpx 0 74rpx;
}
.income-list {
margin-top: 28rpx;
height: calc(100% - 384rpx);
.income-item {
height: 82rpx;
display: flex;
......@@ -437,6 +465,46 @@ export default {
}
}
}
.footer-bottom {
.income-time {
color: #808291;
font-size: 24rpx;
line-height: 40rpx;
}
.income-tips {
font-size: 24rpx;
color: #2c66f7;
display: flex;
align-items: center;
margin-top: 10rpx;
}
.income-warning {
font-size: 24rpx;
color: #f59619;
display: flex;
align-items: center;
margin-top: 10rpx;
}
.finish-box {
color: #2cca74;
font-size: 32rpx;
margin-top: 56rpx;
}
.verify-btn {
margin-top: 40rpx;
width: 288rpx;
height: 80rpx;
border-radius: 16rpx;
opacity: 1;
background: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 32rpx 0 #ffffff80;
text-align: center;
color: #ffffff;
font-size: 32rpx;
line-height: 80rpx;
margin: 0 auto;
}
}
.income-footer {
margin-top: 24rpx;
justify-content: space-between;
......@@ -450,6 +518,20 @@ export default {
color: #181a1f;
margin-left: 16rpx;
}
.income-mark {
border-radius: 12rpx;
opacity: 1;
background: #fef4e8;
color: #f59619;
font-size: 24rpx;
text-align: center;
padding: 6rpx 16rpx;
margin-left: auto;
&.primary {
background: #ecf1fe;
color: #3773f8;
}
}
.footer-price {
font-size: 40rpx;
color: #181a1f;
......@@ -542,4 +624,36 @@ export default {
margin-top: 32rpx;
line-height: 48rpx;
}
.dailog-body {
padding: 0 144rpx;
.form-item {
.form-label {
color: #181a1f;
font-size: 32rpx;
margin-bottom: 20rpx;
}
.textarea-box {
width: 100%;
height: 488rpx;
border-radius: 20rpx;
opacity: 1;
border: 2rpx solid #e8e8e8;
background: #ffffff;
padding: 20rpx 24rpx;
}
}
.form-btn {
width: 376rpx;
height: 88rpx;
border-radius: 16rpx;
opacity: 1;
background: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 32rpx 0 #ffffff80;
text-align: center;
color: #ffffff;
font-size: 36rpx;
line-height: 88rpx;
margin: 48rpx auto 0;
}
}
</style>
......@@ -95,6 +95,15 @@
<view class="income-footer">个人所得税、社保、迟到、早退等月初统一核算,不包括在收入测算中。实际发放工资以工资核算为准。</view>
</view>
<Detail @close="show = false" :show="show" :detail="detail" :tabelTh="detail.tabelTh" :tabelTr="detail.tabelTr"></Detail>
<base-dialog @close="baseShow = false" @showBaseDetail="showBaseDetail" :show="baseShow"></base-dialog>
<base-detail
@close="
baseDetailShow = false
baseShow = true
"
:show="baseDetailShow"
:detail="detail"
></base-detail>
<Question @close="tipsShow = false" :show="tipsShow" :detail="tipsDetail"></Question>
<MessageBox ref="drawVisible" position="bottom" :isFooter="false" title="选择门店" :maxHeight="1000">
<view class="select-box">
......@@ -108,13 +117,17 @@
<script>
import Detail from './Detail'
import baseDialog from './baseDialog'
import baseDetail from './baseDetail'
import point from '@/mixin/point'
import Question from './Question.vue'
export default {
mixins: [point],
components: {
Question,
Detail
Detail,
baseDialog,
baseDetail
},
props: {
merchants: {
......@@ -136,6 +149,8 @@ export default {
data() {
return {
show: false,
baseDetailShow: false,
baseShow: false,
tipsDetail: {},
tipsShow: false,
activeIndex: 1,
......@@ -323,8 +338,18 @@ export default {
console.log(this.detail, 11)
this.show = true
},
showBaseDetail(item) {
console.log(888)
this.baseShow = false
this.baseDetailShow = true
const recordList = [1, 2, 3]
this.detail = { ...item, recordList }
},
showDetail(item) {
console.log(this.salaryDetail)
if (item.label == '基本工资') {
this.baseShow = true
return
}
const total = this.salaryDetail[item.value]
const recordList = this.salaryDetail[item.recordKey]
this.detail = { ...item, total, recordList }
......@@ -554,17 +579,18 @@ export default {
.history-box {
margin-left: auto;
width: toRpx(184);
height: toRpx(60);
background: #ffffff;
border: toRpx(2) solid #edeff2;
border-radius: toRpx(30);
width: 180rpx;
height: 60rpx;
border-radius: 16rpx;
opacity: 1;
background: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 32rpx 0 #ffffff80;
text {
font-size: toRpx(26);
color: #808291;
margin-left: toRpx(8);
margin-top: toRpx(1);
color: #ffffff;
font-size: 26rpx;
margin-left: 8rpx;
margin-top: 1prx;
}
}
}
......
<template>
<Dailog @close="close" v-if="show" width="1440rpx" :title="detail.label" :icon="detail.icon" :scale="detail.scale">
<view class="dailog-body" slot="content">
<view class="table-container">
<table class="table-box">
<tr class="th">
<th v-for="(item, index) in detail.th" :key="index" :style="{ width: item.width + '%' }">{{ item.title }}</th>
</tr>
<tr class="tr" v-for="(item, index) in detail.recordList" :key="index">
<td v-for="(colValue, colKey) in detail.th" :key="colKey">66</td>
</tr>
</table>
</view>
<view class="table-footer flex">
<text>{{ detail.label }}合计:</text>
<text class="price">{{ detail.total }}</text>
</view>
<view class="tips-box">{{ detail.tips }}</view>
</view>
</Dailog>
</template>
<script>
import Dailog from './Dailog'
export default {
props: {
detail: {
type: Object,
default: () => {}
},
show: {
type: Boolean,
default: false
}
},
components: {
Dailog
},
data() {
return {}
},
methods: {
close() {
this.$emit('close')
}
}
}
</script>
<style scoped lang="scss">
.table-container {
max-height: 50vh;
overflow: auto;
}
.table-box {
width: 100%;
padding: 0 64rpx;
border-collapse: separate;
/* 防止边框合并 */
border-spacing: 0;
border: none;
.th {
position: sticky;
top: 0;
}
/* 单元格之间没有间距 */
tr {
border: none;
text-align: center;
&.line {
td {
border-top: 16rpx solid rgba($color: #fff, $alpha: 0.9);
}
}
th {
border: 4rpx solid #fff;
/* 所有单元格都有边框 */
border-top: none;
/* 除了首行外,所有行的上方无边框 */
background: #edf2ff;
height: 88rpx;
font-size: 26rpx;
box-sizing: border-box;
color: #333333;
&:first-child {
border-left: none;
border-radius: 16rpx 0 0 16rpx;
}
&:last-child {
border-radius: 0 16rpx 16rpx 0;
text-align: right;
padding-right: 48rpx;
}
}
td {
.car-box {
padding: 4rpx;
font-size: 24rpx;
border-radius: 4rpx;
margin-right: 6rpx;
}
border: 4rpx solid #fff;
/* 所有单元格都有边框 */
border-top: none;
/* 除了首行外,所有行的上方无边框 */
background: #f7f8fa;
height: 88rpx;
font-size: 26rpx;
color: #333333;
text-align: center;
box-sizing: border-box;
&:last-child {
text-align: right;
padding-right: 48rpx;
}
text {
color: #c8c8cc;
}
&.line {
border-bottom: 16rpx solid #fff;
}
&:first-child {
border-left: none;
}
&:last-child {
border-right: none;
}
}
}
}
.table-footer {
margin: 0 64rpx;
height: 88rpx;
padding: 0 48rpx;
background: #edf3ff;
border-radius: 0 0 16rpx 16rpx;
font-size: 26rpx;
color: #eb4e4e;
font-weight: 600;
.price {
margin-left: auto;
}
}
.tips-box {
color: #808291;
font-size: 26rpx;
margin: 48rpx 64rpx 0;
}
</style>
<template>
<view class="dailog-panel" v-if="show">
<view class="dailog-box" :style="{ width: width }">
<view class="dailog-header flex">
<view class="sprite-icon icon-info-icon"></view>
<view class="dailog-title">基本工资</view>
<view class="dailog-close" @click="close"><uni-icons type="closeempty" size="20"></uni-icons></view>
</view>
<view class="dailog-body">
<view class="month-box flex">
<view class="month-fact">
<view class="fact-label">本月实际出勤天数:</view>
<view class="fact-num">
45
<text class="unit">天</text>
<text class="mark">(满勤)</text>
</view>
</view>
<view class="month-should">本月应出勤天数:26天</view>
</view>
<view class="base-box flex">
<view class="base-item" v-for="(item, index) in baseList" :key="index">
<view class="item-label" @click="showDetail(item)">
{{ item.label }}
<text class="item-next" v-if="item.value"></text>
</view>
<view class="item-num">
{{ item.value }}
<text>次</text>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
const WORK_TH = [
{
title: '考勤日期'
},
{
title: '类型'
},
{
title: '打开时间'
},
{
title: '扣减考勤天数'
}
]
const CLOTHING_TH = [
{
title: '考勤日期'
},
{
title: '类型'
},
{
title: '扣减考勤天数'
}
]
export default {
props: {
width: {
type: String,
default: '1440rpx'
},
show: {
type: Boolean,
default: false
}
},
data() {
return {
baseList: [
{
label: '迟到',
tips: '迟到30分钟(含30分钟)扣减0.5小时;迟到30分钟以上1小时以内,扣减1小时;按每天8小时工作进行扣减',
th: WORK_TH,
value: 0
},
{
label: '早退',
th: WORK_TH,
tips: '早退每次扣减0.5天',
value: 1
},
{
label: '缺卡',
th: WORK_TH,
tips: '当月前两次补卡不扣减,第三次开始每次扣减0.5天',
value: 1
},
{
label: '调休/请假',
th: CLOTHING_TH,
tips: '按每天8小时工作进行;请假1小时=扣减0.12天',
value: 1
},
{
label: '着装异常',
th: CLOTHING_TH,
tips: '着装异常每次扣减0.5天',
value: 1
},
{
label: '法定节假日加班',
value: 1
}
]
}
},
methods: {
close() {
this.$emit('close')
},
showDetail(item) {
console.log(8)
this.$emit('showBaseDetail', item)
}
}
}
</script>
<style scoped lang="scss">
.dailog-panel {
position: fixed;
width: 100vw;
height: 100vh;
inset: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 999;
.dailog-box {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: #fff;
background-image: linear-gradient(179deg, #d6e9ff 12%, #ffffff 100%); /* 顶部渐变和底部白色 */
background-size:
100% 110rpx,
100% calc(100% - 110rpx); /* 分别设置渐变和白色的背景大小 */
background-repeat: no-repeat, no-repeat; /* 确保背景不重复 */
background-position: top, bottom; /* 分别设置渐变和白色的位置 */
border-radius: 48rpx;
padding-bottom: 96rpx;
.dailog-header {
padding: 40rpx 48rpx;
.dailog-title {
font-size: 40rpx;
color: #1a1a1a;
font-weight: 600;
margin-top: -10rpx;
margin-left: 16rpx;
}
.enlarge {
transform: scale(1.5);
margin-right: 30rpx;
}
.dailog-close {
margin-left: auto;
text-align: right;
.uni-icons {
color: #808291 !important;
font-size: 40rpx;
}
}
}
.dailog-body {
padding: 0 144rpx;
.month-box {
justify-content: space-between;
align-items: flex-start;
.month-fact {
.fact-label {
color: #181a1f;
font-size: 32rpx;
}
.fact-num {
color: #181a1f;
font-size: 48rpx;
margin-top: 10rpx;
.unit {
font-size: 32rpx;
}
.mark {
color: #2cca74;
font-size: 32rpx;
}
}
}
}
.base-box {
display: grid;
grid-template-columns: repeat(3, 1fr);
margin-top: 54rpx;
gap: 32rpx;
.base-item {
border-radius: 16rpx;
opacity: 1;
background: #f5f7fa;
padding: 30rpx 48rpx;
.item-label {
color: #181a1f;
font-size: 32rpx;
display: flex;
align-items: center;
.item-next {
margin-left: toRpx(14);
width: 0;
height: 0;
display: block;
border-left: toRpx(10) solid #808291;
border-bottom: toRpx(10) solid transparent;
border-top: toRpx(10) solid transparent;
}
}
.item-num {
color: #181a1f;
font-size: 48rpx;
text {
font-size: 32rpx;
}
}
}
}
}
.dailog-logo {
text-align: center;
image {
width: 228rpx;
height: 228rpx;
}
}
}
}
</style>
{
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.7.0",
"versionCode" : "260",
"transformPx" : false,
"sassImplementationName" : "node-sass",
"name": "展业助手",
"appid": "__UNI__D3BD3DF",
"description": "",
"versionName": "2.8.0",
"versionCode": "280",
"transformPx": false,
"sassImplementationName": "node-sass",
/* 5+App特有相关 */
"app-plus" : {
"cache" : false,
"bounce" : "none",
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"compatible" : {
"ignoreVersion" : true
"app-plus": {
"cache": false,
"bounce": "none",
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"compatible": {
"ignoreVersion": true
},
"screenOrientation" : "landscape",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
"screenOrientation": "landscape",
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
/* 模块配置 */
"modules" : {
"Camera" : {},
"Record" : {},
"VideoPlayer" : {},
"AudioPlayer" : {},
"SQLite" : {},
"Maps" : {},
"Geolocation" : {}
"modules": {
"Camera": {},
"Record": {},
"VideoPlayer": {},
"AudioPlayer": {},
"SQLite": {},
"Maps": {},
"Geolocation": {}
},
/* 应用发布信息 */
"distribute" : {
"distribute": {
/* android打包配置 */
"android" : {
"permissions" : [
"android": {
"permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
......@@ -54,76 +54,83 @@
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"targetSdkVersion" : 30
"abiFilters": [
"armeabi-v7a",
"arm64-v8a",
"x86"
],
"targetSdkVersion": 30
},
/* ios打包配置 */
"ios" : {
"dSYMs" : false,
"UIBackgroundModes" : "audio"
"ios": {
"dSYMs": false,
"UIBackgroundModes": "audio"
},
/* SDK配置 */
"sdkConfigs" : {
"ad" : {},
"speech" : {},
"geolocation" : {
"system" : {
"__platform__" : [ "ios", "android" ]
"sdkConfigs": {
"ad": {},
"speech": {},
"geolocation": {
"system": {
"__platform__": [
"ios",
"android"
]
}
}
},
"icons" : {
"android" : {
"hdpi" : "static/72.png",
"xhdpi" : "static/96.png",
"xxhdpi" : "static/144.png"
"icons": {
"android": {
"hdpi": "static/72.png",
"xhdpi": "static/96.png",
"xxhdpi": "static/144.png"
}
}
},
"nativePlugins" : {
"Ba-KeepAliveSuit" : {
"__plugin_info__" : {
"name" : "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description" : "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms" : "Android",
"url" : "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name" : "uni.gltap",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 1,
"pid" : "11765",
"parameters" : {}
"nativePlugins": {
"Ba-KeepAliveSuit": {
"__plugin_info__": {
"name": "安卓保活套装(通用、常驻通知、电池优化、自启管理、后台运行等)",
"description": "在Ba-KeepAlive的基础上,新增了忽略电池优化、自启管理、常驻通知。为定位、推送、websocket、定时任务、蓝牙、聊天等保驾护航(**注意:**不保证支持所有机型和场景,建议先试用再购买)",
"platforms": "Android",
"url": "https://ext.dcloud.net.cn/plugin?id=11765",
"android_package_name": "uni.gltap",
"ios_bundle_id": "",
"isCloud": true,
"bought": 1,
"pid": "11765",
"parameters": {}
}
}
}
},
/* 快应用特有相关 */
"quickapp" : {},
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx79d1ff39bee3d047",
"setting" : {
"urlCheck" : false
"mp-weixin": {
"appid": "wx79d1ff39bee3d047",
"setting": {
"urlCheck": false
},
"usingComponents" : true
"usingComponents": true
},
"mp-alipay" : {
"usingComponents" : true
"mp-alipay": {
"usingComponents": true
},
"mp-baidu" : {
"usingComponents" : true
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao" : {
"usingComponents" : true
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics" : {
"enable" : false
"uniStatistics": {
"enable": false
},
"vueVersion" : "2",
"h5" : {
"devServer" : {
"port" : 8080,
"https" : false
"vueVersion": "2",
"h5": {
"devServer": {
"port": 8080,
"https": false
}
}
}
}
\ No newline at end of file
......@@ -8,6 +8,20 @@ export default {
icon: 'jbgz-icon',
content: '基本工资 = 职级工资÷应出勤天数×实际出勤天数',
value: 'actualBasicSalary',
recordKey: 'refundOffsetRecords',
tabelTh: [
{
title: '序号',
width: 10
},
{
title: '日期'
},
{
title: '提成',
width: 20
}
],
sort: 1,
base: true
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!