edit
This commit is contained in:
@ -13,7 +13,7 @@ export class CostManagementDetailComponent implements OnInit {
|
||||
st!: STComponent;
|
||||
columns: { [key: string]: STColumn[] } = this.initST();
|
||||
data = [];
|
||||
textStatus: boolean = false
|
||||
textStatus: boolean = false;
|
||||
costInfo: any = {};
|
||||
constructor(public service: FreightAccountService, private route: ActivatedRoute) {
|
||||
const id = route.snapshot.params.id;
|
||||
@ -21,10 +21,10 @@ export class CostManagementDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
if(this.route.snapshot?.queryParams?.status === '应收') {
|
||||
this.textStatus = false
|
||||
if (this.route.snapshot?.queryParams?.status === '应收') {
|
||||
this.textStatus = false;
|
||||
} else {
|
||||
this.textStatus = true
|
||||
this.textStatus = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,6 +36,14 @@ export class CostManagementDetailComponent implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
loadAHXL(id: any) {
|
||||
this.service.request(this.service.$api_get_cost_ahxl_detail, { id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.costInfo = res;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
goBack() {
|
||||
history.go(-1);
|
||||
}
|
||||
@ -43,39 +51,39 @@ export class CostManagementDetailComponent implements OnInit {
|
||||
private initST(): { [key: string]: STColumn[] } {
|
||||
return {
|
||||
cost: [
|
||||
{ title: '序号', render: 'no', width: 70,className: 'text-left', },
|
||||
{ title: '费用明细号', index: 'feeHId',className: 'text-left', width: 200,},
|
||||
{ title: '订单号', index: 'billHId' ,className: 'text-left', width: 200,},
|
||||
{ title: '订单日期', index: 'callNo' ,className: 'text-left',width: 200,},
|
||||
{ title: '运单号', index: 'waybillHId',className: 'text-left', width: 200,},
|
||||
{ title: '运单日期', index: 'waybillDate' ,className: 'text-left',width: 200,},
|
||||
{ title: '结算客户', index: 'callNo' ,className: 'text-left',width: 200,},
|
||||
{ title: '订单费用类型', index: 'billLType' ,className: 'text-left',width: 200,},
|
||||
{ title: '费用科目', index: 'feeSubId' ,className: 'text-left',width: 200,},
|
||||
{ title: '税率', index: 'hrvatrate',className: 'text-right', width: 200,},
|
||||
{ title: '费用金额', render: 'hrvatmoney',className: 'text-right', width: 200,},
|
||||
{ title: '收/付款金额', render: 'armoney',className: 'text-right', width: 200,},
|
||||
{ title: '开/收票金额', render: 'arkpmoney' ,className: 'text-right',width: 200,}
|
||||
{ title: '序号', render: 'no', width: 70, className: 'text-left' },
|
||||
{ title: '费用明细号', index: 'feeHId', className: 'text-left', width: 200 },
|
||||
{ title: '订单号', index: 'billHId', className: 'text-left', width: 200 },
|
||||
{ title: '订单日期', index: 'callNo', className: 'text-left', width: 200 },
|
||||
{ title: '运单号', index: 'waybillHId', className: 'text-left', width: 200 },
|
||||
{ title: '运单日期', index: 'waybillDate', className: 'text-left', width: 200 },
|
||||
{ title: '结算客户', index: 'callNo', className: 'text-left', width: 200 },
|
||||
{ title: '订单费用类型', index: 'billLType', className: 'text-left', width: 200 },
|
||||
{ title: '费用科目', index: 'feeSubId', className: 'text-left', width: 200 },
|
||||
{ title: '税率', index: 'hrvatrate', className: 'text-right', width: 200 },
|
||||
{ title: '费用金额', render: 'hrvatmoney', className: 'text-right', width: 200 },
|
||||
{ title: '收/付款金额', render: 'armoney', className: 'text-right', width: 200 },
|
||||
{ title: '开/收票金额', render: 'arkpmoney', className: 'text-right', width: 200 }
|
||||
],
|
||||
requested: [
|
||||
{ title: '序号', render: 'no', width: 70 ,className: 'text-left',},
|
||||
{ title: '费用明细号', index: 'feeHId',className: 'text-left',width: 200, },
|
||||
{ title: '发票申请', index: 'vatappcode',className: 'text-left', width: 200,},
|
||||
{ title: '发票类型', index: 'vatapptype',className: 'text-left',width: 200, },
|
||||
{ title: '发票号', index: 'vatappcode',className: 'text-left',width: 200, },
|
||||
{ title: '发票日期', index: 'vatappdate',className: 'text-left', width: 200,},
|
||||
{ title: '发票状态', index: 'sts' ,className: 'text-left',width: 200,},
|
||||
{ title: '应收金额', render: 'vatnotax',className: 'text-left',width: 200, },
|
||||
{ title: '开票金额', render: 'vatmoney' ,className: 'text-left',width: 200,}
|
||||
{ title: '序号', render: 'no', width: 70, className: 'text-left' },
|
||||
{ title: '费用明细号', index: 'feeHId', className: 'text-left', width: 200 },
|
||||
{ title: '发票申请', index: 'vatappcode', className: 'text-left', width: 200 },
|
||||
{ title: '发票类型', index: 'vatapptype', className: 'text-left', width: 200 },
|
||||
{ title: '发票号', index: 'vatappcode', className: 'text-left', width: 200 },
|
||||
{ title: '发票日期', index: 'vatappdate', className: 'text-left', width: 200 },
|
||||
{ title: '发票状态', index: 'sts', className: 'text-left', width: 200 },
|
||||
{ title: '应收金额', render: 'vatnotax', className: 'text-left', width: 200 },
|
||||
{ title: '开票金额', render: 'vatmoney', className: 'text-left', width: 200 }
|
||||
],
|
||||
collection: [
|
||||
{ title: '序号', render: 'no', width: 70, },
|
||||
{ title: '费用明细号', index: 'feeLId' ,className: 'text-left', width: 200,},
|
||||
{ title: '收款单号', index: 'ahxHId' ,className: 'text-left', width: 200,},
|
||||
{ title: '收款日期', index: 'feedate' ,className: 'text-left', width: 200,},
|
||||
{ title: '收款状态', render: 'status' ,className: 'text-left', width: 150,},
|
||||
{ title: '应收金额', render: 'ahxmoney' ,className: 'text-left', width: 120,},
|
||||
{ title: '收款金额', render: 'ahxmoney',className: 'text-left', width: 120, }
|
||||
{ title: '序号', render: 'no', width: 70 },
|
||||
{ title: '费用明细号', index: 'feeLId', className: 'text-left', width: 200 },
|
||||
{ title: '收款单号', index: 'ahxHId', className: 'text-left', width: 200 },
|
||||
{ title: '收款日期', index: 'feedate', className: 'text-left', width: 200 },
|
||||
{ title: '收款状态', render: 'status', className: 'text-left', width: 150 },
|
||||
{ title: '应收金额', render: 'ahxmoney', className: 'text-left', width: 120 },
|
||||
{ title: '收款金额', render: 'ahxmoney', className: 'text-left', width: 120 }
|
||||
],
|
||||
ticket: [
|
||||
{ title: '序号', render: 'no', width: 70 },
|
||||
@ -90,13 +98,13 @@ export class CostManagementDetailComponent implements OnInit {
|
||||
],
|
||||
payment: [
|
||||
{ title: '序号', render: 'no', width: 70 },
|
||||
{ title: '费用明细号', index: 'callNo' },
|
||||
{ title: '付款单号', index: 'callNo' },
|
||||
{ title: '要求日期', index: 'callNo' },
|
||||
{ title: '确认日期', index: 'callNo' },
|
||||
{ title: '费用明细号', index: 'feeHCode' },
|
||||
{ title: '付款单号', index: 'phxHId' },
|
||||
{ title: '要求日期', index: 'billTime' },
|
||||
{ title: '确认日期', index: 'feedate' },
|
||||
{ title: '付款状态', index: 'callNo' },
|
||||
{ title: '应付金额', index: 'callNo' },
|
||||
{ title: '付款金额', index: 'callNo' }
|
||||
{ title: '付款金额', index: 'phxmoney' }
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
@ -253,34 +253,34 @@ export class CostManagementComponent implements OnInit {
|
||||
{ title: '订单号', index: 'billHId', width: 200,className: 'text-left', },
|
||||
{ title: '运单号', index: 'waybillHId', width: 200 ,className: 'text-left',},
|
||||
{ title: '费用日期', index: 'feedate', width: 200 ,className: 'text-left',},
|
||||
{ title: '费用类型', index: 'feetypeLabel', width: 150,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: '结算客户', index: 'cno', 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-left',},
|
||||
{ title: '应付金额', render: 'hrmoney', width: 100 ,className: 'text-left',},
|
||||
{ title: '收/付款金额', render: 'hrpaymoney', width: 120 ,className: 'text-left',},
|
||||
{ title: '开/收票金额', render: 'hrvatmoney', width: 120 ,className: 'text-left',},
|
||||
{ title: '创建时间', index: 'auditTime', type: 'date', width: 200 ,className: 'text-left',},
|
||||
{ title: '状态', index: 'stsLabel', width: 90 ,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: 'auditTime', type: 'date', width: 200 ,className: 'text-center',},
|
||||
{ title: '状态', index: 'stsLabel', width: 90 ,className: 'text-center',},
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
className: 'text-center',
|
||||
width: '90px',
|
||||
width: '110px',
|
||||
buttons: [
|
||||
{
|
||||
text: '浏览',
|
||||
click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id , {status : item?.feetypeLabel})
|
||||
},
|
||||
{
|
||||
text: '审核 ',
|
||||
text: '审核',
|
||||
click: item => this.auditAction(item),
|
||||
iif: item => item.sts === 2
|
||||
},
|
||||
{
|
||||
text: '修改 ',
|
||||
text: '修改',
|
||||
click: item => this.router.navigate(['/financial-management/cost-management/expenses-receivable/1'], { queryParams: { id: 1 } })
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user