fix bug
This commit is contained in:
@ -665,18 +665,18 @@ export class CarSettleAddDriverComponent implements OnInit {
|
||||
this.showJopFlag = !this.showJopFlag;
|
||||
}
|
||||
submitForm() {
|
||||
const items: any = this.sf.value;
|
||||
items.certificatePhotoFrontWatermark = this.sf.value?.certificatePhotoFrontWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoFrontWatermark;
|
||||
items.certificatePhotoBackWatermark = this.sf.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoBackWatermark;
|
||||
const items: any = this.sf?.value;
|
||||
items.certificatePhotoFrontWatermark = this.sf?.value?.certificatePhotoFrontWatermark?.data?.fullFilePath || this.sf?.value?.certificatePhotoFrontWatermark;
|
||||
items.certificatePhotoBackWatermark = this.sf?.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf?.value?.certificatePhotoBackWatermark;
|
||||
const items2: any = this.sf1.value;
|
||||
items2.certificatePhotoWatermark = this.sf1.value?.certificatePhotoWatermark?.data?.fullFilePath || this.sf1.value?.certificatePhotoWatermark;
|
||||
const items3: any = this.sf2.value;
|
||||
items3.certificatePhotoWatermark = this.sf2.value?.certificatePhotoWatermark?.data?.fullFilePath || this.sf2.value?.certificatePhotoWatermark;
|
||||
const params: any = {
|
||||
source: 2,
|
||||
mobile: this.sf.value.mobile,
|
||||
bankCardNo: this.sf.value.bankCardNo,
|
||||
bankName: this.sf.value.bankName,
|
||||
mobile: this.sf?.value.mobile,
|
||||
bankCardNo: this.sf?.value.bankCardNo,
|
||||
bankName: this.sf?.value.bankName,
|
||||
identityInfoDTO: {
|
||||
...items,
|
||||
certificatePhotoFront: this.detailData.certificatePhotoFront,
|
||||
|
||||
@ -90,17 +90,17 @@ export class CtcCaptatinAddComponent implements OnInit {
|
||||
widget: this.i.id ? 'text' : '',
|
||||
placeholder: '请输入手机号',
|
||||
blur: () => {
|
||||
if(!this.sf.value.mobile) {
|
||||
if(!this.sf?.value.mobile) {
|
||||
return
|
||||
}
|
||||
this.service.request(this.service.$api_getByMobile, { mobile: this.sf.value.mobile }).subscribe(res => {
|
||||
this.service.request(this.service.$api_getByMobile, { mobile: this.sf?.value.mobile }).subscribe(res => {
|
||||
if (res.certificateNumber) {
|
||||
this.readFlag = true
|
||||
this.detailData = {
|
||||
mobile: this.sf.value.mobile,
|
||||
bankName: this.sf.value.bankName,
|
||||
bankCardNo: this.sf.value.bankCardNo,
|
||||
remark: this.sf.value.remark,
|
||||
mobile: this.sf?.value.mobile,
|
||||
bankName: this.sf?.value.bankName,
|
||||
bankCardNo: this.sf?.value.bankCardNo,
|
||||
remark: this.sf?.value.remark,
|
||||
identityInfoDTO: {
|
||||
certificatePhotoFrontWatermark: [
|
||||
{
|
||||
@ -128,10 +128,10 @@ export class CtcCaptatinAddComponent implements OnInit {
|
||||
} else {
|
||||
this.readFlag = false
|
||||
this.detailData = {
|
||||
mobile: this.sf.value.mobile,
|
||||
bankName: this.sf.value.bankName,
|
||||
bankCardNo: this.sf.value.bankCardNo,
|
||||
remark: this.sf.value.remark,
|
||||
mobile: this.sf?.value.mobile,
|
||||
bankName: this.sf?.value.bankName,
|
||||
bankCardNo: this.sf?.value.bankCardNo,
|
||||
remark: this.sf?.value.remark,
|
||||
identityInfoDTO: {
|
||||
certificatePhotoFrontWatermark: '',
|
||||
certificatePhotoBackWatermark: '',
|
||||
@ -377,17 +377,17 @@ export class CtcCaptatinAddComponent implements OnInit {
|
||||
this.changeSub.pipe(debounceTime(500)).subscribe((res: string) => {
|
||||
if (res) {
|
||||
const params: any = {
|
||||
bankCardNo: this.sf.value.bankCardNo,
|
||||
bankName: this.sf.value.bankName,
|
||||
mobile: this.sf.value.mobile,
|
||||
remark: this.sf.value.remark,
|
||||
bankCardNo: this.sf?.value.bankCardNo,
|
||||
bankName: this.sf?.value.bankName,
|
||||
mobile: this.sf?.value.mobile,
|
||||
remark: this.sf?.value.remark,
|
||||
identityInfoDTO: {
|
||||
certificatePhotoBackWatermark: this.sf.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoBackWatermark,
|
||||
certificatePhotoFrontWatermark: this.sf.value?.certificatePhotoFrontWatermark?.data?.fullFilePath ||this.sf.value?.certificatePhotoFrontWatermark,
|
||||
certificatePhotoBackWatermark: this.sf?.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf?.value?.certificatePhotoBackWatermark,
|
||||
certificatePhotoFrontWatermark: this.sf?.value?.certificatePhotoFrontWatermark?.data?.fullFilePath ||this.sf?.value?.certificatePhotoFrontWatermark,
|
||||
certificatePhotoFront: this.detailData.certificatePhotoFront,
|
||||
certificatePhotoBack: this.detailData.certificatePhotoBack,
|
||||
certificateNumber: this.sf.value.certificateNumber,
|
||||
name: this.sf.value.name,
|
||||
certificateNumber: this.sf?.value.certificateNumber,
|
||||
name: this.sf?.value.name,
|
||||
}
|
||||
}
|
||||
if (this.i.id) {
|
||||
|
||||
@ -32,7 +32,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
*/
|
||||
get reqParams() {
|
||||
const params: any = {
|
||||
...(this.sf && this.sf.value)
|
||||
...(this.sf && this.sf?.value)
|
||||
};
|
||||
if (this.sf?.value.effectiveDate) {
|
||||
params.effectiveDateStart = this.sf?.value.effectiveDate[0];
|
||||
|
||||
@ -24,7 +24,7 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
||||
get reqParams() {
|
||||
const params: any = {
|
||||
auditStatus: 20,
|
||||
...(this.sf && this.sf.value)
|
||||
...(this.sf && this.sf?.value)
|
||||
};
|
||||
delete params.effectiveDate;
|
||||
delete params.expand;
|
||||
|
||||
@ -39,7 +39,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
*/
|
||||
get reqParams() {
|
||||
const params: any = {
|
||||
...(this.sf && this.sf.value),
|
||||
...(this.sf && this.sf?.value),
|
||||
auditStatus: this.resourceStatus
|
||||
};
|
||||
if (this.sf?.value.effectiveDate) {
|
||||
|
||||
Reference in New Issue
Block a user