This commit is contained in:
Taric Xin
2022-02-16 15:31:37 +08:00
parent af9a1c4bf4
commit a42498eb2b
17 changed files with 197 additions and 113 deletions

View File

@ -12,25 +12,25 @@
<se-container col="3" labelWidth="100">
<se-title class="mb-md" style="font-size: 18px">基本信息</se-title>
<se label="网络货运人" required>
{{ costInfo?.ltdId }}
{{ costInfo?.ltdName }}
</se>
<se label="银行类型">
{{ costInfo?.brmdate }}
</se>
<se label="付款人" required>
{{ costInfo?.brmModeLabel }}
</se>
<se label="结算客户" required>
{{ costInfo?.banktypeLabel }}
</se>
<se label="收款账户">
<se label="付款人" required>
{{ costInfo?.artoname }}
</se>
<se label="结算客户" required>
{{ costInfo?.shipperId }}
</se>
<se label="收款账户">
{{ costInfo?.ltdaccountId }}
</se>
<se label="预收金额">
{{ costInfo?.recnopay |currency }}
{{ costInfo?.premoney |currency }}
</se>
<se label="收款类型" required>
{{ costInfo?.ltdaccountId }}
{{ costInfo?.brmtypeLabel }}
</se>
</se-container>
</div>
@ -52,7 +52,8 @@
<button nz-button (click)="resetInputSF()">重置</button>
</div>
</div>
<st #inputST [scroll]="{ x: '2000px' }" [data]="service.$api_get_fico_detail_header" [columns]="columns.input" [page]="{ show: false }"
<st #inputST [scroll]="{ x: '2000px' }" [data]="service.$api_get_advance_collection_detail"
[columns]="columns.input" [page]="{ show: false }" [res]="{ reName: { list: 'data' } }"
[loading]="service.http.loading" [scroll]="{ x: '1200px', y: '370px' }" class="mt-md">
<ng-template st-row="no" let-item let-index="index" let-column="column">
{{index+1}}

View File

@ -39,7 +39,7 @@ export class AdvanceCollectionDetailComponent implements OnInit {
};
loadDetail(id: any) {
this.service.request(this.service.$api_get_receipt_header, { id }).subscribe(res => {
this.service.request(this.service.$api_get_advance_collection_header, { id }).subscribe(res => {
if (res) {
this.costInfo = res;
}
@ -111,11 +111,11 @@ export class AdvanceCollectionDetailComponent implements OnInit {
return {
input: [
{ title: '序号', render: 'no', width: 70, className: 'text-left' },
{ title: '收款单号', index: 'feeHId', className: 'text-left', width: 200 },
{ title: '收款单号', index: 'brmHCode', className: 'text-left', width: 200 },
{ title: '到账日期', index: 'billHId', className: 'text-center', width: 150 },
{
title: '到账金额',
index: 'hrvatrate',
index: 'yskmoney',
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yskmoney }) },
@ -123,7 +123,7 @@ export class AdvanceCollectionDetailComponent implements OnInit {
},
{
title: '转预收金额',
index: 'hrvatrate',
index: 'yskmoney',
type: 'widget',
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yskmoney }) },

View File

@ -74,12 +74,22 @@ export class AdvanceCollectionComponent implements OnInit {
cno: {
type: 'string',
title: '结算客户',
ui: { placeholder: '请输入' }
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCloseAccount()
}
},
arto: {
type: 'string',
title: '付款人',
ui: { placeholder: '请输入' }
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCRM()
}
},
brmtype: {
type: 'string',
@ -118,9 +128,9 @@ export class AdvanceCollectionComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '网络货运人', width: 160, index: 'ltdName' },
{ title: '银行类型', width: 120, index: 'bankTypeLabel' },
{ title: '收款账户', width: 120, index: 'ltdaccountId' },
{ title: '收款类型', width: 120, index: 'brmtype' },
{ title: '银行类型', width: 120, index: 'banktypeLabel' },
{ title: '收款账户', width: 150, index: 'ltdaccountId' },
{ title: '收款类型', width: 120, index: 'brmtypeLabel' },
{
title: '预收余额',
index: 'yskmoney',
@ -129,8 +139,8 @@ export class AdvanceCollectionComponent implements OnInit {
className: 'text-right',
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yskmoney }) }
},
{ title: '付款人', index: 'arto', width: 180 },
{ title: '结算客户', index: 'cno', width: 150 },
{ title: '付款人', index: 'artoName', width: 180 },
{ title: '结算客户', index: 'cnoName', width: 150 },
{
title: '操作',
width: 120,
@ -142,10 +152,10 @@ export class AdvanceCollectionComponent implements OnInit {
click: item => this.router.navigate(['/financial-management/advance-collection/detail/' + item.id])
},
{
text: '核销',
text: '核销'
},
{
text: '退款',
text: '退款'
}
]
}

