diff --git a/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts b/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts
index 4efdf3a2..a3dc1911 100644
--- a/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts
+++ b/src/app/routes/partner/account-management/components/recorded-detail/recorded-detail.component.ts
@@ -1,7 +1,7 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { STColumn, STComponent } from '@delon/abc/st';
-import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
+import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema, Widget } from '@delon/form';
import { ModalHelper, _HttpClient } from '@delon/theme';
import { AccountManagemantService } from '../../services/account-managemant.service';
@@ -102,7 +102,7 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
title: '操作', className: 'text-center', width: '20%', buttons: [
{
text: '订单明细',
- click: (_record) => this.router.navigate(['/'])
+ click: (_record) => window.open(location.origin + `#/partner/rebate/record?ltdId=${_record?.ltdId}`)
}
]
},
@@ -129,7 +129,7 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
* @param record 当前行
*/
viewBookedRecord(record: any) {
-
+ window.open(location.origin + `#/partner/recorded/record?ltdId=${record?.ltdId}&userId=${record?.userId}&userIdLabel=${record?.banktypeLabel}`);
}
/**
@@ -142,5 +142,8 @@ export class PartnerAccountManagementRecordedDetailComponent implements OnInit {
handleCancel() {
this.showBillDetail = false;
}
+ goBack() {
+ window.history.go(-1);
+ }
}
diff --git a/src/app/routes/partner/account-management/components/withdrawals-record/withdrawals-record.component.html b/src/app/routes/partner/account-management/components/withdrawals-record/withdrawals-record.component.html
index d7c20673..449d3e1b 100644
--- a/src/app/routes/partner/account-management/components/withdrawals-record/withdrawals-record.component.html
+++ b/src/app/routes/partner/account-management/components/withdrawals-record/withdrawals-record.component.html
@@ -8,7 +8,7 @@
-
+
- 查询
+ 查询
重置
导出
@@ -44,7 +44,7 @@
+ [page]="{ show: true, pageSizes: [10, 20, 50, 100, 200, 500] }">
{{ item.bankName }}
{{ item.bankCardNumber }}
diff --git a/src/app/routes/partner/recorded/components/record/record.component.ts b/src/app/routes/partner/recorded/components/record/record.component.ts
index 49b6b08f..4b97ba2c 100644
--- a/src/app/routes/partner/recorded/components/record/record.component.ts
+++ b/src/app/routes/partner/recorded/components/record/record.component.ts
@@ -17,8 +17,8 @@ export class PartnerRecordedRecordComponent implements OnInit {
@ViewChild('sf', { static: false }) sf!: SFComponent;
@ViewChild('auditModal', { static: false }) auditModal!: any;
@ViewChild('viewReasonModal', { static: false }) viewReasonModal!: any;
- columns: STColumn[] = this.initST();
- searchSchema: SFSchema = this.initSF();
+ columns!: STColumn[];
+ searchSchema!: SFSchema;
totalInfo: any = {
partnerNum: 34,
count: 98,
@@ -34,9 +34,22 @@ export class PartnerRecordedRecordComponent implements OnInit {
refundStatus: any = '';
msg = '';
- constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router, public ar: ActivatedRoute) { }
- ngOnInit(): void { }
+ ltdId = ''; // 网络货运人
+ accountName = ''; // 账户名称
+
+
+ constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router, public ar: ActivatedRoute) {
+
+ this.accountName = this.ar.snapshot.queryParams?.userIdLabel || '';
+ this.ltdId = this.ar.snapshot.queryParams?.ltdId || '';
+
+ }
+
+ ngOnInit(): void {
+ this.searchSchema = this.initSF();
+ this.columns = this.initST();
+ }
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
@@ -49,6 +62,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
refundStatus: this.refundStatus || null
});
}
+ delete requestOptions?.body?.expand;
return requestOptions;
};
@@ -107,7 +121,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
this.st.load(1);
}
- auditAction(item?: any) {
+ auditAction(item?: any, type: string = '1') {
this.msg = '';
let params: Array = [];
if (item) {
@@ -116,13 +130,17 @@ export class PartnerRecordedRecordComponent implements OnInit {
params = this.selectedRows.map(node => node.id);
}
const modal = this.nzModalService.create({
- nzTitle: '审核',
+ nzTitle: type === '1' ? '审核' : '复审',
nzContent: this.auditModal,
nzFooter: [
{
- label: '备注',
+ label: '拒绝',
type: 'default',
onClick: () => {
+ if (!this.msg || this.msg.trim().length === 0) {
+ this.service.msgSrv.warning('请填写拒绝原因 ');
+ return false;
+ }
this.service
.request(this.service.$api_disagree_refund, {
refundApplicationId: params,
@@ -135,6 +153,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
this.st.load(1);
}
});
+ return false;
}
},
{
@@ -203,79 +222,47 @@ export class PartnerRecordedRecordComponent implements OnInit {
hidden: true
}
},
- refundApplyCode: {
+ accountName: {
type: 'string',
- title: '提现单号',
+ title: '账户名称',
+ default: this.accountName,
ui: {
placeholder: '请输入'
}
},
refundStatus: {
type: 'string',
- title: '提现状态',
+ title: '入账状态',
ui: {
widget: 'dict-select',
params: { dictKey: 'refund:apply:status' },
placeholder: '请选择'
}
},
- createTime: {
- title: '提现时间',
- type: 'string',
- ui: {
- widget: 'sl-from-to-search',
- format: 'yyyy-MM-dd',
- placeholder: '请选择',
- nzShowTime: true
- } as SFDateWidgetSchema
- },
- bankAccountName: {
- type: 'string',
- title: '账户名称',
- ui: {
- placeholder: '请输入',
- visibleIf: {
- expand: (value: boolean) => value
- }
- }
- },
- accountType: {
- type: 'string',
- title: '账户类型',
- ui: {
- widget: 'dict-select',
- params: { dictKey: 'bank:type' },
- placeholder: '请选择',
- visibleIf: {
- expand: (value: boolean) => value
- }
- }
- },
ltdId: {
type: 'string',
title: '网络货运人',
+ default: this.ltdId,
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getNetworkFreightForwarder(),
- visibleIf: {
- expand: (value: boolean) => value
- }
}
},
- bankType: {
+ createTime: {
+ title: '提交时间',
type: 'string',
- title: '银行类型',
ui: {
- widget: 'dict-select',
- params: { dictKey: 'bankname:type' },
- placeholder: '请输入',
+ widget: 'sl-from-to-search',
+ format: 'yyyy-MM-dd',
+ placeholder: '请选择',
+ nzShowTime: true,
visibleIf: {
expand: (value: boolean) => value
}
- }
- }
+ } as SFDateWidgetSchema
+ },
}
};
}
@@ -285,7 +272,7 @@ export class PartnerRecordedRecordComponent implements OnInit {
{ title: '', index: 'key', type: 'checkbox', className: 'text-center' },
{ title: '账户名称', index: 'createTime', width: 180, className: 'text-center' },
{ title: '虚拟账户', index: 'virtualAccount', width: 180, className: 'text-center' },
- { title: '入账单号', index: 'refundApplyCode', width: 180, className: 'text-center' },
+ { title: '入账单号', index: 'refundApplyCode', width: 190, className: 'text-center' },
{ title: '网络货运人', index: 'ltdName', width: 220, className: 'text-center' },
{
title: '开票金额',
@@ -324,6 +311,11 @@ export class PartnerRecordedRecordComponent implements OnInit {
iif: item => item.refundStatus === '1',
click: item => this.auditAction(item)
},
+ {
+ text: '复审',
+ iif: item => item.refundStatus === '2',
+ click: item => this.router.navigate(['./detail/' + item.id], { relativeTo: this.ar })
+ },
{
text: '详情',
click: item => this.router.navigate(['./detail/' + item.id], { relativeTo: this.ar })
diff --git a/src/app/shared/shared-zorro.module.ts b/src/app/shared/shared-zorro.module.ts
index ab105080..bb75f8c0 100644
--- a/src/app/shared/shared-zorro.module.ts
+++ b/src/app/shared/shared-zorro.module.ts
@@ -44,8 +44,10 @@ import { NzUploadModule } from 'ng-zorro-antd/upload';
import { NzCascaderModule } from 'ng-zorro-antd/cascader';
import { NzAnchorModule } from 'ng-zorro-antd/anchor';
import { NzAffixModule } from 'ng-zorro-antd/affix';
-import { NzTypographyModule } from 'ng-zorro-antd/typography';
+import { NzTypographyModule } from 'ng-zorro-antd/typography';
import { NzSwitchModule } from 'ng-zorro-antd/switch';
+import { NzImageModule } from 'ng-zorro-antd/image';
+
export const SHARED_ZORRO_MODULES = [
NzButtonModule,
NzGridModule,
@@ -85,5 +87,6 @@ export const SHARED_ZORRO_MODULES = [
NzAnchorModule,
NzAffixModule,
NzTypographyModule,
- NzSwitchModule
+ NzSwitchModule,
+ NzImageModule
];
diff --git a/src/app/shared/shared.module.ts b/src/app/shared/shared.module.ts
index 776c0210..51dd9bca 100644
--- a/src/app/shared/shared.module.ts
+++ b/src/app/shared/shared.module.ts
@@ -1,5 +1,5 @@
/*
- * @Description :
+ * @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2022-01-13 15:10:17
@@ -37,6 +37,7 @@ import { ImageListModule } from './components/imagelist';
import { DictSelectComponent } from './components/dict-select';
import { PipeModule } from './pipes';
import { AccountDetailComponent } from './components/account-detail/account-detail.component';
+import { rebateTableModule } from './components/rebate-table';
const MODULES = [
AddressModule,
@@ -51,6 +52,7 @@ const MODULES = [
AmapModule,
ImageListModule,
PipeModule,
+ rebateTableModule,
...PRO_SHARED_MODULES
];
// #endregion
@@ -88,4 +90,4 @@ const SHAREDCOMPONENTS = [LogisticsTimeLineComponent, DictSelectComponent, Accou
],
declarations: SHAREDCOMPONENTS
})
-export class SharedModule {}
+export class SharedModule { }
diff --git a/src/assets/mocks/menu-data.json b/src/assets/mocks/menu-data.json
index 1bf2380e..057e03bd 100644
--- a/src/assets/mocks/menu-data.json
+++ b/src/assets/mocks/menu-data.json
@@ -508,8 +508,7 @@
{
"text": "合伙人管理",
"icon": "anticon anticon-dashboard",
- "children": [
- {
+ "children": [{
"text": "合伙人列表",
"link": "/partner/partner-list"
},
@@ -547,7 +546,7 @@
"group": true,
"children": [{
"text": "账户管理",
- "link": "/partner/account-management/am"
+ "link": "/partner/account-management/am/list"
},
{
"text": "账户明细",
@@ -572,18 +571,17 @@
},
{
"text": "客户认领审核",
- "link": "/partner/claim-audit/list",
- "children": [{
- "text": "合伙人客户认领详情",
- "link": "/partner/claim-audit/partner-detail",
- "hide": true
- },
- {
- "text": "渠道销售客户认领详情",
- "link": "/partner/claim-audit/channel-detail",
- "hide": true
- }
- ]
+ "link": "/partner/claim-audit/list"
+ },
+ {
+ "text": "合伙人客户认领详情",
+ "link": "/partner/claim-audit/partner-detail",
+ "hide": true
+ },
+ {
+ "text": "渠道销售客户认领详情",
+ "link": "/partner/claim-audit/channel-detail",
+ "hide": true
},
{
"text": "入账记录",
@@ -605,7 +603,27 @@
"children": [{
"text": "banner管理",
"link": "/knowledge/banner"
- }]
+ },
+ {
+ "text": "文章管理",
+ "link": "/partner/knowledge/article-management-list"
+ },
+ {
+ "text": "新增文章",
+ "link": "/partner/knowledge/article-management-add",
+ "hide": true
+ },
+ {
+ "text": "编辑文章",
+ "link": "/partner/knowledge/article-management-edit",
+ "hide": true
+ },
+ {
+ "text": "分类管理",
+ "link": "/partner/knowledge/classification"
+ }
+ ]
+
}
]
}