This commit is contained in:
Taric Xin
2021-12-28 17:36:51 +08:00
parent 8d381ef42a
commit e68d4cf6cb
5 changed files with 167 additions and 112 deletions

View File

@ -32,7 +32,13 @@ export class InvoiceRequestedComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
Object.assign(requestOptions.body, { ...this.sf.value });
Object.assign(requestOptions.body, {
...this.sf.value,
createTime: {
start: this.sf.value.createTime?.[0] || null,
end: this.sf.value.createTime?.[1] || null
}
});
}
return requestOptions;
};
@ -46,10 +52,6 @@ export class InvoiceRequestedComponent implements OnInit {
}
}
approval(): void {}
add(): void {}
rejectAction(item: any[]) {
const modal = this.nzModalService.create({
nzTitle: '驳回',
@ -128,8 +130,8 @@ export class InvoiceRequestedComponent implements OnInit {
{
type: 'default',
label: '移除',
onClick: (com) => {
com?.removeOrder(com.data)
onClick: com => {
com?.removeOrder(com.data);
}
},
{
@ -175,14 +177,14 @@ export class InvoiceRequestedComponent implements OnInit {
hidden: true
}
},
orderSn: {
vatappcode: {
type: 'string',
title: '申请编号',
ui: {
placeholder: '请输入'
}
},
orderSn2: {
billHCode: {
type: 'string',
title: '订单号',
ui: {
@ -196,55 +198,50 @@ export class InvoiceRequestedComponent implements OnInit {
placeholder: '请输入'
}
},
receiveName2: {
projectId: {
title: '项目',
type: 'string',
title: '购买方',
enum: [
{ label: '全部', value: '全部' },
{ label: '企业认证审核', value: '企业认证审核' },
{ label: '企业管理员审核', value: '企业管理员审核' }
],
default: '',
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
},
asyncData: () => this.service.getEnterpriseProject()
}
},
receiveName3: {
ltd: {
type: 'string',
title: '网络货运人',
enum: [{ label: '全部', value: '全部' }],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
allowClear: true,
asyncData: () => this.service.getNetworkFreightForwarder()
},
default: ''
},
receiveName23: {
otherReq: {
type: 'string',
title: '其他需求',
enum: [
{ label: '全部', value: '全部' },
{ label: '有', value: '有' },
{ label: '无', value: '无' }
],
enum: [{ label: '全部', value: '' }],
ui: {
widget: 'select',
placeholder: '请选择',
visibleIf: {
expand: (value: boolean) => value
}
}
},
default: ''
},
receiveName: {
sts: {
type: 'string',
title: '处理进度',
enum: [
{ label: '全部', value: '全部' },
{ label: '全部', value: '' },
{ label: '待审核', value: '待审核' },
{ label: '处理中', value: '处理中' },
{ label: '已完成', value: '已完成' },
@ -257,27 +254,29 @@ export class InvoiceRequestedComponent implements OnInit {
visibleIf: {
expand: (value: boolean) => value
}
}
},
default: ''
},
createTime: {
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
},
re2ceiveName: {
isdetail: {
type: 'string',
title: '销货清单',
enum: [
{ label: '全部', value: '全部' },
{ label: '需要', value: '需要' },
{ label: '不需要', value: '不需要' }
{ label: '全部', value: '' },
{ label: '需要', value: 1 },
{ label: '不需要', value: 0 }
],
ui: {
widget: 'select',
@ -285,7 +284,8 @@ export class InvoiceRequestedComponent implements OnInit {
visibleIf: {
expand: (value: boolean) => value
}
}
},
default: ''
}
}
};
@ -294,23 +294,23 @@ export class InvoiceRequestedComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox' },
{ title: '申请编号', index: 'no', width: 150, format: item => `VP202110012313</br><label class="text-primary">待受理</label>` },
{ title: '网络货运人', index: 'callNo', width: 120 },
{ title: '购买方', index: 'callNo', width: 90 },
{ title: '订单数', index: 'callNo', width: 90 },
{ title: '申请金额', index: 'callNo', width: 100 },
{ title: '运输费', index: 'callNo', width: 90 },
{ title: '附加费', index: 'callNo', width: 90 },
{ title: '已开票金额', index: 'callNo', width: 120 },
{ title: '开户行', index: 'callNo', width: 90 },
{ title: '银行账户', index: 'callNo', width: 100 },
{ title: '注册地址', index: 'callNo', width: 100 },
{ title: '注册电话', index: 'callNo', width: 100 },
{ title: '服务名称', index: 'callNo', width: 100 },
{ title: '销货清单', index: 'callNo', width: 100 },
{ title: '其他要求', index: 'callNo', width: 100 },
{ title: '申请人', index: 'callNo', width: 90 },
{ title: '申请时间', index: 'updatedAt', type: 'date', width: 150 },
{ title: '申请编号', render: 'vatappcode', width: 150 },
{ title: '网络货运人', index: 'ltdName', width: 120 },
{ title: '购买方', index: 'projectName', width: 90 },
{ title: '订单数', index: 'ordlines', width: 90 },
{ title: '申请金额', index: 'applyAmount', width: 100 },
{ title: '运输费', index: 'fjfmoney2', width: 90 },
{ title: '附加费', index: 'fjfmoney', width: 90 },
{ title: '已开票金额', index: 'invoicedMoney', width: 120 },
{ title: '开户行', index: 'bankName', width: 90 },
{ title: '银行账户', index: 'bankAccount', width: 100 },
{ title: '注册地址', index: 'registerAddr', width: 100 },
{ title: '注册电话', index: 'registerPhone', width: 100 },
{ title: '服务名称', index: 'vatname', width: 100 },
{ title: '销货清单', index: 'isdetail', width: 100 },
{ title: '其他要求', index: 'otherremarks', width: 100 },
{ title: '申请人', index: 'applyName', width: 90 },
{ title: '申请时间', index: 'applyTime', type: 'date', width: 150 },
{
title: '操作',
width: 150,
@ -330,7 +330,7 @@ export class InvoiceRequestedComponent implements OnInit {
},
{
text: '订单明细',
click: item => this.router.navigate(['/ticket/invoice-requested/detail/1'])
click: item => this.router.navigate(['/ticket/invoice-requested/detail/' + item.vatappcode])
},
{
text: '下载对账单'