订单
This commit is contained in:
@ -1,12 +1,14 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2021-12-07 10:44:55
|
||||
* @LastEditTime: 2021-12-07 11:12:19
|
||||
* @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
|
||||
-->
|
||||
<!-- 搜索表单 -->
|
||||
<page-header-wrapper [title]="''" >
|
||||
</page-header-wrapper>
|
||||
<nz-card>
|
||||
<div nz-row nzGutter="8">
|
||||
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
||||
@ -54,7 +56,7 @@
|
||||
</nz-card>
|
||||
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisibleView" [nzWidth]="600" [nzFooter]="nzModalFooterview" nzTitle="查看" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||
<nz-modal [(nzVisible)]="isVisibleView" [nzWidth]="600" [nzFooter]="nzModalFooterview" nzTitle="查看" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('0')">
|
||||
<ng-container *nzModalContent>
|
||||
<sv-container labelWidth="160" class="apply-sv">
|
||||
<sv label="身份证号" col="1">{{ infoData1?.enterpriseName }}</sv>
|
||||
@ -93,9 +95,20 @@
|
||||
</sv-container>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooterview>
|
||||
<button *ngIf="!auditstatus" nz-button nzType="default" (click)="handleCancel()">驳回</button>
|
||||
<button *ngIf="!auditstatus" nz-button nzType="default" (click)="Reject()">驳回</button>
|
||||
<button *ngIf="!auditstatus" nz-button nzType="primary" (click)="handleOK()">通过</button>
|
||||
<button *ngIf="auditstatus" nz-button nzType="primary" (click)="handleCancel()">取消</button>
|
||||
<button *ngIf="auditstatus" nz-button nzType="primary" (click)="handleCancel('0')">取消</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisibleRE" [nzWidth]="600" [nzFooter]="nzModalFooterview2" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('1')">
|
||||
<ng-container *nzModalContent>
|
||||
<sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'">
|
||||
</sf>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooterview2>
|
||||
<button nz-button nzType="default" (click)="handleCancel('1')">取消</button>
|
||||
<button nz-button nzType="primary" (click)="handleOK()">确定</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
|
||||
|
||||
@ -17,14 +17,16 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
ui: SFUISchema = {};
|
||||
uiView: SFUISchema = {};
|
||||
schema: SFSchema = {};
|
||||
schemaView: SFSchema = {};
|
||||
auditMany = false;
|
||||
auditstatus = false;
|
||||
isVisibleView = false;
|
||||
isVisible = false;
|
||||
isVisibleRE = false;
|
||||
_$expand = false;
|
||||
infoData1: any;
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
|
||||
columns: STColumn[] = [];
|
||||
demoValue: any;
|
||||
datass: any = [
|
||||
@ -78,6 +80,7 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
ngOnInit(): void {
|
||||
this.initSF();
|
||||
this.initST();
|
||||
this.initSFReject();
|
||||
}
|
||||
|
||||
|
||||
@ -104,6 +107,23 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
};
|
||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||
}
|
||||
initSFReject() {
|
||||
this.schemaView = {
|
||||
properties: {
|
||||
roleDescription: {
|
||||
title: '驳回原因',
|
||||
type: 'string',
|
||||
maxLength: 50,
|
||||
ui: {
|
||||
placeholder: '请输入驳回原因,最多不超过50字',
|
||||
widget: 'textarea',
|
||||
autosize: { minRows: 2, maxRows: 6 }
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
this.uiView = { '*': { spanLabelFixed: 110, grid: { span: 12 } } };
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化数据列表
|
||||
@ -244,24 +264,18 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
/*
|
||||
* 审核关闭弹窗
|
||||
*/
|
||||
handleCancel() {
|
||||
handleCancel(item: string) {
|
||||
if(item === '0') {
|
||||
this.isVisibleView = false
|
||||
} else{
|
||||
this.isVisibleRE = false
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 审核通过按钮
|
||||
*/
|
||||
handleOK() {
|
||||
|
||||
}
|
||||
OpenPrice() {
|
||||
this.isVisible = true
|
||||
}
|
||||
/**
|
||||
* 浮动费用查看
|
||||
*/
|
||||
FloatView(item: any) {
|
||||
console.log(item)
|
||||
this.isVisibleView = true
|
||||
}
|
||||
/**
|
||||
*查看评价
|
||||
@ -276,4 +290,10 @@ export class OrderManagementDriverManageComponent implements OnInit {
|
||||
this.auditstatus = false;
|
||||
this.isVisibleView = true
|
||||
}
|
||||
/**
|
||||
*驳回
|
||||
*/
|
||||
Reject() {
|
||||
this.isVisibleRE = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user