车辆对接
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2022-01-10 13:40:12
|
||||
* @LastEditTime: 2022-01-12 10:50:31
|
||||
* @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
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
<nz-card>
|
||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" >
|
||||
<nz-tab *ngFor="let tab of tabs; let i = index" [nzTitle]="tab.name + ' (' + tab.count + ') '" (nzClick)="tabChange(i)">
|
||||
<nz-tab *ngFor="let tab of tabs; let i = index" [nzTitle]="tab.name" (nzClick)="tabChange(i)">
|
||||
</nz-tab>
|
||||
</nz-tabset>
|
||||
<div style="margin-top: 15px;">
|
||||
@ -58,38 +58,6 @@
|
||||
<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>
|
||||
<a (click)="editEnternalSn(item)">编辑</a>
|
||||
</ng-template> -->
|
||||
<ng-template st-row="enStatusStr27878" let-item let-index="index">
|
||||
<div class="mr-xs" nzPopoverTitle="Title" nz-popover [nzPopoverContent]="contentTemplate">{{item.no}}</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="feiong" let-item let-index="index">
|
||||
<div style="color: aqua;" >
|
||||
{{item.no}}
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #contentTemplate>
|
||||
<div>
|
||||
<p>预付:¥200.00</p>
|
||||
<p>到付:¥200.00</p>
|
||||
<p>油卡:¥200.00</p>
|
||||
<p>回单付:¥200.00</p>
|
||||
<p>小计:¥200.00</p>
|
||||
<p>附加费:¥200.00</p>
|
||||
</div>
|
||||
</ng-template>
|
||||
</st>
|
||||
</div>
|
||||
</nz-card>
|
||||
|
||||
@ -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