车辆接口更新
This commit is contained in:
@ -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-01-19 11:29:14
|
* @LastEditTime : 2022-01-19 13:56:39
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
@ -20,7 +20,7 @@ module.exports = {
|
|||||||
// }
|
// }
|
||||||
'//api': {
|
'//api': {
|
||||||
target: {
|
target: {
|
||||||
host: 'tms-api-test.eascs.com',
|
host: 'tms-api-dev.eascs.com',
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
port: 443
|
port: 443
|
||||||
},
|
},
|
||||||
|
|||||||
@ -126,6 +126,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
title: '投诉单号',
|
title: '投诉单号',
|
||||||
width: '170px',
|
width: '170px',
|
||||||
|
fixed: 'left',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
render: 'complaintCode'
|
render: 'complaintCode'
|
||||||
},
|
},
|
||||||
@ -141,7 +142,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
|||||||
index: 'complainantTime',
|
index: 'complainantTime',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
},
|
},
|
||||||
{ title: '托运方', index: 'shipperAppUserName', width: '120px', className: 'text-center' },
|
{ title: '托运方', index: 'shipperAppUserName', width: '200px', className: 'text-center' },
|
||||||
{ title: '司机', index: 'driverIdLabel', width: '120px', className: 'text-center' },
|
{ title: '司机', index: 'driverIdLabel', width: '120px', className: 'text-center' },
|
||||||
{
|
{
|
||||||
title: '投诉原因',
|
title: '投诉原因',
|
||||||
|
|||||||
@ -223,18 +223,18 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
initST() {
|
initST() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{ title: '', type: 'checkbox', width: '50px', className: 'text-center' },
|
{ title: '', type: 'checkbox', width: '50px', className: 'text-center' },
|
||||||
{
|
|
||||||
title: '申诉状态',
|
|
||||||
width: '100px',
|
|
||||||
className: 'text-left',
|
|
||||||
index: 'representationsStatusLabel'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: '订单号',
|
title: '订单号',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
className: 'text-left',
|
className: 'text-left',
|
||||||
render: 'billCode'
|
render: 'billCode'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '申诉状态',
|
||||||
|
width: '100px',
|
||||||
|
className: 'text-left',
|
||||||
|
index: 'representationsStatusLabel'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '货源编号',
|
title: '货源编号',
|
||||||
width: '200px',
|
width: '200px',
|
||||||
|
|||||||
@ -101,7 +101,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="driverName" let-item let-index="index">
|
<ng-template st-row="driverName" let-item let-index="index">
|
||||||
<div>
|
<div>
|
||||||
{{item?.driverName}}/{{item?.driverPhone}}
|
{{item?.driverName}}/{{item?.driverPhone}}/{{item?.plateNumber}}
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="payeeName" let-item let-index="index">
|
<ng-template st-row="payeeName" let-item let-index="index">
|
||||||
|
|||||||
@ -42,7 +42,7 @@
|
|||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label>
|
<nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label>
|
||||||
<nz-form-control [nzErrorTip]="'请输入联系人信息'">
|
<!-- <nz-form-control [nzErrorTip]="'请输入联系人信息'">
|
||||||
<div class="align-center">
|
<div class="align-center">
|
||||||
<input nz-input [(ngModel)]="data.appUserName" formControlName="loadName{{ idx }}" maxlength="30" />
|
<input nz-input [(ngModel)]="data.appUserName" formControlName="loadName{{ idx }}" maxlength="30" />
|
||||||
<input
|
<input
|
||||||
@ -53,7 +53,30 @@
|
|||||||
maxlength="11"
|
maxlength="11"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</nz-form-control>
|
</nz-form-control> -->
|
||||||
|
<div style="display: flex">
|
||||||
|
<nz-form-control [nzErrorTip]="'请输入联系人姓名'">
|
||||||
|
<input
|
||||||
|
nz-input
|
||||||
|
[(ngModel)]="data.appUserName"
|
||||||
|
formControlName="loadName{{ idx }}"
|
||||||
|
name="loadName{{ idx }}"
|
||||||
|
maxlength="30"
|
||||||
|
placeholder="请输入联系人姓名"
|
||||||
|
/>
|
||||||
|
</nz-form-control>
|
||||||
|
<nz-form-control [nzErrorTip]="'请输入联系人电话'">
|
||||||
|
<input
|
||||||
|
style="margin-left: 12px"
|
||||||
|
nz-input
|
||||||
|
[(ngModel)]="data.contractTelephone"
|
||||||
|
maxlength="11"
|
||||||
|
formControlName="loadPhone{{ idx }}"
|
||||||
|
name="loadPhone{{ idx }}"
|
||||||
|
placeholder="请输入联系人电话"
|
||||||
|
/>
|
||||||
|
</nz-form-control>
|
||||||
|
</div>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
<button nz-button nzType="primary" (click)="addStartInfo($event)">
|
<button nz-button nzType="primary" (click)="addStartInfo($event)">
|
||||||
@ -90,7 +113,7 @@
|
|||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label>
|
<nz-form-label [nzSpan]="4" nzRequired>联系人</nz-form-label>
|
||||||
<nz-form-control [nzErrorTip]="'请输入联系人信息'">
|
<!-- <nz-form-control [nzErrorTip]="'请输入联系人信息'">
|
||||||
<div class="align-center">
|
<div class="align-center">
|
||||||
<input nz-input [(ngModel)]="data.appUserName" formControlName="unloadName{{ idx }}" maxlength="30" />
|
<input nz-input [(ngModel)]="data.appUserName" formControlName="unloadName{{ idx }}" maxlength="30" />
|
||||||
<input
|
<input
|
||||||
@ -101,7 +124,30 @@
|
|||||||
maxlength="11"
|
maxlength="11"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</nz-form-control>
|
</nz-form-control> -->
|
||||||
|
<div style="display: flex">
|
||||||
|
<nz-form-control [nzErrorTip]="'请输入联系人姓名'">
|
||||||
|
<input
|
||||||
|
nz-input
|
||||||
|
[(ngModel)]="data.appUserName"
|
||||||
|
maxlength="30"
|
||||||
|
formControlName="unloadName{{ idx }}"
|
||||||
|
name="unloadAddress{{ idx }}"
|
||||||
|
placeholder="请输入联系人姓名"
|
||||||
|
/>
|
||||||
|
</nz-form-control>
|
||||||
|
<nz-form-control [nzErrorTip]="'请输入联系人电话'">
|
||||||
|
<input
|
||||||
|
style="margin-left: 12px"
|
||||||
|
nz-input
|
||||||
|
[(ngModel)]="data.contractTelephone"
|
||||||
|
formControlName="unloadPhone{{ idx }}"
|
||||||
|
name="unloadAddress{{ idx }}"
|
||||||
|
maxlength="11"
|
||||||
|
placeholder="请输入联系人电话"
|
||||||
|
/>
|
||||||
|
</nz-form-control>
|
||||||
|
</div>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
<button nz-button nzType="primary" (click)="addEndInfo($event)">
|
<button nz-button nzType="primary" (click)="addEndInfo($event)">
|
||||||
|
|||||||
@ -57,6 +57,12 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
public shipperSrv: ShipperBaseService
|
public shipperSrv: ShipperBaseService
|
||||||
) {
|
) {
|
||||||
this.validateForm1 = fb.group({
|
this.validateForm1 = fb.group({
|
||||||
|
loadAddress0: [null, [Validators.required]],
|
||||||
|
loadName0: [null, [Validators.required]],
|
||||||
|
loadPhone0: [null, [Validators.required,Validators.pattern('^[0-9]*$')]],
|
||||||
|
unloadAddress0: [null, [Validators.required]],
|
||||||
|
unloadName0: [null, [Validators.required]],
|
||||||
|
unloadPhone0: [null, [Validators.required,Validators.pattern('^[0-9]*$')]],
|
||||||
loadingTime: [null, []],
|
loadingTime: [null, []],
|
||||||
unloadingTime: [null, []]
|
unloadingTime: [null, []]
|
||||||
});
|
});
|
||||||
@ -766,6 +772,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
if (this.validateForm1.invalid || !this.sf3.valid || !this.sf1.valid || !this.sf4.valid || !this.sf6.valid || !this.sf7.valid) {
|
if (this.validateForm1.invalid || !this.sf3.valid || !this.sf1.valid || !this.sf4.valid || !this.sf6.valid || !this.sf7.valid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(this.validateForm1.value?.unloadingTime)
|
||||||
if (typeof this.validateForm1.value.unloadingTime !== 'string') {
|
if (typeof this.validateForm1.value.unloadingTime !== 'string') {
|
||||||
var c = new Date(this.validateForm1.value.unloadingTime);
|
var c = new Date(this.validateForm1.value.unloadingTime);
|
||||||
this.validateForm1.value.unloadingTime =
|
this.validateForm1.value.unloadingTime =
|
||||||
|
|||||||
Reference in New Issue
Block a user