|
@@ -1,5 +1,5 @@
|
|
|
<script setup lang="ts">
|
|
|
-import { reactive, ref } from 'vue'
|
|
|
+import { reactive } from 'vue'
|
|
|
import { Salary_User_Get } from '@/api/salary/index'
|
|
|
let date = new Date()
|
|
|
const year = date.getFullYear()
|
|
@@ -9,31 +9,43 @@ const salaryFromData = reactive({
|
|
|
month: (month < 10 ? '0' : '') + month,
|
|
|
T_uuid: ''
|
|
|
})
|
|
|
-
|
|
|
-const MySalary = ref({
|
|
|
- T_base: '',
|
|
|
- T_post: '',
|
|
|
- T_seniority: '',
|
|
|
- T_Perf: '',
|
|
|
- T_Perf_score: '',
|
|
|
- T_back_payment: '',
|
|
|
- T_tax: '',
|
|
|
- T_attendance: '',
|
|
|
- T_cut_payment: '',
|
|
|
- T_pension_insurance: '',
|
|
|
- T_unemployment_insurance: '',
|
|
|
- T_medical_insurance: '',
|
|
|
- T_Large_medical_insurance: '',
|
|
|
- T_housing_fund: ''
|
|
|
-})
|
|
|
-
|
|
|
+const salaryData = reactive([
|
|
|
+ { name: '姓名', field: 'T_user_name', salary: '' },
|
|
|
+ { name: '部门', field: 'T_user_dept', salary: '' },
|
|
|
+ { name: '岗位', field: 'T_user_post', salary: '' },
|
|
|
+ { name: '基础工资', field: 'T_base', salary: '' },
|
|
|
+ { name: '岗位工资', field: 'T_post', salary: '' },
|
|
|
+ { name: '工龄工资:', field: 'T_seniority', salary: '' },
|
|
|
+ { name: '绩效金额:', field: 'T_perf', salary: '' },
|
|
|
+ { name: '绩效得分:', field: 'T_perf_score', salary: '' },
|
|
|
+ { name: '实发绩效', field: 'T_actual_Perf', salary: '' },
|
|
|
+ { name: '其他补款:', field: 'T_back_payment', salary: '' },
|
|
|
+ { name: '需缴个人所得税:', field: 'T_tax', salary: '' },
|
|
|
+ { name: '考勤扣款:', field: 'T_attendance', salary: '' },
|
|
|
+ { name: '其他扣款', field: 'T_cut_payment', salary: '' },
|
|
|
+ { name: '应发合计', field: 'T_laballot', salary: '' },
|
|
|
+ { name: '需缴养老保险:', field: 'T_pension_insurance', salary: '' },
|
|
|
+ { name: '需缴医疗保险:', field: 'T_unemployment_insurance', salary: '' },
|
|
|
+ { name: '需缴住房公积金:', field: 'T_medical_insurance', salary: '' },
|
|
|
+ { name: '需缴纳失业保险:', field: 'T_large_medical_insurance', salary: '' },
|
|
|
+ { name: '需缴大额医疗保险:', field: 'T_housing_fund', salary: '' },
|
|
|
+ { name: '个税扣款', field: 'T_tax', salary: '' },
|
|
|
+ { name: '扣款合计', field: 'T_laborage', salary: '' },
|
|
|
+ { name: '实发合计', field: 'T_total', salary: '' }
|
|
|
+])
|
|
|
const getMySalary = async () => {
|
|
|
- let T_date = year + '-' + (month < 10 ? '0' : '') + month
|
|
|
+ let T_date = salaryFromData.year + '-' + salaryFromData.month
|
|
|
const res: any = await Salary_User_Get({ T_date })
|
|
|
if (res.Code) {
|
|
|
- MySalary.value = { ...res.Data }
|
|
|
+ for (let item of salaryData) {
|
|
|
+ item.salary = res.Data[item.field]
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+const searchSalary = () => {
|
|
|
+ getMySalary()
|
|
|
+}
|
|
|
getMySalary()
|
|
|
</script>
|
|
|
|
|
@@ -54,70 +66,35 @@ getMySalary()
|
|
|
<el-col :span="5">
|
|
|
<span class="demonstration">月:</span>
|
|
|
<el-date-picker
|
|
|
+ popper-class="picker-date"
|
|
|
v-model="salaryFromData.month"
|
|
|
style="width: 100px"
|
|
|
+ format="MM"
|
|
|
value-format="MM"
|
|
|
type="month"
|
|
|
placeholder="请选择月"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
- <el-button type="primary">查询</el-button>
|
|
|
+ <el-button type="primary" @click="searchSalary">查询</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-card>
|
|
|
<el-card>
|
|
|
- <el-descriptions class="margin-top" title="我的薪资" :column="3" border>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <div class="cell-item">
|
|
|
- <i class="iconfont">{{ '\ue663' }}</i>
|
|
|
- 基础工资
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- kooriookami
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <div class="cell-item">
|
|
|
- <i class="iconfont">{{ '\ue663' }}</i>
|
|
|
- 岗位工资
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- 18100000000
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <div class="cell-item">
|
|
|
- <i class="iconfont">{{ '\ue7cd' }}</i>
|
|
|
- 工龄工资
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- Suzhou
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <div class="cell-item">
|
|
|
- <i class="iconfont">{{ '\ue663' }}</i>
|
|
|
- 绩效金额
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <el-tag size="small">School</el-tag>
|
|
|
- </el-descriptions-item>
|
|
|
- <el-descriptions-item>
|
|
|
+ <el-descriptions title="我的薪资" :column="3" border>
|
|
|
+ <el-descriptions-item v-for="item in salaryData" :key="item.field">
|
|
|
<template #label>
|
|
|
<div class="cell-item">
|
|
|
- <el-icon :style="iconStyle">
|
|
|
- <office-building />
|
|
|
- </el-icon>
|
|
|
- Address
|
|
|
+ <i class="iconfont">{{ '\ue7d1' }}</i>
|
|
|
+ {{ item.name }}
|
|
|
</div>
|
|
|
</template>
|
|
|
- No.1188, Wuzhong Avenue, Wuzhong District, Suzhou, Jiangsu Province
|
|
|
+ <el-tag type="danger">{{ item.salary }}</el-tag>
|
|
|
+ <!-- <span style="color: #ffd04b">{{ item.salary }}</span> -->
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
-<style scoped></style>
|
|
|
+<style lang="scss"></style>
|