diff --git a/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts b/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts index 71d387ee..dec67fe0 100644 --- a/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts +++ b/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts @@ -226,9 +226,24 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit { * @param record 当前行 */ changeStalyAccount(record: any) { - this.changeAccount = true; - this.initSFNew(); + this.changeRecord = record; + let params:any = { + partnerId: this.roleId , + ltdId: record.ltdId + } + this.service.request(this.service.$api_get_getPartnerLitAmountSummary, params).subscribe(res => { + if (res) { + this.changeAmount = Math.abs(res.waitRecordedAmount) + if(res.waitRecordedAmount > 0) { + this.addd = true; + } else { + this.addd = false; + } + this.changeAccount = true; + this.initSFNew(); + } + }); // this.getBillDetail(record?.ltdId); } @@ -285,6 +300,7 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit { console.log(res); this.service.msgSrv.success('修改成功!') this.changeAccount = false; + this.st.load() } }) }