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 bb72f8fc..1e304c27 100644 --- a/src/app/routes/order-management/components/vehicle/vehicle.component.ts +++ b/src/app/routes/order-management/components/vehicle/vehicle.component.ts @@ -632,7 +632,7 @@ resourceStatus: any; // } }); modal.afterClose.subscribe(_ => { - this.st.load(1); + this.st.load(); this.getGoodsSourceStatistical() }); } diff --git a/src/app/shared/components/insurance-table/insurance-table.component.html b/src/app/shared/components/insurance-table/insurance-table.component.html index 211d6576..f70d03ab 100644 --- a/src/app/shared/components/insurance-table/insurance-table.component.html +++ b/src/app/shared/components/insurance-table/insurance-table.component.html @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-25 20:18:52 * @LastEditors : Shiming - * @LastEditTime : 2022-02-14 09:49:45 + * @LastEditTime : 2022-02-14 10:14:19 * @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\insurance-table\\insurance-table.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> @@ -18,7 +18,7 @@ - + diff --git a/src/app/shared/components/insurance-table/insurance-table.component.ts b/src/app/shared/components/insurance-table/insurance-table.component.ts index ecb0159b..73a6139b 100644 --- a/src/app/shared/components/insurance-table/insurance-table.component.ts +++ b/src/app/shared/components/insurance-table/insurance-table.component.ts @@ -19,7 +19,7 @@ export class InsuranceTableComponent implements OnInit { ui!: SFUISchema; formatterDollar = (value: number): string => `${value} (含)`; - price: number = 0; + minInsurancePrice: number = 0; changeSub = new Subject(); constructor(public service: BaseService, private cdr: ChangeDetectorRef) {} @@ -27,7 +27,7 @@ export class InsuranceTableComponent implements OnInit { this.loadData(); this.initSF() this.changeEndKmAction(); - this.price = 1000 + this.minInsurancePrice = 1000 } loadData() { @@ -38,6 +38,14 @@ export class InsuranceTableComponent implements OnInit { this.cdr.detectChanges(); } }); + this.service.request('/api/mdc/pbc/sysConfigItem/findItemValueByItemKeys', [ + "insurance.config.minInsurancePrice" + ]).subscribe(res => { + if (res) { + console.log(res); + this.minInsurancePrice = Number(res[0].itemValue) + } + }); } initSF() { this.schema = { @@ -143,15 +151,20 @@ export class InsuranceTableComponent implements OnInit { save() { console.log(this.data); - console.log(this.price); + console.log(this.minInsurancePrice); console.log(this.sf.value); - // this.service.request('/api/mdc/cuc/freightConfig/saveBatch', this.data).subscribe(res => { - // if (res) { - // console.log(res); - // this.service.msgSrv.success('修改成功'); - // this.loadData(); - // } - // }); + let params= { + minInsurancePrice: this.minInsurancePrice, + insuranceConfigDTOS: this.data + } + console.log(params); + this.service.request('/api/mdc/cuc/insuranceConfig/saveBatch', params).subscribe(res => { + if (res) { + console.log(res); + this.service.msgSrv.success('修改成功'); + this.loadData(); + } + }); } /**