diff --git a/src/app/routes/financial-management/services/freight-account.service.ts b/src/app/routes/financial-management/services/freight-account.service.ts index a3478e5c..692df4a1 100644 --- a/src/app/routes/financial-management/services/freight-account.service.ts +++ b/src/app/routes/financial-management/services/freight-account.service.ts @@ -1,13 +1,13 @@ /* * @Author: your name * @Date: 2021-12-30 19:36:30 - * @LastEditTime: 2021-12-31 13:50:41 - * @LastEditors: your name + * @LastEditTime: 2022-01-04 10:34:31 + * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: \tms-obc-web\src\app\routes\financial-management\services\freight-account.service.ts */ import { Injectable, Injector } from '@angular/core'; -import { BaseService, ShipperBaseService } from '@shared'; +import { BaseService, EACacheService, ShipperBaseService } from '@shared'; @Injectable({ providedIn: 'root' @@ -57,7 +57,7 @@ export class FreightAccountService extends ShipperBaseService { // 根据费用头ID查询费用单及开票明细 $api_get_cost_detail = '/api/fcc/ficoFeeL/detail'; - constructor(public injector: Injector) { - super(injector); + constructor(public injector: Injector,public eaCacheSrv: EACacheService) { + super(injector, eaCacheSrv); } } 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 4ed2df1d..49ab06fa 100644 --- a/src/app/routes/order-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/order-management/components/vehicle/vehicle.component.ts @@ -627,16 +627,11 @@ resourceStatus: any; nzContent: VehicleModifyRateComponent, nzComponentParams: { data: { ids: params } }, nzFooter: null, - // nzOnOk: sin => { - // this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => { - // if (res) { - // this.service.msgSrv.success('变更运费成功'); - // modal.destroy(); - // this.st.reload(); - // } - // }); - // return false; - // } + }); + modal.afterClose.subscribe((result) => { + if (result) { + this.st.load(1); + } }); } /** diff --git a/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html b/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html index 71ed039e..0bca6cca 100644 --- a/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html +++ b/src/app/routes/order-management/modal/vehicle/modify-rate/modify-rate.component.html @@ -1,7 +1,7 @@