edit
This commit is contained in:
@ -11,7 +11,8 @@ import { FreightAccountService } from '../../services/freight-account.service';
|
||||
@Component({
|
||||
selector: 'app-payable-order',
|
||||
templateUrl: './payable-order.component.html',
|
||||
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
|
||||
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less'],
|
||||
providers: [CurrencyPipe]
|
||||
})
|
||||
export class PayableOrderComponent implements OnInit {
|
||||
@ViewChild('st', { static: true })
|
||||
@ -128,18 +129,6 @@ export class PayableOrderComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
},
|
||||
arvattype: {
|
||||
type: 'string',
|
||||
title: '付款类型',
|
||||
enum: [{ value: '1', label: '费用款项' }],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
cno: {
|
||||
type: 'string',
|
||||
title: '结算客户',
|
||||
@ -153,7 +142,7 @@ export class PayableOrderComponent implements OnInit {
|
||||
},
|
||||
arto: {
|
||||
type: 'string',
|
||||
title: '付款人',
|
||||
title: '收款人',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
@ -237,29 +226,28 @@ export class PayableOrderComponent implements OnInit {
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '', index: 'key', type: 'checkbox' },
|
||||
{ title: '核销单号', index: 'ahxcode', type: 'link', width: 140 },
|
||||
{ title: '核销单号', index: 'phxcode', type: 'link', width: 140 },
|
||||
{ title: '网络货运人', index: 'ltdId', width: 140 },
|
||||
{ title: '核销日期', index: 'ahxdate', type: 'date', width: 160 },
|
||||
{ title: '核销日期', index: 'phxdate', type: 'date', width: 160 },
|
||||
{ title: '付款账户', index: 'shipperaccount', width: 120 },
|
||||
{ title: '收款账户', index: 'ltdaccount', width: 120 },
|
||||
{ title: '核销类型', index: 'ahxType', type: 'enum', enum: { '1': '预收款' }, width: 120 },
|
||||
{
|
||||
title: '核销金额',
|
||||
index: 'ahxmoney',
|
||||
index: 'phxmoney',
|
||||
width: 120,
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.ahxmoney)}`
|
||||
format: item => `${this.currencyPipe.transform(item.phxmoney || 0)}`
|
||||
},
|
||||
{
|
||||
title: '应收金额',
|
||||
index: 'armoney',
|
||||
title: '应付金额',
|
||||
index: 'prmoney',
|
||||
width: 120,
|
||||
className: 'text-right',
|
||||
format: item => `${this.currencyPipe.transform(item.armoney)}`
|
||||
format: item => `${this.currencyPipe.transform(item.prmoney || 0)}`
|
||||
},
|
||||
{ title: '银行类型', index: 'banktype', type: 'enum', enum: { '1': '平安', '2': '浦发' }, width: 120 },
|
||||
{ title: '收款类型', index: 'arvattype', type: 'enum', enum: { '1': '费用款项' }, width: 120 },
|
||||
{ title: '付款人', index: 'artoname', width: 120 },
|
||||
{ title: '付款类型', index: 'brmtype', type: 'enum', enum: { '1': '费用款项' }, width: 120 },
|
||||
{ title: '收款人', index: 'artoname', width: 120 },
|
||||
{ title: '结算客户', index: 'cno', width: 120 },
|
||||
{ title: '银行水单', index: 'bankreceipt', width: 120 },
|
||||
{ title: '创建时间', index: 'createTime', width: 160 },
|
||||
@ -269,14 +257,13 @@ export class PayableOrderComponent implements OnInit {
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
className: 'text-center',
|
||||
width: 120,
|
||||
buttons: [
|
||||
{
|
||||
text: '浏览',
|
||||
click: item => this.router.navigate(['/financial-management/receivable-order/detail/' + item.id])
|
||||
},
|
||||
{
|
||||
text: '核销'
|
||||
click: item =>
|
||||
this.router.navigate(['/financial-management/payable-order/detail/' + item.id], { queryParams: { billHId: item.billHId } })
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user