日期修改

This commit is contained in:
2024-04-10 17:17:56 +08:00
parent 70ec1ae4ed
commit 3d62c84fa8

View File

@ -261,12 +261,12 @@ export default {
cardSide: 'FRONT'
});
if( res?.data ) {
this.driverInfo.drivingBeginDate = (res?.data?.dateOfFirstIssue + ' 00:00:00' ) || '';
this.driverInfo.drivingBeginDate = res?.data?.dateOfFirstIssue || '';
this.driverInfo.lssueDate = res?.data?.dateOfFirstIssue ? (res?.data?.dateOfFirstIssue + ' 00:00:00') : '';
if( res?.data?.endDate.indexOf('长期') != -1 ) {
this.driverInfo.drivingLicenceValidityDate = '2099-01-01 00:00:00';
this.driverInfo.drivingLicenceValidityDate = '2099-01-01';
} else {
this.driverInfo.drivingLicenceValidityDate = res?.data?.endDate + ' 00:00:00';
this.driverInfo.drivingLicenceValidityDate = res?.data?.endDate;
}
this.drivingModel = res.data?.class_;