diff --git a/src/app/routes/usercenter/components/freight/user/detail/detail.component.ts b/src/app/routes/usercenter/components/freight/user/detail/detail.component.ts
index 67e0fe6d..edefc189 100644
--- a/src/app/routes/usercenter/components/freight/user/detail/detail.component.ts
+++ b/src/app/routes/usercenter/components/freight/user/detail/detail.component.ts
@@ -3,7 +3,7 @@ import { ActivatedRoute } from '@angular/router';
import { apiConf } from '@conf/api.conf';
import { STColumn, STComponent } from '@delon/abc/st';
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
-import { ModalHelper, _HttpClient } from '@delon/theme';
+import { ModalHelper, _HttpClient, DatePipe } from '@delon/theme';
import { NzImageService } from 'ng-zorro-antd/image';
import { NzMessageService } from 'ng-zorro-antd/message';
import { NzModalService } from 'ng-zorro-antd/modal';
@@ -13,7 +13,8 @@ import { UsermanageService } from '../../../../services/usercenter.service';
@Component({
selector: 'app-supplier-components-list-view',
templateUrl: './detail.component.html',
- styleUrls: ['./detail.component.less']
+ styleUrls: ['./detail.component.less'],
+ providers:[DatePipe]
})
export class FreightComponentsUserDetailComponent implements OnInit {
@ViewChild('redectModal', { static: false })
@@ -39,7 +40,8 @@ export class FreightComponentsUserDetailComponent implements OnInit {
private nzModalService: NzModalService,
public service: UsermanageService,
public route: ActivatedRoute,
- private nzImageService: NzImageService
+ private nzImageService: NzImageService,
+ private datePipe: DatePipe
) {}
ngOnInit() {
@@ -154,7 +156,12 @@ export class FreightComponentsUserDetailComponent implements OnInit {
}
saveUser() {
- const params = { ...this.userIdentityDetail };
+ const params = {...this.userIdentityDetail};
+ Object.assign(params, {
+ ...this.userIdentityDetail,
+ validStartTime: this.datePipe.transform(this.userIdentityDetail?.validStartTime, 'yyyy-MM-dd'),
+ validEndTime: this.datePipe.transform(this.userIdentityDetail?.validEndTime, 'yyyy-MM-dd'),
+ });
this.service.request(this.service.$api_update_driver_identity, params).subscribe(res => {
if (res) {
this.service.msgSrv.success('修改成功');
diff --git a/src/app/routes/vehicle/components/list/carauth/carauth.component.ts b/src/app/routes/vehicle/components/list/carauth/carauth.component.ts
index 49342fda..d72f78f0 100644
--- a/src/app/routes/vehicle/components/list/carauth/carauth.component.ts
+++ b/src/app/routes/vehicle/components/list/carauth/carauth.component.ts
@@ -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);
diff --git a/src/app/shared/components/dynamic-setting/dynamic-setting-modal/dynamic-setting-modal.component.ts b/src/app/shared/components/dynamic-setting/dynamic-setting-modal/dynamic-setting-modal.component.ts
index 0de00c17..2c296136 100644
--- a/src/app/shared/components/dynamic-setting/dynamic-setting-modal/dynamic-setting-modal.component.ts
+++ b/src/app/shared/components/dynamic-setting/dynamic-setting-modal/dynamic-setting-modal.component.ts
@@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2022-01-10 16:06:17
* @LastEditors : Shiming
- * @LastEditTime : 2022-03-22 10:05:15
+ * @LastEditTime : 2022-04-20 10:00:02
* @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\dynamic-setting\\dynamic-setting-modal\\dynamic-setting-modal.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
diff --git a/src/assets/mocks/menu-data.json b/src/assets/mocks/menu-data.json
index 1aee4bad..cda6f21b 100644
--- a/src/assets/mocks/menu-data.json
+++ b/src/assets/mocks/menu-data.json
@@ -210,6 +210,15 @@
"link": "/insurance-management/list"
}]
},
+ {
+ "text": "接口对接",
+ "icon": "iconfont icon-yundan-copy",
+ "group": true,
+ "children": [{
+ "text": "运单列表",
+ "link": "/interface-docking/list"
+ }]
+ },
{
"text": "财务管理",
"icon": "iconfont icon-caiwu-copy",