edit
This commit is contained in:
@ -34,26 +34,28 @@ export class CancellationInvoiceComponent implements OnInit {
|
||||
|
||||
ngOnInit(): void {}
|
||||
|
||||
get reqParams() {
|
||||
// if (this.sf) {
|
||||
// Object.assign(requestOptions.body, {
|
||||
// ...this.sf.value,
|
||||
// sts: this?.resourceStatus,
|
||||
// createTime: {
|
||||
// start: this.sf.value.createTime?.[0] || null,
|
||||
// end: this.sf.value.createTime?.[1] || null
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
const a: any = {};
|
||||
if (this.resourceStatus) {
|
||||
a.sts = this.resourceStatus;
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
createTime: {
|
||||
start: this.sf.value.createTime?.[0] || '',
|
||||
end: this.sf.value.createTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
return {
|
||||
...a,
|
||||
...this.sf?.value
|
||||
};
|
||||
}
|
||||
if (this.resourceStatus) {
|
||||
Object.assign(requestOptions.body, {
|
||||
sts: this.resourceStatus
|
||||
});
|
||||
}
|
||||
return requestOptions;
|
||||
};
|
||||
|
||||
afterRes = (data: any[], rawData?: any) => {
|
||||
return data.map(node => ({ ...node, disabled: node.sts === '3' }));
|
||||
};
|
||||
|
||||
selectChange(e: any) {
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
@ -90,7 +92,7 @@ export class CancellationInvoiceComponent implements OnInit {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('开票成功');
|
||||
this.st.load(1);
|
||||
modal.destroy;
|
||||
modal.destroy();
|
||||
}
|
||||
});
|
||||
|
||||
@ -322,10 +324,12 @@ export class CancellationInvoiceComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '手工开票',
|
||||
iif: item => item.sts != '3',
|
||||
click: item => this.requestedAction(item)
|
||||
},
|
||||
{
|
||||
text: '推送开票',
|
||||
iif: item => item.sts != '3',
|
||||
click: item => this.pushInvoiceAction(item)
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user