Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		| @ -397,18 +397,27 @@ export class OrderManagementRiskComponent implements OnInit { | |||||||
|    * 审核通过按钮 |    * 审核通过按钮 | ||||||
|    */ |    */ | ||||||
|   handleOK() { |   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 = { |     const parms = { | ||||||
|       id: this.sfView.value.billCode, |       ids: idList, | ||||||
|       representationsCause: this.sfView.value.representationsCause |       auditRemark: this.sfView.value.representationsCause, | ||||||
|  |       representationsStatus: 3, | ||||||
|     }; |     }; | ||||||
|     this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => { |     this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => { | ||||||
|       console.log(res); |       console.log(res); | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.service.msgSrv.success('审核通过!'); |         this.service.msgSrv.success('审核通过成功!'); | ||||||
|         this.isVisibleRE = false; |         this.isVisibleRE = false; | ||||||
|  |         this.st.reload() | ||||||
|       } else { |       } else { | ||||||
|         this.service.msgSrv.error(res.msg); |         // this.service.msgSrv.error(res.msg); | ||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
| @ -417,15 +426,25 @@ export class OrderManagementRiskComponent implements OnInit { | |||||||
|    */ |    */ | ||||||
|   reject() { |   reject() { | ||||||
|     console.log(this.sfView.value); |     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 = { |     const parms = { | ||||||
|       id: this.sfView.value.billCode, |       ids: idList, | ||||||
|       representationsCause: this.sfView.value.representationsCause |       auditRemark: this.sfView.value.representationsCause, | ||||||
|  |       representationsStatus: 4, | ||||||
|     }; |     }; | ||||||
|     this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => { |     this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => { | ||||||
|       console.log(res); |       console.log(res); | ||||||
|       if (res) { |       if (res) { | ||||||
|         this.service.msgSrv.success('审核通过!'); |         this.service.msgSrv.success('审核拒绝成功!'); | ||||||
|         this.isVisibleRE = false; |         this.isVisibleRE = false; | ||||||
|  |         this.st.reload() | ||||||
|       } else { |       } else { | ||||||
|         this.service.msgSrv.error(res.msg); |         this.service.msgSrv.error(res.msg); | ||||||
|       } |       } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user