This commit is contained in:
Taric Xin
2021-12-27 13:55:46 +08:00
parent 0f532ad744
commit cac371baf3
33 changed files with 59 additions and 79 deletions

View File

@ -17,7 +17,6 @@ export class InvoiceDetailComponent implements OnInit {
orderSf!: SFComponent;
orderColumns: STColumn[] = this.initOrderST();
orderSchema: SFSchema = this.initOrderSF();
ordeReqParams = {};
@ViewChild('costST', { static: true })
costST!: STComponent;
@ -25,12 +24,10 @@ export class InvoiceDetailComponent implements OnInit {
costSf!: SFComponent;
costColumns: STColumn[] = this.initCostST();
costSchema: SFSchema = this.initCostSF();
orderReqParams = {};
@ViewChild('invoiceST', { static: true })
invoiceST!: STComponent;
invoiceColumns: STColumn[] = this.initInvoiceST();
invoiceReqParams = {};
isCanEdit = false;
isEdit = false;
@ -43,10 +40,10 @@ export class InvoiceDetailComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => {
if (this.orderSf) {
this.orderReqParams = { ...this.orderSf.value };
Object.assign(requestOptions.body, { ...this.orderSf.value });
}
if (this.costSf) {
this.orderReqParams = { ...this.costSf.value };
Object.assign(requestOptions.body, { ...this.costSf.value });
}
return requestOptions;
};
@ -78,7 +75,6 @@ export class InvoiceDetailComponent implements OnInit {
}
}
private initOrderSF(): SFSchema {
return {
properties: {