From 85c771f9b0999e8fbbfd7128fe31e320dc4576d0 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 21 Feb 2022 14:20:02 +0800 Subject: [PATCH 1/4] fix bug --- .../components/vehicle/vehicle.component.ts | 3 ++- .../update-freight.component.html | 2 +- .../update-freight.component.ts | 8 ++++++- .../components/index/index.component.html | 23 ++++++++----------- .../onecar-publish.component.html | 4 ++-- .../driver-config/driver-config.component.ts | 5 ++-- 6 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/app/routes/order-management/components/vehicle/vehicle.component.ts b/src/app/routes/order-management/components/vehicle/vehicle.component.ts index 06710506..5d08faa3 100644 --- a/src/app/routes/order-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/order-management/components/vehicle/vehicle.component.ts @@ -640,13 +640,14 @@ resourceStatus: any; *变更运费 */ updateFreight(item: any) { + console.log(item?.isFreightChangeApplication) this.service.request(this.service.$api_get_getFreightChangeWholeDetail, { id: item.id }).subscribe(data => { if (data) { const modal = this.modal.create({ nzTitle: '变更运费', nzWidth: 580, nzContent: VehicleUpdateFreightComponent, - nzComponentParams: { data: { ...data, id: item.id } }, + nzComponentParams: { data: { ...data, id: item.id,isFreightChangeApplication: item?.isFreightChangeApplication } }, nzFooter: null, // nzOnOk: sin => { // this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => { diff --git a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html index 6d08fc39..cd1d3b49 100644 --- a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html +++ b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html @@ -25,5 +25,5 @@ diff --git a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts index 60ed2901..85db19ad 100644 --- a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts +++ b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-15 13:17:42 * @LastEditors : Shiming - * @LastEditTime : 2022-02-14 09:34:18 + * @LastEditTime : 2022-02-21 14:16:50 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -26,6 +26,7 @@ export class VehicleUpdateFreightComponent implements OnInit { ui: SFUISchema = {}; aggreechecked = false; + payIng = true; @Input() data: any; @@ -37,6 +38,11 @@ export class VehicleUpdateFreightComponent implements OnInit { ngOnInit(): void { console.log(this.data) this.initSF(this.data); + if(this.data.isFreightChangeApplication) { + this.payIng = false; + } else { + this.payIng = true; + } } initSF(data: any) { const info = { diff --git a/src/app/routes/supply-management/components/index/index.component.html b/src/app/routes/supply-management/components/index/index.component.html index 70f2cdab..56ba2fbb 100644 --- a/src/app/routes/supply-management/components/index/index.component.html +++ b/src/app/routes/supply-management/components/index/index.component.html @@ -1,18 +1,15 @@ + - - diff --git a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html index 9e311df7..3bbf089c 100644 --- a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html +++ b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.html @@ -135,7 +135,7 @@
- 装货时间 + 装货时间
- 卸货时间 + 卸货时间 Date: Mon, 21 Feb 2022 14:28:15 +0800 Subject: [PATCH 2/4] fix bug --- .../update-freight/update-freight.component.html | 4 ++-- .../update-freight/update-freight.component.ts | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html index cd1d3b49..30f42c9b 100644 --- a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html +++ b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.html @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-15 13:17:42 * @LastEditors : Shiming - * @LastEditTime : 2022-02-11 11:08:42 + * @LastEditTime : 2022-02-21 14:27:51 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> @@ -25,5 +25,5 @@ diff --git a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts index 85db19ad..ec153aa7 100644 --- a/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts +++ b/src/app/routes/order-management/modal/vehicle/update-freight/update-freight.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-15 13:17:42 * @LastEditors : Shiming - * @LastEditTime : 2022-02-21 14:16:50 + * @LastEditTime : 2022-02-21 14:27:50 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -26,7 +26,6 @@ export class VehicleUpdateFreightComponent implements OnInit { ui: SFUISchema = {}; aggreechecked = false; - payIng = true; @Input() data: any; @@ -38,11 +37,6 @@ export class VehicleUpdateFreightComponent implements OnInit { ngOnInit(): void { console.log(this.data) this.initSF(this.data); - if(this.data.isFreightChangeApplication) { - this.payIng = false; - } else { - this.payIng = true; - } } initSF(data: any) { const info = { @@ -128,7 +122,11 @@ export class VehicleUpdateFreightComponent implements OnInit { } save(value: any): void { - if (!this.sf.valid) { + if (this.data.isFreightChangeApplication) { + this.service.msgSrv.error('变更申请未处理,请勿重复申请!'); + return; + } + if (!this.save) { this.service.msgSrv.error('请填写必填项!'); return; } From ba408730bf747bda5836141acd4b7dac12e46156 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 21 Feb 2022 14:46:19 +0800 Subject: [PATCH 3/4] fix bug --- .../modal/bulk/update-freight/update-freight.component.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html b/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html index 3daaa236..37dc0262 100644 --- a/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html +++ b/src/app/routes/order-management/modal/bulk/update-freight/update-freight.component.html @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2021-12-14 14:03:07 * @LastEditors : Shiming - * @LastEditTime : 2022-01-24 16:40:01 + * @LastEditTime : 2022-02-21 14:44:38 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\bulk\\update-freight\\update-freight.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> @@ -33,10 +33,10 @@

总运费:{{ data.totalFreight |currency }}总运费:{{ data.totalAmount |currency }}

-

运输费:{{ data.freight |currency }},附加费:{{ data.surcharge |currency}}

+

运输费:{{ data.totalFreight |currency }},附加费:{{ data.totalSurcharge |currency}}