Newer
Older
<div class="item-box">
<div class="left"><span class="color-red">*</span>用车方式:</div>
<div class="right">
<ion-segment [(ngModel)]="opObj.isOwner">
<ion-segment-button value="1">
单位
</ion-segment-button>
<ion-segment-button value="0">
租赁
</ion-segment-button>
</ion-segment>
</div>
<ng-container *ngIf="opObj.isOwner == 1">
<ion-item>
<ion-label class="item-left"><span class="color-red">*</span>司机:</ion-label>
<ion-label tappable (click)="chooseDriver()" [ngStyle]="{'color':opObj.owner.driverNameText == '请选择'?'#999':'#333'}"
class="choose">{{opObj.owner.driverNameText}}</ion-label>
<ion-label *ngIf="checkOpObj.owner.driverName" class="check-tips">请选择司机</ion-label>
<ion-item>
<ion-label class="item-left"><span class="color-red">*</span>车牌号:</ion-label>
<ion-label (click)="chooseNumber()" tappable [ngStyle]="{'color':opObj.owner.carNumberText == '请选择'?'#999':'#333'}"
class="choose">{{opObj.owner.carNumberText}}</ion-label>
<ion-label *ngIf="checkOpObj.owner.carNumber" class="check-tips">请选择车牌号</ion-label>
</ion-item>
</ng-container>
<ng-container *ngIf="opObj.isOwner == 0">
<ion-item>
<ion-label class="item-left"><span class="color-red">*</span>公司名称:</ion-label>
<ion-input [(ngModel)]="opObj.noOwner.carOrg" placeholder="请输入租赁公司名称" type="text"
<ion-label *ngIf="checkOpObj.noOwner.carOrg" class="check-tips">请选择开始时间</ion-label>
</ion-item>
<ion-item>
<ion-label class="item-left"><span class="color-red">*</span>司机姓名:</ion-label>
<ion-input [(ngModel)]="opObj.noOwner.driverName" placeholder="请输入司机姓名" type="text"
<ion-label *ngIf="checkOpObj.noOwner.driverName" class="check-tips">请输入司机姓名</ion-label>
</ion-item>
<ion-item>
<ion-label class="item-left"><span class="color-red">*</span>联系电话:</ion-label>
<ion-input [(ngModel)]="opObj.noOwner.phone" placeholder="请输入联系电话" type="text" maxlength="20"></ion-input>
<ion-label *ngIf="checkOpObj.noOwner.phone" class="check-tips">请选择开始时间</ion-label>
</ion-item>
<ion-item>
<ion-label class="item-left"><span class="color-red">*</span>车牌号:</ion-label>
<ion-input [(ngModel)]="opObj.noOwner.carNumber" placeholder="请输入车牌号" type="text"
<ion-label *ngIf="checkOpObj.noOwner.carNumber" class="check-tips">请选择开始时间</ion-label>
<button class="submit-btn submit" tappable (click)="checkParams(2)">通过</button>
<button class="submit-btn submit" tappable (click)="checkParams(3)">退回</button>