fix bug
This commit is contained in:
@ -316,7 +316,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
placeholder: '请输入'
|
||||
}
|
||||
},
|
||||
maxWeight: {
|
||||
carModel: {
|
||||
type: 'string',
|
||||
title: '车型/车长',
|
||||
ui: {
|
||||
@ -327,7 +327,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
errors: { required: '请选择车型' }
|
||||
}
|
||||
},
|
||||
maxCube: {
|
||||
carLength: {
|
||||
type: 'string',
|
||||
title: '',
|
||||
ui: {
|
||||
@ -339,7 +339,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
},
|
||||
required: ['weight', 'maxWeight', 'maxCube']
|
||||
required: ['weight', 'carModel', 'carLength']
|
||||
};
|
||||
this.ui4 = {
|
||||
'*': {
|
||||
@ -355,10 +355,10 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
$number: {
|
||||
grid: { span: 8 }
|
||||
},
|
||||
$maxWeight: {
|
||||
$carModel: {
|
||||
grid: { span: 12 }
|
||||
},
|
||||
$maxCube: {
|
||||
$carLength: {
|
||||
grid: { span: 12 }
|
||||
}
|
||||
};
|
||||
@ -871,8 +871,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
{
|
||||
...this.sf4.value,
|
||||
...this.sf3.value,
|
||||
maxWeight: this.sf4.value.maxWeight.join(','),
|
||||
maxCube: this.sf4.value.maxCube.join(',')
|
||||
carModel: this.sf4.value.carModel.join(','),
|
||||
carLength: this.sf4.value.carLength.join(',')
|
||||
}
|
||||
]
|
||||
};
|
||||
@ -1076,8 +1076,8 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
weight: res?.goodsInfoVOList[0]?.weight,
|
||||
volume: res?.goodsInfoVOList[0]?.volume,
|
||||
vehicleDemand: res?.goodsInfoVOList[0]?.vehicleDemand,
|
||||
maxCube: res?.goodsInfoVOList[0]?.maxCube?.split(','),
|
||||
maxWeight: res?.goodsInfoVOList[0]?.maxWeight?.split(',') || '',
|
||||
carLength: res?.goodsInfoVOList[0]?.carLength?.split(','),
|
||||
carModel: res?.goodsInfoVOList[0]?.carModel?.split(',') || '',
|
||||
number: res?.goodsInfoVOList[0]?.number,
|
||||
goodsTypeName: res?.goodsInfoVOList[0]?.goodsTypeName,
|
||||
modifyUserId: res?.goodsInfoVOList[0]?.modifyUserId,
|
||||
@ -1171,4 +1171,54 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
changeUn(value: any) {
|
||||
console.log(value)
|
||||
if (typeof value !== 'string') {
|
||||
var c = new Date(value);
|
||||
value =
|
||||
c.getFullYear() +
|
||||
'-' +
|
||||
this.addPreZero(c.getMonth() + 1) +
|
||||
'-' +
|
||||
this.addPreZero(c.getDate()) +
|
||||
' ' +
|
||||
this.addPreZero(c.getHours()) +
|
||||
':' +
|
||||
this.addPreZero(c.getMinutes()) +
|
||||
':' +
|
||||
this.addPreZero(c.getSeconds());
|
||||
}
|
||||
console.log(value)
|
||||
console.log(this.loadingTime)
|
||||
console.log(this.loadingTime > value)
|
||||
if(this.loadingTime > value) {
|
||||
console.log('错误')
|
||||
this.unloadingTime = ''
|
||||
}
|
||||
}
|
||||
changeLO(value: any) {
|
||||
console.log(value)
|
||||
if (typeof value !== 'string') {
|
||||
var c = new Date(value);
|
||||
value =
|
||||
c.getFullYear() +
|
||||
'-' +
|
||||
this.addPreZero(c.getMonth() + 1) +
|
||||
'-' +
|
||||
this.addPreZero(c.getDate()) +
|
||||
' ' +
|
||||
this.addPreZero(c.getHours()) +
|
||||
':' +
|
||||
this.addPreZero(c.getMinutes()) +
|
||||
':' +
|
||||
this.addPreZero(c.getSeconds());
|
||||
}
|
||||
console.log(value)
|
||||
console.log(this.unloadingTime)
|
||||
console.log(this.unloadingTime > value)
|
||||
if(this.unloadingTime > value) {
|
||||
console.log('错误')
|
||||
this.loadingTime = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user