291 lines
11 KiB
HTML
291 lines
11 KiB
HTML
<page-header-wrapper [title]="PageStatus" [logo]="logo">
|
||
<ng-template #logo>
|
||
<button nz-button nz-tooltip nzTooltipTitle="返回上一页" (click)="goBack()">
|
||
<i nz-icon nzType="left" nzTheme="outline"></i>
|
||
</button>
|
||
</ng-template>
|
||
</page-header-wrapper>
|
||
<nz-card>
|
||
<div class="card-title">货源单设置</div>
|
||
<sf #sf1 [schema]="schema1" [formData]="sf1data" [button]="'none'" [ui]="ui1"></sf>
|
||
</nz-card>
|
||
|
||
<nz-card>
|
||
<div class="card-title"
|
||
>装卸货信息<span class="tip-font">预计公里数:{{ totalDistance }}km,预计行程耗时:{{ totalTime }}小时</span></div
|
||
>
|
||
<form nz-form [formGroup]="validateForm1" role="form">
|
||
<div nz-row [nzGutter]="24">
|
||
<div nz-col [nzSpan]="8">
|
||
<div *ngFor="let data of startInfo; let idx = index">
|
||
<nz-form-item>
|
||
<nz-form-label [nzSpan]="4" nzRequired>装货地</nz-form-label>
|
||
<nz-form-control [nzErrorTip]="'请输入装货地'">
|
||
<div class="align-center">
|
||
<nz-input-group [nzSuffix]="endInconTemp1">
|
||
<input
|
||
nz-input
|
||
[(ngModel)]="data.detailedAddress"
|
||
(click)="openMap('start', idx)"
|
||
formControlName="loadAddress{{ idx }}"
|
||
placeholder="请输入装货地"
|
||
/>
|
||
</nz-input-group>
|
||
<span style="padding: 0 10px"
|
||
><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff" (click)="chooseAddress(idx, 'start')"></i
|
||
></span>
|
||
<span
|
||
><i nz-icon nzType="minus-circle-o" nzTheme="fill" style="color: #d9001b" (click)="subStartInfo($event, idx, data.id)"></i
|
||
></span>
|
||
</div>
|
||
</nz-form-control>
|
||
</nz-form-item>
|
||
<nz-form-item>
|
||
<nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label>
|
||
<nz-form-control [nzErrorTip]="'请输入联系人信息'">
|
||
<div class="align-center">
|
||
<input nz-input [(ngModel)]="data.appUserName" [ngModelOptions]="{ standalone: true }" maxlength="30" />
|
||
<input
|
||
style="margin-left: 12px"
|
||
nz-input
|
||
[(ngModel)]="data.contractTelephone"
|
||
[ngModelOptions]="{ standalone: true }"
|
||
maxlength="11"
|
||
/>
|
||
</div>
|
||
</nz-form-control>
|
||
</nz-form-item>
|
||
</div>
|
||
<button nz-button nzType="primary" (click)="addStartInfo($event)">
|
||
<i nz-icon nzType="plus"></i>
|
||
添加装货地
|
||
</button>
|
||
</div>
|
||
<div nz-col [nzSpan]="8">
|
||
<div style="display: flex; justify-content: center">
|
||
<span style="padding: 24 px; font-size: 30px; color: #7d7d7d"><i nz-icon nzType="swap" nzTheme="outline"></i></span>
|
||
</div>
|
||
</div>
|
||
<div nz-col [nzSpan]="8">
|
||
<div *ngFor="let data of endInfo; let idx = index">
|
||
<nz-form-item>
|
||
<nz-form-label [nzSpan]="4" nzRequired>卸货地</nz-form-label>
|
||
<nz-form-control [nzErrorTip]="'请输入卸货地'">
|
||
<div class="align-center">
|
||
<nz-input-group [nzSuffix]="endInconTemp1">
|
||
<input
|
||
nz-input
|
||
[(ngModel)]="data.detailedAddress"
|
||
(click)="openMap('end', idx)"
|
||
formControlName="unloadAddress{{ idx }}"
|
||
placeholder="请输入卸货地"
|
||
/>
|
||
</nz-input-group>
|
||
<span style="padding: 0 10px"
|
||
><i nz-icon nzType="menu" nzTheme="outline" style="color: #1890ff" (click)="chooseAddress(idx, 'end')"></i
|
||
></span>
|
||
<span><i nz-icon nzType="minus-circle-o" nzTheme="fill" style="color: #d9001b" (click)="subEndInfo($event, idx)"></i></span>
|
||
</div>
|
||
</nz-form-control>
|
||
</nz-form-item>
|
||
<nz-form-item>
|
||
<nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label>
|
||
<nz-form-control [nzErrorTip]="'请输入联系人信息'">
|
||
<div class="align-center">
|
||
<input nz-input [(ngModel)]="data.appUserName" [ngModelOptions]="{ standalone: true }" maxlength="30" />
|
||
<input
|
||
style="margin-left: 12px"
|
||
nz-input
|
||
[(ngModel)]="data.contractTelephone"
|
||
[ngModelOptions]="{ standalone: true }"
|
||
maxlength="11"
|
||
/>
|
||
</div>
|
||
</nz-form-control>
|
||
</nz-form-item>
|
||
</div>
|
||
<button nz-button nzType="primary" (click)="addEndInfo($event)">
|
||
<i nz-icon nzType="plus"></i>
|
||
添加卸货地
|
||
</button>
|
||
</div>
|
||
</div>
|
||
<div nz-row [nzGutter]="24" style="margin-top: 24px">
|
||
<div nz-col [nzSpan]="9">
|
||
<nz-form-item>
|
||
<nz-form-label [nzSpan]="4" nzRequired>装货时间</nz-form-label>
|
||
<nz-form-control [nzErrorTip]="'请输入装货时间'">
|
||
<nz-date-picker
|
||
nzShowTime
|
||
nzFormat="yyyy-MM-dd HH:mm:ss"
|
||
formControlName="loadingTime"
|
||
[(ngModel)]="loadingTime"
|
||
></nz-date-picker>
|
||
</nz-form-control>
|
||
</nz-form-item>
|
||
</div>
|
||
<div nz-col [nzSpan]="8">
|
||
<nz-form-item>
|
||
<nz-form-label [nzSpan]="9" nzRequired>卸货时间</nz-form-label>
|
||
<nz-form-control [nzErrorTip]="'请输入卸货时间'">
|
||
<nz-date-picker
|
||
nzShowTime
|
||
nzFormat="yyyy-MM-dd HH:mm:ss"
|
||
formControlName="unloadingTime"
|
||
[(ngModel)]="unloadingTime"
|
||
></nz-date-picker>
|
||
</nz-form-control>
|
||
</nz-form-item>
|
||
</div>
|
||
</div>
|
||
<ng-template #endInconTemp1><i nz-icon nzType="global"></i></ng-template>
|
||
</form>
|
||
</nz-card>
|
||
|
||
<nz-card>
|
||
<div class="card-title">货物信息</div>
|
||
<div nz-row>
|
||
<div nz-col nzSpan="12">
|
||
<sf #sf3 [schema]="schema3" [formData]="sf3data" [button]="'none'" [ui]="ui3"></sf>
|
||
<sf #sf4 [schema]="schema4" [formData]="sf4data" [button]="'none'" [ui]="ui4">
|
||
<ng-template sf-template="weight" let-i let-ui="ui">
|
||
<nz-input-group [nzAddOnAfter]="'吨'">
|
||
<input
|
||
nz-input
|
||
type="number"
|
||
[ngModel]="i.value"
|
||
min="0"
|
||
step="0.01"
|
||
(ngModelChange)="i.setValue($event)"
|
||
placeholder="总重量,必填"
|
||
/>
|
||
</nz-input-group>
|
||
</ng-template>
|
||
<ng-template sf-template="volume" let-i let-ui="ui">
|
||
<nz-input-group [nzAddOnAfter]="'方'">
|
||
<input
|
||
nz-input
|
||
type="number"
|
||
[ngModel]="i.value"
|
||
min="0"
|
||
step="0.01"
|
||
(ngModelChange)="i.setValue($event)"
|
||
placeholder="总体积"
|
||
/>
|
||
</nz-input-group>
|
||
</ng-template>
|
||
<ng-template sf-template="number" let-i let-ui="ui">
|
||
<nz-input-group [nzAddOnAfter]="'车'">
|
||
<input
|
||
nz-input
|
||
type="number"
|
||
[ngModel]="i.value"
|
||
min="0"
|
||
step="0.01"
|
||
(ngModelChange)="i.setValue($event)"
|
||
placeholder="总车次"
|
||
/>
|
||
</nz-input-group>
|
||
</ng-template>
|
||
</sf>
|
||
</div>
|
||
</div>
|
||
</nz-card>
|
||
|
||
<nz-card>
|
||
<div class="card-title">服务信息</div>
|
||
<div nz-row [nzGutter]="24" style="margin: 24px 0">
|
||
<div nz-col [nzSpan]="10">
|
||
<div class="align-center">
|
||
<span style="font-weight: bolder; margin-right: 24px">购买货运险</span>
|
||
<nz-alert nzType="warning" [nzMessage]="template1" nzShowIcon></nz-alert>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<ng-template #template1>推荐投保,填写货值自动估保费,司机接单后不可退保。详见<a>《投保告知》</a></ng-template>
|
||
<div nz-row>
|
||
<div nz-col nzSpan="12">
|
||
<sf #sf5 [schema]="schema5" [formData]="sf5data" [button]="'none'" [ui]="ui5">
|
||
<ng-template sf-template="goodsValue" let-i let-ui="ui">
|
||
<div class="align-center">
|
||
<input nz-input [ngModel]="i.value" (ngModelChange)="i.setValue($event)" />
|
||
<span style="padding: 0 12px" nz-tooltip [nzTooltipTitle]="template2"
|
||
><i nz-icon nzType="exclamation-circle" nzTheme="outline" style="color: #1890ff"></i
|
||
></span>
|
||
<ng-template #template2
|
||
>注意事项:<br />
|
||
|
||
①请仔细阅读《投保告知》<br />
|
||
|
||
②港澳台、西藏不在投保范围内,不予承保<br />
|
||
|
||
③保价费最低收费2元,请按真实货值填写,录入的所有信息必须确保真实,不如实录入的内容,不承担对应赔偿责任。</ng-template
|
||
>
|
||
</div>
|
||
</ng-template>
|
||
</sf>
|
||
</div>
|
||
</div>
|
||
</nz-card>
|
||
|
||
<nz-card>
|
||
<div class="card-title">补充信息</div>
|
||
<div nz-row>
|
||
<div nz-col nzSpan="12">
|
||
<sf #sf6 [schema]="schema6" [formData]="sf6data" [button]="'none'" [ui]="ui6">
|
||
<ng-template sf-template="receiptAddressId" let-i let-ui="ui">
|
||
<input
|
||
nz-input
|
||
[ngModel]="i.value"
|
||
(ngModelChange)="i.setValue($event)"
|
||
placeholder="请点击选择收回单地址"
|
||
(click)="backBillChange()"
|
||
/>
|
||
</ng-template>
|
||
</sf>
|
||
</div>
|
||
</div>
|
||
</nz-card>
|
||
<nz-card>
|
||
<div class="card-title">运费信息</div>
|
||
<div nz-row>
|
||
<div nz-col nzSpan="12">
|
||
<sf #sf7 [schema]="schema7" [button]="'none'" [ui]="ui7" [formData]="sf7data">
|
||
<ng-template sf-template="subtotal" let-i let-ui="ui">¥{{ i.value }}</ng-template>
|
||
<ng-template sf-template="appendFee" let-i let-ui="ui">¥{{ i.value }}(费率:{{ currentRate | number: '0.2-4' }}%)</ng-template>
|
||
<ng-template sf-template="total" let-i let-ui="ui">¥{{ i.value }}</ng-template>
|
||
<ng-template sf-template="paymentDays" let-i let-ui="ui">
|
||
<div nz-row>
|
||
<div class="align-center" style="width: 300px">
|
||
<div nz-col nzSpan="16">
|
||
<nz-input-number
|
||
[ngModel]="i.value"
|
||
[nzMin]="1"
|
||
[nzMax]="30"
|
||
[nzStep]="1"
|
||
style="width: 150px"
|
||
(ngModelChange)="i.setValue($event)"
|
||
nzPlaceHolder="请输入1-30"
|
||
></nz-input-number>
|
||
</div>
|
||
<div nz-col nzSpan="8">
|
||
<span>天内支付运费</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</ng-template>
|
||
</sf>
|
||
</div>
|
||
</div>
|
||
</nz-card>
|
||
<nz-card>
|
||
<div class="align-center">
|
||
<button nz-button nzType="primary" *ngIf="this.PageStatus == '整车修改'" (click)="choose()">取消</button>
|
||
<button *ngIf="this.PageStatus == '整车修改'" nz-button nzType="primary" style="margin-left: 48px" (click)="submit()">提交修改</button>
|
||
<button nz-button nzType="primary" *ngIf="this.PageStatus == '整车下一单'" (click)="chooseFamifiar()">指派熟车</button>
|
||
<button *ngIf="this.PageStatus == '整车下一单'" nz-button nzType="primary" style="margin-left: 48px" (click)="submit()"
|
||
>司机抢单</button
|
||
>
|
||
</div>
|
||
</nz-card>
|