This commit is contained in:
Taric Xin
2022-01-18 17:55:52 +08:00
parent d37c5ac2b0
commit 3ce3677b86
4 changed files with 50 additions and 37 deletions

View File

@ -24,7 +24,7 @@ module.exports = {
// } // }
'//api': { '//api': {
target: { target: {
host: 'tms-api-test.eascs.com', host: 'tms-api-dev.eascs.com',
protocol: 'https:', protocol: 'https:',
port: 443 port: 443
}, },

View File

@ -33,10 +33,10 @@
</div> </div>
</div> </div>
<st #st [data]="service.$api_get_payment_page" [columns]="columns" <st #st [data]="service.$api_get_receipt_page" [columns]="columns"
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, process: beforeReq }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }" [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="service.http.loading" [scroll]="{ x:'1200px',y: '370px' }" (change)="stChange($event)"> [loading]="service.http.loading" [scroll]="{ x:'1200px',y: '450px' }" (change)="stChange($event)">
</st> </st>
</nz-card> </nz-card>

View File

@ -31,6 +31,14 @@ export class ReceiptOrderComponent implements OnInit {
Object.assign(requestOptions.body, { Object.assign(requestOptions.body, {
...this.sf.value ...this.sf.value
}); });
if (this.sf.value.brmdate) {
Object.assign(requestOptions.body, {
brmdate: {
start: this.sf.value.brmdate?.[0] || '',
end: this.sf.value.brmdate?.[1] || ''
}
});
}
} }
return requestOptions; return requestOptions;
}; };
@ -48,12 +56,12 @@ export class ReceiptOrderComponent implements OnInit {
this.service.msgSrv.warning('请选择收款单'); this.service.msgSrv.warning('请选择收款单');
return; return;
} }
const modal = this.nzModalService.create({ // const modal = this.nzModalService.create({
nzTitle: '收款单', // nzTitle: '收款单',
nzContent: AddCollectionInvoiceModalComponent, // nzContent: AddCollectionInvoiceModalComponent,
nzComponentParams: { i: { userId: 0 } }, // nzComponentParams: { i: { userId: 0 } },
nzFooter: null // nzFooter: null
}); // });
} }
/** /**
@ -81,7 +89,7 @@ export class ReceiptOrderComponent implements OnInit {
hidden: true hidden: true
} }
}, },
paycodes: { brmcode: {
type: 'string', type: 'string',
title: '收款单号', title: '收款单号',
ui: { ui: {
@ -100,7 +108,7 @@ export class ReceiptOrderComponent implements OnInit {
}, },
default: null default: null
}, },
paycod1es: { bankreceipt: {
type: 'string', type: 'string',
title: '银行水单', title: '银行水单',
ui: { ui: {
@ -108,7 +116,7 @@ export class ReceiptOrderComponent implements OnInit {
placeholder: '请选择' placeholder: '请选择'
} }
}, },
paytype: { brmtype: {
type: 'string', type: 'string',
title: '收款类型', title: '收款类型',
ui: { ui: {
@ -119,7 +127,7 @@ export class ReceiptOrderComponent implements OnInit {
} }
} }
}, },
paymode: { brmmode: {
type: 'string', type: 'string',
title: '收款方式', title: '收款方式',
ui: { ui: {
@ -141,7 +149,7 @@ export class ReceiptOrderComponent implements OnInit {
} }
} }
}, },
orderS2n: { sts: {
type: 'string', type: 'string',
title: '收款状态', title: '收款状态',
ui: { ui: {
@ -153,7 +161,7 @@ export class ReceiptOrderComponent implements OnInit {
} }
} }
}, },
paydate: { brmdate: {
title: '到账日期', title: '到账日期',
type: 'string', type: 'string',
ui: { ui: {
@ -164,7 +172,7 @@ export class ReceiptOrderComponent implements OnInit {
} }
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
createTi1me: { createTime: {
title: '创建时间', title: '创建时间',
type: 'string', type: 'string',
ui: { ui: {
@ -175,7 +183,7 @@ export class ReceiptOrderComponent implements OnInit {
} }
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
billHCodes: { billHCode: {
type: 'string', type: 'string',
title: '订单号', title: '订单号',
ui: { ui: {
@ -213,47 +221,49 @@ export class ReceiptOrderComponent implements OnInit {
private initST(): STColumn[] { private initST(): STColumn[] {
return [ return [
{ title: '', index: 'key', type: 'checkbox' }, { title: '', index: 'key', type: 'checkbox', width: 60, fixed: 'left', className: 'text-center' },
{ title: '收款单号', index: 'paycode', type: 'link' }, { title: '收款单号', index: 'brmcode', type: 'link', width: 140 },
{ title: '网络货运人', index: 'ltdId' }, { title: '网络货运人', index: 'ltdId', width: 140 },
{ title: '到账日期', index: 'paydate', type: 'date', width: 140 }, { title: '到账日期', index: 'brmdate', type: 'date', width: 140 },
{ title: '收款账户', index: 'call1N2o' }, { title: '收款账户', index: 'ltdaccountId', width: 140 },
{ {
title: '到账金额', title: '到账金额',
index: 'paymoney', index: 'brmmoney',
width: 120, width: 120,
type: 'widget', type: 'widget',
className: 'text-right', className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.paymoney }) } widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.brmmoney }) }
}, },
{ {
title: '核销金额', title: '核销金额',
index: 'paytype', index: 'armoney',
width: 120, width: 120,
type: 'widget', type: 'widget',
className: 'text-right', className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.paymoney }) } widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.armoney }) }
}, },
{ {
title: '预收金额', title: '预收金额',
index: 'paytype', index: 'yskmoney',
width: 120, width: 120,
type: 'widget', type: 'widget',
className: 'text-right', className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.paymoney }) } widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yskmoney }) }
}, },
{ title: '银行类型', index: 'paytype' }, { title: '银行类型', index: 'paybanktype', width: 120 },
{ title: '收款类型', index: 'paymode' }, { title: '收款类型', index: 'brmtype', width: 120 },
{ title: '收款方式', index: 'paymode' }, { title: '收款方式', index: 'brmmode', width: 120 },
{ title: '付款人', index: 'hrto' }, { title: '付款人', index: 'artoname', width: 120 },
{ title: '银行水单', index: 'callNo' }, { title: '银行水单', index: 'bankreceipt', width: 140 },
{ title: '创建时间', index: 'createTime', type: 'date' }, { title: '创建时间', index: 'createTime', type: 'date', width: 150 },
{ title: '创建人', index: 'createUserId' }, { title: '创建人', index: 'createUserId', width: 120 },
{ title: '收款状态', index: 'payremarks' }, { title: '收款状态', index: 'sts', width: 120 },
{ title: '收款备注', index: 'payremarks' }, { title: '收款备注', index: 'remarks', width: 180 },
{ {
title: '操作', title: '操作',
width: '90px', width: '90px',
fixed: 'right',
className: 'text-center',
buttons: [ buttons: [
{ {
text: '浏览', text: '浏览',

View File

@ -81,6 +81,9 @@ export class FreightAccountService extends ShipperBaseService {
// 查询付款单明细 // 查询付款单明细
$api_get_payment_detail = '/api/fcc/ficoPayL/list/page'; $api_get_payment_detail = '/api/fcc/ficoPayL/list/page';
// 查询收款单抬头
$api_get_receipt_page = '/api/fcc/ficoBrmH/list/page';
constructor(public injector: Injector,public eaCacheSrv: EACacheService) { constructor(public injector: Injector,public eaCacheSrv: EACacheService) {
super(injector, eaCacheSrv); super(injector, eaCacheSrv);
} }