diff --git a/src/app/routes/order-management/components/risk/risk.component.ts b/src/app/routes/order-management/components/risk/risk.component.ts index 9b7237ea..65879813 100644 --- a/src/app/routes/order-management/components/risk/risk.component.ts +++ b/src/app/routes/order-management/components/risk/risk.component.ts @@ -397,18 +397,27 @@ export class OrderManagementRiskComponent implements OnInit { * 审核通过按钮 */ handleOK() { - console.log(this.sfView.value); + let idList: any[] = []; + if(this.selectedRows.length > 0) { + this.selectedRows.forEach(item => { + idList.push(item.id); + }); + } else { + idList.push(this.sfView.value.billCode) + } const parms = { - id: this.sfView.value.billCode, - representationsCause: this.sfView.value.representationsCause + ids: idList, + auditRemark: this.sfView.value.representationsCause, + representationsStatus: 3, }; this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => { console.log(res); if (res) { - this.service.msgSrv.success('审核通过!'); + this.service.msgSrv.success('审核通过成功!'); this.isVisibleRE = false; + this.st.reload() } else { - this.service.msgSrv.error(res.msg); + // this.service.msgSrv.error(res.msg); } }); } @@ -417,15 +426,25 @@ export class OrderManagementRiskComponent implements OnInit { */ reject() { console.log(this.sfView.value); + let idList: any[] = []; + if(this.selectedRows.length > 0) { + this.selectedRows.forEach(item => { + idList.push(item.id); + }); + } else { + idList.push(this.sfView.value.billCode) + } const parms = { - id: this.sfView.value.billCode, - representationsCause: this.sfView.value.representationsCause + ids: idList, + auditRemark: this.sfView.value.representationsCause, + representationsStatus: 4, }; this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => { console.log(res); if (res) { - this.service.msgSrv.success('审核通过!'); + this.service.msgSrv.success('审核拒绝成功!'); this.isVisibleRE = false; + this.st.reload() } else { this.service.msgSrv.error(res.msg); }