Commit e4eaa446 by sunchao

Merge branch 'dev' into master

parents a652481f 73b0487c
......@@ -87,7 +87,7 @@ export class SalaryDetailComponent implements OnInit {
querySalaryDetail(type){
if(type!=null){
for(let i=0;i<this.payScaleInfos.length;i++){
if(this.payScaleInfos[i]['years'] == this.years && this.payScaleInfos[i]['month'] == this.month){
if((this.payScaleInfos[i]['years'] == this.years) && ( Number(this.payScaleInfos[i]['month']) == this.month)){
//上一期
if(type=='pre'){
// if(i==this.payScaleInfos.length-1){
......@@ -97,8 +97,7 @@ export class SalaryDetailComponent implements OnInit {
// }, 3000);
// return;
// }
// this.month = this.payScaleInfos[i+1]['month'];
// this.years = this.payScaleInfos[i+1]['years'];
if(this.payScaleInfos[i+1]['month'] <5 && this.years == 2021){
if(this.payScaleInfos[i+1]['pdfOssPath']){
window.open(this.payScaleInfos[i+1]['pdfOssPath']);
}else{
......@@ -108,39 +107,27 @@ export class SalaryDetailComponent implements OnInit {
}, 3000);
return;
}
// this.lifeCommonService.setTitle(`${this.years}年${this.month}月本期实发佣金`);
// this.initSalay();
}else{
this.month = this.payScaleInfos[i+1]['month'];
this.years = this.payScaleInfos[i+1]['years'];
this.lifeCommonService.setTitle(`${this.years}${this.month}月本期实发佣金`);
this.initSalay();
}
break;
}
//下一期
if(type == 'next'){
// if(i == 0){
// const toast = ToastService.show('已到最后一期薪资!', 0);
// setTimeout(() => {
// ToastService.hide();
// }, 3000);
// return;
// }
// this.month = this.payScaleInfos[i-1]['month'];
// this.years = this.payScaleInfos[i-1]['years'];
if(i==0){
if(i == 0){
const toast = ToastService.show('已到最后一期薪资!', 0);
setTimeout(() => {
ToastService.hide();
}, 3000);
return;
}
if(this.payScaleInfos[i-1]['pdfOssPath']){
window.open(this.payScaleInfos[i-1]['pdfOssPath']);
}else{
const toast = ToastService.show('暂无薪资单!', 0);
setTimeout(() => {
ToastService.hide();
}, 3000);
return;
}
// this.lifeCommonService.setTitle(`${this.years}年${this.month}月本期实发佣金`);
// this.initSalay();
this.month = this.payScaleInfos[i-1]['month'];
this.years = this.payScaleInfos[i-1]['years'];
this.lifeCommonService.setTitle(`${this.years}${this.month}月本期实发佣金`);
this.initSalay();
break;
}
}
......@@ -225,7 +212,7 @@ export class SalaryDetailComponent implements OnInit {
//薪资单列表-》用来判断上一期下一期的加减
payScaleListQuery() {
this.myService.payScaleListQuery({ practitionerIdEG: this.practitionerIdEG,practitionerId:this.practitionerId,isHistory: 2}).subscribe((res) => {
this.myService.payScaleListQuery({practitionerId:this.practitionerId,isHistory: 2}).subscribe((res) => {
if (res['success']) {
this.payScaleInfos = res['data']['payScaleInfos'];
}
......
......@@ -67,10 +67,16 @@
<span>投保人:{{customerFortuneItem.holderName}}</span>
</div>
<div style="font-size: 14px;color: #b3b3b3;">
<span>申请日期:{{customerFortuneItem.withdrawDate}}</span>
<span>保单号:{{customerFortuneItem.policyNo}}</span>
</div>
<div style="font-size: 14px;color: #b3b3b3;">
<span>发放日期:{{customerFortuneItem.payDate}}</span>
<span>保费:{{customerFortuneItem.orderPrice | number:'1.2-2'}}</span>
</div>
<div style="font-size: 14px;color: #b3b3b3;">
<span>经纪人:{{customerFortuneItem.name}}</span>
</div>
<div style="font-size: 14px;color: #b3b3b3;">
<span>佣金类型:{{customerFortuneItem.commissionType}}</span>
</div>
<div style="font-size: 14px;color: #b3b3b3;">
<span>备注:{{remarkInfo?.Comments}}</span>
......
......@@ -36,11 +36,11 @@ export class SalaryComponent implements OnInit {
if (res['success']) {
if(this.selectedId == 0){
this.payScaleInfos = res['data']['payScaleInfos'].filter((item)=>{
return item.years == 2021 && item.month == 6
return (item.years == 2021 && item.month == 6) || (item.years == 2021 && item.month == 5)
});
}else{
this.payScaleInfos = res['data']['payScaleInfos'].filter((item)=>{
return item.monDtlPeriod != '2021-06'
return item.monDtlPeriod != '2021-06' && item.monDtlPeriod != '2021-05'
});
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment