This commit is contained in:
wangshiming
2022-05-12 14:25:11 +08:00
parent 6338d9bb6f
commit f60671e3d2

View File

@ -226,9 +226,24 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
* @param record 当前行 * @param record 当前行
*/ */
changeStalyAccount(record: any) { changeStalyAccount(record: any) {
this.changeAccount = true;
this.initSFNew();
this.changeRecord = record; 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); // this.getBillDetail(record?.ltdId);
} }
@ -285,6 +300,7 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
console.log(res); console.log(res);
this.service.msgSrv.success('修改成功!') this.service.msgSrv.success('修改成功!')
this.changeAccount = false; this.changeAccount = false;
this.st.load()
} }
}) })
} }