This commit is contained in:
wangshiming
2022-05-05 15:20:46 +08:00
parent df07ed9b06
commit b24202dbf1
3 changed files with 41 additions and 26 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-02-24 20:09:49 * @Date : 2022-02-24 20:09:49
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-27 10:17:31 * @LastEditTime : 2022-05-05 15:12:33
* @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\particulars\\particulars.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\components\\particulars\\particulars.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -56,6 +56,7 @@
<st <st
#st #st
[bordered]="true" [bordered]="true"
[scroll]="{x: '1200px'}"
[data]="data" [data]="data"
[columns]="columns" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"

View File

@ -51,13 +51,8 @@ export class ParterRebateManageMentParticularsComponent implements OnInit {
*/ */
get reqParams() { get reqParams() {
const params: any = Object.assign({}, this.sf?.value || {}); const params: any = Object.assign({}, this.sf?.value || {});
const a: any = {};
if (this.resourceStatus) {
a.representationsStatus = this.resourceStatus;
}
delete params._$expand; delete params._$expand;
return { return {
...a,
...params, ...params,
deadlineTime: { deadlineTime: {
start: this.sf?.value?.deadlineTime?.[0] || '', start: this.sf?.value?.deadlineTime?.[0] || '',
@ -74,19 +69,19 @@ export class ParterRebateManageMentParticularsComponent implements OnInit {
this.schema = { this.schema = {
properties: { properties: {
_$expand: { type: 'boolean', ui: { hidden: true } }, _$expand: { type: 'boolean', ui: { hidden: true } },
name: { billCode: {
type: 'string', type: 'string',
title: '订单号' title: '订单号'
}, },
phone: { orderPaymentCode: {
type: 'string', type: 'string',
title: '付款单号' title: '付款单号'
}, },
phone2: { enterpriseInfoName: {
type: 'string', type: 'string',
title: '下单客户' title: '下单客户'
}, },
enterpriseInfoId: { ltdId: {
type: 'string', type: 'string',
title: '网络货运人', title: '网络货运人',
ui: { ui: {
@ -99,7 +94,7 @@ export class ParterRebateManageMentParticularsComponent implements OnInit {
asyncData: () => this.shipperservice.getNetworkFreightForwarder() asyncData: () => this.shipperservice.getNetworkFreightForwarder()
} }
}, },
phone3: { partnerName: {
type: 'string', type: 'string',
title: '合伙人名称', title: '合伙人名称',
ui: { ui: {
@ -108,7 +103,7 @@ export class ParterRebateManageMentParticularsComponent implements OnInit {
}, },
} }
}, },
deadlineTime: { handlerTime: {
title: '时间范围', title: '时间范围',
type: 'string', type: 'string',
ui: { ui: {
@ -134,7 +129,11 @@ export class ParterRebateManageMentParticularsComponent implements OnInit {
this.resourceStatus = e; this.resourceStatus = e;
this.initST(); this.initST();
setTimeout(() => { setTimeout(() => {
this.data = this.service.$api_get_searchRefundPageList if(e == 1) {
this.data = this.service.$api_get_searchRefundPageList
} else {
this.data = this.service.$api_get_searchPageList
}
this.st.load(); this.st.load();
}, 500); }, 500);
} }
@ -142,55 +141,68 @@ export class ParterRebateManageMentParticularsComponent implements OnInit {
this.columns = [ this.columns = [
{ {
title: '订单号', title: '订单号',
index: 'name1' width: 150,
index: 'billCode'
}, },
{ {
title: '订单金额(元)', title: '订单金额(元)',
index: 'name1' width: 150,
index: 'orderAmount'
}, },
{ {
title: '付款金额(元)', title: '付款金额(元)',
index: 'name1' width: 150,
index: 'payAmount'
}, },
{ {
title: '预估返佣金额(元)', title: '预估返佣金额(元)',
index: 'name1' width: 150,
index: 'profitAmount'
}, },
{ {
title: '附加费率', title: '附加费率',
index: 'name1' width: 150,
index: 'additionalRate'
}, },
{ {
title: '下单客户', title: '下单客户',
index: 'name1' width: 150,
index: 'enterpriseInfoName'
}, },
{ {
title: '网络货运人', title: '网络货运人',
index: 'name1' width: 180,
index: 'ltdName'
}, },
{ {
title: '销售渠道', title: '销售渠道',
index: 'name1' width: 180,
index: 'salesmanName'
}, },
{ {
title: '合伙人名称', title: '合伙人名称',
index: 'name1' width: 180,
index: 'partnerName'
}, },
{ {
title: '合伙人等级', title: '合伙人等级',
index: 'name1' width: 150,
index: 'partnerLevelName'
}, },
{ {
title: '管理费比例', title: '管理费比例',
index: 'name1' width: 150,
index: 'manageFee'
}, },
{ {
title: '固定结算费率', title: '固定结算费率',
index: 'name1' width: 150,
index: 'settlementFee'
}, },
{ {
title: '返佣时间', title: '返佣时间',
index: 'name1' width: 180,
index: 'returnCommissionTime'
} }
]; ];
} }

View File

@ -43,6 +43,8 @@ export class RebateTableComponent implements OnInit {
this.data = [ this.data = [
{ {
gradeConfigId: '0', gradeConfigId: '0',
startAmount: 0,
endAmount: 0,
managementFeeRatio: 0, managementFeeRatio: 0,
} }
]; ];