From 3337204d01c9568f60735ecc905f82d20c000647 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 22 Dec 2021 11:13:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/risk/risk.component.ts | 35 ++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) 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); }