|
@@ -825,6 +825,58 @@ export default {
|
|
|
},
|
|
|
//薪资详细
|
|
|
SalaryDetails(index, row){
|
|
|
+
|
|
|
+ let myDate = new Date(this.value2);
|
|
|
+ let month = myDate.getMonth() + 1;
|
|
|
+ month = month < 10 ? "0" + month : month; //格式化月份,补0
|
|
|
+ let statDateStart = new Date(myDate.getFullYear().toString() +'-'+ month +'-'+ "01"); //月初
|
|
|
+ let dayEnd = new Date(myDate.getFullYear(), month, 0).getDate(); //获取当月一共有多少天
|
|
|
+ let statDateEnd = new Date(myDate.getFullYear().toString() +'-'+ month +'-'+ dayEnd); //月末
|
|
|
+
|
|
|
+ this.salaryinif={
|
|
|
+ // regularization:true,
|
|
|
+ userId:"",//员工Id
|
|
|
+ name:"",//姓名
|
|
|
+ yearMonth:new Date(this.value2),//年月
|
|
|
+ startDate:statDateStart,//工资日期 起
|
|
|
+ endDate:statDateEnd,//工资日期 止
|
|
|
+ basic:0,//基本工资
|
|
|
+ floats:0,//绩效工资
|
|
|
+ postAllowance:0,//岗位津贴
|
|
|
+ // garmentWashSubsidies:0,//服装洗理补贴
|
|
|
+ // communicationSubsidies:0,// 通讯补贴
|
|
|
+ otherSubsidies:0,// 月度补贴
|
|
|
+ otherHandle:0,//其他应付
|
|
|
+ informationSecurityFee:0,// 保密费
|
|
|
+ // operationBonus:0,// 操作奖金
|
|
|
+ // specialAllowance:0,// 特殊津贴
|
|
|
+ // otherSubsidies:0,// 其他补贴
|
|
|
+ withholdingInsurance:0,// 代扣保险
|
|
|
+ mealsupplement:0,// 餐补
|
|
|
+ reservedFunds:0,// 代扣公积金
|
|
|
+ // groupCost:0,// 部门集体团建费
|
|
|
+ sickLeave:0,// 病假
|
|
|
+ somethingFalse:0,// 事假
|
|
|
+ lateTo:0,// 迟到
|
|
|
+ leaveEarly:0,// 早退
|
|
|
+ absenteeism:0,//旷工
|
|
|
+ notPunch:0,//补卡
|
|
|
+ otherDeductions:0,//其他扣款
|
|
|
+ should:0,//应发合计
|
|
|
+ workDays:0,//应出勤天数
|
|
|
+ regularDays:0,//正常出勤天数
|
|
|
+ totalDeductions:0,//扣款合计
|
|
|
+ totalRealHair:0,//实发合计
|
|
|
+ withholdingTax:0,//代扣个税
|
|
|
+ afterTax:0,//税后工资
|
|
|
+ isLock:0,//锁定标识
|
|
|
+ lastUpdateUserId:"",//最后操作人
|
|
|
+ lastUpdateUserName:"",//最后操作人Name
|
|
|
+ lastUpdateDt:"",//最后操作时间
|
|
|
+ remark:"",//备注
|
|
|
+ beforeTax:0,//税前合计
|
|
|
+ };
|
|
|
+
|
|
|
if (this.$refs.salaryinif){
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs['salaryinif'].clearValidate();
|
|
@@ -845,6 +897,7 @@ export default {
|
|
|
this.disabled=true;
|
|
|
this.preserve=false;
|
|
|
console.log(row.id)
|
|
|
+ this.fullscreenLoading=true;
|
|
|
var url = "/api/PersonnelModule/GetWageSheetById"
|
|
|
var that = this
|
|
|
this.$axios({
|
|
@@ -913,13 +966,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- console.log(that.late)
|
|
|
+ that.fullscreenLoading=false;
|
|
|
}
|
|
|
}else{
|
|
|
that.$message({
|
|
|
message: '加载失败!原因:'+res.data.msg,
|
|
|
type: 'warning'
|
|
|
});
|
|
|
+ that.fullscreenLoading=false;
|
|
|
}
|
|
|
})
|
|
|
},
|