From f5b9bb5bca4af989e708f6813d893a62e92b509c Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 20 Apr 2022 10:00:14 +0800 Subject: [PATCH 1/7] fix bug --- .../network-freight/network-freight.component.ts | 8 +++++++- .../dynamic-setting-modal.component.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/routes/sys-setting/components/network-freight/network-freight.component.ts b/src/app/routes/sys-setting/components/network-freight/network-freight.component.ts index 72ec17f0..4989cbd6 100644 --- a/src/app/routes/sys-setting/components/network-freight/network-freight.component.ts +++ b/src/app/routes/sys-setting/components/network-freight/network-freight.component.ts @@ -516,7 +516,7 @@ export class NetworkFreightComponent implements OnInit { } // 基础设置 settingAction(item?: any) { - this.nzModalService.create({ + const modalRef = this.nzModalService.create({ nzTitle: '系统配置', nzContent: DynamicSettingModalComponent, nzWidth: 900, @@ -526,6 +526,12 @@ export class NetworkFreightComponent implements OnInit { }, nzFooter: null }); + modalRef.afterClose.subscribe((res: boolean) => { + if (res) { + this.resetSF; + this.st.load(); + } + }) } // 应用设置 settingApp(item?: any) { 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. */ From 5f5d75c136f921e4fec4e3177715c0a6091430f2 Mon Sep 17 00:00:00 2001 From: "frank.fang" <1586747138@qq.com> Date: Wed, 20 Apr 2022 13:17:12 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E9=9A=86=E5=9F=BA=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/set/set.component.html | 20 ++ .../components/set/set.component.less | 94 ++++++ .../components/set/set.component.spec.ts | 24 ++ .../components/set/set.component.ts | 40 +++ .../components/waybill/waybill.component.html | 85 ++++++ .../components/waybill/waybill.component.less | 13 + .../waybill/waybill.component.spec.ts | 35 +++ .../components/waybill/waybill.component.ts | 287 ++++++++++++++++++ .../interface-docking-routing.module.ts | 25 ++ .../interface-docking.module.ts | 23 ++ .../services/interface-docking.service.ts | 39 +++ src/app/routes/routes-routing.module.ts | 4 + src/assets/mocks/menu-data.json | 9 + 13 files changed, 698 insertions(+) create mode 100644 src/app/routes/interface-docking/components/set/set.component.html create mode 100644 src/app/routes/interface-docking/components/set/set.component.less create mode 100644 src/app/routes/interface-docking/components/set/set.component.spec.ts create mode 100644 src/app/routes/interface-docking/components/set/set.component.ts create mode 100644 src/app/routes/interface-docking/components/waybill/waybill.component.html create mode 100644 src/app/routes/interface-docking/components/waybill/waybill.component.less create mode 100644 src/app/routes/interface-docking/components/waybill/waybill.component.spec.ts create mode 100644 src/app/routes/interface-docking/components/waybill/waybill.component.ts create mode 100644 src/app/routes/interface-docking/interface-docking-routing.module.ts create mode 100644 src/app/routes/interface-docking/interface-docking.module.ts create mode 100644 src/app/routes/interface-docking/services/interface-docking.service.ts diff --git a/src/app/routes/interface-docking/components/set/set.component.html b/src/app/routes/interface-docking/components/set/set.component.html new file mode 100644 index 00000000..4b5ffd64 --- /dev/null +++ b/src/app/routes/interface-docking/components/set/set.component.html @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/src/app/routes/interface-docking/components/set/set.component.less b/src/app/routes/interface-docking/components/set/set.component.less new file mode 100644 index 00000000..1d17aeb7 --- /dev/null +++ b/src/app/routes/interface-docking/components/set/set.component.less @@ -0,0 +1,94 @@ +:host { + .btn-size { + font-size: 14px; + } + + .bdr { + border-right: 1px solid #ccc; + } + + .bdl { + border-left: 1px solid #ccc; + } + + .source-info { + p { + margin-bottom: .5em; + } + } + + .freight-info-box { + width: 95%; + } + + .freigth-label { + display : inline-block; + width : 50px; + text-align: right; + } + + ::ng-deep { + .approval-status { + .ant-steps { + width : 70%; + margin: 0 auto; + } + } + + // .ant-tabs-top>.ant-tabs-nav, + // .ant-tabs-bottom>.ant-tabs-nav, + // .ant-tabs-top>div>.ant-tabs-nav, + // .ant-tabs-bottom>div>.ant-tabs-nav { + // margin: 0; + // } + + // .ant-anchor-ink::before { + // width: 0; + // } + + // .ant-tabs-card.ant-tabs-top>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab, + // .ant-tabs-card.ant-tabs-bottom>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab, + // .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab, + // .ant-tabs-card.ant-tabs-bottom>div>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab { + // margin-left: 40px + // } + } + + .leftPadding { + padding-right: 100px; + } + .handling-info { + min-height: 100px; + border: 1px solid #ccc; + + .loading-row { + display: flex; + } + + .handling-info-icon { + width: 32px; + height: 32px; + margin-right: 24px; + color: #fff; + line-height: 32px; + text-align: center; + border-radius: 50%; + + &.loading-bg { + background-color: #50D4AB; + } + + &.unloaing-bg { + background: #F66F6A; + } + } + + .info { + flex: 1; + } + + .time-info { + margin-left: 56px; + } + } +} \ No newline at end of file diff --git a/src/app/routes/interface-docking/components/set/set.component.spec.ts b/src/app/routes/interface-docking/components/set/set.component.spec.ts new file mode 100644 index 00000000..d51491b0 --- /dev/null +++ b/src/app/routes/interface-docking/components/set/set.component.spec.ts @@ -0,0 +1,24 @@ +import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; +import { interfaceDockingSetComponent } from './set.component'; + +describe('interfaceDockingSetComponent', () => { + let component: interfaceDockingSetComponent; + let fixture: ComponentFixture; + + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ interfaceDockingSetComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(interfaceDockingSetComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/routes/interface-docking/components/set/set.component.ts b/src/app/routes/interface-docking/components/set/set.component.ts new file mode 100644 index 00000000..5d1dd8ab --- /dev/null +++ b/src/app/routes/interface-docking/components/set/set.component.ts @@ -0,0 +1,40 @@ +/* + * @Description : + * @Version : 1.0 + * @Author : Shiming + * @Date : 2021-12-06 20:20:26 + * @LastEditors : Shiming + * @LastEditTime : 2022-01-25 20:43:37 + * @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\components\\set\\set.component.ts + * Copyright (C) 2022 huzhenhong. All rights reserved. + */ +import { Component, OnInit } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { NzMessageService } from 'ng-zorro-antd/message'; +import {InterfaceDockingService} from '../../services/interface-docking.service'; +@Component({ + selector: 'app-interface-docking-set', + templateUrl: './set.component.html', + styleUrls: ['./set.component.less'] +}) +export class interfaceDockingSetComponent implements OnInit { + + constructor( + private route: ActivatedRoute, + private msgSrv: NzMessageService, + private service: InterfaceDockingService, + ) { + + } + + ngOnInit(): void { + this.initData() + } + initData() { + + } + goBack() { + window.history.go(-1); + } + +} diff --git a/src/app/routes/interface-docking/components/waybill/waybill.component.html b/src/app/routes/interface-docking/components/waybill/waybill.component.html new file mode 100644 index 00000000..38cb1a05 --- /dev/null +++ b/src/app/routes/interface-docking/components/waybill/waybill.component.html @@ -0,0 +1,85 @@ + + + + +
+ +
+ +
+ + + +
+ +
+
+ + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + + diff --git a/src/app/routes/interface-docking/components/waybill/waybill.component.less b/src/app/routes/interface-docking/components/waybill/waybill.component.less new file mode 100644 index 00000000..149a0bc9 --- /dev/null +++ b/src/app/routes/interface-docking/components/waybill/waybill.component.less @@ -0,0 +1,13 @@ + + :host { + p{ + margin-bottom: 0 + } + .left_btn { + width: 50px; + height: 32px; + padding-left: 8px; + line-height:32px; + background-color: #d7d7d7; + } + } \ No newline at end of file diff --git a/src/app/routes/interface-docking/components/waybill/waybill.component.spec.ts b/src/app/routes/interface-docking/components/waybill/waybill.component.spec.ts new file mode 100644 index 00000000..29567897 --- /dev/null +++ b/src/app/routes/interface-docking/components/waybill/waybill.component.spec.ts @@ -0,0 +1,35 @@ +/* + * @Description : + * @Version : 1.0 + * @Author : Shiming + * @Date : 2021-12-06 20:03:28 + * @LastEditors : Shiming + * @LastEditTime : 2022-01-25 17:22:11 + * @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\components\\waybill\\waybill.component.spec.ts + * Copyright (C) 2022 huzhenhong. All rights reserved. + */ + +import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; +import {interfaceDockingWaybillComponent} from './waybill.component'; + +describe('interfaceDockingWaybillComponent', () => { + let component: interfaceDockingWaybillComponent; + let fixture: ComponentFixture; + + beforeEach(waitForAsync(() => { + TestBed.configureTestingModule({ + declarations: [ interfaceDockingWaybillComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(interfaceDockingWaybillComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/routes/interface-docking/components/waybill/waybill.component.ts b/src/app/routes/interface-docking/components/waybill/waybill.component.ts new file mode 100644 index 00000000..33229810 --- /dev/null +++ b/src/app/routes/interface-docking/components/waybill/waybill.component.ts @@ -0,0 +1,287 @@ +import { Component, OnInit, ViewChild } from '@angular/core'; +import { STColumn, STComponent } from '@delon/abc/st'; +import { SFComponent, SFDateWidgetSchema, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; +import { map } from 'rxjs/operators'; +import { ShipperBaseService } from '@shared'; +import {InterfaceDockingService} from "../../services/interface-docking.service"; + +@Component({ + selector: 'app-interface-docking-waybill', + templateUrl: './waybill.component.html', + styleUrls: ['./waybill.component.less'] +}) +export class interfaceDockingWaybillComponent implements OnInit { + ui: SFUISchema = {}; + uiView: SFUISchema = {}; + schema: SFSchema = {}; + schemaView: SFSchema = {}; + auditMany = false; + isVisibleView = false; + isVisibleEvaluate = false; + isVisible = false; + _$expand = false; + @ViewChild('st') private readonly st!: STComponent; + @ViewChild('stFloat') private readonly stFloat!: STComponent; + @ViewChild('stFloatView') private readonly stFloatView!: STComponent; + @ViewChild('sf', { static: false }) sf!: SFComponent; + @ViewChild('sfFre', { static: false }) sfFre!: SFComponent; + @ViewChild('sfView', { static: false }) sfView!: SFComponent; + columns: STColumn[] = []; + resourceStatus: any; + tabs = { + totalCount: 0, + billStatus1: 0, + billStatus2: 0, + billStatus3: 0, + billStatus4: 0, + billStatus5: 0, + billStatus6: 0, + billStatus7: 0, + billStatus8: 0, + billStatus9: 0, + billStatus10: 0, + billStatus11: 0, + billStatus12: 0, + billStatus13: 0, + billStatus14: 0 + }; + constructor( + public service: InterfaceDockingService, + public shipperservice: ShipperBaseService, + ) { } + + /** + * 查询参数 + */ + get reqParams() { + const a: any = {}; + if (this.resourceStatus) { + a.billStatus = this.resourceStatus; + } + const params: any = Object.assign({}, this.sf?.value || {}); + delete params._$expand; + return { + ...a, + ...params, + createTime: { + start: this.sf?.value?.createTime?.[0] || '', + end: this.sf?.value?.createTime?.[1] || '' + }, + planDeliverTime: { + start: this.sf?.value?.planDeliverTime?.[0] || '', + end: this.sf?.value?.planDeliverTime?.[1] || '' + }, + }; + } + get selectedRows() { + return this.st?.list.filter(item => item.checked) || []; + } + search() { + this.st?.load(1); + this.getGoodsSourceStatistical(); + } + getGoodsSourceStatistical() { + this.tabs = { + totalCount: 0, + billStatus1: 0, + billStatus2: 0, + billStatus3: 0, + billStatus4: 0, + billStatus5: 0, + billStatus6: 0, + billStatus7: 0, + billStatus8: 0, + billStatus9: 0, + billStatus10: 0, + billStatus11: 0, + billStatus12: 0, + billStatus13: 0, + billStatus14: 0 + }; + const params: any = Object.assign({}, this.reqParams || {}); + delete params.status; + this.service.request(this.service.$api_listStatisticalStatus, params).subscribe((res: any) => { + if (res) { + let totalCount = 0; + res.forEach((element: any) => { + if (element.statusLabel === '新建') { + this.tabs.billStatus1 = element.quantity; + } else if (element.statusLabel === '运单已发送') { + this.tabs.billStatus2 = element.quantity; + } else if (element.statusLabel === '司机信息已获取') { + this.tabs.billStatus3 = element.quantity; + } else if (element.statusLabel === '司机信息已反馈') { + this.tabs.billStatus4 = element.quantity; + } else if (element.statusLabel === '签收单号已接收') { + this.tabs.billStatus5 = element.quantity; + } else if (element.statusLabel === '签收单号已反馈') { + this.tabs.billStatus6 = element.quantity; + } else if (element.statusLabel === '报道已接收') { + this.tabs.billStatus7 = element.quantity; + } else if (element.statusLabel === '报道已反馈') { + this.tabs.billStatus8 = element.quantity; + } else if (element.statusLabel === '发运已接收') { + this.tabs.billStatus9 = element.quantity; + } else if (element.statusLabel === '发运已反馈') { + this.tabs.billStatus10 = element.quantity; + } else if (element.statusLabel === '签收已接收') { + this.tabs.billStatus11 = element.quantity; + } else if (element.statusLabel === '签收已反馈') { + this.tabs.billStatus12 = element.quantity; + } else if (element.statusLabel === 'POD已获取') { + this.tabs.billStatus13 = element.quantity; + } else if (element.statusLabel === 'POD已反馈') { + this.tabs.billStatus14 = element.quantity; + } + totalCount += element.quantity; + }); + this.tabs.totalCount = totalCount; + } + }); + } + selectChange(e: number) { + this.resourceStatus = e; + this.initST(); + setTimeout(() => { + this.st.load(); + }, 500); + } + ngOnInit(): void { + this.getGoodsSourceStatistical(); + this.initSF(); + this.initST(); + } + + /** + * 初始化查询表单 + */ + initSF() { + this.schema = { + properties: { + _$expand: { type: 'boolean', ui: { hidden: true } }, + blNo: { + type: 'string', + title: '运单号' + }, + status: { + title: '运单状态', + type: 'string', + ui: { + widget: 'dict-select', + params: { dictKey: 'api:bill:status' }, + containsAllLabel: true, + } as SFSelectWidgetSchema + }, + source: { + title: '运单来源', + type: 'string', + ui: { + widget: 'dict-select', + params: { dictKey: 'api:bill:source' }, + containsAllLabel: true, + } as SFSelectWidgetSchema + }, + planDeliverTime: { + title: '计划发货时间', + type: 'string', + ui: { + widget: 'date', + mode: 'range', + format: 'yyyy-MM-dd', + allowClear: true, + visibleIf: { + _$expand: (value: boolean) => value + } + } as SFDateWidgetSchema + }, + createTime: { + title: '创建时间', + type: 'string', + ui: { + widget: 'date', + mode: 'range', + format: 'yyyy-MM-dd', + allowClear: true, + visibleIf: { + _$expand: (value: boolean) => value + } + } as SFDateWidgetSchema + }, + }, + type: 'object' + }; + this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } }; + } + // 获取城市列表 + getRegionCode(regionCode: any) { + console.log(regionCode); + return this.service + .request(this.service.$api_get_enterprise_project, { id: regionCode }) + .pipe( + map(res => + res.map((item: any) => ({ + label: item.projectName, + value: item.id + })) + ) + ) + .subscribe(res => { + this.sf.getProperty('/enterpriseProjectId')!.schema.enum = res; + this.sf.getProperty('/enterpriseProjectId')!.widget.reset(res); + }); + } + /** + * 初始化数据列表 + */ + initST() { + this.columns = [ + { title: '', type: 'checkbox', fixed: 'left', width: '50px', className: 'text-center' }, + { + title: '运单号', + width: '180px', + fixed: 'left', + className: 'text-left', + render: 'blNo', + index: 'blNo' + }, + { + title: '运单状态', + width: '250px', + className: 'text-left', + index: 'statusLabel' + }, + { title: '运单来源', index: 'sourceLabel', width: '220px', className: 'text-left' }, + { title: '计划发货时间', index: 'planDeliverTime', width: '220px', className: 'text-left' }, + { title: '创建时间', index: 'createTime', width: '220px', className: 'text-left' }, + { title: '件数', index: 'quantity', width: '220px', className: 'text-left' }, + { title: '重量', index: 'weight', width: '180px', className: 'text-left' }, + { title: '体积', index: 'volume', width: '180px', className: 'text-left' }, + ]; + } + /** + * 查询字段个数 + */ + get queryFieldCount(): number { + return Object.keys(this.schema?.properties || {}).length; + } + /** + * 伸缩查询条件 + */ + expandToggle(): void { + this._$expand = !this._$expand; + this.sf?.setValue('/_$expand', this._$expand); + } + tabChange(item: any) { } + /** + * 重置表单 + */ + resetSF(): void { + this.sf.reset(); + this._$expand = false; + } + + exprot() { + this.service.downloadFile(this.service.$api_get_asyncExport, { ...this.reqParams, pageSize: -1 }); + } + +} diff --git a/src/app/routes/interface-docking/interface-docking-routing.module.ts b/src/app/routes/interface-docking/interface-docking-routing.module.ts new file mode 100644 index 00000000..f6136aa8 --- /dev/null +++ b/src/app/routes/interface-docking/interface-docking-routing.module.ts @@ -0,0 +1,25 @@ +/* + * @Description : + * @Version : 1.0 + * @Author : Shiming + * @Date : 2022-01-06 09:24:00 + * @LastEditors : Shiming + * @LastEditTime : 2022-01-25 17:21:54 + * @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\interface-docking-routing.module.ts + * Copyright (C) 2022 huzhenhong. All rights reserved. + */ +import { NgModule } from '@angular/core'; +import { RouterModule, Routes } from '@angular/router'; +import {interfaceDockingWaybillComponent} from './components/waybill/waybill.component'; +import {interfaceDockingSetComponent} from './components/set/set.component'; + + +const routes: Routes = [ + { path: 'list', component: interfaceDockingWaybillComponent }, + { path: 'list-set/:id', component: interfaceDockingSetComponent }, +] +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule] +}) +export class InterfaceDockingRoutingModule { } diff --git a/src/app/routes/interface-docking/interface-docking.module.ts b/src/app/routes/interface-docking/interface-docking.module.ts new file mode 100644 index 00000000..fd73d4bd --- /dev/null +++ b/src/app/routes/interface-docking/interface-docking.module.ts @@ -0,0 +1,23 @@ +/* + * @Description : + * @Version : 1.0 + * @Author : Shiming + * @Date : 2022-01-06 09:24:00 + * @LastEditors : Shiming + * @LastEditTime : 2022-01-25 20:45:45 + * @FilePath : \\tms-obc-web\\src\\app\\routes\\interface-docking\\interface-docking.module.ts + * Copyright (C) 2022 huzhenhong. All rights reserved. + */ + +import { NgModule, Type } from '@angular/core'; +import { InsuranceTableModule, SharedModule } from '@shared'; +import { interfaceDockingWaybillComponent } from './components/waybill/waybill.component'; +import { interfaceDockingSetComponent } from './components/set/set.component'; +import { InterfaceDockingRoutingModule } from './interface-docking-routing.module'; +const COMPONENTS: Type[] = [interfaceDockingWaybillComponent, interfaceDockingSetComponent]; + +@NgModule({ + imports: [SharedModule, InterfaceDockingRoutingModule, InsuranceTableModule], + declarations: COMPONENTS +}) +export class InterfaceDockingModule {} diff --git a/src/app/routes/interface-docking/services/interface-docking.service.ts b/src/app/routes/interface-docking/services/interface-docking.service.ts new file mode 100644 index 00000000..f39ca88d --- /dev/null +++ b/src/app/routes/interface-docking/services/interface-docking.service.ts @@ -0,0 +1,39 @@ +/* + * @Description : + * @Version : 1.0 + * @Author : fangliang + * @Date : 2022-04-14 + * @LastEditors : fangliang + * @LastEditTime : 2022-04-14 + * @FilePath : \\tms-obc-web\\src\\app\\routes\\interface-docking\\services\\interface-docking.service.ts + * Copyright (C) 2022 huzhenhong. All rights reserved. + */ + +import { Injectable, Injector } from '@angular/core'; +import { EACacheService, ShipperBaseService } from '@shared'; +import { map } from 'rxjs/operators'; + +@Injectable({ + providedIn: 'root' +}) +export class InterfaceDockingService extends ShipperBaseService { + + // 查询运单信息表 + public $api_waybillInfo_list = '/api/sdc/dock/bill/list/page'; + public $api_listStatisticalStatus = '/api/sdc/dock/bill/listStatisticalStatus'; + + + // 保险费列表数据导出接口 + $api_get_asyncExport = `/api/sdc/premiumInfo/asyncExport`; + + public reviewPDF(url: string) { + if (!url) { + return; + } + this.openURL(url); + } + + constructor(public injector: Injector) { + super(injector); + } +} diff --git a/src/app/routes/routes-routing.module.ts b/src/app/routes/routes-routing.module.ts index 544a7684..205ce968 100644 --- a/src/app/routes/routes-routing.module.ts +++ b/src/app/routes/routes-routing.module.ts @@ -77,6 +77,10 @@ const routes: Routes = [ }, { path: 'datatable', loadChildren: () => import('./datatable/datatable.module').then((m) => m.DatatableModule) }, { path: 'tax', loadChildren: () => import('./tax-management/taxmanagement.module').then((m) => m.TaxManagementModule) }, + { + path: 'interface-docking', + loadChildren: () => import('./interface-docking/interface-docking.module').then(m => m.InterfaceDockingModule) + }, ] }, // passport 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", From 839cae65945d09797acdae595fec72f73fb87cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E6=99=93=E4=BA=91?= Date: Wed, 20 Apr 2022 13:54:19 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=B8=E6=9C=BA?= =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=8D=A1=E5=8F=B7=E5=8E=BB=E6=8E=89=E5=BF=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../driver/add-driver/add-driver.component.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts b/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts index ed202b46..b970cef6 100644 --- a/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts +++ b/src/app/routes/usercenter/components/driver/add-driver/add-driver.component.ts @@ -40,7 +40,7 @@ export class CarSettleAddDriverComponent implements OnInit { public service: UsermanageService, private envSrv: EAEnvironmentService, private eaCacheSrv: EACacheService - ) {} + ) { } ngOnInit(): void { this.companyData = this.eaCacheSrv.get(cacheConf.env); @@ -243,7 +243,7 @@ export class CarSettleAddDriverComponent implements OnInit { default: '' } }, - required: ['mobile','certificatePhotoFrontWatermark', 'certificatePhotoBackWatermark', 'name', 'certificateNumber', 'bankCardNo'] + required: ['mobile', 'certificatePhotoFrontWatermark', 'certificatePhotoBackWatermark', 'name', 'certificateNumber'] }; this.schema1 = { properties: { @@ -353,7 +353,7 @@ export class CarSettleAddDriverComponent implements OnInit { errors: { required: '请选择起始日期' }, - change: i => {} + change: i => { } } as SFDateWidgetSchema }, validEndTime: { @@ -366,7 +366,7 @@ export class CarSettleAddDriverComponent implements OnInit { errors: { required: '请选择终止日期' }, - change: i => {} + change: i => { } } as SFDateWidgetSchema }, signingOrganization: { @@ -481,7 +481,7 @@ export class CarSettleAddDriverComponent implements OnInit { errors: { required: '请选择起始日期' }, - change: i => {} + change: i => { } } as SFDateWidgetSchema }, validEndTime: { @@ -494,7 +494,7 @@ export class CarSettleAddDriverComponent implements OnInit { errors: { required: '请选择终止日期' }, - change: i => {} + change: i => { } } as SFDateWidgetSchema } }, @@ -547,7 +547,7 @@ export class CarSettleAddDriverComponent implements OnInit { grid: { span: 18 }, width: 600, }, - $titleB:{ + $titleB: { grid: { span: 24 }, }, $certificatePhotoWatermark: { @@ -564,7 +564,7 @@ export class CarSettleAddDriverComponent implements OnInit { grid: { span: 18 }, width: 600, }, - $titleC:{ + $titleC: { grid: { span: 24 }, }, $certificatePhotoWatermark: { @@ -579,7 +579,7 @@ export class CarSettleAddDriverComponent implements OnInit { getRegionToThree() { // 获取一、二、三级地区详情 this.service.http.post(this.service.$api_getRegionToThree).subscribe((res) => { - if(this.sf1){ + if (this.sf1) { this.sf1.getProperty('/enterpriseAddressCode')!.schema.enum = res.data; this.sf1?.getProperty('/enterpriseAddressCode')?.widget.reset(res.data); } From 4a920bf101f903b8402cfbaa3ee7bc75d393918b Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 20 Apr 2022 14:01:38 +0800 Subject: [PATCH 4/7] fix bug --- proxy.conf.js | 24 +++++++++---------- .../components/list/list.component.ts | 2 +- .../insurance-management-routing.module.ts | 4 ++-- .../list/carauth/carauth.component.ts | 13 +++++----- 4 files changed, 22 insertions(+), 21 deletions(-) diff --git a/proxy.conf.js b/proxy.conf.js index 3639702c..5dd5c8b2 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-18 09:51:21 * @LastEditors : Shiming - * @LastEditTime : 2022-04-19 14:20:28 + * @LastEditTime : 2022-04-20 13:45:11 * @FilePath : \\tms-obc-web\\proxy.conf.js * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -18,19 +18,9 @@ module.exports = { // secure: false, // Ignore invalid SSL certificates // changeOrigin: true // } - // '//api': { - // target: { - // host: 'tms-api.yunduoxing.com', - // protocol: 'https:', - // port: 443 - // }, - // secure: false, - // changeOrigin: true, - // logLevel: 'debug' - // }, '//api': { target: { - host: 'tms-api-test.eascs.com', + host: 'tms-api.yunduoxing.com', protocol: 'https:', port: 443 }, @@ -38,4 +28,14 @@ module.exports = { changeOrigin: true, logLevel: 'debug' }, + // '//api': { + // target: { + // host: 'tms-api-dev.eascs.com', + // protocol: 'https:', + // port: 443 + // }, + // secure: false, + // changeOrigin: true, + // logLevel: 'debug' + // }, }; diff --git a/src/app/routes/insurance-management/components/list/list.component.ts b/src/app/routes/insurance-management/components/list/list.component.ts index 4655ee58..cd287883 100644 --- a/src/app/routes/insurance-management/components/list/list.component.ts +++ b/src/app/routes/insurance-management/components/list/list.component.ts @@ -566,7 +566,7 @@ export class insuranceManagementListComponent implements OnInit { } // 保险配置 changeOrder() { - this.router.navigate(['/insurance-management/list-set', 1]); + this.router.navigate(['/insurance-management/list-set']); } exprot() { this.service.downloadFile(this.service.$api_get_asyncExport, { ...this.reqParams, pageSize: -1 }); diff --git a/src/app/routes/insurance-management/insurance-management-routing.module.ts b/src/app/routes/insurance-management/insurance-management-routing.module.ts index 845a621d..1ff630fd 100644 --- a/src/app/routes/insurance-management/insurance-management-routing.module.ts +++ b/src/app/routes/insurance-management/insurance-management-routing.module.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-06 09:24:00 * @LastEditors : Shiming - * @LastEditTime : 2022-01-25 17:21:54 + * @LastEditTime : 2022-04-20 10:16:09 * @FilePath : \\tms-obc-web\\src\\app\\routes\\insurance-management\\insurance-management-routing.module.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -16,7 +16,7 @@ import { insuranceManagementSetComponent } from './components/set/set.component' const routes: Routes = [ { path: 'list', component: insuranceManagementListComponent }, - { path: 'list-set/:id', component: insuranceManagementSetComponent }, + { path: 'list-set', component: insuranceManagementSetComponent }, ] @NgModule({ imports: [RouterModule.forChild(routes)], 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); From 993a664514f4f7043efbb7a68148b3f8a886ecbc Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 20 Apr 2022 14:54:49 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy.conf.js | 24 ++++++------- .../bulk-detail-change.component.ts | 34 +++++++++---------- .../vehicle-detail-change.component.ts | 10 +++--- .../sure-arrive/sure-arrive.component.ts | 33 +++++++++--------- .../sure-depart/sure-depart.component.html | 4 +-- .../sure-depart/sure-depart.component.ts | 24 +++++++------ 6 files changed, 66 insertions(+), 63 deletions(-) diff --git a/proxy.conf.js b/proxy.conf.js index 5dd5c8b2..eb92fbd4 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-18 09:51:21 * @LastEditors : Shiming - * @LastEditTime : 2022-04-20 13:45:11 + * @LastEditTime : 2022-04-20 14:18:40 * @FilePath : \\tms-obc-web\\proxy.conf.js * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -18,19 +18,9 @@ module.exports = { // secure: false, // Ignore invalid SSL certificates // changeOrigin: true // } - '//api': { - target: { - host: 'tms-api.yunduoxing.com', - protocol: 'https:', - port: 443 - }, - secure: false, - changeOrigin: true, - logLevel: 'debug' - }, // '//api': { // target: { - // host: 'tms-api-dev.eascs.com', + // host: 'tms-api.yunduoxing.com', // protocol: 'https:', // port: 443 // }, @@ -38,4 +28,14 @@ module.exports = { // changeOrigin: true, // logLevel: 'debug' // }, + '//api': { + target: { + host: 'tms-api-test.eascs.com', + protocol: 'https:', + port: 443 + }, + secure: false, + changeOrigin: true, + logLevel: 'debug' + }, }; diff --git a/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts b/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts index e2fd7084..ac3a410b 100644 --- a/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts +++ b/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-24 16:58:02 * @LastEditors : Shiming - * @LastEditTime : 2022-04-11 19:26:19 + * @LastEditTime : 2022-04-20 14:46:48 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -146,7 +146,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.loadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[0]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -192,7 +192,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.loadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[0]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -246,7 +246,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.unloadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[1]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -292,7 +292,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.unloadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[1]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -571,21 +571,21 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit { acceptVolume: this.sf4.value?.acceptVolume, settlementWeight: this.sf4.value?.settlementWeight, settlementVolume: this.sf4.value?.settlementVolume, - loadingLadingBillFilePath: this.sf.value?.loadingLadingBillFilePath?.data - ? this.sf.value?.loadingLadingBillFilePath.data.fullFilePath - : this.sf.value?.loadingLadingBillFilePath?.url, + loadingLadingBillFilePath: this.sf?.value?.loadingLadingBillFilePath?.data + ? this.sf?.value?.loadingLadingBillFilePath.data.fullFilePath + : this.sf?.value?.loadingLadingBillFilePath?.url, - loadingPeopleVehiclesGoodsFilePath: this.sf.value?.loadingPeopleVehiclesGoodsFilePath?.data - ? this.sf.value?.loadingPeopleVehiclesGoodsFilePath.data.fullFilePath - : this.sf.value?.loadingPeopleVehiclesGoodsFilePath?.url, + loadingPeopleVehiclesGoodsFilePath: this.sf?.value?.loadingPeopleVehiclesGoodsFilePath?.data + ? this.sf?.value?.loadingPeopleVehiclesGoodsFilePath.data.fullFilePath + : this.sf?.value?.loadingPeopleVehiclesGoodsFilePath?.url, - unloadingLadingBillFilePath: this.sf.value?.unloadingLadingBillFilePath?.data - ? this.sf.value?.unloadingLadingBillFilePath.data.fullFilePath - : this.sf.value?.unloadingLadingBillFilePath?.url, + unloadingLadingBillFilePath: this.sf?.value?.unloadingLadingBillFilePath?.data + ? this.sf?.value?.unloadingLadingBillFilePath.data.fullFilePath + : this.sf?.value?.unloadingLadingBillFilePath?.url, - unloadingPeopleVehiclesGoodsFilePath: this.sf.value?.unloadingPeopleVehiclesGoodsFilePath?.data - ? this.sf.value?.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath - : this.sf.value?.unloadingPeopleVehiclesGoodsFilePath?.url + unloadingPeopleVehiclesGoodsFilePath: this.sf?.value?.unloadingPeopleVehiclesGoodsFilePath?.data + ? this.sf?.value?.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath + : this.sf?.value?.unloadingPeopleVehiclesGoodsFilePath?.url }; this.service.request(this.service.$api_set_modifyBulkOrder, params).subscribe((res: any) => { if (res) { diff --git a/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts b/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts index 48c2c347..18126884 100644 --- a/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts +++ b/src/app/routes/order-management/components/vehicle-detail-change/vehicle-detail-change.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-23 13:39:58 * @LastEditors : Shiming - * @LastEditTime : 2022-04-11 19:26:34 + * @LastEditTime : 2022-04-20 14:48:08 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -137,7 +137,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.loadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[0]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -183,7 +183,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.loadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[0]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -237,7 +237,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.unloadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[1]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -283,7 +283,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit { appId: this.envSrv.env.appId, content: [ `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, - `上传位置:${this.i?.unloadingAddressArr[0]}`, + `上传位置:${this.i?.unLoadingPlaceList[1]?.province}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', diff --git a/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts b/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts index d39e4110..e74a8c1a 100644 --- a/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts +++ b/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts @@ -20,7 +20,6 @@ import { WaybillManagementServe } from 'src/app/routes/waybill-management/servic providers: [DatePipe] }) export class VehicleSureArriveComponent implements OnInit { - record: any = {}; i: any; formData: any; Status: any; @@ -70,8 +69,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -115,8 +114,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -168,8 +167,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.unloadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.dischargePlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -213,8 +212,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.unloadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.dischargePlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -283,8 +282,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -328,8 +327,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -381,8 +380,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.unloadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.dischargePlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -426,8 +425,8 @@ export class VehicleSureArriveComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.unloadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.dischargePlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', diff --git a/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.html b/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.html index 3c703e39..70bbdcae 100644 --- a/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.html +++ b/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.html @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-15 13:17:42 * @LastEditors : Shiming - * @LastEditTime : 2022-01-18 17:24:01 + * @LastEditTime : 2022-04-20 14:26:51 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\sure-depart\\sure-depart.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> @@ -26,5 +26,5 @@ diff --git a/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.ts b/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.ts index 5da8c701..70bdc1be 100644 --- a/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.ts +++ b/src/app/routes/order-management/modal/vehicle/sure-depart/sure-depart.component.ts @@ -37,13 +37,17 @@ export class VehicleSureDepartComponent implements OnInit { public service: WaybillManagementServe, private envSrv: EAEnvironmentService, private datePipe: DatePipe - ) { } + ) { + + } ngOnInit(): void { - this.initSF(); console.log(this.i); + this.initSF(); + this.data.weight = this.i?.weight; this.i.time = this.i.loadingTime; + } initSF() { if (this.Status === 1) { @@ -77,8 +81,8 @@ export class VehicleSureDepartComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -122,8 +126,8 @@ export class VehicleSureDepartComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -200,8 +204,8 @@ export class VehicleSureDepartComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', @@ -245,8 +249,8 @@ export class VehicleSureDepartComponent implements OnInit { data: { appId: this.envSrv.env.appId, content: [ - `上传用户:${this.record?.driverName}(${this.record?.driverTelephone})`, - `上传位置:${this.record?.loadingAddressArr[0]}`, + `上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`, + `上传位置:${this.i?.loadingPlace[0]}`, `上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`, ], position: '2', From f7a6f32bbeb6748ba6a0a2eda0a036f9d7e50b6a Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 20 Apr 2022 15:01:56 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E8=BF=94=E4=BD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/driver/detail/detail.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/routes/usercenter/components/driver/detail/detail.component.html b/src/app/routes/usercenter/components/driver/detail/detail.component.html index 141ab9bc..1ff14602 100644 --- a/src/app/routes/usercenter/components/driver/detail/detail.component.html +++ b/src/app/routes/usercenter/components/driver/detail/detail.component.html @@ -265,13 +265,13 @@ {{ carDatail?.carNo }} - {{ carDatail?.carNoColor }} + {{ carDatail?.carNoColorLabel }} - {{ carDatail?.carModel }} + {{ carDatail?.carModelLabel }} - {{ carDatail?.carLength }} + {{ carDatail?.carLengthLabel ? carDatail?.carLengthLabel +'米' :'' }} {{ carDatail?.isDefault?'是':'否' }} From 664ee868edaca327826948fa6ada4a3a76b522b2 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 20 Apr 2022 15:15:55 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E8=BF=94=E4=BD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../freight/user/detail/detail.component.html | 20 +++++++++++++++++-- .../freight/user/detail/detail.component.ts | 15 ++++++++++---- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/app/routes/usercenter/components/freight/user/detail/detail.component.html b/src/app/routes/usercenter/components/freight/user/detail/detail.component.html index 42bfb9b9..65315746 100644 --- a/src/app/routes/usercenter/components/freight/user/detail/detail.component.html +++ b/src/app/routes/usercenter/components/freight/user/detail/detail.component.html @@ -35,7 +35,7 @@ @@ -80,7 +80,23 @@ - + + + + - + + + + + + + + + +
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('修改成功');