This commit is contained in:
wangshiming
2022-03-23 17:47:09 +08:00
parent a57933b42c
commit 4f4667705c
5 changed files with 32 additions and 10 deletions

View File

@ -22,6 +22,7 @@ export class OrderManagementRiskComponent implements OnInit {
schemaView: SFSchema = {};
auditMany = false;
auditId: any;
auditIdR: any;
isVisibleRE = false;
resourceStatus: any;
_$expand = false;
@ -336,6 +337,14 @@ export class OrderManagementRiskComponent implements OnInit {
widget: 'text'
}
},
id: {
title: '',
type: 'string',
default: this.auditIdR,
ui: {
hidden: true
}
},
representationsCause: {
title: '备注',
type: 'string',
@ -428,12 +437,13 @@ export class OrderManagementRiskComponent implements OnInit {
idList.push(item.id);
});
} else {
idList.push(this.sfView.value.billCode)
idList.push(this.sfView.value.id)
}
const parms = {
ids: idList,
auditRemark: this.sfView.value.representationsCause,
representationsStatus: 3,
auditStatus: 2,
};
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
if (res) {
@ -454,7 +464,7 @@ export class OrderManagementRiskComponent implements OnInit {
idList.push(item.id);
});
} else {
idList.push(this.sfView.value.billCode)
idList.push(this.sfView.value.id)
}
if (!this.sfView.value.representationsCause) {
this.service.msgSrv.error('拒绝原因为空!');
@ -464,6 +474,7 @@ export class OrderManagementRiskComponent implements OnInit {
ids: idList,
auditRemark: this.sfView.value.representationsCause,
representationsStatus: 4,
auditStatus: 3,
};
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
if (res) {
@ -480,6 +491,7 @@ export class OrderManagementRiskComponent implements OnInit {
audit(item?: any) {
if (item) {
this.auditId = item.billCode;
this.auditIdR = item.id;
this.initSTAudit(1);
this.isVisibleRE = true;
} else {