车辆对接
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2021-12-07 14:42:43
|
||||
* @LastEditTime: 2022-01-04 20:50:04
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||
@ -43,13 +43,30 @@
|
||||
</nz-tab>
|
||||
</nz-tabset>
|
||||
<div style="margin-top: 15px;">
|
||||
<!-- [req]="{ method: 'GET', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loadingDelay]="500" [loading]="service.http.loading" -->
|
||||
<st #st [scroll]="{ x: '1200px' }" [data]="service.$api_get_catalogue_member" [columns]="columns">
|
||||
<ng-template st-row="goodsId" let-item let-index="index">
|
||||
<a [routerLink]="'/order-management/vehicle-detail/'+item.id">{{item.no}}</a>
|
||||
<st
|
||||
#st
|
||||
[bordered]="true"
|
||||
[scroll]="{ x: '2000px' }"
|
||||
[data]="service.$api_get_operate_listPage"
|
||||
[columns]="columns"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loadingDelay]="500"
|
||||
[loading]="service.http.loading"
|
||||
>
|
||||
<ng-template st-row="complaintCode" let-item let-index="index">
|
||||
<a [routerLink]="'/order-management/complaint-detail/'+item.id">{{item.complaintCode}}</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="complainant" let-item let-index="index">
|
||||
<div>
|
||||
{{item?.complainant?.name}}
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="complainant" let-item let-index="index">
|
||||
<div>
|
||||
{{item?.complainant?.name}}
|
||||
</div>
|
||||
</ng-template>
|
||||
<!-- <ng-template st-row="externalSn" let-item let-index="index">
|
||||
<span class="mr-xs">{{111111}}</span>
|
||||
@ -83,8 +100,9 @@
|
||||
</sf>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooterview2>
|
||||
<button nz-button nzType="default" (click)="handleCancel('1')">取消</button>
|
||||
<button nz-button nzType="primary" (click)="handleOK()">确定</button>
|
||||
<button nz-button nzType="default" (click)="handleCancel('1')">拒绝</button>
|
||||
<button nz-button nzType="primary" (click)="handleOK()">通过</button>
|
||||
<button nz-button nzType="primary" (click)="handleCancel2()">强制取消</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
|
||||
|
||||
@ -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