This commit is contained in:
wangshiming
2022-04-28 21:59:39 +08:00
parent 11df634a44
commit 4fa3096bae
3 changed files with 17 additions and 7 deletions

View File

@ -46,7 +46,7 @@ export class FreightAccountDetailComponent implements OnInit {
} }
}); });
} }
// this.loadStatistics(requestOptions.body); this.loadStatistics(requestOptions.body);
return requestOptions; return requestOptions;
}; };
@ -75,6 +75,8 @@ export class FreightAccountDetailComponent implements OnInit {
loadStatistics(params: any) { loadStatistics(params: any) {
this.service.request(this.service.$api_get_shipper_account_balance_detail, params).subscribe(res => { this.service.request(this.service.$api_get_shipper_account_balance_detail, params).subscribe(res => {
if (res) { if (res) {
console.log(res);
this.static = res; this.static = res;
} }
}); });

View File

@ -4,14 +4,14 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-29 14:51:07 * @Date : 2021-12-29 14:51:07
* @LastEditors : Shiming * @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 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
<nz-alert nzType="info" [nzMessage]="'已选择'+ data?.ids?.length + '条订单'" nzShowIcon></nz-alert> <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> <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}" [req]="{ method: 'POST',params: reqParams}"
[res]="{ reName: { list: 'data' } }" [res]="{ reName: { list: 'data' } }"
[page]="{show: false,showSize: false,front: false}" [page]="{show: false,showSize: false,front: false}"

View File

@ -1,10 +1,11 @@
import { STComponent } from '@delon/abc/st';
/* /*
* @Description : * @Description :
* @Version : 1.0 * @Version : 1.0
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-29 14:51:07 * @Date : 2021-12-29 14:51:07
* @LastEditors : Shiming * @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 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\modify-rate\\modify-rate.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -23,16 +24,17 @@ import { OrderManagementService } from '../../../services/order-management.servi
}) })
export class VehicleModifyRateComponent implements OnInit { export class VehicleModifyRateComponent implements OnInit {
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
@ViewChild('st', { static: false }) st!: STComponent;
schema: SFSchema = {}; schema: SFSchema = {};
ui: SFUISchema = {}; ui: SFUISchema = {};
columns: STColumn[] = [ columns: STColumn[] = [
{ title: '订单号', index: 'billCode' }, { title: '订单号', index: 'billCode' },
{ title: '原附加费率', render: 'oldAdditionalRate' }, { title: '原附加费率', render: 'oldAdditionalRate' },
{ title: '原附加费', render: 'oldSurcharge' }, { title: '原附加费', render: 'oldSurcharge' },
// { title: '新附加费', render: 'newSurcharge' }, { title: '新附加费', render: 'newSurcharge' },
]; ];
aggreechecked = false; aggreechecked = false;
modiUrl: string= this.service.$api_searchAdditionalRateBatch
@Input() @Input()
data: any; data: any;
@ -63,7 +65,13 @@ export class VehicleModifyRateComponent implements OnInit {
ui: { ui: {
unit: '%', unit: '%',
widgetWidth: 200, widgetWidth: 200,
precision: 2 precision: 2,
change:(item: any) => {
console.log(item);
this.modiUrl = this.service.$api_searchAdditionalRateBatch;
this.st.reload(1)
}
} as SFNumberWidgetSchema } as SFNumberWidgetSchema
} }
}, },