|
@@ -17,7 +17,7 @@
|
|
|
plain
|
|
plain
|
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
|
>
|
|
>
|
|
|
- 删除
|
|
|
|
|
|
|
+ 清除工资数据
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="success"
|
|
type="success"
|
|
@@ -41,6 +41,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
size="small"
|
|
size="small"
|
|
|
plain
|
|
plain
|
|
|
|
|
+ @click="handleReadyLastMonData"
|
|
|
>
|
|
>
|
|
|
引用当月研发人员名单
|
|
引用当月研发人员名单
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -99,7 +100,19 @@ export default window.$crudCommon({
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
operateType: '',
|
|
operateType: '',
|
|
|
- watchUpdateKey: ["averageMonthlySalary", "pensionInsurance", "medicalInsurance", "unemploymentInsurance", "injuryInsurance", "maternityInsurance", "providentFund"],
|
|
|
|
|
|
|
+ watchUpdateKey: [
|
|
|
|
|
+ "averageMonthlySalary",
|
|
|
|
|
+ "pensionInsurance",
|
|
|
|
|
+ "medicalInsurance",
|
|
|
|
|
+ "unemploymentInsurance",
|
|
|
|
|
+ "injuryInsurance",
|
|
|
|
|
+ "maternityInsurance",
|
|
|
|
|
+ "providentFund",
|
|
|
|
|
+ "bonus",
|
|
|
|
|
+ "benefit",
|
|
|
|
|
+ "pensionInsuranceBc",
|
|
|
|
|
+ "medicalInsuranceBc"
|
|
|
|
|
+ ],
|
|
|
beforeUpdatedData: {},
|
|
beforeUpdatedData: {},
|
|
|
updatedFormData: {},
|
|
updatedFormData: {},
|
|
|
|
|
|
|
@@ -188,11 +201,11 @@ export default window.$crudCommon({
|
|
|
},
|
|
},
|
|
|
handleExport() {
|
|
handleExport() {
|
|
|
exportBloByPost(`/api/kd-scientific/salary/export-salary?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
exportBloByPost(`/api/kd-scientific/salary/export-salary?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
- downloadXls(res.data, `技术人员${this.params.yearAndMonth}年度平均工资.xlsx`);
|
|
|
|
|
|
|
+ downloadXls(res.data, `${this.params.yearAndMonth}工资明细.xlsx`);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
handleReadyLastMonData() {
|
|
handleReadyLastMonData() {
|
|
|
- this.$confirm("确认读取上年度工资明细吗?", "提示", {
|
|
|
|
|
|
|
+ this.$confirm("确认引用单月研发人员名单吗?", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
type: "warning"
|
|
@@ -209,7 +222,7 @@ export default window.$crudCommon({
|
|
|
},
|
|
},
|
|
|
printTable(isLandscape) {
|
|
printTable(isLandscape) {
|
|
|
this.wideTableColumns = this.$refs.crud.columnOption;
|
|
this.wideTableColumns = this.$refs.crud.columnOption;
|
|
|
- this.printTitle = `技术人员${this.params.yearAndMonth}年度平均工资`;
|
|
|
|
|
|
|
+ this.printTitle = `${this.params.yearAndMonth}工资明细`;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.printWideTable.printTable(isLandscape);
|
|
this.$refs.printWideTable.printTable(isLandscape);
|
|
|
});
|
|
});
|
|
@@ -229,6 +242,10 @@ export default window.$crudCommon({
|
|
|
item.injuryInsurance = Number(item.injuryInsurance || 0).toFixed(2);
|
|
item.injuryInsurance = Number(item.injuryInsurance || 0).toFixed(2);
|
|
|
item.maternityInsurance = Number(item.maternityInsurance || 0).toFixed(2);
|
|
item.maternityInsurance = Number(item.maternityInsurance || 0).toFixed(2);
|
|
|
item.providentFund = Number(item.providentFund || 0).toFixed(2);
|
|
item.providentFund = Number(item.providentFund || 0).toFixed(2);
|
|
|
|
|
+ item.bonus = Number(item.bonus || 0).toFixed(2);
|
|
|
|
|
+ item.benefit = Number(item.benefit || 0).toFixed(2);
|
|
|
|
|
+ item.pensionInsuranceBc = Number(item.pensionInsuranceBc || 0).toFixed(2);
|
|
|
|
|
+ item.medicalInsuranceBc = Number(item.medicalInsuranceBc || 0).toFixed(2);
|
|
|
|
|
|
|
|
let pensionInsurance = new Decimal(item.pensionInsurance);
|
|
let pensionInsurance = new Decimal(item.pensionInsurance);
|
|
|
let medicalInsurance = new Decimal(item.medicalInsurance);
|
|
let medicalInsurance = new Decimal(item.medicalInsurance);
|
|
@@ -239,11 +256,8 @@ export default window.$crudCommon({
|
|
|
|
|
|
|
|
// 社保合计
|
|
// 社保合计
|
|
|
let socialInsurance = pensionInsurance.add(medicalInsurance).add(unemploymentInsurance).add(injuryInsurance).add(maternityInsurance);
|
|
let socialInsurance = pensionInsurance.add(medicalInsurance).add(unemploymentInsurance).add(injuryInsurance).add(maternityInsurance);
|
|
|
- // 总计
|
|
|
|
|
- let total = socialInsurance.add(providentFund);
|
|
|
|
|
|
|
|
|
|
item.socialInsurance = socialInsurance.toFixed(2);
|
|
item.socialInsurance = socialInsurance.toFixed(2);
|
|
|
- item.total = total.toFixed(2);
|
|
|
|
|
return item;
|
|
return item;
|
|
|
});
|
|
});
|
|
|
return data;
|
|
return data;
|