diff --git a/package.json b/package.json
index 209f17b2..4b8d367f 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"scripts": {
"ng-high-memory": "node --max_old_space_size=8000 ./node_modules/@angular/cli/bin/ng",
"ng": "ng",
- "start": "ng s -o --port 4202",
+ "start": "ng s -o --port 4202 --host 0.0.0.0",
"hmr": "ng s -o --hmr",
"build": "npm run ng-high-memory build --",
"build:dev": "npm run build -- -c dev",
diff --git a/src/app/routes/financial-management/components/abnormal-gold/abnormal-gold.component.html b/src/app/routes/financial-management/components/abnormal-gold/abnormal-gold.component.html
index 9964c063..1a37c780 100644
--- a/src/app/routes/financial-management/components/abnormal-gold/abnormal-gold.component.html
+++ b/src/app/routes/financial-management/components/abnormal-gold/abnormal-gold.component.html
@@ -30,7 +30,7 @@
- this.service.getNetworkFreightForwarder()
}
},
- orderSn22: {
+ bankType: {
type: 'string',
title: '银行类型',
+ enum: [
+ { label: '全部', value: '' },
+ { label: '平安银行', value: '1' },
+ { label: '浦发银行', value: '2' }
+ ],
ui: {
- placeholder: '请输入'
- }
+ widget: 'select',
+ placeholder: '请选择',
+ },
+ default: ''
},
- orderSn2: {
+ transferBankAccount: {
type: 'string',
title: '付款账户',
ui: {
@@ -109,7 +117,7 @@ export class AbnormalGoldComponent implements OnInit {
}
}
},
- orderSn221: {
+ transferBankCardNumber: {
type: 'string',
title: '付款账号',
ui: {
@@ -119,7 +127,7 @@ export class AbnormalGoldComponent implements OnInit {
}
}
},
- orderS2n221: {
+ transferBankOpenName: {
type: 'string',
title: '付款银行',
ui: {
@@ -129,13 +137,14 @@ export class AbnormalGoldComponent implements OnInit {
}
}
},
- createTime: {
+ transferDate: {
title: '转账时间',
type: 'string',
ui: {
- widget: 'date',
- mode: 'range',
+ widget: 'sl-from-to-search',
format: 'yyyy-MM-dd',
+ placeholder: '请选择',
+ nzShowTime: true,
visibleIf: {
expand: (value: boolean) => value
}
@@ -147,17 +156,17 @@ export class AbnormalGoldComponent implements OnInit {
private initST(): STColumn[] {
return [
- { title: '银行流水号', index: 'no', width: 150 },
- { title: '网络货运人', index: 'callNo', width: 120 },
- { title: '银行类型', index: 'callNo', width: 100 },
+ { title: '银行流水号', index: 'paySerialNumber', width: 150 },
+ { title: '网络货运人', index: 'ltdid', width: 120 },
+ { title: '银行类型', index: 'callNo', width: 100, type: 'enum', enum: { 1: '平安银行', 2: '浦发银行' } },
{ title: '资金总账号', index: 'callNo', width: 120 },
- { title: '充值金额', index: 'callNo', width: 100 },
- { title: '付款账户', index: 'callNo', width: 100 },
- { title: '付款账号', index: 'callNo', width: 100 },
- { title: '付款银行', index: 'callNo', width: 100 },
- { title: '转账时间', index: 'callNo', type: 'date', width: 150 },
- { title: '转账备注', index: 'callNo', width: 100 },
- { title: '操作人', index: 'callNo', width: 90 },
+ { title: '充值金额', index: 'rechargeAmount', width: 100 },
+ { title: '付款账户', index: 'transferBankAccount', width: 100 },
+ { title: '付款账号', index: 'transferBankCardNumber', width: 100 },
+ { title: '付款银行', index: 'transferBankOpenName', width: 100 },
+ { title: '转账时间', index: 'transferDate', type: 'date', width: 150 },
+ { title: '转账备注', index: 'rechargeRemark', width: 100 },
+ { title: '操作人', index: 'rechargeName', width: 90 },
{ title: '操作时间', index: 'callNo', type: 'date', width: 150 },
{ title: '状态', index: 'callNo', width: 90 },
{
diff --git a/src/app/routes/financial-management/components/driver-account/driver-account-detail/driver-account-detail.component.html b/src/app/routes/financial-management/components/driver-account/driver-account-detail/driver-account-detail.component.html
index 3d044272..6ad0da58 100644
--- a/src/app/routes/financial-management/components/driver-account/driver-account-detail/driver-account-detail.component.html
+++ b/src/app/routes/financial-management/components/driver-account/driver-account-detail/driver-account-detail.component.html
@@ -53,7 +53,7 @@
-
- {
diff --git a/src/app/routes/financial-management/components/freight-account/freight-account.component.ts b/src/app/routes/financial-management/components/freight-account/freight-account.component.ts
index 87590a49..0dd6edd7 100644
--- a/src/app/routes/financial-management/components/freight-account/freight-account.component.ts
+++ b/src/app/routes/financial-management/components/freight-account/freight-account.component.ts
@@ -147,15 +147,15 @@ export class FreightAccountComponent implements OnInit {
{ title: '银行类型', index: 'bankType', type: 'enum', enum: { 1: '平安银行', 2: '浦发银行' } },
{ title: '虚拟账户', index: 'virtualAccount' },
{ title: '可用余额', index: 'availableBalance' },
- { title: '冻结余额', index: 'availableBalance' },
+ { title: '冻结余额', index: 'freezeBalance' },
{ title: '累计消费金额', index: 'description' },
- { title: '账户总余额', render: 'availableBalance' },
+ { title: '账户总余额', render: 'description' },
{ title: '创建时间', index: 'createTime', type: 'date', width: 150 },
{
title: '状态',
- render: 'stateLocked',
+ index: 'stateDeleted',
type: 'badge',
- badge: { 0: { text: '正常', color: 'success' }, 1: { text: '锁定', color: 'warning' } }
+ badge: { 0: { text: '正常', color: 'success' }, 1: { text: '停用', color: 'warning' } }
},
{
title: '操作',
diff --git a/src/app/routes/financial-management/components/payment-record/payment-record.component.html b/src/app/routes/financial-management/components/payment-record/payment-record.component.html
index 02521d8c..93435deb 100644
--- a/src/app/routes/financial-management/components/payment-record/payment-record.component.html
+++ b/src/app/routes/financial-management/components/payment-record/payment-record.component.html
@@ -24,15 +24,34 @@
-
-
-
-
+
+
+
+
-
+ [loading]="service.http.loading" [scroll]="{ x:'1200px',y: '370px' }">
+
+ {{ item.orderPaymentCode }}
{{ paymentStatusEm[item.paymentStatus] }}
+
+
+ 预付:¥{{ item.price }}
附加费:¥ {{ item.surcharge }}
+
+
+ {{ item.billCode }}
{{billStatus[item.billStatus] }}
+
+
+ {{ item.wayBillCode }}
{{wayBillStatus[item.wayBillStatus ] }}
+
+
+ {{ item.driverName }}
{{ item.driverTelephone }}
{{ item.driverLicensePlate }}
+
+
+ {{ item.captainName }}
{{ item.captainTelephone }}
+
+
\ No newline at end of file
diff --git a/src/app/routes/financial-management/components/payment-record/payment-record.component.ts b/src/app/routes/financial-management/components/payment-record/payment-record.component.ts
index 68b1d4f8..52b88b56 100644
--- a/src/app/routes/financial-management/components/payment-record/payment-record.component.ts
+++ b/src/app/routes/financial-management/components/payment-record/payment-record.component.ts
@@ -19,20 +19,61 @@ export class PaymentRecordComponent implements OnInit {
columns: STColumn[] = this.initST();
searchSchema: SFSchema = this.initSF();
-
_$expand = false;
+ paymentStatus: any = '';
+
+ paymentStatusEm: any = {
+ 0: '待支付',
+ 1: '已支付',
+ 2: '已拒绝',
+ 3: '支付中',
+ 4: '支付失败'
+ };
+ billStatus: any = {
+ 1: '待接单',
+ 2: '待发车',
+ 3: '运输中',
+ 4: '待签收',
+ 5: '已完成',
+ 6: '已取消'
+ };
+ wayBillStatus: any = {
+ 1: '待接单',
+ 2: '待发车',
+ 3: '运输中',
+ 4: '待签收',
+ 5: '已完成',
+ 6: '已取消'
+ };
+
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void {}
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
- Object.assign(requestOptions.body, { ...this.sf.value });
+ Object.assign(requestOptions.body, {
+ ...this.sf.value,
+ applyDate: {
+ start: this.sf.value.applyDate?.[0] || null,
+ end: this.sf.value.applyDate?.[1] || null
+ },
+ handlerDate: {
+ start: this.sf.value.handlerDate?.[0] || null,
+ end: this.sf.value.handlerDate?.[1] || null
+ },
+ paymentStatus: this.paymentStatus || ''
+ });
}
return requestOptions;
};
+ changePaymentStatus(status?: string) {
+ this.paymentStatus = status || null;
+ this.st.load(1);
+ }
+
refund(item: any) {
this.nzModalService.warning({
nzTitle: '确定要关闭所选支付记录?',
@@ -72,33 +113,34 @@ export class PaymentRecordComponent implements OnInit {
placeholder: '请输入'
}
},
- order2Sn: {
+ billCode: {
type: 'string',
title: '订单号',
ui: {
placeholder: '请输入'
}
},
- orderSn22: {
+ resourceCode: {
type: 'string',
title: '货源编号',
ui: {
placeholder: '请输入'
}
},
- orderSn2: {
+ serviceType: {
type: 'string',
title: '服务类型',
- enum: [{ label: '全部', value: '全部' }],
ui: {
- widget: 'select',
+ widget: 'dict-select',
+ params: { dictKey: 'service:type' },
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
- orderSn221: {
+ driver: {
type: 'string',
title: '承运司机',
ui: {
@@ -108,7 +150,7 @@ export class PaymentRecordComponent implements OnInit {
}
}
},
- orderS2n221: {
+ driverLicensePlate: {
type: 'string',
title: '车牌号',
ui: {
@@ -118,7 +160,7 @@ export class PaymentRecordComponent implements OnInit {
}
}
},
- orderS2n2221: {
+ captain: {
type: 'string',
title: '收款人',
ui: {
@@ -128,73 +170,87 @@ export class PaymentRecordComponent implements OnInit {
}
}
},
- orderSn221f: {
+ isCaptain: {
type: 'string',
title: '车队长收款',
- enum: [{ label: '全部', value: '全部' }],
+ enum: [
+ { label: '全部', value: '' },
+ { label: '否', value: 0 },
+ { label: '是', value: 1 }
+ ],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
- ord1erSn221f: {
+ payType: {
type: 'string',
title: '支付类型',
- enum: [{ label: '全部', value: '全部' }],
+ enum: [{ label: '全部', value: '' }],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
- createTime: {
+ applyDate: {
title: '申请时间',
type: 'string',
ui: {
- widget: 'date',
- mode: 'range',
+ widget: 'sl-from-to-search',
format: 'yyyy-MM-dd',
+ placeholder: '请选择',
+ nzShowTime: true,
visibleIf: {
expand: (value: boolean) => value
}
} as SFDateWidgetSchema
},
- create1Time: {
+ handlerDate: {
title: '处理时间',
type: 'string',
ui: {
- widget: 'date',
- mode: 'range',
+ widget: 'sl-from-to-search',
format: 'yyyy-MM-dd',
+ placeholder: '请选择',
+ nzShowTime: true,
visibleIf: {
expand: (value: boolean) => value
}
} as SFDateWidgetSchema
},
- orderSn5221f: {
+ bankType: {
type: 'string',
title: '银行类型',
- enum: [{ label: '全部', value: '全部' }],
+ enum: [
+ { label: '全部', value: '' },
+ { label: '平安银行', value: '1' },
+ { label: '浦发银行', value: '2' }
+ ],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
- orde1rSn5221f: {
+ ltdid: {
type: 'string',
title: '网络货运人',
- enum: [{ label: '全部', value: '全部' }],
ui: {
widget: 'select',
placeholder: '请选择',
+ allowClear: true,
+ asyncData: () => this.service.getNetworkFreightForwarder(),
visibleIf: {
expand: (value: boolean) => value
}
@@ -206,24 +262,49 @@ export class PaymentRecordComponent implements OnInit {
private initST(): STColumn[] {
return [
- { title: '支付编号', index: 'no', width: 150, format: item => `JS20210930000001` },
- { title: '支付金额', index: 'callNo', width: 100, format: item => `¥2000.00` },
- { title: '运费明细', index: 'callNo', width: 150, format: item => `预付:¥ 4000.00附加费:¥ 200.00` },
- { title: '支付类型', index: 'callNo', width: 100 },
- { title: '货主', index: 'callNo', width: 100 },
- { title: '订单号', index: 'callNo', width: 100, format: item => `DZ210817466436972` },
- { title: '运单号', index: 'callNo', width: 100, format: item => `DZ210817466436972` },
- { title: '货源编号', index: 'callNo', width: 100 },
- { title: '服务类型', index: 'callNo', type: 'date', width: 150 },
- { title: '承运司机', index: 'callNo', width: 120, format: item => `特朗普13789040523粤GT8419` },
- { title: '收款人', index: 'callNo', width: 120, format: item => `拜登13789040523` },
- { title: '银行类型', index: 'callNo', type: 'date', width: 150 },
- { title: '网络货运人', index: 'callNo', width: 120 },
- { title: '申请时间', index: 'callNo', width: 150 },
- { title: '申请人', index: 'callNo', width: 90 },
- { title: '处理时间', index: 'callNo', width: 150 },
- { title: '处理人', index: 'callNo', width: 90 },
- { title: '失败原因', index: 'callNo', width: 100 },
+ { title: '支付编号', render: 'orderPaymentCode', width: 150 },
+ { title: '支付金额', render: 'payAmount', width: 100, format: item => `¥${item.payAmount}` },
+ {
+ title: '运费明细',
+ render: 'amountDetails',
+ width: 150,
+ format: item => {
+ let surcharge = 0;
+ (item.amountDetails as Array).forEach(detail => {
+ surcharge += detail.surcharge || 0;
+ });
+ item.surcharge = surcharge;
+ item.price = item.amountDetails?.[0]?.price || 0;
+ return '';
+ }
+ },
+ {
+ title: '支付类型',
+ index: 'payType',
+ width: 130,
+ type: 'enum',
+ enum: { 1: '货主支付平台', 2: '平台支付司机', 3: '司机支付车队长' }
+ },
+ { title: '货主', index: 'enterpriseInfoName', width: 100 },
+ { title: '订单号', render: 'billCode', width: 120 },
+ { title: '运单号', render: 'wayBillCode', width: 120 },
+ { title: '货源编号', index: 'resourceCode', width: 120 },
+ {
+ title: '服务类型',
+ index: 'serviceType',
+ width: 150,
+ type: 'enum',
+ enum: { '1': '抢单', '2': '指派', '3': '二维码', '4': '手工单' }
+ },
+ { title: '承运司机', render: 'driverId', width: 120 },
+ { title: '收款人', render: 'captainName', width: 120 },
+ { title: '银行类型', index: 'bankType', width: 150, type: 'enum', enum: { 1: '平安银行', 2: '浦发银行' } },
+ { title: '网络货运人', index: 'ltdname', width: 120 },
+ { title: '申请时间', index: 'applyTime', width: 160 },
+ { title: '申请人', index: 'applyUsername', width: 90 },
+ { title: '处理时间', index: 'handleTime', width: 150 },
+ { title: '处理人', index: 'handlerUsername', width: 90 },
+ { title: '失败原因', index: 'failCause', width: 100 },
{
title: '操作',
fixed: 'right',
@@ -232,6 +313,7 @@ export class PaymentRecordComponent implements OnInit {
buttons: [
{
text: '关闭',
+ iif: item => item.paymentStatus === 4,
click: item => this.refund(item)
}
]
diff --git a/src/app/routes/financial-management/components/recharge-record/recharge-record.component.html b/src/app/routes/financial-management/components/recharge-record/recharge-record.component.html
index 7116d041..99db6e37 100644
--- a/src/app/routes/financial-management/components/recharge-record/recharge-record.component.html
+++ b/src/app/routes/financial-management/components/recharge-record/recharge-record.component.html
@@ -36,9 +36,13 @@
-
+ [loading]="service.http.loading" [scroll]="{ x:'1200px',y: '400px' }">
+
+ {{ item.transferBankOpenName }}
{{ item.transferBankCardNumber }}
+
+
\ No newline at end of file
diff --git a/src/app/routes/financial-management/components/recharge-record/recharge-record.component.ts b/src/app/routes/financial-management/components/recharge-record/recharge-record.component.ts
index 074aa0c3..1c1c9d6f 100644
--- a/src/app/routes/financial-management/components/recharge-record/recharge-record.component.ts
+++ b/src/app/routes/financial-management/components/recharge-record/recharge-record.component.ts
@@ -61,28 +61,25 @@ export class RechargeRecordComponent implements OnInit {
hidden: true
}
},
- orderSn2: {
+ rechargeNo: {
type: 'string',
title: '充值单号',
ui: {
placeholder: '请输入'
}
},
- receiveName: {
+ rechargeStatus: {
type: 'string',
title: '充值状态',
enum: [
{ label: '全部', value: '' },
- { label: '充值中', value: '充值中' },
- { label: '已完成', value: '已完成' }
+ { label: '充值中', value: '1' },
+ { label: '充值失败', value: '2' },
+ { label: '充值成功', value: '3' }
],
ui: {
widget: 'select',
- placeholder: '请选择',
- change: (i: any) => {
- this.sf.value.receiveName = i;
- this.sf?.setValue('/receiveName', i);
- }
+ placeholder: '请选择'
},
default: ''
},
@@ -95,7 +92,7 @@ export class RechargeRecordComponent implements OnInit {
format: 'yyyy-MM-dd'
} as SFDateWidgetSchema
},
- orderSn3: {
+ rechargeName: {
type: 'string',
title: '账户名称',
ui: {
@@ -106,48 +103,53 @@ export class RechargeRecordComponent implements OnInit {
}
}
},
- receiveName2: {
+ accountType: {
type: 'string',
title: '账户类型',
enum: [
{ label: '全部', value: '' },
- { label: '货主账户', value: '货主账户' },
- { label: '司机账户', value: '司机账户' }
+ { label: '货主账户', value: '1' },
+ { label: '司机账户', value: '2' },
+ { label: '营商账户', value: '3' }
],
ui: {
widget: 'select',
placeholder: '请选择',
- change: (i: any) => {
- this.sf.value.receiveName2 = i;
- this.sf?.setValue('/receiveName2', i);
- },
visibleIf: {
expand: (value: boolean) => value
}
},
default: ''
},
- page2: {
+ ltdid: {
type: 'string',
title: '网络货运人',
- enum: [{ label: '全部', value: '全部' }],
+ ui: {
+ widget: 'select',
+ placeholder: '请选择',
+ visibleIf: {
+ expand: (value: boolean) => value
+ },
+ allowClear: true,
+ asyncData: () => this.service.getNetworkFreightForwarder()
+ }
+ },
+ bankType: {
+ type: 'string',
+ title: '银行类型',
+ enum: [
+ { label: '全部', value: '' },
+ { label: '平安银行', value: '1' },
+ { label: '浦发银行', value: '2' }
+ ],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
- }
- },
- orderSn23: {
- type: 'string',
- title: '银行类型',
- ui: {
- placeholder: '请输入',
- visibleIf: {
- expand: (value: boolean) => value
- }
- }
+ },
+ default: ''
}
}
};
@@ -155,23 +157,23 @@ export class RechargeRecordComponent implements OnInit {
private initST(): STColumn[] {
return [
- { title: '充值时间', index: 'updatedAt', type: 'date' },
- { title: '充值单号', index: 'callNo' },
- { title: '网络货运人', index: 'callNo' },
- { title: '银行类型', index: 'callNo' },
- { title: '账户类型', index: 'callNo' },
- { title: '账户名称', index: 'callNo' },
- { title: '虚拟账户', index: 'callNo' },
- { title: '充值金额', index: 'callNo' },
- { title: '充值银行账户', index: 'callNo',format: item=> `中国招商银行6238293829388888` },
- { title: '充值方式', index: 'callNo' },
- { title: '充值状态', index: 'callNo' },
- { title: '银行流水号', index: 'callNo' },
+ { title: '充值时间', index: 'createTime', type: 'date' },
+ { title: '充值单号', index: 'rechargeNo' },
+ { title: '网络货运人', index: 'ltdid' },
+ { title: '银行类型', index: 'bankType', type: 'enum', enum: { 1: '平安银行', 2: '浦发银行' } },
+ { title: '账户类型', index: 'accountType', type: 'enum', enum: { 1: '平安银行', 2: '浦发银行', 3: '运营商账户' } },
+ { title: '账户名称', index: 'rechargeName' },
+ { title: '虚拟账户', index: 'virtualAccount' },
+ { title: '充值金额', index: 'rechargeAmount' },
+ { title: '充值银行账户', render: 'transferBankAccount', format: item => `中国招商银行6238293829388888` },
+ { title: '充值方式', index: 'payChannel', type: 'enum', enum: { 1: '线下充值' } },
+ { title: '充值状态', index: 'rechargeStatus', type: 'enum', enum: { 1: '充值中', 2: '充值失败', 3: '充值成功' } },
+ { title: '银行流水号', index: 'paySerialNumber' },
{
title: '操作',
buttons: [
{
- text: '查看回单',
+ text: '查看回单'
// click: item => this.router.navigate(['/financial-management/freight-account/detail/1'])
}
]
diff --git a/src/app/routes/financial-management/components/transaction-flow/transaction-flow.component.html b/src/app/routes/financial-management/components/transaction-flow/transaction-flow.component.html
index ec0374db..9ba4f0c3 100644
--- a/src/app/routes/financial-management/components/transaction-flow/transaction-flow.component.html
+++ b/src/app/routes/financial-management/components/transaction-flow/transaction-flow.component.html
@@ -23,7 +23,7 @@
- {
if (this.sf) {
- Object.assign(requestOptions.body, { ...this.sf.value });
+ Object.assign(requestOptions.body, {
+ ...this.sf.value,
+ createTime: {
+ start: this.sf.value.tcreateTimeime?.[0] || null,
+ end: this.sf.value.createTime?.[1] || null
+ }
+ });
}
return requestOptions;
};
@@ -56,39 +62,44 @@ export class TransactionFlowComponent implements OnInit {
hidden: true
}
},
- orderSn: {
+ createTime: {
title: '交易时间',
type: 'string',
ui: {
- widget: 'date',
- mode: 'range',
- format: 'yyyy-MM-dd'
+ widget: 'sl-from-to-search',
+ format: 'yyyy-MM-dd',
+ placeholder: '请选择'
} as SFDateWidgetSchema
},
- order2Sn: {
+ transactionNumber: {
type: 'string',
title: '流水号',
ui: {
placeholder: '请输入'
}
},
- orderSn22: {
+ businessNumber: {
type: 'string',
title: '关联单号',
ui: {
placeholder: '请输入'
}
},
- orderSn2: {
+ tradeType: {
type: 'string',
title: '交易类型',
enum: [
- { label: '全部', value: '全部' },
- { label: '订单支付', value: '订单支付' },
- { label: '余额充值', value: '余额充值' },
- { label: '余额提现', value: '余额提现' },
- { label: '资金分配', value: '资金分配' },
- { label: '资金回收', value: '资金回收' }
+ { label: '全部', value: '' },
+ { label: '运费支付', value: 1 },
+ { label: '附加费支付', value: 2 },
+ { label: '运费退款', value: 3 },
+ { label: '附加费退款', value: 4 },
+ { label: '保费支付', value: 5 },
+ { label: '保费退款', value: 6 },
+ { label: '余额充值', value: 7 },
+ { label: '余额提现', value: 8 },
+ { label: '资金分配', value: 9 },
+ { label: '资金回收', value: 10 }
],
ui: {
widget: 'select',
@@ -96,15 +107,16 @@ export class TransactionFlowComponent implements OnInit {
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
- orderSn221: {
+ incomeType: {
type: 'string',
title: '收支类型',
enum: [
- { label: '全部', value: '全部' },
- { label: '收入', value: '收入' },
- { label: '支出', value: '支出' }
+ { label: '全部', value: '部' },
+ { label: '收入', value: 1 },
+ { label: '支出', value: 2 }
],
ui: {
widget: 'select',
@@ -112,15 +124,17 @@ export class TransactionFlowComponent implements OnInit {
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
- orderS2n221: {
+ channelSource: {
type: 'string',
title: '账户类型',
enum: [
- { label: '全部', value: '全部' },
- { label: '收入', value: '收入' },
- { label: '支出', value: '支出' }
+ { label: '全部', value: '' },
+ { label: '货主端', value: '1' },
+ { label: '司机端', value: '2' },
+ { label: '司机端', value: '3' }
],
ui: {
widget: 'select',
@@ -128,7 +142,8 @@ export class TransactionFlowComponent implements OnInit {
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
orderS2n2221: {
type: 'string',
@@ -143,38 +158,47 @@ export class TransactionFlowComponent implements OnInit {
orderSn221f: {
type: 'string',
title: '所属项目',
- enum: [{ label: '全部', value: '全部' }],
ui: {
widget: 'select',
placeholder: '请选择',
+ allowClear: true,
visibleIf: {
expand: (value: boolean) => value
- }
- }
+ },
+ asyncData: () => this.service.getEnterpriseProject()
+ },
+ default: ''
},
- ord1erSn221f: {
+ bankType: {
type: 'string',
title: '银行类型',
- enum: [{ label: '全部', value: '全部' }],
+ enum: [
+ { label: '全部', value: '' },
+ { label: '平安银行', value: '1' },
+ { label: '浦发银行', value: '2' }
+ ],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
- }
+ },
+ default: ''
},
- orde1rSn5221f: {
+ ltdid: {
type: 'string',
title: '网络货运人',
- enum: [{ label: '全部', value: '全部' }],
ui: {
widget: 'select',
placeholder: '请选择',
+ allowClear: true,
visibleIf: {
expand: (value: boolean) => value
- }
- }
+ },
+ asyncData: () => this.service.getNetworkFreightForwarder()
+ },
+ default: ''
}
}
};
@@ -182,19 +206,36 @@ export class TransactionFlowComponent implements OnInit {
private initST(): STColumn[] {
return [
- { title: '交易时间', index: 'callNo', width: 150 },
- { title: '流水号', index: 'no', width: 150 },
- { title: '交易类型', index: 'callNo', width: 100 },
- { title: '关联单号', index: 'callNo', width: 150 },
- { title: '账户类型', index: 'callNo', width: 100 },
- { title: '账户名称', index: 'callNo', width: 100 },
- { title: '所属项目', index: 'callNo', width: 100 },
- { title: '收支类型', index: 'callNo', width: 100 },
- { title: '交易金额', index: 'callNo', width: 100 },
- { title: '账户余额', index: 'callNo', width: 100 },
- { title: '网络货运人', index: 'callNo', width: 120 },
- { title: '银行类型', index: 'callNo', width: 100 },
- { title: '银行流水号', index: 'callNo', width: 120 },
+ { title: '交易时间', index: 'createTime', width: 150 },
+ { title: '流水号', index: 'transactionNumber', width: 150 },
+ {
+ title: '交易类型',
+ index: 'tradeType',
+ width: 100,
+ type: 'enum',
+ enum: {
+ 1: '运费支付',
+ 2: '附加费支付',
+ 3: '运费退款',
+ 4: '附加费退款',
+ 5: '保费支付',
+ 6: '保费退款',
+ 7: '余额充值',
+ 8: '余额提现',
+ 9: '资金分配',
+ 10: '资金回收'
+ }
+ },
+ { title: '关联单号', index: 'businessNumber', width: 150 },
+ { title: '账户类型', index: 'channelSource', width: 100, enum: { 1: '货主端', 2: '司机端', 3: '运营平台' } },
+ { title: '账户名称', index: 'driverName', width: 100 },
+ { title: '所属项目', index: 'projectName', width: 100 },
+ { title: '收支类型', index: 'incomeType', width: 100, type: 'enum', enum: { 1: '收入', 2: '支出' } },
+ { title: '交易金额', index: 'amount', width: 100 },
+ { title: '账户余额', index: 'accountBalance', width: 100 },
+ { title: '网络货运人', index: 'ltdName', width: 120 },
+ { title: '银行类型', index: 'bankType', width: 100, type: 'enum', enum: { 1: '平安银行', 2: '浦发银行' } },
+ { title: '银行流水号', index: 'channelPaySn', width: 120 },
{
title: '操作',
fixed: 'right',
diff --git a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.html b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.html
index d243d38c..a1fa2b74 100644
--- a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.html
+++ b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.html
@@ -10,47 +10,44 @@
- 天津怡亚通物流科技有限公司
+ {{formData?.ltdname}}
- 平安银行
+ {{formData?.bankType==='1'?'平安银行':'浦发银行'}}
- EA202110012313
+ {{formData?.refundApplyCode}}
- 茅台集团
+ {{formData?.bankAccountName}}
- 2021-10-11 08:50:08
+ {{formData?.createTime}}
- 6202110111234
+ {{formData?.virtualAccount}}
- 已完成
+ {{refundStatus[formData?.virtualAccount]}}
- 10000.00
+ {{formData?.amount}}
- 10.00
+ {{formData?.bankSerialNumber}}
- P20181230123012385756
-
-
- 招商银行(8889)
+ {{formData?.bankId}}
-
+
\ No newline at end of file
diff --git a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.ts b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.ts
index ad974c63..a71aabad 100644
--- a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.ts
+++ b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-detail/withdrawals-detail.component.ts
@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
+import { ActivatedRoute } from '@angular/router';
+import { FreightAccountService } from '../../../services/freight-account.service';
@Component({
selector: 'app-withdrawals-detail',
@@ -6,11 +8,56 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./withdrawals-detail.component.less']
})
export class WithdrawalsDetailComponent implements OnInit {
- formDate: any = {};
- constructor() {}
+ formData: any = {};
+
+ timeLineData: any = [];
+
+ refundStatus: any = {
+ '1': '待审核',
+ '2': '提现中',
+ '3': '提现成功',
+ '4': '拒绝提现',
+ '5': '提现失败'
+ };
+
+ constructor(public service: FreightAccountService, private route: ActivatedRoute) {
+ const id = route.snapshot.params.id;
+ this.loadRefundDetail(id);
+ }
ngOnInit(): void {}
+ loadRefundDetail(id: string) {
+ this.service.request(this.service.$api_get_refund_detail, { id }).subscribe(res => {
+ if (res) {
+ this.formData = res;
+ if (res.successTime) {
+ this.timeLineData.push({ time: res.successTime, value: `到账成功`, color: 'green' });
+ }
+ if (res.agreeTime) {
+ this.timeLineData.push({ time: res.agreeTime, value: `银行处理中`, color: 'gray' });
+ }
+ if (res.agreeTime) {
+ this.timeLineData.push({
+ time: res.agreeTime,
+ value: `审核通过
操作人员:${res.bankAccountName}`,
+ color: 'gray'
+ });
+ }
+ if (res.createTime) {
+ this.timeLineData.push({
+ time: res.createTime,
+ value: `提交提现申请
提现${res.amount}元至${res.bankName}(${res.bankCardNumber})
操作人员:${res.bankAccountName}`,
+ color: 'gray'
+ });
+ }
+ if (this.timeLineData?.length > 0) {
+ this.timeLineData[0].color = 'green';
+ }
+ }
+ });
+ }
+
goBack() {
history.go(-1);
}
diff --git a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html
index b4cab97e..4cd6d4ca 100644
--- a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html
+++ b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.html
@@ -26,7 +26,7 @@
-
-
-
-
-
-
+
+
+
+
+
+
@@ -65,18 +65,22 @@
-
+ [loading]="service.http.loading" [scroll]="{ x:'1200px',y: '370px' }" (change)="stChange($event)">
+
+ {{ item.bankName }}
{{ item.bankCardNumber }}
+
+
-
diff --git a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.less b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.less
index c5f2b1ea..cd8c3436 100644
--- a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.less
+++ b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.less
@@ -19,6 +19,10 @@
padding-left : 16px;
padding-right: 16px;
}
+
+ .text-truncate {
+ white-space: normal;
+ }
}
.expend-options {
diff --git a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts
index 9b33ca97..d82a0bd7 100644
--- a/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts
+++ b/src/app/routes/financial-management/components/withdrawals-record/withdrawals-record.component.ts
@@ -24,13 +24,23 @@ export class WithdrawalsRecordComponent implements OnInit {
selectedRows: any[] = [];
totalCallNo = 0;
+ refundStatus: any = '';
+
+ msg = '';
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
ngOnInit(): void {}
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
- Object.assign(requestOptions.body, { ...this.sf.value });
+ Object.assign(requestOptions.body, {
+ ...this.sf.value,
+ createTime: {
+ start: this.sf.value.createTime?.[0] || '',
+ end: this.sf.value.createTime?.[1] || ''
+ },
+ refundStatus: this.refundStatus || null
+ });
}
return requestOptions;
};
@@ -39,16 +49,21 @@ export class WithdrawalsRecordComponent implements OnInit {
switch (e.type) {
case 'checkbox':
this.selectedRows = e.checkbox!;
- this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.callNo, 0);
+ this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.amount, 0);
break;
}
}
- approval(): void {}
+ changeRefundStatus(status?: string) {
+ this.refundStatus = status || null;
+ this.st.load(1);
+ }
- add(): void {}
-
- auditAction(item: any) {
+ auditAction(item?: any) {
+ this.msg = '';
+ if(!item){
+
+ }
const modal = this.nzModalService.create({
nzTitle: '审核',
nzContent: this.auditModal,
@@ -57,14 +72,34 @@ export class WithdrawalsRecordComponent implements OnInit {
label: '拒绝',
type: 'default',
onClick: () => {
- modal.destroy();
+ this.service
+ .request(this.service.$api_disagree_refund, {
+ refundApplicationId: item.id,
+ msg: this.msg
+ })
+ .subscribe(res => {
+ if (res) {
+ this.service.msgSrv.success('审核拒绝成功');
+ modal.destroy();
+ }
+ });
}
},
{
label: '通过',
type: 'primary',
onClick: () => {
- modal.destroy();
+ this.service
+ .request(this.service.$api_agree_refund, {
+ refundApplicationId: item.id,
+ msg: this.msg
+ })
+ .subscribe(res => {
+ if (res) {
+ this.service.msgSrv.success('审核通过成功');
+ modal.destroy();
+ }
+ });
}
}
]
@@ -115,25 +150,19 @@ export class WithdrawalsRecordComponent implements OnInit {
hidden: true
}
},
- orderSn: {
+ refundApplyCode: {
type: 'string',
title: '提现单号',
ui: {
placeholder: '请输入'
}
},
- receiveName: {
+ refundStatus: {
type: 'string',
title: '提现状态',
- enum: [
- { label: '全部', value: '全部' },
- { label: '待审核', value: '待审核' },
- { label: '处理中', value: '处理中' },
- { label: '已完成', value: '已完成' },
- { label: '已拒绝', value: '已拒绝' }
- ],
ui: {
- widget: 'select',
+ widget: 'dict-select',
+ params: { dictKey: 'refund:apply:status' },
placeholder: '请选择'
}
},
@@ -141,12 +170,13 @@ export class WithdrawalsRecordComponent implements OnInit {
title: '提现时间',
type: 'string',
ui: {
- widget: 'date',
- mode: 'range',
- format: 'yyyy-MM-dd'
+ widget: 'sl-from-to-search',
+ format: 'yyyy-MM-dd',
+ placeholder: '请选择',
+ nzShowTime: true
} as SFDateWidgetSchema
},
- orderSn2: {
+ bankAccountName: {
type: 'string',
title: '账户名称',
ui: {
@@ -156,38 +186,37 @@ export class WithdrawalsRecordComponent implements OnInit {
}
}
},
- receiveName2: {
+ accountType: {
type: 'string',
title: '账户类型',
- enum: [
- { label: '全部', value: '全部' },
- { label: '货主账户', value: '货主账户' },
- { label: '司机账户', value: '司机账户' }
- ],
ui: {
- widget: 'select',
+ widget: 'dict-select',
+ params: { dictKey: 'bank:type' },
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
- receiveName3: {
+ ltdid: {
type: 'string',
title: '网络货运人',
- enum: [{ label: '全部', value: '全部' }],
ui: {
widget: 'select',
placeholder: '请选择',
+ allowClear: true,
+ asyncData: () => this.service.getNetworkFreightForwarder(),
visibleIf: {
expand: (value: boolean) => value
}
}
},
- orderSn23: {
+ bankType: {
type: 'string',
title: '银行类型',
ui: {
+ widget: 'dict-select',
+ params: { dictKey: 'bankname:type' },
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
@@ -201,32 +230,40 @@ export class WithdrawalsRecordComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox' },
- { title: '提现时间', index: 'no' },
- { title: '提现单号', index: 'callNo' },
- { title: '网络货运人', index: 'callNo' },
- { title: '银行类型', index: 'callNo' },
- { title: '账户类型', index: 'callNo' },
- { title: '账户名称', index: 'callNo' },
- { title: '虚拟账户', index: 'callNo' },
- { title: '提现金额', index: 'callNo' },
- { title: '提现银行账户', index: 'callNo' },
- { title: '提现状态', index: 'callNo' },
- { title: '银行流水号', index: 'callNo' },
- { title: '失败原因', index: 'callNo' },
+ { title: '提现时间', index: 'createTime', width: 180 },
+ { title: '提现单号', index: 'refundApplyCode', width: 120 },
+ { title: '网络货运人', index: 'ltdname', width: 120 },
+ { title: '银行类型', index: 'bankType', type: 'enum', enum: { 1: '平安银行', 2: '浦发银行' }, width: 100 },
+ { title: '账户类型', index: 'callNo', width: 100 },
+ { title: '账户名称', index: 'callNo', width: 100 },
+ { title: '虚拟账户', index: 'virtualAccount', width: 100 },
+ { title: '提现金额', index: 'amount', width: 100 },
+ { title: '提现银行账户', render: 'bankCardNumber', width: 120 },
+ {
+ title: '提现状态',
+ index: 'refundStatus',
+ type: 'enum',
+ enum: { '1': '待审核', '2': '提现中', '3': '提现成功', '4': '拒绝提现', '5': '提现失败' },
+ width: 100
+ },
+ { title: '银行流水号', index: 'bankSerialNumber', width: 120 },
+ { title: '失败原因', index: 'failCause', width: 150 },
{
title: '操作',
buttons: [
{
text: '审核',
+ iif: item => item.refundStatus === '1',
click: item => this.auditAction(item)
},
{
- text: '查看回单'
+ text: '查看回单',
+ iif: item => item.refundStatus === '3'
// click: item => this.auditAction(item)
},
{
text: '详情',
- click: item => this.router.navigate(['/financial-management/withdrawals-record/detail/1'])
+ click: item => this.router.navigate(['/financial-management/withdrawals-record/detail/' + item.id])
}
]
}
diff --git a/src/app/routes/financial-management/services/freight-account.service.ts b/src/app/routes/financial-management/services/freight-account.service.ts
index 197a9985..47f4ea06 100644
--- a/src/app/routes/financial-management/services/freight-account.service.ts
+++ b/src/app/routes/financial-management/services/freight-account.service.ts
@@ -13,7 +13,9 @@ export class FreightAccountService extends ShipperBaseService {
$api_get_driver_account_page = '/api/fcc/accountBalance/getDriverAccountBalanceByOperator';
// 运营端获取货主账户明细信息
- $api_get_shipper_or_driver_account_detail = '/api/fcc/accountBalance/getShipperAccountBalanceDetailByOperator';
+ $api_get_shipper_account_detail = '/api/fcc/accountBalanceDetail/getAccountBalanceShipperByOperatorPage';
+ // 运营端获取司机账户明细信息
+ $api_get_driver_account_detail = '/api/fcc/accountBalanceDetail/getAccountBalanceDriverByOperatorPage';
// 运营端端获取货主交易收入与支出金额
$api_get_shipper_account_balance_detail = '/api/fcc/accountBalanceDetail/getAccountBalanceShipperIncomeDetailByOperator';
// 运营端端获取司机交易收入与支出金额
@@ -22,6 +24,25 @@ export class FreightAccountService extends ShipperBaseService {
// 货主端获取账户余额交易明细
$api_get_balance_by_shipper = '/api/fcc/accountBalanceDetail/getAccountBalanceByShipperPage';
+ // 查询订单支付申请表
+ $api_get_order_payment_page = '/api/fcc/billPaymentApplicationOBC/list/page';
+
+ // 查询提现申请表
+ $api_get_refund_page = '/api/fcc/refundApplicationSMC/list/page';
+ // 获取提现申请表详情
+ $api_get_refund_detail = '/api/fcc/refundApplicationSMC/get';
+ // 同意提现
+ $api_agree_refund = '/api/fcc/refundApplicationSMC/agreeRefund';
+ // 拒绝提现
+ $api_disagree_refund = '/api/fcc/refundApplicationSMC/disagreeRefund';
+
+ // 查询充值信息表
+ $api_get_recharge_page = '/api/fcc/rechargeInfo/list/page';
+ // 查询异常入金
+ $api_get_abnormal_gold_page = '/api/fcc/rechargeInfo/list/page';
+ // 运营端获取账户余额交易明细
+ $api_get_account_blance = '/api/fcc/accountBalanceDetail/getAccountBalanceByPage';
+
constructor(public injector: Injector) {
super(injector);
}
diff --git a/src/app/shared/components/dict-select/dict-select.component.html b/src/app/shared/components/dict-select/dict-select.component.html
index b77d29c5..2cf37405 100644
--- a/src/app/shared/components/dict-select/dict-select.component.html
+++ b/src/app/shared/components/dict-select/dict-select.component.html
@@ -1,3 +1,3 @@
-
+
diff --git a/src/app/shared/components/logistics-time-line/logistics-time-line.component.html b/src/app/shared/components/logistics-time-line/logistics-time-line.component.html
index 34f96ff9..5ab3688a 100644
--- a/src/app/shared/components/logistics-time-line/logistics-time-line.component.html
+++ b/src/app/shared/components/logistics-time-line/logistics-time-line.component.html
@@ -1,6 +1,5 @@
- 快件已签收
- 正在派送中,请您准备签收(派件人:吴彦祖,联系电话:13811223133)
- 快件已到【深圳市龙岗区配送中心】扫描员是【张三】
- 【顺丰快递】的收件员已揽件
+
+
+
\ No newline at end of file
diff --git a/src/app/shared/components/logistics-time-line/logistics-time-line.component.ts b/src/app/shared/components/logistics-time-line/logistics-time-line.component.ts
index e57ad269..ed2607da 100644
--- a/src/app/shared/components/logistics-time-line/logistics-time-line.component.ts
+++ b/src/app/shared/components/logistics-time-line/logistics-time-line.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-logistics-time-line',
@@ -6,10 +6,15 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./logistics-time-line.component.less']
})
export class LogisticsTimeLineComponent implements OnInit {
+ @Input()
+ data: any = [
+ { time: '2020-07-29 11:02:00', value: '到账成功', color: 'green' },
+ { time: '2020-07-29 11:02:00', value: '银行处理中', color: 'gray' },
+ { time: '2020-07-29 11:02:00', value: '审核通过
操作人员:李四', color: 'gray' },
+ { time: '2020-07-29 11:02:00', value: '提交提现申请
提现1000.00元至招商银行(8889)
操作人员:张三', color: 'gray' }
+ ];
- constructor() { }
-
- ngOnInit(): void {
- }
+ constructor() {}
+ ngOnInit(): void {}
}
diff --git a/src/app/shared/services/business/shipper-base.service.ts b/src/app/shared/services/business/shipper-base.service.ts
index 6ec37b96..c28b335d 100644
--- a/src/app/shared/services/business/shipper-base.service.ts
+++ b/src/app/shared/services/business/shipper-base.service.ts
@@ -9,7 +9,7 @@ export class ShipperBaseService extends BaseService {
$api_get_carless_carrier = ``; // 获取承运人
$api_get_enterprise_project = `/api/mdc/cuc/enterpriseProject/getEnterpriseProjectList `; // 所属项目列表
$api_get_staff_list = `/api/mdc/cuc/userApp/getStaffList`; //查询企业项目员工列表(录单员)
- $api_get_network_freight_forwarder = `/api/mdc/networkTransporter/findAll`; // 获取网络货运人
+ $api_get_network_freight_forwarder = `/api/mdc/cuc/networkTransporter/findAll`; // 获取网络货运人
constructor(public injector: Injector) {
super(injector);