This commit is contained in:
wangshiming
2022-05-05 16:01:48 +08:00
parent 39000a7b93
commit cf5c675983
3 changed files with 52 additions and 11 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-18 09:51:21 * @Date : 2022-01-18 09:51:21
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-05-05 13:51:19 * @LastEditTime : 2022-05-05 15:22:17
* @FilePath : \\tms-obc-web\\proxy.conf.js * @FilePath : \\tms-obc-web\\proxy.conf.js
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -30,7 +30,7 @@ module.exports = {
// }, // },
'//api': { '//api': {
target: { target: {
host: 'tms-api-dev.eascs.com', host: 'tms-api-test.eascs.com',
protocol: 'https:', protocol: 'https:',
port: 443 port: 443
}, },

View File

@ -7,7 +7,8 @@
</ng-template> </ng-template>
<ng-template #content> <ng-template #content>
<sv-container col="3" class="new-sv-container"> <sv-container col="3" class="new-sv-container">
<h2>车牌号:{{ detailData?.carNo }}</h2> <h2>车牌号66{{ detailData?.carNo }}
</h2>
<sv-title style="font-weight: 700"> <sv-title style="font-weight: 700">
<!-- <span *ngIf="detailData?.approvalStatus === 1 || detailData?.approvalStatus === '1'">未上传</span> <!-- <span *ngIf="detailData?.approvalStatus === 1 || detailData?.approvalStatus === '1'">未上传</span>
<span *ngIf="detailData?.approvalStatus === 0 || detailData?.approvalStatus === '0'">草稿</span> <span *ngIf="detailData?.approvalStatus === 0 || detailData?.approvalStatus === '0'">草稿</span>
@ -44,9 +45,13 @@
<nz-card [class]="isEdit ? 'edit-box' : 'readOnly-box'" [ngClass]="'mb0'" [nzBorderless]="true"> <nz-card [class]="isEdit ? 'edit-box' : 'readOnly-box'" [ngClass]="'mb0'" [nzBorderless]="true">
<div> <div>
<div class="mb-xs common-order-header" nz-row> <div class="mb-xs common-order-header" nz-row>
<div> <div style="display: flex;">
<button nz-button nzType="primary" nzSize="small" nzDanger>{{ carStatus[detailData?.approvalStatus] }}</button> <button nz-button nzType="primary" nzSize="small" nzDanger>{{ carStatus[detailData?.approvalStatus] }}</button>
<b class="ml-md" style="font-size: 18px">车牌号: {{ detailData?.carNo }}</b> <div style="display: flex;align-items: center; ">
<b class="ml-md" style="font-size: 18px;padding-right: 10px;">车牌号: {{ detailData?.carNo }}</b>
<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 style="height: 5px; width: 5px; border-radius: 50%; background-color: red;display: inline-block;"></span>未入网</div>
</div>
</div> </div>
<div> <div>
<ng-container *ngIf="!isEdit"> <ng-container *ngIf="!isEdit">

View File

@ -23,8 +23,9 @@
<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="车牌号" col="1">
<input <div style="display: flex;">
<input
nz-input nz-input
type="text" type="text"
[(ngModel)]="detailData.carNo" [(ngModel)]="detailData.carNo"
@ -32,6 +33,12 @@
[nzBorderless]="!isEdit" [nzBorderless]="!isEdit"
[placeholder]="isEdit ? '' : '-'" [placeholder]="isEdit ? '' : '-'"
/> />
<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 style="height: 5px; width: 5px; border-radius: 50%; background-color: red;display: inline-block;"></span>未入网</div>
</div>
</div>
</sv> </sv>
<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"
@ -46,7 +53,7 @@
<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
@ -160,6 +167,16 @@
</sv-container> </sv-container>
<sv-container col="3"> <sv-container col="3">
<sv label="发动机号码">
<input
nz-input
type="text"
[(ngModel)]="detailData.engineNo"
[readonly]="!isEdit"
[nzBorderless]="!isEdit"
[placeholder]="isEdit ? '' : '-'"
/>
</sv>
<sv label="行驶证到期日"> <sv label="行驶证到期日">
<nz-date-picker <nz-date-picker
[(ngModel)]="detailData.driverLicenseEndTime" [(ngModel)]="detailData.driverLicenseEndTime"
@ -241,6 +258,16 @@
[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 <input
nz-input nz-input
@ -262,7 +289,6 @@
[placeholder]="isEdit ? '' : '-'" [placeholder]="isEdit ? '' : '-'"
/> />
</sv> </sv>
</sv-container> </sv-container>
<sv-container col="1"> <sv-container col="1">
<sv label="行驶证照片"> <sv label="行驶证照片">
@ -284,7 +310,17 @@
</sv-container> </sv-container>
<nz-divider></nz-divider> <nz-divider></nz-divider>
<sv-container col="3" class="mt16"> <sv-container col="3" class="mt16">
<sv-title style="font-weight: 700">道路运输证信息</sv-title> <sv-title style="font-weight: 700">
<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>
</sv-title>
<sv label="道路运输证号"> <sv label="道路运输证号">
<input <input
nz-input nz-input
@ -348,7 +384,7 @@
#st #st
[bordered]="true" [bordered]="true"
[columns]="columns" [columns]="columns"
[scroll]="{x: '1200px'}" [scroll]="{ x: '1200px' }"
[data]="service.$api_get_queryDriverByCarId" [data]="service.$api_get_queryDriverByCarId"
[req]="{ method: 'POST', allInBody: true, params: reqParams }" [req]="{ method: 'POST', allInBody: true, params: reqParams }"
[res]="{ reName: { list: 'data', total: 'data' } }" [res]="{ reName: { list: 'data', total: 'data' } }"