View File

@ -93,7 +93,7 @@ export class CostManagementComponent implements OnInit {
this.service.downloadFile(this.service.$mock_url, { ...this.sf.value, pageIndex: this.st.pi, pageSize: this.st.ps });
}
routeTo(url: string, params?: any,status?: any) {
routeTo(url: string, params?: any, status?: any) {
this.router.navigate([url], { queryParams: params });
}
@ -259,10 +259,11 @@ export class CostManagementComponent implements OnInit {
cno: {
type: 'string',
title: '结算客户',
enum: [{ label: '全部', value: '全部' }],
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCloseAccount(),
visibleIf: {
expand: (value: boolean) => value
}
@ -274,22 +275,22 @@ export class CostManagementComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '费用单号', fixed: 'left', index: 'feecode', width: 200 ,className: 'text-left',},
{ title: '网络货运人', index: 'ltdName', width: 220 ,className: 'text-left',},
{ title: '订单号', index: 'billHCode', width: 200,className: 'text-left', },
{ title: '运单号', index: 'waybillHCode', width: 200 ,className: 'text-left',},
{ title: '费用日期', index: 'feedate', width: 200 ,className: 'text-left',},
{ title: '费用类型', index: 'feetypeLabel', width: 150,className: 'text-center', },
{ title: '应付核销', index: 'ishrhx', width: 200, type: 'enum', enum: { 0: '否', 1: '是' } ,className: 'text-left',},
{ title: '结算客户', render: 'artocode', width: 200 ,className: 'text-left',},
{ title: '应收对象', index: 'artoname', width: 200 ,className: 'text-left',},
{ title: '应付对象', index: 'hrtoname', width: 200 ,className: 'text-left',},
{ title: '应收金额', render: 'armoeny', width: 100 ,className: 'text-right',},
{ title: '应付金额', render: 'hrmoney', width: 100 ,className: 'text-right',},
{ title: '收/付款金额', render: 'hrpaymoney', width: 120 ,className: 'text-right',},
{ title: '开/收票金额', render: 'hrvatmoney', width: 120 ,className: 'text-right',},
{ title: '创建时间', index: 'createTime', type: 'date', width: 200 ,className: 'text-center',},
{ title: '状态', index: 'stsLabel', width: 90 ,className: 'text-center',},
{ title: '费用单号', fixed: 'left', index: 'feecode', width: 200, className: 'text-left' },
{ title: '网络货运人', index: 'ltdName', width: 220, className: 'text-left' },
{ title: '订单号', index: 'billHCode', width: 200, className: 'text-left' },
{ title: '运单号', index: 'waybillHCode', width: 200, className: 'text-left' },
{ title: '费用日期', index: 'feedate', width: 200, className: 'text-left' },
{ title: '费用类型', index: 'feetypeLabel', width: 150, className: 'text-center' },
{ title: '应付核销', index: 'ishrhx', width: 200, type: 'enum', enum: { 0: '否', 1: '是' }, className: 'text-left' },
{ title: '结算客户', render: 'artocode', width: 200, className: 'text-left' },
{ title: '应收对象', index: 'artoname', width: 200, className: 'text-left' },
{ title: '应付对象', index: 'hrtoname', width: 200, className: 'text-left' },
{ title: '应收金额', render: 'armoeny', width: 100, className: 'text-right' },
{ title: '应付金额', render: 'hrmoney', width: 100, className: 'text-right' },
{ title: '收/付款金额', render: 'hrpaymoney', width: 120, className: 'text-right' },
{ title: '开/收票金额', render: 'hrvatmoney', width: 120, className: 'text-right' },
{ title: '创建时间', index: 'createTime', type: 'date', width: 200, className: 'text-center' },
{ title: '状态', index: 'stsLabel', width: 90, className: 'text-center' },
{
title: '操作',
fixed: 'right',
@ -298,13 +299,13 @@ export class CostManagementComponent implements OnInit {
buttons: [
{
text: '浏览',
click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id , {status : item?.feetypeLabel})
click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id, { status: item?.feetypeLabel })
},
{
text: '审核',
click: item => this.auditAction(item),
iif: item => item.sts === 2
},
}
// {
// text: '修改',
// click: item => this.router.navigate(['/financial-management/cost-management/expenses-receivable/1'], { queryParams: { id: 1 } })

View File

@ -119,10 +119,14 @@ export class PayableOrderDetailComponent implements OnInit {
cno: {
type: 'string',
title: '结算客户',
enum: [{ label: '全部', value: '' }],
ui: {
widget: 'select',
placeholder: '请选择'
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCloseAccount(),
visibleIf: {
expand: (value: boolean) => value
}
},
default: ''
},

View File

@ -135,6 +135,8 @@ export class PayableOrderComponent implements OnInit {
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCloseAccount(),
visibleIf: {
expand: (value: boolean) => value
}

View File

@ -129,10 +129,11 @@ export class PaymentOrderDetailComponent implements OnInit {
cno: {
type: 'string',
title: '结算客户',
enum: [{ label: '全部', value: '' }],
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCloseAccount(),
visibleIf: {
expand: (value: boolean) => value
}

View File

@ -150,7 +150,10 @@ export class ReceiptOrderComponent implements OnInit {
type: 'string',
title: '付款人',
ui: {
placeholder: '请输入',
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCRM(),
visibleIf: {
expand: (value: boolean) => value
}
@ -273,7 +276,7 @@ export class ReceiptOrderComponent implements OnInit {
{
text: '浏览',
click: item => this.router.navigate(['/financial-management/receipt-order/detail/' + item.id])
},
}
// {
// text: '核销'
// }

View File

@ -104,10 +104,11 @@ export class ReceivableOrderDetailComponent implements OnInit {
cno: {
type: 'string',
title: '结算客户',
enum: [{ label: '全部', value: '' }],
ui: {
widget: 'select',
placeholder: '请选择'
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCloseAccount(),
},
default: ''
},

View File

@ -146,6 +146,8 @@ export class ReceivableOrderComponent implements OnInit {
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCloseAccount(),
visibleIf: {
expand: (value: boolean) => value
}
@ -157,6 +159,8 @@ export class ReceivableOrderComponent implements OnInit {
ui: {
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCRM(),
visibleIf: {
expand: (value: boolean) => value
}
@ -276,7 +280,7 @@ export class ReceivableOrderComponent implements OnInit {
text: '浏览',
click: item =>
this.router.navigate(['/financial-management/receivable-order/detail/' + item.id], { queryParams: { billHId: item.billHId } })
},
}
// {
// text: '核销'
// }

View File

@ -101,8 +101,12 @@ export class FreightAccountService extends ShipperBaseService {
// 下载银行回单请求
$api_download_receipt_apply = '/api/fcc/spd/callback/receiptApply';
// 查询预收款余额
$api_get_advance_collection_page = '/api/fcc/ficoYskBla/list/page';
// 查询预收款余额
$api_get_advance_collection_page = '/api/fcc/ficoYskBla/list/page';
// 根据预收款ID获取收款单抬头
$api_get_advance_collection_header = '/api/fcc/ficoBrmH/getByYskblaId';
// 根据预收款ID获取收款单明细
$api_get_advance_collection_detail = '/api/fcc/ficoBrmYsk/getBrmYskByYskblaId';
constructor(public injector: Injector, public eaCacheSrv: EACacheService) {
super(injector, eaCacheSrv);
@ -121,8 +125,8 @@ export class FreightAccountService extends ShipperBaseService {
});
}
}
// 获取货主企业列表
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
// 获取货主企业列表
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
reviewPDF(url: string) {
if (!url) {
return;