fix bug
This commit is contained in:
@ -24,7 +24,7 @@ export class OrderManagementRiskDetailComponent implements OnInit {
|
||||
// '运单轨迹严重异常'
|
||||
// ]
|
||||
i: any;
|
||||
datailList: any;
|
||||
logList: any = [];
|
||||
id: string = '';
|
||||
constructor(private modal: NzModalService, public service: OrderManagementService, public ar: ActivatedRoute) {
|
||||
this.id = this.ar.snapshot.params.id;
|
||||
@ -41,7 +41,7 @@ export class OrderManagementRiskDetailComponent implements OnInit {
|
||||
initSF() {
|
||||
this.schema = {
|
||||
properties: {
|
||||
representationsCause: {
|
||||
representationsCauseLabel: {
|
||||
title: '申诉原因',
|
||||
type: 'string',
|
||||
maxLength: 30,
|
||||
@ -65,7 +65,7 @@ export class OrderManagementRiskDetailComponent implements OnInit {
|
||||
readOnly: true
|
||||
|
||||
} as SFTextareaWidgetSchema,
|
||||
enterpriseQualificationCe: {
|
||||
uploadVanchor: {
|
||||
type: 'string',
|
||||
title: '上传凭证',
|
||||
ui: {
|
||||
@ -96,13 +96,39 @@ export class OrderManagementRiskDetailComponent implements OnInit {
|
||||
},
|
||||
};
|
||||
}
|
||||
getDetail(id: string) {
|
||||
this.service.request(this.service.$api_get_getRiskDetail, { id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.datailList = res;
|
||||
}
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取详情
|
||||
* @param id
|
||||
*/
|
||||
getDetail(id: string) {
|
||||
this.service.request(this.service.$api_get_getRiskDetail, { id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.i = Object.assign({}, res);
|
||||
console.log(this.i);
|
||||
let list: any = [];
|
||||
this.i.fileArr.map((item: any, index: number) => {
|
||||
const obj = {
|
||||
uid: index,
|
||||
name: '文件' + (index + 1),
|
||||
status: 'done',
|
||||
url: item,
|
||||
};
|
||||
list.push(obj);
|
||||
});
|
||||
this.i.uploadVanchor = list;
|
||||
this.initSF();
|
||||
this.getLog(this.i?.billCode);
|
||||
}
|
||||
})
|
||||
}
|
||||
// getDetail(id: string) {
|
||||
|
||||
// this.service.request(this.service.$api_get_getRiskDetail, { id }).subscribe(res => {
|
||||
// if (res) {
|
||||
// this.i = res;
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
edit(item: any): void {
|
||||
const modalRef = this.modal.create({
|
||||
@ -123,5 +149,12 @@ export class OrderManagementRiskDetailComponent implements OnInit {
|
||||
goBack() {
|
||||
window.history.go(-1)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取操作日志
|
||||
*/
|
||||
getLog(operateObject: any) {
|
||||
this.service.request(this.service.$api_get_risk_order_log, { operateObject, operateType: '8', size: 100 }).subscribe(res => {
|
||||
this.logList = res?.records;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user