车辆对接
This commit is contained in:
@ -22,6 +22,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
isVisibleRE = false;
|
||||
_$expand = false;
|
||||
channelId: any;
|
||||
resourceStatus: any;
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
|
||||
@ -42,23 +43,19 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
];
|
||||
tabs = [ {
|
||||
name: '全部',
|
||||
type: 5,
|
||||
count: 0,
|
||||
type: 0,
|
||||
},
|
||||
{
|
||||
name: '待处理',
|
||||
type: 5,
|
||||
count: 0,
|
||||
type: 1,
|
||||
},
|
||||
{
|
||||
name: '已处理',
|
||||
type: 5,
|
||||
count: 0,
|
||||
type: 2,
|
||||
},
|
||||
{
|
||||
name: '已撤销',
|
||||
type: 5,
|
||||
count: 0,
|
||||
type: 3,
|
||||
}
|
||||
];
|
||||
constructor(
|
||||
@ -71,7 +68,12 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
const a:any = {};
|
||||
if(this.resourceStatus) {
|
||||
a.complaintStatus = this.resourceStatus
|
||||
}
|
||||
return {
|
||||
...a,
|
||||
...this.sf?.value,
|
||||
};
|
||||
}
|
||||
@ -162,7 +164,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
title: '投诉人',
|
||||
className: 'text-center',
|
||||
width: '120px',
|
||||
render: 'complainant'
|
||||
index: 'complainantName'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
@ -173,6 +175,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
{
|
||||
text: '处理',
|
||||
click: (_record) => this.viewEvaluate(_record),
|
||||
iif: (item) => item.complaintStatus == 1
|
||||
},
|
||||
{
|
||||
text: '查看',
|
||||
@ -241,6 +244,11 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
this.st.load();
|
||||
}, 500);
|
||||
}
|
||||
/**
|
||||
* 导入货源
|
||||
@ -269,6 +277,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
this.st.reload(1)
|
||||
} else{
|
||||
this.service.msgSrv.error(res?.msg)
|
||||
}
|
||||
@ -287,6 +296,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
this.st.reload(1)
|
||||
} else{
|
||||
this.service.msgSrv.error(res?.msg)
|
||||
}
|
||||
@ -307,6 +317,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已通过!')
|
||||
this.isVisibleRE = false
|
||||
this.st.reload(1)
|
||||
} else{
|
||||
this.service.msgSrv.error(res?.msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user