|
@@ -142,10 +142,6 @@
|
|
|
title: '公司',
|
|
|
align:"center",
|
|
|
dataIndex: 'orgName',
|
|
|
- },{
|
|
|
- title: '基本薪资',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'beforeAdjustment',
|
|
|
},
|
|
|
{
|
|
|
title: '话费补贴',
|
|
@@ -182,11 +178,6 @@
|
|
|
align:"center",
|
|
|
dataIndex: 'yearSalary'
|
|
|
},
|
|
|
- {
|
|
|
- title: '合计应发',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'totalPayable'
|
|
|
- },
|
|
|
{
|
|
|
title: '社保',
|
|
|
align:"center",
|
|
@@ -227,10 +218,23 @@
|
|
|
align:"center",
|
|
|
dataIndex: 'funeralCost'
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '基本薪资',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'beforeAdjustment',
|
|
|
+ fixed:'right'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '合计应发',
|
|
|
+ align:"center",
|
|
|
+ dataIndex: 'totalPayable',
|
|
|
+ fixed:'right'
|
|
|
+ },
|
|
|
{
|
|
|
title: '合计应扣',
|
|
|
align:"center",
|
|
|
- dataIndex: 'totalDeduction'
|
|
|
+ dataIndex: 'totalDeduction',
|
|
|
+ fixed:'right'
|
|
|
},
|
|
|
{
|
|
|
title: '实发合计',
|
|
@@ -247,6 +251,7 @@
|
|
|
syHireType:['在职','退休反聘']
|
|
|
},
|
|
|
dataSource:[{}],
|
|
|
+ totalDataSource:[]
|
|
|
// 请求参数
|
|
|
// url: {
|
|
|
|
|
@@ -270,21 +275,6 @@
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- // 合计展示
|
|
|
- totalDataSource(){
|
|
|
- // 开票成本-衬衣 合计
|
|
|
- var item = {
|
|
|
- "name":"合计"
|
|
|
- };
|
|
|
- var allNumber = 0
|
|
|
- for (let row of this.dataSource){
|
|
|
- allNumber += row.actualOccurrence*1;
|
|
|
- }
|
|
|
-
|
|
|
- item.actualOccurrence= parseFloat(allNumber.toFixed(2));
|
|
|
- return [item];
|
|
|
-
|
|
|
- }
|
|
|
},
|
|
|
created () {
|
|
|
this.getTableList()
|
|
@@ -296,6 +286,7 @@
|
|
|
getAction('/salary/salaryManagement/querySalaryTotalList',param).then(res=>{
|
|
|
if(res.success){
|
|
|
this.dataSource =res.result.records
|
|
|
+ this.totalDataSourceList(res.data)
|
|
|
this.ipagination = {
|
|
|
total: res.result.total,
|
|
|
current: res.result.current,
|
|
@@ -306,6 +297,16 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ totalDataSourceList(data){
|
|
|
+ var item={
|
|
|
+ name:'合计',
|
|
|
+ actualOccurrence: data.beforeAdjustment?parseFloat(data.beforeAdjustment.toFixed(2)):'',
|
|
|
+ totalPayable:data.totalPayable?parseFloat(data.totalPayable.toFixed(2)):'',
|
|
|
+ totalDeduction: data.totalDeduction?parseFloat(data.totalDeduction.toFixed(2)):'',
|
|
|
+ actualOccurrence: data.actualOccurrence?parseFloat(data.actualOccurrence.toFixed(2)):''
|
|
|
+ }
|
|
|
+ this.totalDataSource.push(item)
|
|
|
+ },
|
|
|
changeData(value){
|
|
|
this.DateTime = value
|
|
|
},
|
|
@@ -384,14 +385,15 @@
|
|
|
<style scoped lang="less">
|
|
|
// @import '~@assets/less/common.less';
|
|
|
/deep/ .ant-table-footer .ant-table-body {
|
|
|
- overflow: hidden !important;
|
|
|
+ overflow-x: hidden !important;
|
|
|
}
|
|
|
/deep/.ant-table-footer{
|
|
|
padding:0 !important;
|
|
|
overflow: hidden !important;
|
|
|
}
|
|
|
- /deep/.ant-table-fixed-left{
|
|
|
- min-width:180px !important
|
|
|
+ /deep/.ant-table-fixed-left .ant-table-body-inner {
|
|
|
+ margin-right: -22px !important;
|
|
|
+ padding-right: 20px !important;
|
|
|
}
|
|
|
/deep/.ant-table-bordered .ant-table-thead > tr > th{
|
|
|
min-width: 120px !important;
|