edit
This commit is contained in:
@ -30,7 +30,17 @@ export class CostManagementComponent implements OnInit {
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
feedate: {
|
||||
start: this.sf.value.feedate?.[0] || '',
|
||||
end: this.sf.value.feedate?.[1] || ''
|
||||
},
|
||||
createTime: {
|
||||
start: this.sf.value.createTime?.[0] || '',
|
||||
end: this.sf.value.createTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
return requestOptions;
|
||||
};
|
||||
@ -94,48 +104,54 @@ export class CostManagementComponent implements OnInit {
|
||||
hidden: true
|
||||
}
|
||||
},
|
||||
receiveName: {
|
||||
feecode: {
|
||||
type: 'string',
|
||||
title: '费用单号',
|
||||
ui: { placeholder: '请输入' }
|
||||
},
|
||||
phone: {
|
||||
billHId: {
|
||||
type: 'string',
|
||||
title: '订单号',
|
||||
ui: { placeholder: '请输入' }
|
||||
},
|
||||
page: {
|
||||
waybillHId: {
|
||||
type: 'string',
|
||||
title: '运单号',
|
||||
ui: {
|
||||
placeholder: '请输入'
|
||||
}
|
||||
},
|
||||
createTi2me: {
|
||||
feedate: {
|
||||
title: '费用日期',
|
||||
type: 'string',
|
||||
ui: {
|
||||
widget: 'date',
|
||||
mode: 'range',
|
||||
widget: 'sl-from-to-search',
|
||||
format: 'yyyy-MM-dd',
|
||||
placeholder: '请选择',
|
||||
nzShowTime: true,
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
pa2ge2: {
|
||||
feetype: {
|
||||
type: 'string',
|
||||
title: '费用类型',
|
||||
enum: [{ label: '全部', value: '全部' }],
|
||||
enum: [
|
||||
{ label: '全部', value: '' },
|
||||
{ label: '应收', value: 1 },
|
||||
{ label: '应付', value: 2 }
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
default: ''
|
||||
},
|
||||
pa22ge2: {
|
||||
feeSubId: {
|
||||
type: 'string',
|
||||
title: '费用科目',
|
||||
enum: [{ label: '全部', value: '全部' }],
|
||||
@ -147,19 +163,20 @@ export class CostManagementComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
},
|
||||
page2: {
|
||||
ltdId: {
|
||||
type: 'string',
|
||||
title: '网络货运人',
|
||||
enum: [{ label: '全部', value: '全部' }],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
allowClear: true,
|
||||
asyncData: () => this.service.getNetworkFreightForwarder(),
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
page21: {
|
||||
hrto: {
|
||||
type: 'string',
|
||||
title: '应付对象',
|
||||
enum: [{ label: '全部', value: '全部' }],
|
||||
@ -171,7 +188,7 @@ export class CostManagementComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
},
|
||||
pag2e21: {
|
||||
arto: {
|
||||
type: 'string',
|
||||
title: '应收对象',
|
||||
enum: [{ label: '全部', value: '全部' }],
|
||||
@ -187,27 +204,33 @@ export class CostManagementComponent implements OnInit {
|
||||
title: '创建时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
widget: 'date',
|
||||
mode: 'range',
|
||||
widget: 'sl-from-to-search',
|
||||
format: 'yyyy-MM-dd',
|
||||
placeholder: '请选择',
|
||||
nzShowTime: true,
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
pag2e221: {
|
||||
ishrhx: {
|
||||
type: 'string',
|
||||
title: '应付核销',
|
||||
enum: [{ label: '全部', value: '全部' }],
|
||||
enum: [
|
||||
{ label: '全部', value: '' },
|
||||
{ label: '否', value: 0 },
|
||||
{ label: '是', value: 1 }
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
default: ''
|
||||
},
|
||||
pag2e121: {
|
||||
cno: {
|
||||
type: 'string',
|
||||
title: '结算客户',
|
||||
enum: [{ label: '全部', value: '全部' }],
|
||||
@ -225,22 +248,22 @@ export class CostManagementComponent implements OnInit {
|
||||
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '费用单号', index: 'description', width: 120 },
|
||||
{ title: '网络货运人', index: 'description', width: 120 },
|
||||
{ title: '订单号', index: 'description', width: 120 },
|
||||
{ title: '运单号', index: 'description', width: 120 },
|
||||
{ title: '费用日期', index: 'description', width: 150 },
|
||||
{ title: '费用类型', index: 'description', width: 100 },
|
||||
{ title: '应付核销', index: 'description', width: 100 },
|
||||
{ title: '结算客户', index: 'description', width: 100 },
|
||||
{ title: '应收对象', index: 'description', width: 100 },
|
||||
{ title: '应付对象', render: 'description1', width: 100 },
|
||||
{ title: '应收金额', render: 'description1', width: 100 },
|
||||
{ title: '应付金额', render: 'description1', width: 100 },
|
||||
{ title: '收/付款金额', render: 'description1', width: 120 },
|
||||
{ title: '开/收票金额', render: 'description1', width: 120 },
|
||||
{ title: '创建时间', index: 'updatedAt', type: 'date', width: 150 },
|
||||
{ title: '状态', render: 'description1', width: 90 },
|
||||
{ title: '费用单号', index: 'feecode', width: 120 },
|
||||
{ title: '网络货运人', index: 'ltdId', width: 120 },
|
||||
{ title: '订单号', index: 'billHId', width: 120 },
|
||||
{ title: '运单号', index: 'waybillHId', width: 120 },
|
||||
{ title: '费用日期', index: 'feedate', width: 150 },
|
||||
{ title: '费用类型', index: 'feetype', width: 100 },
|
||||
{ title: '应付核销', index: 'ishrhx', width: 100 },
|
||||
{ title: '结算客户', index: 'cno', width: 100 },
|
||||
{ title: '应收对象', index: 'artoname', width: 100 },
|
||||
{ title: '应付对象', render: 'hrtoname', width: 100 },
|
||||
{ title: '应收金额', render: 'armoeny', width: 100 },
|
||||
{ title: '应付金额', render: 'hrmoney', width: 100 },
|
||||
{ title: '收/付款金额', render: 'hrpaymoney', width: 120 },
|
||||
{ title: '开/收票金额', render: 'hrvatmoney', width: 120 },
|
||||
{ title: '创建时间', index: 'auditTime', type: 'date', width: 150 },
|
||||
{ title: '状态', render: 'sts', width: 90 },
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
@ -249,7 +272,7 @@ export class CostManagementComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '浏览',
|
||||
click: item => this.routeTo('/financial-management/cost-management/detail/1')
|
||||
click: item => this.routeTo('/financial-management/cost-management/detail/' + item.id)
|
||||
},
|
||||
{
|
||||
text: '审核',
|
||||
|
||||
Reference in New Issue
Block a user