fix bug
This commit is contained in:
@ -632,7 +632,7 @@ resourceStatus: any;
|
||||
// }
|
||||
});
|
||||
modal.afterClose.subscribe(_ => {
|
||||
this.st.load(1);
|
||||
this.st.load();
|
||||
this.getGoodsSourceStatistical()
|
||||
});
|
||||
}
|
||||
|
||||
@ -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 @@
|
||||
<sf #sf [schema]="schema" [formData]="sfdata" [button]="'none'" [ui]="ui">
|
||||
<ng-template sf-template="freightPrice" let-i let-ui="ui">
|
||||
<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>
|
||||
<ng-template #addOnAfterTemplate>
|
||||
<span >元</span>
|
||||
|
||||
@ -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<string>();
|
||||
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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user