edit
This commit is contained in:
		@ -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: {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user