122 lines
2.7 KiB
Vue
122 lines
2.7 KiB
Vue
<template>
|
|
<view class="page">
|
|
<u-navbar class="u-navbar" title="工资详情" placeholder @leftClick="leftClick" leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"/>
|
|
<scroll-view class="content" scroll-y="true">
|
|
<view class="view-box">
|
|
<view class="view-item">
|
|
<view class="label">姓名</view>
|
|
<view >{{detailData.name}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">身份证号</view>
|
|
<view >{{detailData.idNumber}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">工资金额</view>
|
|
<view >{{detailData.payAmount}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">到账金额</view>
|
|
<view >{{detailData.payableAmount}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">生成时间</view>
|
|
<view >{{detailData.createTime}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">银行卡号</view>
|
|
<view >{{detailData.bankNumber}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="view-box">
|
|
<view class="view-item">
|
|
<view class="label">发放工资年月</view>
|
|
<view >{{detailData.payMonth}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">工资核定方式</view>
|
|
<view >{{detailData.salaryCalcType}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">工资核定标准</view>
|
|
<view >{{detailData.salaryCalcSta}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">工种</view>
|
|
<view >{{detailData.workType}}</view>
|
|
</view>
|
|
<view class="view-item">
|
|
<view class="label">出勤天数</view>
|
|
<view >{{detailData.workSituation}}</view>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import config from '@/config'
|
|
export default {
|
|
data() {
|
|
return {
|
|
detailData:{},
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
console.log(JSON.parse(option.detailData))
|
|
this.detailData=JSON.parse(option.detailData)
|
|
console.log(this.detailData)
|
|
},
|
|
onShow() {
|
|
},
|
|
methods: {
|
|
// 返回
|
|
leftClick() {
|
|
console.log('返回')
|
|
uni.navigateBack({
|
|
delta: 1 // 返回
|
|
});
|
|
}
|
|
},
|
|
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.page {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: #EFEFEF;
|
|
box-sizing: border-box;
|
|
// padding: 0 20px;
|
|
|
|
.content{
|
|
width: 100%;
|
|
height: 90vh;
|
|
margin-top: 20rpx;
|
|
padding-bottom: 80rpx;
|
|
background-color: #EFEFEF;
|
|
}
|
|
.view-box{
|
|
width: 94%;
|
|
margin: 20rpx auto;
|
|
background-color: #FFF;
|
|
border-radius: 10rpx;
|
|
}
|
|
.view-item{
|
|
width: 94%;
|
|
margin: 0rpx auto;
|
|
padding:20rpx;
|
|
display: flex;
|
|
border-bottom: 1rpx solid #EFEFEF;
|
|
font-size: 26rpx;
|
|
.label{
|
|
width: 160rpx;
|
|
color: #666;
|
|
}
|
|
}
|
|
|
|
}
|
|
</style>
|