Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -501,11 +501,12 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
showImg(_record: any) {
|
showImg(_record: any) {
|
||||||
const params = {
|
window.location.href = `${_record.policyUrl}`;
|
||||||
imgList: [_record.policyUrl],
|
// const params = {
|
||||||
index: 0
|
// imgList: [_record.policyUrl],
|
||||||
};
|
// index: 0
|
||||||
this.modal.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
// };
|
||||||
|
// this.modal.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 查询字段个数
|
* 查询字段个数
|
||||||
|
|||||||
@ -239,7 +239,7 @@
|
|||||||
[nzMin]="50000"
|
[nzMin]="50000"
|
||||||
[nzMax]="3000000"
|
[nzMax]="3000000"
|
||||||
[nzStep]="0.01"
|
[nzStep]="0.01"
|
||||||
(ngModelChange)="i.setValue($event);getInsurersPrice()"
|
(ngModelChange)="i.setValue($event);getInsurersPrice($event)"
|
||||||
nzPlaceHolder="请输入50000-3000000之间数值"
|
nzPlaceHolder="请输入50000-3000000之间数值"
|
||||||
></nz-input-number>
|
></nz-input-number>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -849,10 +849,11 @@ 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);
|
console.log(this?.loadingTime);
|
||||||
if (typeof this.validateForm1.value.unloadingTime !== 'string') {
|
console.log(this?.unloadingTime);
|
||||||
var c = new Date(this.validateForm1.value.unloadingTime);
|
if (typeof this.unloadingTime !== 'string') {
|
||||||
this.validateForm1.value.unloadingTime =
|
var c = new Date(this.unloadingTime);
|
||||||
|
this.unloadingTime =
|
||||||
c.getFullYear() +
|
c.getFullYear() +
|
||||||
'-' +
|
'-' +
|
||||||
this.addPreZero(c.getMonth() + 1) +
|
this.addPreZero(c.getMonth() + 1) +
|
||||||
@ -865,9 +866,9 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
':' +
|
':' +
|
||||||
this.addPreZero(c.getSeconds());
|
this.addPreZero(c.getSeconds());
|
||||||
}
|
}
|
||||||
if (typeof this.validateForm1.value.loadingTime !== 'string') {
|
if (typeof this.loadingTime !== 'string') {
|
||||||
var c = new Date(this.validateForm1.value.loadingTime);
|
var c = new Date(this.loadingTime);
|
||||||
this.validateForm1.value.loadingTime =
|
this.loadingTime =
|
||||||
c.getFullYear() +
|
c.getFullYear() +
|
||||||
'-' +
|
'-' +
|
||||||
this.addPreZero(c.getMonth() + 1) +
|
this.addPreZero(c.getMonth() + 1) +
|
||||||
@ -880,13 +881,14 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
':' +
|
':' +
|
||||||
this.addPreZero(c.getSeconds());
|
this.addPreZero(c.getSeconds());
|
||||||
}
|
}
|
||||||
|
console.log(this.loadingTime)
|
||||||
const params: any = {
|
const params: any = {
|
||||||
...this.sf1.value,
|
...this.sf1.value,
|
||||||
...this.sf5.value,
|
...this.sf5.value,
|
||||||
...this.sf6.value,
|
...this.sf6.value,
|
||||||
paymentDays: this.sf7.value.paymentDays,
|
paymentDays: this.sf7.value.paymentDays,
|
||||||
loadingTime: this.validateForm1?.value?.loadingTime,
|
loadingTime: this.loadingTime,
|
||||||
unloadingTime: this.validateForm1?.value?.unloadingTime,
|
unloadingTime: this.unloadingTime,
|
||||||
unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo],
|
unLoadingPlaceDTOList: [...this.startInfo, ...this.endInfo],
|
||||||
goodsInfoDTOList: [
|
goodsInfoDTOList: [
|
||||||
{
|
{
|
||||||
@ -1084,8 +1086,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
|
|
||||||
// 计算里程,时间
|
// 计算里程,时间
|
||||||
if (this.startInfo?.[0]?.area && this.endInfo?.[0]?.area) {
|
if (this.startInfo?.[0]?.area && this.endInfo?.[0]?.area) {
|
||||||
console.log(this.startInfo[0]?.area);
|
|
||||||
console.log(this.endInfo[0]?.area);
|
|
||||||
this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => {
|
this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe(res => {
|
||||||
this.totalDistance = res.distance;
|
this.totalDistance = res.distance;
|
||||||
this.totalTime = res.time;
|
this.totalTime = res.time;
|
||||||
@ -1166,8 +1166,6 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
nzWidth: 900,
|
nzWidth: 900,
|
||||||
nzComponentParams: { spuStatus: '1' },
|
nzComponentParams: { spuStatus: '1' },
|
||||||
nzOnOk: item => {
|
nzOnOk: item => {
|
||||||
console.log(item);
|
|
||||||
console.log(type);
|
|
||||||
const data = item.seleteData;
|
const data = item.seleteData;
|
||||||
if (JSON.stringify(data) === '{}') return;
|
if (JSON.stringify(data) === '{}') return;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
@ -1204,18 +1202,16 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
changeUn(event: Date) {
|
changeUn(event: Date) {
|
||||||
|
console.log(event)
|
||||||
this.unloadingTime = event;
|
this.unloadingTime = event;
|
||||||
console.log(this.unloadingTime );
|
|
||||||
console.log(this.unloadingTime.getTime() );
|
|
||||||
if(typeof this.loadingTime === 'string') {
|
if(typeof this.loadingTime === 'string') {
|
||||||
var a = new Date(this.loadingTime)
|
var a = new Date(this.loadingTime)
|
||||||
if ( a > this.unloadingTime.getTime() ) {
|
if ( a > this.unloadingTime?.getTime() ) {
|
||||||
this.service.msgSrv.error('卸货时间不能小于装货时间!');
|
this.service.msgSrv.error('卸货时间不能小于装货时间!');
|
||||||
this.unloadingTime = '';
|
this.unloadingTime = '';
|
||||||
console.log(this.unloadingTime)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( this.loadingTime.getTime() > this.unloadingTime.getTime() ) {
|
if ( this.loadingTime?.getTime() > this.unloadingTime?.getTime() ) {
|
||||||
this.service.msgSrv.error('卸货时间不能小于装货时间!');
|
this.service.msgSrv.error('卸货时间不能小于装货时间!');
|
||||||
this.unloadingTime = '';
|
this.unloadingTime = '';
|
||||||
}
|
}
|
||||||
@ -1223,19 +1219,14 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
changeLO(event: Date) {
|
changeLO(event: Date) {
|
||||||
this.loadingTime = event;
|
this.loadingTime = event;
|
||||||
console.log(this.loadingTime.getTime() );
|
|
||||||
console.log(this.unloadingTime)
|
|
||||||
console.log( typeof this.unloadingTime)
|
|
||||||
if(typeof this.unloadingTime === 'string') {
|
if(typeof this.unloadingTime === 'string') {
|
||||||
var a = new Date(this.unloadingTime)
|
var a = new Date(this.unloadingTime)
|
||||||
if ( a.getTime()< this.loadingTime.getTime()) {
|
if ( a.getTime()< this.loadingTime?.getTime()) {
|
||||||
console.log('错误');
|
|
||||||
this.service.msgSrv.error('装货时间不能大于卸货时间!');
|
this.service.msgSrv.error('装货时间不能大于卸货时间!');
|
||||||
this.loadingTime = '';
|
this.loadingTime = '';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( this.unloadingTime.getTime()< this.loadingTime.getTime()) {
|
if ( this.unloadingTime?.getTime()< this.loadingTime?.getTime()) {
|
||||||
console.log('错误');
|
|
||||||
this.service.msgSrv.error('装货时间不能大于卸货时间!');
|
this.service.msgSrv.error('装货时间不能大于卸货时间!');
|
||||||
this.loadingTime = '';
|
this.loadingTime = '';
|
||||||
}
|
}
|
||||||
@ -1299,7 +1290,9 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getInsurersPrice() {
|
getInsurersPrice($event: any) {
|
||||||
|
console.log($event);
|
||||||
|
|
||||||
console.log(this.sf5.value.goodsValue)
|
console.log(this.sf5.value.goodsValue)
|
||||||
console.log(this.sf5.value.insuranceType)
|
console.log(this.sf5.value.insuranceType)
|
||||||
if (this.sf5.value.goodsValue >= 50000) {
|
if (this.sf5.value.goodsValue >= 50000) {
|
||||||
|
|||||||
Reference in New Issue
Block a user