车辆对接
This commit is contained in:
@ -13,7 +13,6 @@ import { OrderManagementService } from '../../services/order-management.service'
|
||||
styleUrls: ['./complaint.component.less']
|
||||
})
|
||||
export class OrderManagementComplaintComponent implements OnInit {
|
||||
url = `/user?_allow_anonymous=true`;
|
||||
ui: SFUISchema = {};
|
||||
uiView: SFUISchema = {};
|
||||
schema: SFSchema = {};
|
||||
@ -21,6 +20,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
auditMany = false;
|
||||
isVisibleRE = false;
|
||||
_$expand = false;
|
||||
channelId: any;
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
|
||||
@ -87,7 +87,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
initSF() {
|
||||
this.schema = {
|
||||
properties: {
|
||||
no: {
|
||||
complaintCode: {
|
||||
type: 'string',
|
||||
title: '投诉单号',
|
||||
},
|
||||
@ -114,44 +114,50 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
title: '投诉单号',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
render: 'goodsId'
|
||||
render: 'complaintCode'
|
||||
},
|
||||
{
|
||||
title: '运单号',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
render: 'goodsId'
|
||||
index: 'wayBillCode'
|
||||
},
|
||||
{
|
||||
title: '投诉时间',
|
||||
width: '100px',
|
||||
index: 'complainantTime',
|
||||
className: 'text-center',
|
||||
},
|
||||
{ title: '托运方', index: 'externalSn', width: '120px', className: 'text-center' },
|
||||
{ title: '司机', index: 'linkUrl', width: '120px', className: 'text-center' },
|
||||
{ title: '托运方', index: 'shipperAppUserId', width: '120px', className: 'text-center' },
|
||||
{ title: '司机', index: 'driverId', width: '120px', className: 'text-center' },
|
||||
{
|
||||
title: '投诉原因',
|
||||
className: 'text-center',
|
||||
width: '120px',
|
||||
index: 'complaintCauseLabel'
|
||||
},
|
||||
{
|
||||
title: '投诉状态',
|
||||
className: 'text-center',
|
||||
width: '120px',
|
||||
index: 'complaintStatusLabel'
|
||||
}, {
|
||||
title: '处理结果',
|
||||
className: 'text-center',
|
||||
width: '120px',
|
||||
index:'handleResult'
|
||||
},
|
||||
{
|
||||
title: '投诉方',
|
||||
className: 'text-center',
|
||||
width: '120px',
|
||||
index: 'complainantPartyLabel'
|
||||
},
|
||||
{
|
||||
title: '投诉人',
|
||||
className: 'text-center',
|
||||
width: '120px',
|
||||
render: 'complainant'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
@ -174,7 +180,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
initSTAudit() {
|
||||
this.schemaView = {
|
||||
properties: {
|
||||
roleDescription: {
|
||||
handleResult: {
|
||||
title: '处理结果',
|
||||
type: 'string',
|
||||
maxLength: 50,
|
||||
@ -185,6 +191,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
},
|
||||
},
|
||||
},
|
||||
required: ['handleResult']
|
||||
};
|
||||
this.uiView = { '*': { spanLabelFixed: 110, grid: { span: 24 } } };
|
||||
}
|
||||
@ -247,19 +254,61 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
查看评价: 3
|
||||
*/
|
||||
handleCancel(type: string) {
|
||||
console.log(type)
|
||||
const paramsa = {
|
||||
...this.sfView.value,
|
||||
handleStatus: 0,
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
} else{
|
||||
this.service.msgSrv.error(res?.msg)
|
||||
}
|
||||
})
|
||||
this.isVisibleRE = false
|
||||
}
|
||||
handleCancel2() {
|
||||
const paramsa = {
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_canelComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
} else{
|
||||
this.service.msgSrv.error(res?.msg)
|
||||
}
|
||||
})
|
||||
this.isVisibleRE = false
|
||||
}
|
||||
/**
|
||||
* 审核通过按钮
|
||||
*/
|
||||
handleOK() {
|
||||
|
||||
const paramsa = {
|
||||
...this.sfView.value,
|
||||
handleStatus: 1,
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已通过!')
|
||||
this.isVisibleRE = false
|
||||
} else{
|
||||
this.service.msgSrv.error(res?.msg)
|
||||
}
|
||||
})
|
||||
}
|
||||
/**
|
||||
*查看评价
|
||||
*/
|
||||
viewEvaluate(item: any) {
|
||||
this.isVisibleRE = true
|
||||
this.channelId = item.id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user