edit
This commit is contained in:
@ -5,6 +5,7 @@ import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { AddCollectionInvoiceModalComponent } from 'src/app/routes/ticket-management/components/input-invoice/add-collection-invoice-modal/add-collection-invoice-modal.component';
|
||||
import { TicketService } from 'src/app/routes/ticket-management/services/ticket.service';
|
||||
import { FreightAccountService } from '../../services/freight-account.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-payment-order',
|
||||
@ -22,7 +23,7 @@ export class PaymentOrderComponent implements OnInit {
|
||||
_$expand = false;
|
||||
|
||||
selectedRows: any[] = [];
|
||||
constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
|
||||
constructor(public service: FreightAccountService, private nzModalService: NzModalService, private router: Router) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
@ -81,15 +82,15 @@ export class PaymentOrderComponent implements OnInit {
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
orderSn: {
|
||||
paycodes: {
|
||||
type: 'string',
|
||||
title: '付款单号',
|
||||
ui: {
|
||||
autocomplete: 'off',
|
||||
placeholder: '请输入'
|
||||
widget: 'select',
|
||||
placeholder: '请选择'
|
||||
}
|
||||
},
|
||||
ltdId: {
|
||||
ltdid: {
|
||||
type: 'string',
|
||||
title: '网络货运人',
|
||||
ui: {
|
||||
@ -98,7 +99,7 @@ export class PaymentOrderComponent implements OnInit {
|
||||
allowClear: true,
|
||||
asyncData: () => this.service.getNetworkFreightForwarder()
|
||||
},
|
||||
default: ''
|
||||
default: null
|
||||
},
|
||||
orderS2n: {
|
||||
type: 'string',
|
||||
@ -109,53 +110,51 @@ export class PaymentOrderComponent implements OnInit {
|
||||
placeholder: '请选择'
|
||||
}
|
||||
},
|
||||
order2S2n: {
|
||||
paytype: {
|
||||
type: 'string',
|
||||
title: '付款类型',
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'refund:apply:status' },
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
order22S2n: {
|
||||
paymode: {
|
||||
type: 'string',
|
||||
title: '付款方式',
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'refund:apply:status' },
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
order221S2n: {
|
||||
arto: {
|
||||
type: 'string',
|
||||
title: '收款人',
|
||||
ui: {
|
||||
widget: 'dict-select',
|
||||
params: { dictKey: 'refund:apply:status' },
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
orderS12n: {
|
||||
billHCodes: {
|
||||
type: 'string',
|
||||
title: '订单号',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
createTime: {
|
||||
paydate: {
|
||||
title: '要求付款日期',
|
||||
type: 'string',
|
||||
ui: {
|
||||
@ -177,27 +176,29 @@ export class PaymentOrderComponent implements OnInit {
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
orderS1n2: {
|
||||
waybillHCodes: {
|
||||
type: 'string',
|
||||
title: '运单号',
|
||||
ui: {
|
||||
placeholder: '请输入',
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
orderS3: {
|
||||
feeHCodes: {
|
||||
type: 'string',
|
||||
title: '费用号',
|
||||
ui: {
|
||||
placeholder: '请输入',
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
createT1i1me: {
|
||||
createTime: {
|
||||
title: '创建时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
@ -208,11 +209,10 @@ export class PaymentOrderComponent implements OnInit {
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
orderSn4: {
|
||||
remarks: {
|
||||
type: 'string',
|
||||
title: '付款备注',
|
||||
ui: {
|
||||
autocomplete: 'off',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
@ -226,26 +226,26 @@ export class PaymentOrderComponent implements OnInit {
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '', index: 'key', type: 'checkbox' },
|
||||
{ title: '付款单号', index: 'no', type: 'link' },
|
||||
{ title: '网络货运人', index: 'no' },
|
||||
{ title: '要求付款日期', index: 'no', type: 'date', width: 140 },
|
||||
{ title: '付款金额', index: 'callNo' },
|
||||
{ title: '付款类型', index: 'callNo' },
|
||||
{ title: '付款方式', index: 'call1No' },
|
||||
{ title: '付款单号', index: 'paycode', type: 'link' },
|
||||
{ title: '网络货运人', index: 'ltdId' },
|
||||
{ title: '要求付款日期', index: 'paydate', type: 'date', width: 140 },
|
||||
{ title: '付款金额', index: 'paymoney' },
|
||||
{ title: '付款类型', index: 'paytype' },
|
||||
{ title: '付款方式', index: 'paymode' },
|
||||
{ title: '结算客户', index: 'call1N2o' },
|
||||
{ title: '收款人', index: 'callNo' },
|
||||
{ title: '收款人', index: 'hrto' },
|
||||
{ title: '应付已核销', index: 'callNo' },
|
||||
{ title: '确认日期', index: 'updatedAt', type: 'date' },
|
||||
{ title: '创建时间', index: 'updatedAt', type: 'date' },
|
||||
{ title: '创建人', index: 'callNo' },
|
||||
{ title: '付款备注', index: 'callNo' },
|
||||
{ title: '确认日期', index: 'paydate2', type: 'date' },
|
||||
{ title: '创建时间', index: 'createTime', type: 'date' },
|
||||
{ title: '创建人', index: 'createUserId' },
|
||||
{ title: '付款备注', index: 'payremarks' },
|
||||
{
|
||||
title: '操作',
|
||||
width: '90px',
|
||||
buttons: [
|
||||
{
|
||||
text: '浏览',
|
||||
click: item => this.router.navigate(['/ticket/input-invoice/detail/1'])
|
||||
click: item => this.router.navigate(['/ticket/input-invoice/detail/' + item.id])
|
||||
},
|
||||
{
|
||||
text: '修改',
|
||||
|
||||
Reference in New Issue
Block a user