This commit is contained in:
wangshiming
2022-03-08 13:22:17 +08:00
parent cf4498db3e
commit 29a18967c9
4 changed files with 27 additions and 13 deletions

View File

@ -4,20 +4,26 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-29 14:51:07 * @Date : 2021-12-29 14:51:07
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-02-10 10:19:34 * @LastEditTime : 2022-03-08 13:21:35
* @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_getChangeRecordWholeDetail" [columns]="columns" <st #st [data]="service.$api_searchAdditionalRateBatch" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams}" [req]="{ method: 'POST',params: reqParams}"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }" [res]="{ reName: { list: 'data' } }"
[page]="{}" [page]="{show: false,showSize: false,front: false}"
> >
<ng-template st-row="operator" let-item> <ng-template st-row="oldAdditionalRate" let-item>
{{item?.operator}}/{{item.telephone}} {{ item?.oldAdditionalRate? (item?.oldAdditionalRate * 100).toFixed(2) + '%' : ''}}
</ng-template>
<ng-template st-row="oldSurcharge" let-item>
{{ item?.oldSurcharge | currency}}
</ng-template>
<ng-template st-row="newSurcharge" let-item>
{{ item?.newSurcharge | currency}}
</ng-template> </ng-template>
</st> </st>
<div class="modal-footer"> <div class="modal-footer">

View File

@ -4,7 +4,7 @@
* @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-04 14:45:58 * @LastEditTime : 2022-03-08 13:21:59
* @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.
*/ */
@ -26,9 +26,10 @@ export class VehicleModifyRateComponent implements OnInit {
schema: SFSchema = {}; schema: SFSchema = {};
ui: SFUISchema = {}; ui: SFUISchema = {};
columns: STColumn[] = [ columns: STColumn[] = [
{ title: '内容', index: 'operationContent' }, { title: '订单号', index: 'billCode' },
{ title: '操作人', index: 'operator' }, { title: '原附加费率', render: 'oldAdditionalRate' },
{ title: '操作时间', index: 'operatorTimestamp' }, { title: '原附加费', render: 'oldSurcharge' },
{ title: '新附加费', render: 'newSurcharge' },
]; ];
aggreechecked = false; aggreechecked = false;
@ -40,11 +41,15 @@ export class VehicleModifyRateComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
console.log(this.data); console.log(this.data);
this.initSF(); this.initSF();
console.log(this.data?.ids)
} }
get reqParams() { get reqParams() {
return { return {
// operateObject: this.i?.resourceCode, // operateObject: this.i?.resourceCode,
// operateType: 4, // operateType: 4,
ids: this.data?.ids,
additionalRate: this.sf?.value?.additionalRate || 0
}; };
} }
initSF() { initSF() {

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-03 15:31:52 * @Date : 2021-12-03 15:31:52
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-03-01 19:21:53 * @LastEditTime : 2022-03-08 09:27:47
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -158,6 +158,9 @@ export class OrderManagementService extends ShipperBaseService {
// 保存订单退款申请表 // 保存订单退款申请表
public $api_billRefundApplication_save = '/api/fcc/billRefundApplication/save'; public $api_billRefundApplication_save = '/api/fcc/billRefundApplication/save';
// 批量修改费率-实时查看附加费
public $api_searchAdditionalRateBatch = '/api/sdc/billOperate/searchAdditionalRateBatch';