This commit is contained in:
wangshiming
2022-02-14 10:16:47 +08:00
parent ad083aa405
commit 01cd9dbbde
3 changed files with 26 additions and 13 deletions

View File

@ -632,7 +632,7 @@ resourceStatus: any;
// } // }
}); });
modal.afterClose.subscribe(_ => { modal.afterClose.subscribe(_ => {
this.st.load(1); this.st.load();
this.getGoodsSourceStatistical() this.getGoodsSourceStatistical()
}); });
} }

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-01-25 20:18:52 * @Date : 2022-01-25 20:18:52
* @LastEditors : Shiming * @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 * @FilePath : \\tms-obc-web\\src\\app\\shared\\components\\insurance-table\\insurance-table.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -18,7 +18,7 @@
<sf #sf [schema]="schema" [formData]="sfdata" [button]="'none'" [ui]="ui"> <sf #sf [schema]="schema" [formData]="sfdata" [button]="'none'" [ui]="ui">
<ng-template sf-template="freightPrice" let-i let-ui="ui"> <ng-template sf-template="freightPrice" let-i let-ui="ui">
<nz-input-group [nzAddOnAfter]="addOnAfterTemplate"> <nz-input-group [nzAddOnAfter]="addOnAfterTemplate">
<nz-input-number [(ngModel)]="price" [nzMin]="0" style="width: 100%"></nz-input-number> <nz-input-number [(ngModel)]="minInsurancePrice" [nzMin]="0" style="width: 100%"></nz-input-number>
</nz-input-group> </nz-input-group>
<ng-template #addOnAfterTemplate> <ng-template #addOnAfterTemplate>
<span ></span> <span ></span>

View File

@ -19,7 +19,7 @@ export class InsuranceTableComponent implements OnInit {
ui!: SFUISchema; ui!: SFUISchema;
formatterDollar = (value: number): string => `${value} (含)`; formatterDollar = (value: number): string => `${value} (含)`;
price: number = 0; minInsurancePrice: number = 0;
changeSub = new Subject<string>(); changeSub = new Subject<string>();
constructor(public service: BaseService, private cdr: ChangeDetectorRef) {} constructor(public service: BaseService, private cdr: ChangeDetectorRef) {}
@ -27,7 +27,7 @@ export class InsuranceTableComponent implements OnInit {
this.loadData(); this.loadData();
this.initSF() this.initSF()
this.changeEndKmAction(); this.changeEndKmAction();
this.price = 1000 this.minInsurancePrice = 1000
} }
loadData() { loadData() {
@ -38,6 +38,14 @@ export class InsuranceTableComponent implements OnInit {
this.cdr.detectChanges(); 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() { initSF() {
this.schema = { this.schema = {
@ -143,15 +151,20 @@ export class InsuranceTableComponent implements OnInit {
save() { save() {
console.log(this.data); console.log(this.data);
console.log(this.price); console.log(this.minInsurancePrice);
console.log(this.sf.value); console.log(this.sf.value);
// this.service.request('/api/mdc/cuc/freightConfig/saveBatch', this.data).subscribe(res => { let params= {
// if (res) { minInsurancePrice: this.minInsurancePrice,
// console.log(res); insuranceConfigDTOS: this.data
// this.service.msgSrv.success('修改成功'); }
// this.loadData(); 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();
}
});
} }
/** /**