车辆对接

This commit is contained in:
wangshiming
2021-12-22 11:13:34 +08:00
parent ad0abccf0f
commit 3337204d01

View File

@ -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);
}