修改ui
This commit is contained in:
@ -124,31 +124,31 @@
|
||||
<el-table-column prop="totalSocialInsurance" label="代扣社保合计" align="right" width="110"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.totalSocialInsurance) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.totalSocialInsurance > 0 }">{{ formatAmount(scope.row.totalSocialInsurance) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="providentFund" label="代扣公积金" align="right" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.providentFund) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.providentFund > 0 }">{{ formatAmount(scope.row.providentFund) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="attendance" label="请假考勤" align="right" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.attendance) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.attendance > 0 }">{{ formatAmount(scope.row.attendance) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="otherDeductions" label="其他扣额" align="right" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.otherDeductions) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.otherDeductions > 0 }">{{ formatAmount(scope.row.otherDeductions) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="personalTax" label="个税" align="right" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.personalTax) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.personalTax > 0 }">{{ formatAmount(scope.row.personalTax) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
|
||||
@ -139,31 +139,31 @@
|
||||
<el-table-column prop="totalSocialInsurance" label="代扣社保合计" align="center" width="110"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.totalSocialInsurance) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.totalSocialInsurance > 0 }">{{ formatAmount(scope.row.totalSocialInsurance) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="providentFund" label="代扣公积金" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.providentFund) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.providentFund > 0 }">{{ formatAmount(scope.row.providentFund) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="attendance" label="请假考勤" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.attendance) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.attendance > 0 }">{{ formatAmount(scope.row.attendance) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="otherDeductions" label="其他扣额" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.otherDeductions) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.otherDeductions > 0 }">{{ formatAmount(scope.row.otherDeductions) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="personalTax" label="个税" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.personalTax) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.personalTax > 0 }">{{ formatAmount(scope.row.personalTax) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
@ -374,27 +374,27 @@ const getSummaries = () => {
|
||||
sums[12] = tableSummary.backPay;
|
||||
sums[13] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.totalSocialInsurance > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.totalSocialInsurance),]);
|
||||
sums[14] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.providentFund > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.providentFund),]);
|
||||
sums[15] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.attendance > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.attendance),]);
|
||||
sums[16] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.otherDeductions > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.otherDeductions),]);
|
||||
sums[17] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.personalTax > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.personalTax),]);
|
||||
sums[18] = tableSummary.businessSocialInsurance;
|
||||
|
||||
@ -114,31 +114,31 @@
|
||||
<el-table-column prop="totalSocialInsurance" label="代扣社保" align="center" width="110"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.totalSocialInsurance) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.totalSocialInsurance > 0 }">{{ formatAmount(scope.row.totalSocialInsurance) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="providentFund" label="代扣公积金" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.providentFund) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.providentFund > 0 }">{{ formatAmount(scope.row.providentFund) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="attendance" label="请假考勤" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.attendance) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.attendance > 0 }">{{ formatAmount(scope.row.attendance) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="otherDeductions" label="其他扣额" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.otherDeductions) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.otherDeductions > 0 }">{{ formatAmount(scope.row.otherDeductions) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="personalTax" label="个税" align="center" width="100"
|
||||
:show-overflow-tooltip="true">
|
||||
<template #default="scope">
|
||||
<span class="red-font">{{ formatAmount(scope.row.personalTax) }}</span>
|
||||
<span :class="{ 'red-font': scope.row.personalTax > 0 }">{{ formatAmount(scope.row.personalTax) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
@ -371,27 +371,27 @@ const getSummaries = () => {
|
||||
sums[sumsIndex++] = tableSummary.backPay;
|
||||
sums[sumsIndex++] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.totalSocialInsurance > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.totalSocialInsurance),]);
|
||||
sums[sumsIndex++] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.providentFund > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.providentFund),]);
|
||||
sums[sumsIndex++] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.attendance > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.attendance),]);
|
||||
sums[sumsIndex++] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.otherDeductions > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.otherDeductions),]);
|
||||
sums[sumsIndex++] = h('div', {
|
||||
style: {
|
||||
color: 'red',
|
||||
color: tableSummary.personalTax > 0 ? 'red' : '',
|
||||
}
|
||||
}, [formatAmount(tableSummary.personalTax),]);
|
||||
sums[sumsIndex++] = tableSummary.businessSocialInsurance;
|
||||
|
||||
@ -279,6 +279,7 @@ public class EmployeeSalarySummaryServiceImpl extends ServiceImpl<EmployeeSalary
|
||||
itemDto.setSubjectCode(bookSubject.getCode());
|
||||
itemDto.setSubjectName(bookSubject.getCode() + "-" + bookSubject.getName());
|
||||
itemDto.setDetailedAccounts("");
|
||||
// itemDto.setSubjectBalance(BigDecimal.ZERO);
|
||||
|
||||
return itemDto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user