fix bug
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { Placeholder } from '@angular/compiler/src/i18n/i18n_ast';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { apiConf } from '@conf/api.conf';
|
||||
import { cacheConf } from '@conf/cache.conf';
|
||||
@ -131,7 +132,8 @@ export class CarSettleCarauthComponent implements OnInit {
|
||||
},
|
||||
];
|
||||
this.sf?.setValue('/carFrontPhotoWatermark', avatar);
|
||||
this.detailData.carFrontPhoto = args.file.response.data.fullFilePath
|
||||
this.detailData.carFrontPhoto = args.file.response.data.fullFilePath;
|
||||
this.checkCarCard(args.file.response.data.fullFilePath, 'back');
|
||||
}
|
||||
},
|
||||
beforeUpload: (file: any, _fileList: any) => {
|
||||
@ -174,12 +176,10 @@ export class CarSettleCarauthComponent implements OnInit {
|
||||
carModel: {
|
||||
title: '车型',
|
||||
type: 'string',
|
||||
readOnly: true,
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'car:model' },
|
||||
placeholder: '请选择车型',
|
||||
containsAllLabel:false,
|
||||
} as SFSelectWidgetSchema,
|
||||
placeholder:'请上传行驶证自动带出'
|
||||
},
|
||||
},
|
||||
carLength: {
|
||||
title: '车长',
|
||||
@ -682,6 +682,7 @@ export class CarSettleCarauthComponent implements OnInit {
|
||||
this.sf.setValue('/carDistinguishCode', res.vin);
|
||||
this.sf.setValue('/carOwner', res.name);
|
||||
this.sf.setValue('/useNature', res.useCharacter === '非营运' ? 0 : 1);
|
||||
this.sf.setValue('/carModel', res?.vehicleType);
|
||||
|
||||
} else {
|
||||
this.sf.setValue('/curbWeight', res.unladenMass);
|
||||
|
||||
Reference in New Issue
Block a user