fix bug
This commit is contained in:
@ -46,7 +46,7 @@ export class FreightAccountDetailComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
}
|
||||
// this.loadStatistics(requestOptions.body);
|
||||
this.loadStatistics(requestOptions.body);
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
@ -75,6 +75,8 @@ export class FreightAccountDetailComponent implements OnInit {
|
||||
loadStatistics(params: any) {
|
||||
this.service.request(this.service.$api_get_shipper_account_balance_detail, params).subscribe(res => {
|
||||
if (res) {
|
||||
console.log(res);
|
||||
|
||||
this.static = res;
|
||||
}
|
||||
});
|
||||
|
||||
@ -4,14 +4,14 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-29 14:51:07
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-03-08 13:21:35
|
||||
* @LastEditTime : 2022-04-28 21:58:14
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
<nz-alert nzType="info" [nzMessage]="'已选择'+ data?.ids?.length + '条订单'" nzShowIcon></nz-alert>
|
||||
<sf style="margin-top: 15px" #sf mode="edit" [schema]="schema" [ui]="ui" button="none"></sf>
|
||||
|
||||
<st #st [data]="service.$api_searchAdditionalRateBatch" [columns]="columns"
|
||||
<st #st [data]="modiUrl" [columns]="columns"
|
||||
[req]="{ method: 'POST',params: reqParams}"
|
||||
[res]="{ reName: { list: 'data' } }"
|
||||
[page]="{show: false,showSize: false,front: false}"
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
import { STComponent } from '@delon/abc/st';
|
||||
/*
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-29 14:51:07
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-03-08 13:21:59
|
||||
* @LastEditTime : 2022-04-28 21:56:55
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -23,16 +24,17 @@ import { OrderManagementService } from '../../../services/order-management.servi
|
||||
})
|
||||
export class VehicleModifyRateComponent implements OnInit {
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
schema: SFSchema = {};
|
||||
ui: SFUISchema = {};
|
||||
columns: STColumn[] = [
|
||||
{ title: '订单号', index: 'billCode' },
|
||||
{ title: '原附加费率', render: 'oldAdditionalRate' },
|
||||
{ title: '原附加费', render: 'oldSurcharge' },
|
||||
// { title: '新附加费', render: 'newSurcharge' },
|
||||
{ title: '新附加费', render: 'newSurcharge' },
|
||||
];
|
||||
aggreechecked = false;
|
||||
|
||||
modiUrl: string= this.service.$api_searchAdditionalRateBatch
|
||||
@Input()
|
||||
data: any;
|
||||
|
||||
@ -63,7 +65,13 @@ export class VehicleModifyRateComponent implements OnInit {
|
||||
ui: {
|
||||
unit: '%',
|
||||
widgetWidth: 200,
|
||||
precision: 2
|
||||
precision: 2,
|
||||
change:(item: any) => {
|
||||
console.log(item);
|
||||
this.modiUrl = this.service.$api_searchAdditionalRateBatch;
|
||||
this.st.reload(1)
|
||||
|
||||
}
|
||||
} as SFNumberWidgetSchema
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user