Merge branch 'develop'
This commit is contained in:
		| @ -468,8 +468,10 @@ export class DatatableFundReportingComponent implements OnInit { | |||||||
|   routeToOrder(item: any) { |   routeToOrder(item: any) { | ||||||
|     if (item.orderType === '1') { |     if (item.orderType === '1') { | ||||||
|       window.open(location.origin + `/#/order-management/vehicle/vehicle-detail/${item.orderId}`); |       window.open(location.origin + `/#/order-management/vehicle/vehicle-detail/${item.orderId}`); | ||||||
|     } else { |     } else if (item.orderType === '2') { | ||||||
|       window.open(location.origin + `/#/order-management/bulk/bulk-detail/${item.orderId}`); |       window.open(location.origin + `/#/order-management/bulk/bulk-detail/${item.orderId}`); | ||||||
|  |     } else if (item.orderType === '3'){ | ||||||
|  |       this.router.navigate(['/order-management/vehicle/vehicle-detail/' + item.orderId]); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @ -477,9 +479,11 @@ export class DatatableFundReportingComponent implements OnInit { | |||||||
|     if (item.orderType === '1') { |     if (item.orderType === '1') { | ||||||
|       window.open(location.origin + `/#/waybill-management/vehicle/vehicle-detail/${item.wayBillId}`); |       window.open(location.origin + `/#/waybill-management/vehicle/vehicle-detail/${item.wayBillId}`); | ||||||
|  |  | ||||||
|     } else { |     } else if (item.orderType === '2') { | ||||||
|       window.open(location.origin + `/#/waybill-management/bulk/bulk-detail/${item.wayBillId}`); |       window.open(location.origin + `/#/waybill-management/bulk/bulk-detail/${item.wayBillId}`); | ||||||
|  |  | ||||||
|  |     } else if (item.orderType === '3') { | ||||||
|  |       window.open(location.origin + `/#/waybill-management/vehicle/vehicle-detail/${item.wayBillId}`); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | |||||||
| @ -599,8 +599,10 @@ export class DatatableOrderReportingComponent implements OnInit { | |||||||
|   routeToOrder(item: any) { |   routeToOrder(item: any) { | ||||||
|     if (item.billType === '1') { |     if (item.billType === '1') { | ||||||
|       window.open(location.origin + `/#/order-management/vehicle/vehicle-detail/${item.orderId}`); |       window.open(location.origin + `/#/order-management/vehicle/vehicle-detail/${item.orderId}`); | ||||||
|     } else { |     } else  if (item.billType === '2') { | ||||||
|       window.open(location.origin + `/#/order-management/bulk/bulk-detail/${item.orderId}`); |       window.open(location.origin + `/#/order-management/bulk/bulk-detail/${item.orderId}`); | ||||||
|  |     } else  if (item.billType === '3') { | ||||||
|  |       window.open(location.origin + `/#/order-management/vehicle/vehicle-detail/${item.orderId}`); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @ -608,8 +610,10 @@ export class DatatableOrderReportingComponent implements OnInit { | |||||||
|     if (item.billType === '1') { |     if (item.billType === '1') { | ||||||
|       window.open(location.origin + `/#/waybill-management/vehicle/vehicle-detail/${item.waybillId}`); |       window.open(location.origin + `/#/waybill-management/vehicle/vehicle-detail/${item.waybillId}`); | ||||||
|  |  | ||||||
|     } else { |     } else if (item.billType === '2') { | ||||||
|       window.open(location.origin + `/#/waybill-management/bulk/bulk-detail/${item.waybillId}`); |       window.open(location.origin + `/#/waybill-management/bulk/bulk-detail/${item.waybillId}`); | ||||||
|  |     } else if (item.billType === '3') { | ||||||
|  |       window.open(location.origin + `/#/waybill-management/vehicle/vehicle-detail/${item.waybillId}`); | ||||||
|  |  | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -236,7 +236,7 @@ export class WithdrawalsDetailComponent implements OnInit { | |||||||
|         width: 140 |         width: 140 | ||||||
|       }, |       }, | ||||||
|       { title: '运费明细', render: 'amountDetails', className: 'text-right', width: 150 }, |       { title: '运费明细', render: 'amountDetails', className: 'text-right', width: 150 }, | ||||||
|       { title: '货主', index: 'ltdName', className: 'text-left', width: 200 }, |       { title: '货主', index: 'enterpriseInfoName', className: 'text-left', width: 200 }, | ||||||
|       { title: '订单号', render: 'billId', width: 200 }, |       { title: '订单号', render: 'billId', width: 200 }, | ||||||
|       { title: '运单号', render: 'wayBillId', width: 200 }, |       { title: '运单号', render: 'wayBillId', width: 200 }, | ||||||
|       { title: '货源编号', index: 'resourceCode', width: 200 }, |       { title: '货源编号', index: 'resourceCode', width: 200 }, | ||||||
|  | |||||||
| @ -281,10 +281,13 @@ export class PartnerListComponent { | |||||||
|         approvalStatus: { |         approvalStatus: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '认证审核状态', |           title: '认证审核状态', | ||||||
|  |           enum: [ | ||||||
|  |             { value: '', label: '全部' }, | ||||||
|  |             { value: 1, label: '企业' }, | ||||||
|  |             { value: 2, label: '个人' } | ||||||
|  |           ], | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'dict-select', |             widget: 'select', | ||||||
|             containsAllLabel: true, |  | ||||||
|             params: { dictKey: 'pay:mode' }, |  | ||||||
|             placeholder: '请选择', |             placeholder: '请选择', | ||||||
|             visibleIf: { |             visibleIf: { | ||||||
|               expand: (value: boolean) => value |               expand: (value: boolean) => value | ||||||
| @ -350,7 +353,7 @@ export class PartnerListComponent { | |||||||
|           title: '合伙人状态', |           title: '合伙人状态', | ||||||
|           enum: [ |           enum: [ | ||||||
|             { value: '', label: '全部' }, |             { value: '', label: '全部' }, | ||||||
|             { value: 0, label: '启用' }, |             { value: 0, label: '正常' }, | ||||||
|             { value: 1, label: '冻结' } |             { value: 1, label: '冻结' } | ||||||
|           ], |           ], | ||||||
|           ui: { |           ui: { | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ | |||||||
|  * @Author       : Shiming |  * @Author       : Shiming | ||||||
|  * @Date         : 2022-02-24 20:09:49 |  * @Date         : 2022-02-24 20:09:49 | ||||||
|  * @LastEditors  : Shiming |  * @LastEditors  : Shiming | ||||||
|  * @LastEditTime : 2022-04-27 15:03:23 |  * @LastEditTime : 2022-05-05 17:04:31 | ||||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.html |  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\rebate-setting\\add\\add.component.html | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||||
| --> | --> | ||||||
| @ -74,13 +74,14 @@ | |||||||
|     </sv> |     </sv> | ||||||
|  |  | ||||||
|     <sv label="优先级" col="1"> |     <sv label="优先级" col="1"> | ||||||
|       <nz-select [(ngModel)]="priority" [disabled]="hiden" style="max-width: 400px; min-width: 200px; margin-left: 28px"> |       <!-- <nz-select [(ngModel)]="priority" [disabled]="hiden" style="max-width: 400px; min-width: 200px; margin-left: 28px"> | ||||||
|         <nz-option nzValue="1" nzLabel="1">1</nz-option> |         <nz-option nzValue="1" nzLabel="1">1</nz-option> | ||||||
|         <nz-option nzValue="2" nzLabel="2">2</nz-option> |         <nz-option nzValue="2" nzLabel="2">2</nz-option> | ||||||
|         <nz-option nzValue="3" nzLabel="3">3</nz-option> |         <nz-option nzValue="3" nzLabel="3">3</nz-option> | ||||||
|         <nz-option nzValue="4" nzLabel="4">4</nz-option> |         <nz-option nzValue="4" nzLabel="4">4</nz-option> | ||||||
|         <nz-option nzValue="5" nzLabel="5">5</nz-option> |         <nz-option nzValue="5" nzLabel="5">5</nz-option> | ||||||
|       </nz-select> |       </nz-select> --> | ||||||
|  |       <nz-input-number style="max-width: 400px; min-width: 200px; margin-left: 28px" [(ngModel)]="priority" [nzMin]="0" [nzMax]="9999" [nzStep]="1"></nz-input-number> | ||||||
|     </sv> |     </sv> | ||||||
|  |  | ||||||
|     <sv label="规则说明" col="1"> |     <sv label="规则说明" col="1"> | ||||||
|  | |||||||
| @ -124,17 +124,20 @@ export class AnnouncementMessageComponent implements OnInit { | |||||||
|   initSFFre() { |   initSFFre() { | ||||||
|   this.addSchema = { |   this.addSchema = { | ||||||
|     properties: { |     properties: { | ||||||
|       appIdList: { |       receiverType: { | ||||||
|         type: 'string', |         type: 'string', | ||||||
|         title: '发布平台', |         title: '发布平台', | ||||||
|         enum: [ |         enum: [ | ||||||
|           { label: '运营后台', value: this.envSrv.env.appId }, |           // { label: '运营后台', value: this.envSrv.env.appId }, | ||||||
|           // { label: '货主后台', value: this.envSrv.env.HzappId }, |           // { label: '货主后台', value: this.envSrv.env.HzappId }, | ||||||
|           // { label: '司机端', value: this.envSrv.env.sjappId } |           // { label: '司机端', value: this.envSrv.env.sjappId } | ||||||
|  |           { label: '全平台', value: 0}, | ||||||
|  |           { label: '运营后台', value: 3}, | ||||||
|  |           { label: '货主后台', value: 2 }, | ||||||
|  |           { label: '司机端', value: 1 }, | ||||||
|         ], |         ], | ||||||
|         ui: { |         ui: { | ||||||
|           widget: 'select', |           widget: 'select', | ||||||
|           mode: 'multiple', |  | ||||||
|           errors: { required: '请选择' }, |           errors: { required: '请选择' }, | ||||||
|           placeholder: '请选择' |           placeholder: '请选择' | ||||||
|         } |         } | ||||||
| @ -229,7 +232,7 @@ this.ui2 = { '*': { spanLabelFixed: 120, grid: { span: 24 } } }; | |||||||
|     const params ={ |     const params ={ | ||||||
|       ...this.sfFre.value |       ...this.sfFre.value | ||||||
|     } |     } | ||||||
|     if(this.editId) { |     if(this.edit) { | ||||||
|       params.id = this.editId |       params.id = this.editId | ||||||
|       console.log(params) |       console.log(params) | ||||||
|       this.service.request(this.service.$api_modifyAnnouncementInfo, params).subscribe((res:any) => { |       this.service.request(this.service.$api_modifyAnnouncementInfo, params).subscribe((res:any) => { | ||||||
|  | |||||||
| @ -16,8 +16,8 @@ | |||||||
|               <nz-badge nzStatus="warning" nzText="冻结" *ngIf="userDetail?.stateLocked" class="ml-xs"></nz-badge> |               <nz-badge nzStatus="warning" nzText="冻结" *ngIf="userDetail?.stateLocked" class="ml-xs"></nz-badge> | ||||||
|             </p> |             </p> | ||||||
|             <div style="margin-right: 24px;"> |             <div style="margin-right: 24px;"> | ||||||
|               <button *ngIf="userDetail?.stateLocked" [disabled]="false" nz-button nzType="primary" |               <button *ngIf="userDetail?.stateLocked" [disabled]="false" nz-button nzType="primary" nzGhost | ||||||
|                 nzGhost (click)="userAction(1)" acl [acl-ability]="['USERCENTER-DRIVER-LIST-DETAIL-lock']"> |                 (click)="userAction(1)" acl [acl-ability]="['USERCENTER-DRIVER-LIST-DETAIL-lock']"> | ||||||
|                 启用 |                 启用 | ||||||
|               </button> |               </button> | ||||||
|               <button *ngIf="!userDetail?.stateLocked" [disabled]="false" nz-button nzDanger nzGhost |               <button *ngIf="!userDetail?.stateLocked" [disabled]="false" nz-button nzDanger nzGhost | ||||||
| @ -193,8 +193,13 @@ | |||||||
|           [nzSuffixIcon]="isEditDriver?'calendar':''"></nz-date-picker> |           [nzSuffixIcon]="isEditDriver?'calendar':''"></nz-date-picker> | ||||||
|       </sv> --> |       </sv> --> | ||||||
|       <sv label="驾驶证签发机关" col="2"> |       <sv label="驾驶证签发机关" col="2"> | ||||||
|  |         <ng-container *ngIf="isEditDriver; else signingOrganizationTemplate"> | ||||||
|           <input nz-input type="text" [(ngModel)]="driverDetail.signingOrganization" [readonly]="!isEditDriver" |           <input nz-input type="text" [(ngModel)]="driverDetail.signingOrganization" [readonly]="!isEditDriver" | ||||||
|             [nzBorderless]="!isEditDriver" [placeholder]="isEditDriver?'':'-'"> |             [nzBorderless]="!isEditDriver" [placeholder]="isEditDriver?'':'-'"> | ||||||
|  |         </ng-container> | ||||||
|  |         <ng-template #signingOrganizationTemplate> | ||||||
|  |           {{driverDetail.signingOrganization}} | ||||||
|  |         </ng-template> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="驾驶证照片" col="1"> |       <sv label="驾驶证照片" col="1"> | ||||||
|         <ng-container |         <ng-container | ||||||
| @ -334,7 +339,8 @@ | |||||||
|         {{ userIdentityDetail?.name }} |         {{ userIdentityDetail?.name }} | ||||||
|       </se> |       </se> | ||||||
|       <se [col]="1" label="备注" required> |       <se [col]="1" label="备注" required> | ||||||
|         <textarea nz-input rows="3" style="width: 325px;margin-left: 14px;" maxlength="120" [(ngModel)]="approvalOpinion" placeholder="请输入驳回原因"></textarea> |         <textarea nz-input rows="3" style="width: 325px;margin-left: 14px;" maxlength="120" | ||||||
|  |           [(ngModel)]="approvalOpinion" placeholder="请输入驳回原因"></textarea> | ||||||
|       </se> |       </se> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
| @ -350,7 +356,8 @@ | |||||||
|         {{ licenseDetail?.licenseNo }} |         {{ licenseDetail?.licenseNo }} | ||||||
|       </se> |       </se> | ||||||
|       <se [col]="1" label="备注" required> |       <se [col]="1" label="备注" required> | ||||||
|         <textarea nz-input rows="3" style="width: 325px;margin-left: 14px;" maxlength="120" [(ngModel)]="approvalOpinion"></textarea> |         <textarea nz-input rows="3" style="width: 325px;margin-left: 14px;" maxlength="120" | ||||||
|  |           [(ngModel)]="approvalOpinion"></textarea> | ||||||
|       </se> |       </se> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
|  | |||||||
| @ -1,14 +1,4 @@ | |||||||
| <!-- | <!-- <page-header-wrapper [title]="'企业审核列表'" [content]="content"> | ||||||
|  * @Description  :  |  | ||||||
|  * @Version      : 1.0 |  | ||||||
|  * @Author       : Shiming |  | ||||||
|  * @Date         : 2022-01-12 10:52:50 |  | ||||||
|  * @LastEditors  : Shiming |  | ||||||
|  * @LastEditTime : 2022-02-15 13:35:46 |  | ||||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\usercenter\\components\\freight\\enterprise-audit\\enterprise-audit.component.html |  | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  | ||||||
| --> |  | ||||||
| <page-header-wrapper [title]="'企业审核列表'" [content]="content"> |  | ||||||
|   <ng-template #content> |   <ng-template #content> | ||||||
|     <nz-tabset class="tabs-wrap"> |     <nz-tabset class="tabs-wrap"> | ||||||
|       <nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="changeTab(tab)"> </nz-tab> |       <nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="changeTab(tab)"> </nz-tab> | ||||||
| @ -16,7 +6,6 @@ | |||||||
|   </ng-template> |   </ng-template> | ||||||
| </page-header-wrapper> | </page-header-wrapper> | ||||||
| <nz-card class="mb-md"> | <nz-card class="mb-md"> | ||||||
|   <!-- 搜索表单 --> |  | ||||||
|   <div nz-row nzGutter="8"> |   <div nz-row nzGutter="8"> | ||||||
|     <div nz-col [nzXl]="_$expand ? 24 : 16" [nzLg]="24" [nzSm]="24" [nzXs]="24"> |     <div nz-col [nzXl]="_$expand ? 24 : 16" [nzLg]="24" [nzSm]="24" [nzXs]="24"> | ||||||
|       <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> |       <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> | ||||||
| @ -25,8 +14,8 @@ | |||||||
|       [class.expend-options]="_$expand"> |       [class.expend-options]="_$expand"> | ||||||
|       <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl |       <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl | ||||||
|         [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-list']">查询</button> |         [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-list']">查询</button> | ||||||
|       <button *ngIf="tabType == 1" nz-button nzType="primary" [disabled]="false" (click)="exportList()" |       <button *ngIf="tabType == 1" nz-button nzType="primary" [disabled]="false" (click)="exportList()" acl | ||||||
|         acl [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-export']">导出</button> |         [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-export']">导出</button> | ||||||
|       <button nz-button (click)="resetSF()" [disabled]="false">重置</button> |       <button nz-button (click)="resetSF()" [disabled]="false">重置</button> | ||||||
|       <button nz-button nzType="link" (click)="expandToggle(!_$expand)"> |       <button nz-button nzType="link" (click)="expandToggle(!_$expand)"> | ||||||
|         {{ !_$expand ? '展开' : '收起' }} |         {{ !_$expand ? '展开' : '收起' }} | ||||||
| @ -34,12 +23,27 @@ | |||||||
|       </button> |       </button> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
| </nz-card> | </nz-card> --> | ||||||
|  |  | ||||||
| <nz-card> | <nz-card class="table-box"> | ||||||
|  |   <div class="tab_header"> | ||||||
|  |     <label class="page_title"><label class="driver">|</label>货主员工列表</label> | ||||||
|  |     <nz-tabset [nzTabBarExtraContent]="extraTemplate"> | ||||||
|  |       <nz-tab *ngFor="let tab of tabs" [nzTitle]="tab.name" (nzSelect)="changeTab(tab)"> </nz-tab> | ||||||
|  |     </nz-tabset> | ||||||
|  |   </div> | ||||||
|  |  | ||||||
|  |   <ng-template #extraTemplate> | ||||||
|  |     <div class="mr-sm"> | ||||||
|  |       <button nz-button nzDanger [nzLoading]="service.http.loading" acl | ||||||
|  |         [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-list']" (click)="openDrawer()">筛选</button> | ||||||
|  |       <button *ngIf="tabType == 1" nz-button nzDanger (click)="exportList()" acl | ||||||
|  |         [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-export']"> 导出</button> | ||||||
|  |     </div> | ||||||
|  |   </ng-template> | ||||||
|   <!-- 数据列表 --> |   <!-- 数据列表 --> | ||||||
|   <st #st multiSort [data]="service.$api_get_freight_list" [columns]="tabType===1?enterColumns:adminColumns" |   <st #st multiSort [data]="service.$api_get_freight_list" [columns]="tabType===1?enterColumns:adminColumns" | ||||||
|     [req]="{  process: beforeReq }" [page]=" {}" [loading]="false" [scroll]="{ x: '1200px' }"> |     [req]="{  process: beforeReq }" [page]=" {}" [loading]="false" [scroll]="{ x: '1200px',y:scrollY }"> | ||||||
|     <ng-template st-row="approvalStatus" let-item let-index="index"> |     <ng-template st-row="approvalStatus" let-item let-index="index"> | ||||||
|       <ng-container [ngSwitch]="item.approvalStatus"> |       <ng-container [ngSwitch]="item.approvalStatus"> | ||||||
|         <nz-badge *ngSwitchCase="10" nzColor="#108ee9" nzText="待审核"></nz-badge> |         <nz-badge *ngSwitchCase="10" nzColor="#108ee9" nzText="待审核"></nz-badge> | ||||||
|  | |||||||
| @ -1,32 +0,0 @@ | |||||||
| :host { |  | ||||||
|   ::ng-deep { |  | ||||||
|     .tabs-wrap>.ant-tabs-nav { |  | ||||||
|       margin-bottom: 0; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     .myForm .ant-upload.ant-upload-select-picture-card>.ant-upload { |  | ||||||
|       flex-direction: column !important; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     span { |  | ||||||
|       word-break: break-all |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .expend-options { |  | ||||||
|   margin-top: 0px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @media (min-width: 990px) { |  | ||||||
|   .expend-options { |  | ||||||
|     margin-top: -40px; |  | ||||||
|     max-width : 400px; |  | ||||||
|     position  : absolute; |  | ||||||
|     right     : 0; |  | ||||||
|     bottom    : 30px; |  | ||||||
|   } |  | ||||||
|  |  | ||||||
| } |  | ||||||
| @ -2,23 +2,22 @@ import { Component, OnInit, ViewChild } from '@angular/core'; | |||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { ActivatedRoute, Router } from '@angular/router'; | ||||||
| import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||||
|  | import { SearchDrawerService } from '@shared'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
|  | import { BasicTableComponent } from 'src/app/routes/commom'; | ||||||
| import { UsermanageService } from '../../../services/usercenter.service'; | import { UsermanageService } from '../../../services/usercenter.service'; | ||||||
| import { AuditAdminComponent } from './audit-admin/audit-admin.component'; | import { AuditAdminComponent } from './audit-admin/audit-admin.component'; | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-Freight-components-enterprise-audit', |   selector: 'app-Freight-components-enterprise-audit', | ||||||
|   templateUrl: './enterprise-audit.component.html', |   templateUrl: './enterprise-audit.component.html', | ||||||
|   styleUrls: ['./enterprise-audit.component.less'] |   styleUrls: ['../../../../commom/less/commom-table.less'] | ||||||
| }) | }) | ||||||
| export class FreightComponentsEnterpriseAuditComponent implements OnInit { | export class FreightComponentsEnterpriseAuditComponent extends BasicTableComponent implements OnInit { | ||||||
|   _$expand = false; |  | ||||||
|   ui: SFUISchema = { '*': { spanLabelFixed: 90, grid: { lg: 8, md: 12, sm: 12, xs: 24 } } }; |  | ||||||
|   schema: SFSchema = this.initSF(); |  | ||||||
|   enterColumns: STColumn[] = this.initEnterST(); |   enterColumns: STColumn[] = this.initEnterST(); | ||||||
|   adminColumns: STColumn[] = this.initAdminST(); |   adminColumns: STColumn[] = this.initAdminST(); | ||||||
|  |   schema = this.initSF(); | ||||||
|   @ViewChild('st', { static: false }) st!: STComponent; |   @ViewChild('st', { static: false }) st!: STComponent; | ||||||
|   @ViewChild('sf', { static: false }) sf!: SFComponent; |  | ||||||
|   tabType = 1; |   tabType = 1; | ||||||
|   tabs = [ |   tabs = [ | ||||||
|     { |     { | ||||||
| @ -45,7 +44,18 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|   networkTransporter = null; |   networkTransporter = null; | ||||||
|   roleId = null; |   roleId = null; | ||||||
|   customerServiceId = null; |   customerServiceId = null; | ||||||
|   constructor(public service: UsermanageService, private router: Router, private modal: NzModalService) {} |   constructor( | ||||||
|  |     public service: UsermanageService, | ||||||
|  |     private router: Router, | ||||||
|  |     private modal: NzModalService, | ||||||
|  |     public searchDrawerService: SearchDrawerService | ||||||
|  |   ) { | ||||||
|  |     super(searchDrawerService); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   search() { | ||||||
|  |     this.st?.load(1); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   beforeReq = (requestOptions: STRequestOptions) => { |   beforeReq = (requestOptions: STRequestOptions) => { | ||||||
|     if (this.sf) { |     if (this.sf) { | ||||||
| @ -65,21 +75,6 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|     return requestOptions; |     return requestOptions; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   /** |  | ||||||
|    * 伸缩查询条件 |  | ||||||
|    */ |  | ||||||
|   expandToggle(status: boolean) { |  | ||||||
|     this._$expand = status; |  | ||||||
|     this.sf?.setValue('/expand', this._$expand); |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   /** |  | ||||||
|    * 重置表单 |  | ||||||
|    */ |  | ||||||
|   resetSF() { |  | ||||||
|     this.sf.reset(); |  | ||||||
|     this._$expand = false; |  | ||||||
|   } |  | ||||||
|   /** |   /** | ||||||
|    * 程序初始化入口 |    * 程序初始化入口 | ||||||
|    */ |    */ | ||||||
| @ -221,7 +216,6 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|   // 切换Tab |   // 切换Tab | ||||||
|   changeTab(item: any) { |   changeTab(item: any) { | ||||||
|     this.tabType = item.type; |     this.tabType = item.type; | ||||||
|     this.expandToggle(false); |  | ||||||
|     this.sf?.reset(); |     this.sf?.reset(); | ||||||
|     this.st.data = this.tabType === 1 ? this.service.$api_get_freight_list : this.service.$api_get_enterprise_admin_list; |     this.st.data = this.tabType === 1 ? this.service.$api_get_freight_list : this.service.$api_get_enterprise_admin_list; | ||||||
|     setTimeout(() => { |     setTimeout(() => { | ||||||
| @ -403,10 +397,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           ], |           ], | ||||||
|           default: '', |           default: '', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select' | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 1 |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         enterpriseAddressCode: { |         enterpriseAddressCode: { | ||||||
| @ -415,10 +406,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           enum: [{ label: '全部', value: '' }], |           enum: [{ label: '全部', value: '' }], | ||||||
|           default: '', |           default: '', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select' | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 1 && value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         oftenUsedServices: { |         oftenUsedServices: { | ||||||
| @ -431,10 +419,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           ], |           ], | ||||||
|           default: '', |           default: '', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select' | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 1 && value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         // approval11St11atus: { |         // approval11St11atus: { | ||||||
| @ -454,10 +439,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           type: 'string', |           type: 'string', | ||||||
|           ui: { |           ui: { | ||||||
|             placeholder: '请输入', |             placeholder: '请输入', | ||||||
|             showRequired: false, |             showRequired: false | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 1 && value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         mobile: { |         mobile: { | ||||||
| @ -465,10 +447,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           type: 'string', |           type: 'string', | ||||||
|           maxLength: 11, |           maxLength: 11, | ||||||
|           ui: { |           ui: { | ||||||
|             placeholder: '请输入', |             placeholder: '请输入' | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 2 |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         approvalUserName: { |         approvalUserName: { | ||||||
| @ -476,10 +455,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           type: 'string', |           type: 'string', | ||||||
|           maxLength: 11, |           maxLength: 11, | ||||||
|           ui: { |           ui: { | ||||||
|             placeholder: '请输入', |             placeholder: '请输入' | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 1 && value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         createTime: { |         createTime: { | ||||||
| @ -488,10 +464,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           ui: { |           ui: { | ||||||
|             widget: 'sl-from-to-search', |             widget: 'sl-from-to-search', | ||||||
|             format: 'yyyy-MM-dd HH:mm:ss', |             format: 'yyyy-MM-dd HH:mm:ss', | ||||||
|             nzShowTime: true, |             nzShowTime: true | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => value |  | ||||||
|             } |  | ||||||
|           } as SFDateWidgetSchema |           } as SFDateWidgetSchema | ||||||
|         }, |         }, | ||||||
|         approvalTime: { |         approvalTime: { | ||||||
| @ -500,10 +473,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           ui: { |           ui: { | ||||||
|             widget: 'sl-from-to-search', |             widget: 'sl-from-to-search', | ||||||
|             format: 'yyyy-MM-dd HH:mm:ss', |             format: 'yyyy-MM-dd HH:mm:ss', | ||||||
|             nzShowTime: true, |             nzShowTime: true | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 1 && value |  | ||||||
|             } |  | ||||||
|           } as SFDateWidgetSchema |           } as SFDateWidgetSchema | ||||||
|         }, |         }, | ||||||
|         approvalStatus: { |         approvalStatus: { | ||||||
| @ -518,10 +488,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           ], |           ], | ||||||
|           default: '', |           default: '', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select' | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         source: { |         source: { | ||||||
| @ -534,10 +501,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit { | |||||||
|           ], |           ], | ||||||
|           default: '', |           default: '', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select' | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => this.tabType === 1 && value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  | |||||||
| @ -340,8 +340,13 @@ | |||||||
|   <sv-container col="3" class="mt16"> |   <sv-container col="3" class="mt16"> | ||||||
|     <sv-title>企业开票信息</sv-title> |     <sv-title>企业开票信息</sv-title> | ||||||
|     <sv label="开户银行"> |     <sv label="开户银行"> | ||||||
|  |       <ng-container *ngIf="isEdit; else createBankTemplate"> | ||||||
|         <input nz-input type="text" [(ngModel)]="detailData.createBank" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <input nz-input type="text" [(ngModel)]="detailData.createBank" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           [placeholder]="isEdit?'':'-'"> |           [placeholder]="isEdit?'':'-'"> | ||||||
|  |       </ng-container> | ||||||
|  |       <ng-template #createBankTemplate> | ||||||
|  |         {{detailData.createBank}} | ||||||
|  |       </ng-template> | ||||||
|     </sv> |     </sv> | ||||||
|     <sv label="银行账户"> |     <sv label="银行账户"> | ||||||
|       <input nz-input type="text" [(ngModel)]="detailData.bankAccount" [readonly]="!isEdit" [nzBorderless]="!isEdit" |       <input nz-input type="text" [(ngModel)]="detailData.bankAccount" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
| @ -352,8 +357,13 @@ | |||||||
|         [placeholder]="isEdit?'':'-'"> |         [placeholder]="isEdit?'':'-'"> | ||||||
|     </sv> |     </sv> | ||||||
|     <sv label="注册地址"> |     <sv label="注册地址"> | ||||||
|       <input nz-input type="text" [(ngModel)]="detailData.registerAddress" [readonly]="!isEdit" [nzBorderless]="!isEdit" |       <ng-container *ngIf="isEdit; else registerAddressTemplate"> | ||||||
|         [placeholder]="isEdit?'':'-'"> |         <input nz-input type="text" [(ngModel)]="detailData.registerAddress" [readonly]="!isEdit" | ||||||
|  |           [nzBorderless]="!isEdit" [placeholder]="isEdit?'':'-'"> | ||||||
|  |       </ng-container> | ||||||
|  |       <ng-template #registerAddressTemplate> | ||||||
|  |         {{detailData.registerAddress}} | ||||||
|  |       </ng-template> | ||||||
|     </sv> |     </sv> | ||||||
|   </sv-container> |   </sv-container> | ||||||
|   <nz-divider></nz-divider> |   <nz-divider></nz-divider> | ||||||
|  | |||||||
| @ -1,19 +0,0 @@ | |||||||
| :host{ |  | ||||||
|     ::ng-deep{ |  | ||||||
|         .btnBox { |  | ||||||
|             st-td{ |  | ||||||
|                 // display: flex; |  | ||||||
|                 // align-items: center; |  | ||||||
|                 st-td>span{ |  | ||||||
|                     display: inline-block; |  | ||||||
|                     width: 95px; |  | ||||||
|                     text-align: center; |  | ||||||
|                     margin: 0 10px; |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|             .st__btn-text span{ |  | ||||||
|                 white-space: nowrap; |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
| } |  | ||||||
| @ -1,16 +1,5 @@ | |||||||
| <!-- | <!-- <page-header-wrapper [title]="'员工列表'"></page-header-wrapper> | ||||||
|  * @Author: your name |  | ||||||
|  * @Date: 2021-12-13 10:47:28 |  | ||||||
|  * @LastEditTime : 2022-02-15 13:59:52 |  | ||||||
|  * @LastEditors  : Shiming |  | ||||||
|  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |  | ||||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\usercenter\\components\\freight\\user\\user.component.html |  | ||||||
| --> |  | ||||||
| <!-- 页头 --> |  | ||||||
| <page-header-wrapper [title]="'员工列表'"></page-header-wrapper> |  | ||||||
| <nz-card> | <nz-card> | ||||||
|   <!-- 搜索区 --> |  | ||||||
|   <!-- 搜索表单 --> |  | ||||||
|   <div nz-row nzGutter="8"> |   <div nz-row nzGutter="8"> | ||||||
|     <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24"> |     <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24"> | ||||||
|       <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> |       <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> | ||||||
| @ -26,20 +15,30 @@ | |||||||
|       </button> |       </button> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
| </nz-card> | </nz-card> --> | ||||||
|  |  | ||||||
| <nz-card class="content-box"> | <nz-card class="table-box"> | ||||||
|   <nz-tabset [nzSelectedIndex]="1"> |   <div class="tab_header"> | ||||||
|  |     <label class="page_title"><label class="driver">|</label>企业审核列表</label> | ||||||
|  |     <nz-tabset [nzSelectedIndex]="1" [nzTabBarExtraContent]="extraTemplate"> | ||||||
|       <nz-tab nzTitle="全部" (nzClick)="selectChange(null)"></nz-tab> |       <nz-tab nzTitle="全部" (nzClick)="selectChange(null)"></nz-tab> | ||||||
|       <nz-tab nzTitle="待审核" (nzClick)="selectChange(0)"></nz-tab> |       <nz-tab nzTitle="待审核" (nzClick)="selectChange(0)"></nz-tab> | ||||||
|       <nz-tab nzTitle="已成功" (nzClick)="selectChange(1)"></nz-tab> |       <nz-tab nzTitle="已成功" (nzClick)="selectChange(1)"></nz-tab> | ||||||
|       <nz-tab nzTitle="已驳回" (nzClick)="selectChange(2)"></nz-tab> |       <nz-tab nzTitle="已驳回" (nzClick)="selectChange(2)"></nz-tab> | ||||||
|     </nz-tabset> |     </nz-tabset> | ||||||
|   <!-- 数据列表 --> |   </div> | ||||||
|   <!-- [data]="service.$api_get_supplier_page" --> |  | ||||||
|  |  | ||||||
|  |   <ng-template #extraTemplate> | ||||||
|  |     <div class="mr-sm"> | ||||||
|  |       <button nz-button nzDanger [nzLoading]="service.http.loading" acl [acl-ability]="['USERCENTER-FREIGHT-USER-list']" | ||||||
|  |         (click)="openDrawer()">筛选</button> | ||||||
|  |       <button nz-button nzDanger (click)="st?.load(1)" acl [acl-ability]="['USERCENTER-FREIGHT-ENTERPRISE-export']"> | ||||||
|  |         导出</button> | ||||||
|  |     </div> | ||||||
|  |   </ng-template> | ||||||
|  |   <!-- 数据列表 --> | ||||||
|   <st #st [columns]="columns" [data]='service.$api_get_user_list' [req]="{ process: beforeReq }" |   <st #st [columns]="columns" [data]='service.$api_get_user_list' [req]="{ process: beforeReq }" | ||||||
|     [scroll]="{ x:'1200px',y: '400px' }" [page]="{  }" [loading]="service.http.loading"> |     [scroll]="{ x:'1200px',y:scrollY }" [page]="{  }" [loading]="service.http.loading"> | ||||||
|     <ng-template st-row="enterpriseName" let-item let-index="index"> |     <ng-template st-row="enterpriseName" let-item let-index="index"> | ||||||
|       <div nz-tooltip [nzTooltipTitle]="item.enterpriseName"> |       <div nz-tooltip [nzTooltipTitle]="item.enterpriseName"> | ||||||
|         <div |         <div | ||||||
|  | |||||||
| @ -2,20 +2,19 @@ import { Component, OnInit, ViewChild } from '@angular/core'; | |||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { ActivatedRoute, Router } from '@angular/router'; | ||||||
| import { STColumn, STColumnBadge, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | import { STColumn, STColumnBadge, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||||
|  | import { SearchDrawerService } from '@shared'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
|  | import { BasicTableComponent } from 'src/app/routes/commom'; | ||||||
| import { UsermanageService } from '../../../services/usercenter.service'; | import { UsermanageService } from '../../../services/usercenter.service'; | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-Freight-components-user', |   selector: 'app-Freight-components-user', | ||||||
|   styleUrls: ['./user.component.less'], |   styleUrls: ['../../../../commom/less/commom-table.less'], | ||||||
|   templateUrl: './user.component.html' |   templateUrl: './user.component.html' | ||||||
| }) | }) | ||||||
| export class FreightComponentsUserComponent implements OnInit { | export class FreightComponentsUserComponent extends BasicTableComponent implements OnInit { | ||||||
|   _$expand = false; |  | ||||||
|   ui: SFUISchema = { '*': { spanLabelFixed: 120, grid: { lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } }; |  | ||||||
|   schema: SFSchema = this.initSF(); |   schema: SFSchema = this.initSF(); | ||||||
|   columns: STColumn[] = this.initST(); |   columns: STColumn[] = this.initST(); | ||||||
|   @ViewChild('st', { static: false }) st!: STComponent; |   @ViewChild('st', { static: false }) st!: STComponent; | ||||||
|   @ViewChild('sf', { static: false }) sf!: SFComponent; |  | ||||||
|  |  | ||||||
|   @ViewChild('promoterModal', { static: false }) |   @ViewChild('promoterModal', { static: false }) | ||||||
|   promoterModal!: any; |   promoterModal!: any; | ||||||
| @ -23,7 +22,16 @@ export class FreightComponentsUserComponent implements OnInit { | |||||||
|  |  | ||||||
|   resourceStatus: any = 0; |   resourceStatus: any = 0; | ||||||
|  |  | ||||||
|   constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) {} |   constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute, | ||||||
|  |     public searchDrawerService: SearchDrawerService | ||||||
|  |   ) { | ||||||
|  |     super(searchDrawerService); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   search() { | ||||||
|  |     this.st?.load(1); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |  | ||||||
|   ngOnInit() { |   ngOnInit() { | ||||||
|     this.ar.url.subscribe(params => { |     this.ar.url.subscribe(params => { | ||||||
| @ -106,19 +114,6 @@ export class FreightComponentsUserComponent implements OnInit { | |||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   expandToggle() { |  | ||||||
|     this._$expand = !this._$expand; |  | ||||||
|     this.sf?.setValue('/expand', this._$expand); |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   /** |  | ||||||
|    * 重置表单 |  | ||||||
|    */ |  | ||||||
|   resetSF() { |  | ||||||
|     this.sf.reset(); |  | ||||||
|     this._$expand = false; |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   private initSF(): SFSchema { |   private initSF(): SFSchema { | ||||||
|     return { |     return { | ||||||
|       properties: { |       properties: { | ||||||
| @ -163,9 +158,6 @@ export class FreightComponentsUserComponent implements OnInit { | |||||||
|           default: '', |           default: '', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select', | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         promotersTelephone: { |         promotersTelephone: { | ||||||
| @ -174,9 +166,6 @@ export class FreightComponentsUserComponent implements OnInit { | |||||||
|           maxLength: 11, |           maxLength: 11, | ||||||
|           ui: { |           ui: { | ||||||
|             placeholder: '请输入手机号', |             placeholder: '请输入手机号', | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => value |  | ||||||
|             } |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         effectiveDate: { |         effectiveDate: { | ||||||
| @ -186,9 +175,6 @@ export class FreightComponentsUserComponent implements OnInit { | |||||||
|             widget: 'date', |             widget: 'date', | ||||||
|             mode: 'range', |             mode: 'range', | ||||||
|             format: 'yyyy-MM-dd', |             format: 'yyyy-MM-dd', | ||||||
|             visibleIf: { |  | ||||||
|               expand: (value: boolean) => value |  | ||||||
|             } |  | ||||||
|           } as SFDateWidgetSchema |           } as SFDateWidgetSchema | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  | |||||||
| @ -83,12 +83,12 @@ | |||||||
|           <nz-option *ngFor="let i of contenCarNoColor" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> |           <nz-option *ngFor="let i of contenCarNoColor" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> | ||||||
|         </nz-select> |         </nz-select> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="车型"> |       <sv label="车辆类型"> | ||||||
|         <!-- <nz-select [(ngModel)]="detailData.carModel" [nzPlaceHolder]="isEdit?'':'-'" [nzBorderless]="!isEdit" |         <!-- <nz-select [(ngModel)]="detailData.carModel" [nzPlaceHolder]="isEdit?'':'-'" [nzBorderless]="!isEdit" | ||||||
|         [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> |         [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|         <nz-option *ngFor="let i of contencarModel" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> |         <nz-option *ngFor="let i of contencarModel" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> | ||||||
|       </nz-select> --> |       </nz-select> --> | ||||||
|         <input nz-input type="text" [(ngModel)]="detailData.carModel" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <input nz-input type="text" [(ngModel)]="detailData.carModel ? detailData.carModel : detailData.carModelLabel" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           [placeholder]="isEdit ? '' : '-'" /> |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="车长"> |       <sv label="车长"> | ||||||
| @ -154,6 +154,16 @@ | |||||||
|       <span>行驶证信息</span> |       <span>行驶证信息</span> | ||||||
|     </div> |     </div> | ||||||
|     <sv-container col="3" class="new-sv-container" labelWidth="140"> |     <sv-container col="3" class="new-sv-container" labelWidth="140"> | ||||||
|  |       <sv label="发动机号码"> | ||||||
|  |         <input | ||||||
|  |         nz-input | ||||||
|  |         type="text" | ||||||
|  |         [(ngModel)]="detailData.engineNo" | ||||||
|  |         [readonly]="!isEdit" | ||||||
|  |         [nzBorderless]="!isEdit" | ||||||
|  |         [placeholder]="isEdit ? '' : '-'" | ||||||
|  |       /> | ||||||
|  |       </sv> | ||||||
|       <sv label="行驶证到期日"> |       <sv label="行驶证到期日"> | ||||||
|         <!-- <input nz-input type="text" [(ngModel)]="detailData.driverLicenseEndTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <!-- <input nz-input type="text" [(ngModel)]="detailData.driverLicenseEndTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|         [placeholder]="isEdit?'':'-'"> --> |         [placeholder]="isEdit?'':'-'"> --> | ||||||
| @ -197,6 +207,16 @@ | |||||||
|         <input nz-input type="text" [(ngModel)]="detailData.curbWeight" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <input nz-input type="text" [(ngModel)]="detailData.curbWeight" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           [placeholder]="isEdit ? '' : '-'" /> |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
|       </sv> |       </sv> | ||||||
|  |       <sv label="报废日期"> | ||||||
|  |         <nz-date-picker | ||||||
|  |         [(ngModel)]="detailData.scrapTime" | ||||||
|  |         [nzDisabled]="!isEdit" | ||||||
|  |         [nzPlaceHolder]="isEdit ? '' : '-'" | ||||||
|  |         [nzBorderless]="!isEdit" | ||||||
|  |         [nzSuffixIcon]="isEdit ? 'calendar' : ''" | ||||||
|  |       > | ||||||
|  |       </nz-date-picker> | ||||||
|  |       </sv> | ||||||
|       <sv label="总质量"> |       <sv label="总质量"> | ||||||
|         <input nz-input type="text" [(ngModel)]="detailData.carTotalLoad" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <input nz-input type="text" [(ngModel)]="detailData.carTotalLoad" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           [placeholder]="isEdit ? '' : '-'" /> |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
| @ -224,7 +244,15 @@ | |||||||
|   <div class="mb-lg"> |   <div class="mb-lg"> | ||||||
|     <div class="font-weight-blod text-md detail-title"> |     <div class="font-weight-blod text-md detail-title"> | ||||||
|       <a class="sign"></a> |       <a class="sign"></a> | ||||||
|       <span>道路运输证信息</span> |       <p style="margin-bottom: 0"> | ||||||
|  |         道路运输证信息 | ||||||
|  |         <label *ngIf="!detailData?.roadTransportVerificationStatus" style="color: #ff4d4f"><i nz-icon nzType="info-circle" | ||||||
|  |             nzTheme="fill" class="mr-xs"></i>验证不通过 | ||||||
|  |         </label> | ||||||
|  |         <label *ngIf="detailData?.roadTransportVerificationStatus" style="color: #52c41a"><i nz-icon nzType="check-circle" | ||||||
|  |             nzTheme="fill" class="mr-xs"></i>验证通过 | ||||||
|  |         </label> | ||||||
|  |       </p> | ||||||
|     </div> |     </div> | ||||||
|     <sv-container col="3" class="mt16 new-sv-container" labelWidth="140"> |     <sv-container col="3" class="mt16 new-sv-container" labelWidth="140"> | ||||||
|       <sv label="道路运输证号"> |       <sv label="道路运输证号"> | ||||||
|  | |||||||
| @ -11,7 +11,8 @@ | |||||||
|         <sv-title style="font-weight: 700"> |         <sv-title style="font-weight: 700"> | ||||||
|           <div style="float: right"> |           <div style="float: right"> | ||||||
|             <ng-container *ngIf="!isEdit"> |             <ng-container *ngIf="!isEdit"> | ||||||
|               <button nz-button nzType="default" nzDanger (click)="ratify()" acl acl-ability="VEHICLE-LIST-DETAIL-save">修改</button> |               <button nz-button nzType="default" nzDanger (click)="ratify()" acl | ||||||
|  |                 acl-ability="VEHICLE-LIST-DETAIL-save">修改</button> | ||||||
|             </ng-container> |             </ng-container> | ||||||
|             <ng-container *ngIf="isEdit"> |             <ng-container *ngIf="isEdit"> | ||||||
|               <button nz-button nzType="default" (click)="reset()">取消</button> |               <button nz-button nzType="default" (click)="reset()">取消</button> | ||||||
| @ -25,17 +26,15 @@ | |||||||
|         <sv-title style="font-weight: 700">车辆基础信息</sv-title> |         <sv-title style="font-weight: 700">车辆基础信息</sv-title> | ||||||
|         <sv label="车牌号" col="1"> |         <sv label="车牌号" col="1"> | ||||||
|           <div style="display: flex;"> |           <div style="display: flex;"> | ||||||
|             <input |             <input nz-input type="text" [(ngModel)]="detailData.carNo" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|             nz-input |               [placeholder]="isEdit ? '' : '-'" /> | ||||||
|             type="text" |  | ||||||
|             [(ngModel)]="detailData.carNo" |  | ||||||
|             [readonly]="!isEdit" |  | ||||||
|             [nzBorderless]="!isEdit" |  | ||||||
|             [placeholder]="isEdit ? '' : '-'" |  | ||||||
|           /> |  | ||||||
|             <div style="display: flex;"> |             <div style="display: flex;"> | ||||||
|             <div *ngIf="detailData.networkStatus"> <span style="height: 5px; width: 5px; border-radius: 50%; background-color: green;display: inline-block;"></span> 已入网</div> |               <div *ngIf="detailData.networkStatus"> <span | ||||||
|             <div *ngIf="!detailData.networkStatus"><span style="height: 5px; width: 5px; border-radius: 50%; background-color: red;display: inline-block;"></span>未入网</div> |                   style="height: 5px; width: 5px; border-radius: 50%; background-color: green;display: inline-block;"></span> | ||||||
|  |                 已入网</div> | ||||||
|  |               <div *ngIf="!detailData.networkStatus"><span | ||||||
|  |                   style="height: 5px; width: 5px; border-radius: 50%; background-color: red;display: inline-block;"></span>未入网 | ||||||
|  |               </div> | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|  |  | ||||||
| @ -43,73 +42,43 @@ | |||||||
|         <sv label="车牌颜色"> |         <sv label="车牌颜色"> | ||||||
|           <!-- <input nz-input type="text" [(ngModel)]="detailData.carNoColor" [readonly]="!isEdit" [nzBorderless]="!isEdit" |           <!-- <input nz-input type="text" [(ngModel)]="detailData.carNoColor" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|             [placeholder]="isEdit?'':'-'"> --> |             [placeholder]="isEdit?'':'-'"> --> | ||||||
|           <nz-select |           <nz-select [(ngModel)]="detailData.carNoColor" [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" | ||||||
|             [(ngModel)]="detailData.carNoColor" |             [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|             [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|             [nzBorderless]="!isEdit" |  | ||||||
|             [nzShowArrow]="isEdit" |  | ||||||
|             [nzDisabled]="!isEdit" |  | ||||||
|           > |  | ||||||
|             <nz-option *ngFor="let i of contenCarNoColor" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> |             <nz-option *ngFor="let i of contenCarNoColor" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> | ||||||
|           </nz-select> |           </nz-select> | ||||||
|         </sv> |         </sv> | ||||||
|         <sv label="车辆类型"> |         <sv label="车辆类型"> | ||||||
|           <!-- <input nz-input type="text" [(ngModel)]="detailData.carModel" [readonly]="!isEdit" [nzBorderless]="!isEdit" |           <!-- <input nz-input type="text" [(ngModel)]="detailData.carModel" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|             [placeholder]="isEdit?'':'-'"> --> |             [placeholder]="isEdit?'':'-'"> --> | ||||||
|           <nz-select |           <nz-select [(ngModel)]="detailData.carModel ? detailData.carModel : detailData.carModelLabel" | ||||||
|             [(ngModel)]="detailData.carModel" |             [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|             [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|             [nzBorderless]="!isEdit" |  | ||||||
|             [nzShowArrow]="isEdit" |  | ||||||
|             [nzDisabled]="!isEdit" |  | ||||||
|           > |  | ||||||
|             <nz-option *ngFor="let i of contencarModel" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> |             <nz-option *ngFor="let i of contencarModel" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> | ||||||
|           </nz-select> |           </nz-select> | ||||||
|         </sv> |         </sv> | ||||||
|         <sv label="车长(米)"> |         <sv label="车长(米)"> | ||||||
|           <!-- <input nz-input type="text" [(ngModel)]="detailData.carLength" [readonly]="!isEdit" [nzBorderless]="!isEdit" |           <!-- <input nz-input type="text" [(ngModel)]="detailData.carLength" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|             [placeholder]="isEdit?'':'-'"> --> |             [placeholder]="isEdit?'':'-'"> --> | ||||||
|           <nz-select |           <nz-select [(ngModel)]="detailData.carLength" [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" | ||||||
|             [(ngModel)]="detailData.carLength" |             [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|             [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|             [nzBorderless]="!isEdit" |  | ||||||
|             [nzShowArrow]="isEdit" |  | ||||||
|             [nzDisabled]="!isEdit" |  | ||||||
|           > |  | ||||||
|             <nz-option *ngFor="let i of contenCarLength" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> |             <nz-option *ngFor="let i of contenCarLength" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> | ||||||
|           </nz-select> |           </nz-select> | ||||||
|         </sv> |         </sv> | ||||||
|         <sv label="车辆能源类型"> |         <sv label="车辆能源类型"> | ||||||
|           <nz-select |           <nz-select [(ngModel)]="detailData.carEnergyType" [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" | ||||||
|             [(ngModel)]="detailData.carEnergyType" |             [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|             [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|             [nzBorderless]="!isEdit" |  | ||||||
|             [nzShowArrow]="isEdit" |  | ||||||
|             [nzDisabled]="!isEdit" |  | ||||||
|           > |  | ||||||
|             <nz-option *ngFor="let i of contenCarEnergy" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> |             <nz-option *ngFor="let i of contenCarEnergy" [nzLabel]="i.label" [nzValue]="i.value"></nz-option> | ||||||
|           </nz-select> |           </nz-select> | ||||||
|         </sv> |         </sv> | ||||||
|         <sv label="是否挂靠"> |         <sv label="是否挂靠"> | ||||||
|           <nz-select |           <nz-select [(ngModel)]="detailData.isSelf" [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" | ||||||
|             [(ngModel)]="detailData.isSelf" |             [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|             [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|             [nzBorderless]="!isEdit" |  | ||||||
|             [nzShowArrow]="isEdit" |  | ||||||
|             [nzDisabled]="!isEdit" |  | ||||||
|           > |  | ||||||
|             <nz-option [nzValue]="false" nzLabel="否"></nz-option> |             <nz-option [nzValue]="false" nzLabel="否"></nz-option> | ||||||
|             <nz-option [nzValue]="true" nzLabel="是"></nz-option> |             <nz-option [nzValue]="true" nzLabel="是"></nz-option> | ||||||
|           </nz-select> |           </nz-select> | ||||||
|         </sv> |         </sv> | ||||||
|         <sv label="是否为挂车"> |         <sv label="是否为挂车"> | ||||||
|           <nz-select |           <nz-select [(ngModel)]="detailData.isTrailer" [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" | ||||||
|             [(ngModel)]="detailData.isTrailer" |             [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|             [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|             [nzBorderless]="!isEdit" |  | ||||||
|             [nzShowArrow]="isEdit" |  | ||||||
|             [nzDisabled]="!isEdit" |  | ||||||
|           > |  | ||||||
|             <nz-option [nzValue]="false" nzLabel="否"></nz-option> |             <nz-option [nzValue]="false" nzLabel="否"></nz-option> | ||||||
|             <nz-option [nzValue]="true" nzLabel="是"></nz-option> |             <nz-option [nzValue]="true" nzLabel="是"></nz-option> | ||||||
|           </nz-select> |           </nz-select> | ||||||
| @ -118,12 +87,10 @@ | |||||||
|       <sv-container col="1"> |       <sv-container col="1"> | ||||||
|         <sv label="车头照"> |         <sv label="车头照"> | ||||||
|           <!-- <app-imagelist [imgList]="[detailData?.carFrontPhotoWatermark, detailData?.carFrontPhotoWatermark]"></app-imagelist> --> |           <!-- <app-imagelist [imgList]="[detailData?.carFrontPhotoWatermark, detailData?.carFrontPhotoWatermark]"></app-imagelist> --> | ||||||
|           <ng-container |           <ng-container *ngTemplateOutlet=" | ||||||
|             *ngTemplateOutlet=" |  | ||||||
|               uploadTemplate; |               uploadTemplate; | ||||||
|               context: { image: detailData?.carFrontPhotoWatermark, key: 'carFrontPhotoWatermark', hover: 'PhotoWatermark2' } |               context: { image: detailData?.carFrontPhotoWatermark, key: 'carFrontPhotoWatermark', hover: 'PhotoWatermark2' } | ||||||
|             " |             "> | ||||||
|           > |  | ||||||
|           </ng-container> |           </ng-container> | ||||||
|         </sv> |         </sv> | ||||||
|       </sv-container> |       </sv-container> | ||||||
| @ -133,70 +100,45 @@ | |||||||
|     <sv-container col="3"> |     <sv-container col="3"> | ||||||
|       <sv-title style="font-weight: 700">行驶证信息</sv-title> |       <sv-title style="font-weight: 700">行驶证信息</sv-title> | ||||||
|       <sv label="档案编号"> |       <sv label="档案编号"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.archivesNo" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           nz-input |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |  | ||||||
|           [(ngModel)]="detailData.archivesNo" |  | ||||||
|           [readonly]="!isEdit" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="车辆品牌"> |       <sv label="车辆品牌"> | ||||||
|         <input |         <ng-container *ngIf="isEdit; else carBrandTemplate"> | ||||||
|           nz-input |           <input nz-input type="text" [(ngModel)]="detailData.carBrand" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           type="text" |             [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           [(ngModel)]="detailData.carBrand" |         </ng-container> | ||||||
|           [readonly]="!isEdit" |         <ng-template #carBrandTemplate> | ||||||
|           [nzBorderless]="!isEdit" |           {{detailData?.carBrand }} | ||||||
|           [placeholder]="isEdit ? '' : '-'" |         </ng-template> | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="行驶证注册日期"> |       <sv label="行驶证注册日期"> | ||||||
|         <!-- <input nz-input type="text" [(ngModel)]="detailData.driverLicenseRegisterTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <!-- <input nz-input type="text" [(ngModel)]="detailData.driverLicenseRegisterTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|         [placeholder]="isEdit?'':'-'"> --> |         [placeholder]="isEdit?'':'-'"> --> | ||||||
|         <nz-date-picker |         <nz-date-picker [(ngModel)]="detailData.driverLicenseRegisterTime" [nzDisabled]="!isEdit" | ||||||
|           [(ngModel)]="detailData.driverLicenseRegisterTime" |           [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit ? 'calendar' : ''"> | ||||||
|           [nzDisabled]="!isEdit" |  | ||||||
|           [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [nzSuffixIcon]="isEdit ? 'calendar' : ''" |  | ||||||
|         > |  | ||||||
|         </nz-date-picker> |         </nz-date-picker> | ||||||
|       </sv> |       </sv> | ||||||
|     </sv-container> |     </sv-container> | ||||||
|  |  | ||||||
|     <sv-container col="3"> |     <sv-container col="3"> | ||||||
|       <sv label="发动机号码"> |       <sv label="发动机号码"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.engineNo" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|         nz-input |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
|         type="text" |  | ||||||
|         [(ngModel)]="detailData.engineNo" |  | ||||||
|         [readonly]="!isEdit" |  | ||||||
|         [nzBorderless]="!isEdit" |  | ||||||
|         [placeholder]="isEdit ? '' : '-'" |  | ||||||
|       /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="行驶证到期日"> |       <sv label="行驶证到期日"> | ||||||
|         <nz-date-picker |         <nz-date-picker [(ngModel)]="detailData.driverLicenseEndTime" [nzDisabled]="!isEdit" | ||||||
|           [(ngModel)]="detailData.driverLicenseEndTime" |           [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit ? 'calendar' : ''"> | ||||||
|           [nzDisabled]="!isEdit" |  | ||||||
|           [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [nzSuffixIcon]="isEdit ? 'calendar' : ''" |  | ||||||
|         > |  | ||||||
|         </nz-date-picker> |         </nz-date-picker> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="行驶证签发机关"> |       <sv label="行驶证签发机关"> | ||||||
|         <input |         <ng-container *ngIf="isEdit; else driverLicenseSigningOrgTemplate"> | ||||||
|           style="width: '300px'" |           <input style="width: '300px'" nz-input type="text" [(ngModel)]="detailData.driverLicenseSigningOrg" | ||||||
|           nz-input |             [readonly]="!isEdit" [nzBorderless]="!isEdit" [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |         </ng-container> | ||||||
|           [(ngModel)]="detailData.driverLicenseSigningOrg" |         <ng-template #driverLicenseSigningOrgTemplate> | ||||||
|           [readonly]="!isEdit" |           {{detailData?.driverLicenseSigningOrg }} | ||||||
|           [nzBorderless]="!isEdit" |         </ng-template> | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|     </sv-container> |     </sv-container> | ||||||
|  |  | ||||||
| @ -204,33 +146,17 @@ | |||||||
|       <sv label="行驶证发证日期"> |       <sv label="行驶证发证日期"> | ||||||
|         <!-- <input nz-input type="text" [(ngModel)]="detailData.driverLicenseGetTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <!-- <input nz-input type="text" [(ngModel)]="detailData.driverLicenseGetTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|         [placeholder]="isEdit?'':'-'"> --> |         [placeholder]="isEdit?'':'-'"> --> | ||||||
|         <nz-date-picker |         <nz-date-picker [(ngModel)]="detailData.driverLicenseGetTime" [nzDisabled]="!isEdit" | ||||||
|           [(ngModel)]="detailData.driverLicenseGetTime" |           [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit ? 'calendar' : ''"> | ||||||
|           [nzDisabled]="!isEdit" |  | ||||||
|           [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [nzSuffixIcon]="isEdit ? 'calendar' : ''" |  | ||||||
|         > |  | ||||||
|         </nz-date-picker> |         </nz-date-picker> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="车辆识别代码"> |       <sv label="车辆识别代码"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.carDistinguishCode" [readonly]="!isEdit" | ||||||
|           nz-input |           [nzBorderless]="!isEdit" [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |  | ||||||
|           [(ngModel)]="detailData.carDistinguishCode" |  | ||||||
|           [readonly]="!isEdit" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="使用性质"> |       <sv label="使用性质"> | ||||||
|         <nz-select |         <nz-select [(ngModel)]="detailData.useNature" [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" | ||||||
|           [(ngModel)]="detailData.useNature" |           [nzShowArrow]="isEdit" [nzDisabled]="!isEdit"> | ||||||
|           [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [nzShowArrow]="isEdit" |  | ||||||
|           [nzDisabled]="!isEdit" |  | ||||||
|         > |  | ||||||
|           <nz-option [nzValue]="'1'" nzLabel="营运"></nz-option> |           <nz-option [nzValue]="'1'" nzLabel="营运"></nz-option> | ||||||
|           <nz-option [nzValue]="'0'" nzLabel="非营运"></nz-option> |           <nz-option [nzValue]="'0'" nzLabel="非营运"></nz-option> | ||||||
|         </nz-select> |         </nz-select> | ||||||
| @ -239,72 +165,44 @@ | |||||||
|  |  | ||||||
|     <sv-container col="3"> |     <sv-container col="3"> | ||||||
|       <sv label="核定载质量(吨)"> |       <sv label="核定载质量(吨)"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.carLoad" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           nz-input |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |  | ||||||
|           [(ngModel)]="detailData.carLoad" |  | ||||||
|           [readonly]="!isEdit" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="整备质量"> |       <sv label="整备质量"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.curbWeight" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           nz-input |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |  | ||||||
|           [(ngModel)]="detailData.curbWeight" |  | ||||||
|           [readonly]="!isEdit" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="报废日期"> |       <sv label="报废日期"> | ||||||
|         <nz-date-picker |         <nz-date-picker [(ngModel)]="detailData.scrapTime" [nzDisabled]="!isEdit" [nzPlaceHolder]="isEdit ? '' : '-'" | ||||||
|         [(ngModel)]="detailData.scrapTime" |           [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit ? 'calendar' : ''"> | ||||||
|         [nzDisabled]="!isEdit" |  | ||||||
|         [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|         [nzBorderless]="!isEdit" |  | ||||||
|         [nzSuffixIcon]="isEdit ? 'calendar' : ''" |  | ||||||
|       > |  | ||||||
|         </nz-date-picker> |         </nz-date-picker> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="总质量"> |       <sv label="总质量"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.carTotalLoad" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|           nz-input |           [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |  | ||||||
|           [(ngModel)]="detailData.carTotalLoad" |  | ||||||
|           [readonly]="!isEdit" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="所有人"> |       <sv label="所有人"> | ||||||
|         <input |         <ng-container *ngIf="isEdit; else carOwnerTemplate"> | ||||||
|           style="width: '300px'" |           <input style="width: '300px'" nz-input type="text" [(ngModel)]="detailData.carOwner" [readonly]="!isEdit" | ||||||
|           nz-input |             [nzBorderless]="!isEdit" [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |         </ng-container> | ||||||
|           [(ngModel)]="detailData.carOwner" |         <ng-template #carOwnerTemplate> | ||||||
|           [readonly]="!isEdit" |           {{detailData?.carOwner }} | ||||||
|           [nzBorderless]="!isEdit" |         </ng-template> | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|  |       <<<<<<< HEAD=======>>>>>>> 6d503f57e2434e5c0a0baa406ac42fe2b7a8a9b5 | ||||||
|     </sv-container> |     </sv-container> | ||||||
|     <sv-container col="1"> |     <sv-container col="1"> | ||||||
|       <sv label="行驶证照片"> |       <sv label="行驶证照片"> | ||||||
|         <ng-container |         <ng-container *ngTemplateOutlet=" | ||||||
|           *ngTemplateOutlet=" |  | ||||||
|             uploadTemplate; |             uploadTemplate; | ||||||
|             context: { image: detailData?.certificatePhotoFrontWatermark, key: 'certificatePhotoFrontWatermark', hover: 'FrontWatermark' } |             context: { image: detailData?.certificatePhotoFrontWatermark, key: 'certificatePhotoFrontWatermark', hover: 'FrontWatermark' } | ||||||
|           " |           "> | ||||||
|         > |  | ||||||
|         </ng-container> |         </ng-container> | ||||||
|         <ng-container |         <ng-container *ngTemplateOutlet=" | ||||||
|           *ngTemplateOutlet=" |  | ||||||
|             uploadTemplate; |             uploadTemplate; | ||||||
|             context: { image: detailData?.certificatePhotoBackWatermark, key: 'certificatePhotoBackWatermark', hover: 'BackWatermark' } |             context: { image: detailData?.certificatePhotoBackWatermark, key: 'certificatePhotoBackWatermark', hover: 'BackWatermark' } | ||||||
|           " |           "> | ||||||
|         > |  | ||||||
|         </ng-container> |         </ng-container> | ||||||
|       </sv> |       </sv> | ||||||
|     </sv-container> |     </sv-container> | ||||||
| @ -313,66 +211,42 @@ | |||||||
|       <sv-title style="font-weight: 700"> |       <sv-title style="font-weight: 700"> | ||||||
|         <p style="margin-bottom: 0"> |         <p style="margin-bottom: 0"> | ||||||
|           道路运输证信息 |           道路运输证信息 | ||||||
|           <label *ngIf="!detailData?.roadTransportVerificationStatus" style="color: #ff4d4f"><i nz-icon nzType="info-circle" |           <label *ngIf="!detailData?.roadTransportVerificationStatus" style="color: #ff4d4f"><i nz-icon | ||||||
|               nzTheme="fill" class="mr-xs"></i>验证不通过 |               nzType="info-circle" nzTheme="fill" class="mr-xs"></i>验证不通过 | ||||||
|           </label> |           </label> | ||||||
|           <label *ngIf="detailData?.roadTransportVerificationStatus" style="color: #52c41a"><i nz-icon nzType="check-circle" |           <label *ngIf="detailData?.roadTransportVerificationStatus" style="color: #52c41a"><i nz-icon | ||||||
|               nzTheme="fill" class="mr-xs"></i>验证通过 |               nzType="check-circle" nzTheme="fill" class="mr-xs"></i>验证通过 | ||||||
|           </label> |           </label> | ||||||
|         </p> |         </p> | ||||||
|       </sv-title> |       </sv-title> | ||||||
|       <sv label="道路运输证号"> |       <sv label="道路运输证号"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.roadTransportNo" [readonly]="!isEdit" | ||||||
|           nz-input |           [nzBorderless]="!isEdit" [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |  | ||||||
|           [(ngModel)]="detailData.roadTransportNo" |  | ||||||
|           [readonly]="!isEdit" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="经营许可证号"> |       <sv label="经营许可证号"> | ||||||
|         <input |         <input nz-input type="text" [(ngModel)]="detailData.roadTransportLicenceNo" [readonly]="!isEdit" | ||||||
|           nz-input |           [nzBorderless]="!isEdit" [placeholder]="isEdit ? '' : '-'" /> | ||||||
|           type="text" |  | ||||||
|           [(ngModel)]="detailData.roadTransportLicenceNo" |  | ||||||
|           [readonly]="!isEdit" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [placeholder]="isEdit ? '' : '-'" |  | ||||||
|         /> |  | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="发证日期"> |       <sv label="发证日期"> | ||||||
|         <!-- <input nz-input type="text" [(ngModel)]="detailData.roadTransportStartTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <!-- <input nz-input type="text" [(ngModel)]="detailData.roadTransportStartTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|         [placeholder]="isEdit?'':'-'"> --> |         [placeholder]="isEdit?'':'-'"> --> | ||||||
|         <nz-date-picker |         <nz-date-picker [(ngModel)]="detailData.roadTransportStartTime" [nzDisabled]="!isEdit" | ||||||
|           [(ngModel)]="detailData.roadTransportStartTime" |           [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit ? 'calendar' : ''"> | ||||||
|           [nzDisabled]="!isEdit" |  | ||||||
|           [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [nzSuffixIcon]="isEdit ? 'calendar' : ''" |  | ||||||
|         > |  | ||||||
|         </nz-date-picker> |         </nz-date-picker> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="有效期至"> |       <sv label="有效期至"> | ||||||
|         <!-- <input nz-input type="text" [(ngModel)]="detailData.roadTransportEndTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" |         <!-- <input nz-input type="text" [(ngModel)]="detailData.roadTransportEndTime" [readonly]="!isEdit" [nzBorderless]="!isEdit" | ||||||
|         [placeholder]="isEdit?'':'-'"> --> |         [placeholder]="isEdit?'':'-'"> --> | ||||||
|         <nz-date-picker |         <nz-date-picker [(ngModel)]="detailData.roadTransportEndTime" [nzDisabled]="!isEdit" | ||||||
|           [(ngModel)]="detailData.roadTransportEndTime" |           [nzPlaceHolder]="isEdit ? '' : '-'" [nzBorderless]="!isEdit" [nzSuffixIcon]="isEdit ? 'calendar' : ''"> | ||||||
|           [nzDisabled]="!isEdit" |  | ||||||
|           [nzPlaceHolder]="isEdit ? '' : '-'" |  | ||||||
|           [nzBorderless]="!isEdit" |  | ||||||
|           [nzSuffixIcon]="isEdit ? 'calendar' : ''" |  | ||||||
|         > |  | ||||||
|         </nz-date-picker> |         </nz-date-picker> | ||||||
|       </sv> |       </sv> | ||||||
|       <sv label="道路运输证照片"> |       <sv label="道路运输证照片"> | ||||||
|         <!-- <app-imagelist [imgList]="[detailData?.roadTransportPhoto,detailData?.roadTransportPhotoWatermark ]"></app-imagelist> --> |         <!-- <app-imagelist [imgList]="[detailData?.roadTransportPhoto,detailData?.roadTransportPhotoWatermark ]"></app-imagelist> --> | ||||||
|         <ng-container |         <ng-container *ngTemplateOutlet=" | ||||||
|           *ngTemplateOutlet=" |  | ||||||
|             uploadTemplate; |             uploadTemplate; | ||||||
|             context: { image: detailData?.roadTransportPhotoWatermark, key: 'roadTransportPhotoWatermark', hover: 'Watermark' } |             context: { image: detailData?.roadTransportPhotoWatermark, key: 'roadTransportPhotoWatermark', hover: 'Watermark' } | ||||||
|           " |           "> | ||||||
|         > |  | ||||||
|         </ng-container> |         </ng-container> | ||||||
|       </sv> |       </sv> | ||||||
|     </sv-container> |     </sv-container> | ||||||
| @ -380,19 +254,10 @@ | |||||||
|     <sv-container col="2" class="mt16"> |     <sv-container col="2" class="mt16"> | ||||||
|       <sv-title style="font-weight: 700">认证司机</sv-title> |       <sv-title style="font-weight: 700">认证司机</sv-title> | ||||||
|     </sv-container> |     </sv-container> | ||||||
|     <st |     <st #st [bordered]="true" [columns]="columns" [scroll]="{ x: '1200px' }" | ||||||
|       #st |       [data]="service.$api_get_queryDriverByCarId" [req]="{ method: 'POST', allInBody: true, params: reqParams }" | ||||||
|       [bordered]="true" |       [res]="{ reName: { list: 'data', total: 'data' } }" [ngStyle]="{ margin: '1rem 0' }" multiSort size="small" | ||||||
|       [columns]="columns" |       [page]="{ show: false }"> | ||||||
|       [scroll]="{ x: '1200px' }" |  | ||||||
|       [data]="service.$api_get_queryDriverByCarId" |  | ||||||
|       [req]="{ method: 'POST', allInBody: true, params: reqParams }" |  | ||||||
|       [res]="{ reName: { list: 'data', total: 'data' } }" |  | ||||||
|       [ngStyle]="{ margin: '1rem 0' }" |  | ||||||
|       multiSort |  | ||||||
|       size="small" |  | ||||||
|       [page]="{ show: false }" |  | ||||||
|     > |  | ||||||
|       <ng-template st-row="auditStatusEnum" let-item let-index="index"> |       <ng-template st-row="auditStatusEnum" let-item let-index="index"> | ||||||
|         <div> |         <div> | ||||||
|           <span *ngIf="item?.auditStatusEnum === -1 || item?.auditStatusEnum === '-1'">未上传</span> |           <span *ngIf="item?.auditStatusEnum === -1 || item?.auditStatusEnum === '-1'">未上传</span> | ||||||
| @ -407,13 +272,8 @@ | |||||||
|   </nz-card> |   </nz-card> | ||||||
| </ng-container> | </ng-container> | ||||||
|  |  | ||||||
| <nz-modal | <nz-modal [(nzVisible)]="isVisible" [nzWidth]="600" [nzFooter]="nzModalFooterEvaluate" (nzOnOk)="handleOK()" | ||||||
|   [(nzVisible)]="isVisible" |   (nzOnCancel)="handleCancel('2')"> | ||||||
|   [nzWidth]="600" |  | ||||||
|   [nzFooter]="nzModalFooterEvaluate" |  | ||||||
|   (nzOnOk)="handleOK()" |  | ||||||
|   (nzOnCancel)="handleCancel('2')" |  | ||||||
| > |  | ||||||
|   <ng-container *nzModalContent> |   <ng-container *nzModalContent> | ||||||
|     <nz-tabset> |     <nz-tabset> | ||||||
|       <nz-tab nzTitle="我的评价"> |       <nz-tab nzTitle="我的评价"> | ||||||
| @ -434,27 +294,15 @@ | |||||||
| </nz-modal> | </nz-modal> | ||||||
|  |  | ||||||
| <ng-template #uploadTemplate let-image="image" let-key="key" let-hover="hover"> | <ng-template #uploadTemplate let-image="image" let-key="key" let-hover="hover"> | ||||||
|   <nz-upload |   <nz-upload class="avatar-uploader" [nzAction]="uploadURl" nzName="multipartFile" nzListType="picture-card" | ||||||
|     class="avatar-uploader" |     [nzShowUploadList]="false" nzFileType="image/png,image/jpeg,image/jpg,image/gif" | ||||||
|     [nzAction]="uploadURl" |     [nzDisabled]="!isEdit || disabledUpload" (nzChange)="changeUpload($event, key)"> | ||||||
|     nzName="multipartFile" |  | ||||||
|     nzListType="picture-card" |  | ||||||
|     [nzShowUploadList]="false" |  | ||||||
|     nzFileType="image/png,image/jpeg,image/jpg,image/gif" |  | ||||||
|     [nzDisabled]="!isEdit || disabledUpload" |  | ||||||
|     (nzChange)="changeUpload($event, key)" |  | ||||||
|   > |  | ||||||
|     <ng-container *ngIf="!image && isEdit"> |     <ng-container *ngIf="!image && isEdit"> | ||||||
|       <i class="upload-icon" nz-icon [nzType]="false ? 'loading' : 'plus'"></i> |       <i class="upload-icon" nz-icon [nzType]="false ? 'loading' : 'plus'"></i> | ||||||
|       <div class="ant-upload-text">上传</div> |       <div class="ant-upload-text">上传</div> | ||||||
|     </ng-container> |     </ng-container> | ||||||
|     <div |     <div *ngIf="image" (mouseover)="detailData[hover] = true" (mouseleave)="detailData[hover] = false" | ||||||
|       *ngIf="image" |       (click)="$event.cancelBubble = true" class="image-hover"> | ||||||
|       (mouseover)="detailData[hover] = true" |  | ||||||
|       (mouseleave)="detailData[hover] = false" |  | ||||||
|       (click)="$event.cancelBubble = true" |  | ||||||
|       class="image-hover" |  | ||||||
|     > |  | ||||||
|       <img (click)="showImg(image)" [src]="image" style="width: 200px; height: 160px" /> |       <img (click)="showImg(image)" [src]="image" style="width: 200px; height: 160px" /> | ||||||
|       <div class="mask" *ngIf="detailData[hover] && isEdit"></div> |       <div class="mask" *ngIf="detailData[hover] && isEdit"></div> | ||||||
|       <div class="mask-over" *ngIf="detailData[hover] && isEdit"> |       <div class="mask-over" *ngIf="detailData[hover] && isEdit"> | ||||||
|  | |||||||
| @ -1,22 +1,12 @@ | |||||||
| <!-- |  | ||||||
|  * @Description  :  |  | ||||||
|  * @Version      : 1.0 |  | ||||||
|  * @Author       : Shiming |  | ||||||
|  * @Date         : 2022-01-14 14:39:04 |  | ||||||
|  * @LastEditors  : Shiming |  | ||||||
|  * @LastEditTime : 2022-02-11 15:13:48 |  | ||||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\shared\\components\\account-detail\\account-detail.component.html |  | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  | ||||||
| --> |  | ||||||
| <st #st [data]="url" [columns]="columns" bordered size="small" | <st #st [data]="url" [columns]="columns" bordered size="small" | ||||||
|     [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' },  process: beforeReq }" |     [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' },  process: beforeReq }" | ||||||
|     [res]="{ reName: { list: 'data'} }" |     [res]="{ reName: { list: 'data'} }" | ||||||
|     [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" |     [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [loading]="false" | ||||||
|     [loading]="false" [scroll]="{ y: '370px' }"> |     [scroll]="{ y: '370px' }"> | ||||||
|     <ng-template st-row="paAccount" let-item let-index="index"> |     <ng-template st-row="paAccount" let-item let-index="index"> | ||||||
|         <a (click)="createAccount(item,'1')" acl  [acl-ability]="['USERCENTER-DRIVER-LIST-createAccount']" >{{ item.paAccount || '添加' }}</a> |         <a (click)="createAccount(item,'1')">{{ item.paAccount || '添加' }}</a> | ||||||
|     </ng-template> |     </ng-template> | ||||||
|     <ng-template st-row="pfAccount" let-item let-index="index"> |     <ng-template st-row="pfAccount" let-item let-index="index"> | ||||||
|         <a (click)="createAccount(item,'2')" acl  [acl-ability]="['USERCENTER-DRIVER-LIST-createAccount']" >{{ item.pfAccount || '添加' }}</a> |         <a (click)="createAccount(item,'2')">{{ item.pfAccount || '添加' }}</a> | ||||||
|     </ng-template> |     </ng-template> | ||||||
| </st> | </st> | ||||||
| @ -1,6 +1,7 @@ | |||||||
| import { CurrencyPipe } from '@angular/common'; | import { CurrencyPipe } from '@angular/common'; | ||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st'; | import { STComponent, STColumn, STRequestOptions } from '@delon/abc/st'; | ||||||
|  | import { ACLService } from '@delon/acl'; | ||||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||||
| import { BaseService } from '../../services'; | import { BaseService } from '../../services'; | ||||||
|  |  | ||||||
| @ -18,7 +19,9 @@ export class AccountDetailComponent implements OnInit { | |||||||
|  |  | ||||||
|   isCanCreate = false; |   isCanCreate = false; | ||||||
|   params: any = {}; |   params: any = {}; | ||||||
|   constructor(public service: BaseService, public currencyPipe: CurrencyPipe, private modalHelp: NzModalRef) { |   constructor(public service: BaseService, public currencyPipe: CurrencyPipe, private modalHelp: NzModalRef, private acl: ACLService) { | ||||||
|  |     const acls = acl.data.abilities || []; | ||||||
|  |     this.isCanCreate = acl.data.full || !!acls.find(acl => acl === 'USERCENTER-FREIGHT-LIST-createAccount'); | ||||||
|     this.initST(); |     this.initST(); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user