订单
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2021-12-07 10:18:18
|
||||
* @LastEditTime: 2021-12-07 10:44:55
|
||||
* @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
|
||||
@ -54,7 +54,7 @@
|
||||
</nz-card>
|
||||
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisibleView" [nzWidth]="600" [nzFooter]="nzModalFooterview" nzTitle="查看" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('1')">
|
||||
<nz-modal [(nzVisible)]="isVisibleView" [nzWidth]="600" [nzFooter]="nzModalFooterview" nzTitle="查看" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||
<ng-container *nzModalContent>
|
||||
<sv-container labelWidth="160" class="apply-sv">
|
||||
<sv label="身份证号" col="1">{{ infoData1?.enterpriseName }}</sv>
|
||||
@ -93,8 +93,9 @@
|
||||
</sv-container>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooterview>
|
||||
<button nz-button nzType="default" (click)="handleCancel('1')">驳回</button>
|
||||
<button nz-button nzType="primary" (click)="handleOK()">通过</button>
|
||||
<button *ngIf="!auditstatus" nz-button nzType="default" (click)="handleCancel()">驳回</button>
|
||||
<button *ngIf="!auditstatus" nz-button nzType="primary" (click)="handleOK()">通过</button>
|
||||
<button *ngIf="auditstatus" nz-button nzType="primary" (click)="handleCancel()">取消</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
|
||||
|
||||
@ -18,6 +18,7 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
uiView: SFUISchema = {};
|
||||
schema: SFSchema = {};
|
||||
auditMany = false;
|
||||
auditstatus = false;
|
||||
isVisibleView = false;
|
||||
isVisible = false;
|
||||
_$expand = false;
|
||||
@ -177,11 +178,11 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '审核',
|
||||
click: (_record) => this.viewEvaluate(_record),
|
||||
click: (_record) => this.viewAudit(_record),
|
||||
},
|
||||
{
|
||||
text: '查看详情',
|
||||
click: (_record) => this.viewEvaluate(_record),
|
||||
click: (_record) => this.viewDetail(_record),
|
||||
},
|
||||
],
|
||||
},
|
||||
@ -242,20 +243,9 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
|
||||
/*
|
||||
* 审核关闭弹窗
|
||||
view: 1
|
||||
浮动费用: 0
|
||||
查看评价: 3
|
||||
*/
|
||||
handleCancel(type: string) {
|
||||
console.log(type)
|
||||
if(type === '0') {
|
||||
this.isVisible = false
|
||||
} else if(type === '1') {
|
||||
console.log(type)
|
||||
handleCancel() {
|
||||
this.isVisibleView = false
|
||||
} else if(type === '2') {
|
||||
console.log(type)
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 审核通过按钮
|
||||
@ -276,8 +266,14 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
/**
|
||||
*查看评价
|
||||
*/
|
||||
viewEvaluate(item: any) {
|
||||
viewDetail(item: any) {
|
||||
console.log(item)
|
||||
this.auditstatus = true;
|
||||
this.isVisibleView = true
|
||||
}
|
||||
viewAudit(item: any) {
|
||||
console.log(item)
|
||||
this.auditstatus = false;
|
||||
this.isVisibleView = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user