This commit is contained in:
Taric Xin
2022-01-13 15:49:58 +08:00
parent a917c83275
commit 08617ecfa1
12 changed files with 348 additions and 69 deletions

View File

@ -102,7 +102,7 @@ export class VoucherManagementComponent implements OnInit {
},
ltdid: {
type: 'string',
title: '网络货运人',
title: '客户',
ui: {
widget: 'select',
placeholder: '请选择',
@ -111,37 +111,37 @@ export class VoucherManagementComponent implements OnInit {
},
default: ''
},
invoiceno: {
createtime: {
title: '凭证时间',
type: 'string',
title: '发票号码',
ui: {
widget: 'sl-from-to-search',
format: 'yyyy-MM-dd'
} as SFDateWidgetSchema
},
inpinvc2ode: {
type: 'string',
title: '原始单号',
ui: {
autocomplete: 'off',
placeholder: '请输入'
}
},
invtype: {
type: 'string',
title: '发票类型',
ui: {
widget: 'dict-select',
params: { dictKey: 'refund:apply:status' },
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
hrto: {
type: 'string',
title: '销售方',
ui: {
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
}
},
createtime: {
invtype: {
type: 'string',
title: '原始单类型',
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
createtim2e: {
title: '创建时间',
type: 'string',
ui: {
@ -152,9 +152,19 @@ export class VoucherManagementComponent implements OnInit {
}
} as SFDateWidgetSchema
},
inpinvcosde: {
type: 'string',
title: '凭证摘要',
ui: {
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
}
},
sts: {
type: 'string',
title: '收票状态',
title: '凭证类型',
ui: {
widget: 'dict-select',
params: { dictKey: 'refund:apply:status' },
@ -164,12 +174,13 @@ export class VoucherManagementComponent implements OnInit {
}
}
},
invdate: {
s2ts: {
type: 'string',
title: '发票日期',
title: '科目',
ui: {
widget: 'sl-from-to-search',
format: 'yyyy-MM-dd',
widget: 'dict-select',
params: { dictKey: 'refund:apply:status' },
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
@ -177,7 +188,7 @@ export class VoucherManagementComponent implements OnInit {
},
remarks: {
type: 'string',
title: '收票备注',
title: '借方金额',
ui: {
placeholder: '请输入',
visibleIf: {
@ -187,7 +198,7 @@ export class VoucherManagementComponent implements OnInit {
},
billCode: {
type: 'string',
title: '订单号',
title: '贷方金额',
ui: {
placeholder: '请输入',
visibleIf: {
@ -195,15 +206,72 @@ export class VoucherManagementComponent implements OnInit {
}
}
},
s2t2s: {
type: 'string',
title: '帐套',
ui: {
widget: 'dict-select',
params: { dictKey: 'refund:apply:status' },
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
s22t2s: {
type: 'string',
title: '凭证状态',
ui: {
widget: 'dict-select',
params: { dictKey: 'refund:apply:status' },
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
feecode: {
type: 'string',
title: '费用号',
title: 'NC凭证',
ui: {
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
}
},
feecsode: {
type: 'string',
title: '汇总凭证号',
ui: {
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
}
},
s22t2ss: {
type: 'string',
title: '导入NC',
ui: {
widget: 'dict-select',
params: { dictKey: 'refund:apply:status' },
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
s22t2s1s: {
type: 'string',
title: '是否汇总',
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
}
}
};
@ -212,27 +280,34 @@ export class VoucherManagementComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox' },
{ title: '收票单号', index: 'inpinvcode', type: 'link' },
{ title: '网络货运人', index: 'ltdid' },
{ title: '发票日期', index: 'invdate', type: 'date' },
{ title: '发票号', index: 'invoiceno' },
{ title: '发票金额', index: 'invmoney' },
{ title: '税额', index: 'invtax' },
{ title: '发票类型', index: 'invtype' },
{ title: '销售方', index: 'hrto' },
{ title: '创建时间', index: 'createtime', type: 'date' },
{ title: '创建人', index: 'createbyname' },
{ title: '收票状态', index: 'sts' },
{ title: '凭证号', index: 'inpinvcode', type: 'link' },
{ title: '帐套', index: 'ltdid' },
{ title: '凭证时间', index: 'invdate', type: 'date' },
{ title: '凭证类型', index: 'invoiceno' },
{ title: '序号', index: 'invmoney' },
{ title: '摘要', index: 'invtax' },
{ title: '币种', index: 'invtype' },
{ title: '借方金额', index: 'hrto' },
{ title: '贷方金额', index: 'createtime', type: 'date' },
{ title: 'NC凭证', index: 'createbyname' },
{ title: '汇总凭证号', index: 'sts' },
{ title: '凭证状态', index: 'sts' },
{ title: '创建时间', index: 'sts' },
{ title: '创建人', index: 'sts' },
{
title: '操作',
buttons: [
{
text: '浏览',
click: item => this.router.navigate(['/ticket/input-invoice/detail/' + item.id])
text: '浏览'
},
{
text: '修改',
click: item => this.router.navigate(['/ticket/input-invoice/edit/1'])
text: '修改'
},
{
text: '删除 '
},
{
text: '提交'
}
]
}