jsjs.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <form [formGroup]="form">
  2. <div class="wrapper">
  3. <div fxLayout="row wrap">
  4. <div fxFlex="100">
  5. <div fxLayout="row-reverse" style="place-content:flex-start" fxLayout.xs="column">
  6. <div fxFlex="50">
  7. <mat-form-field style="width: 100%; color: black;">
  8. <input type="text" placeholder="خدمات" matInput [formControl]="serviceCtrl"
  9. [matAutocomplete]="auto">
  10. <mat-autocomplete #auto="matAutocomplete">
  11. <mat-option *ngFor="let service of filterService"
  12. (click)="request.addServiceById(service.id)"
  13. >
  14. {{service.name}}
  15. </mat-option>
  16. </mat-autocomplete>
  17. </mat-form-field>
  18. </div>
  19. <div fxFlex="50">
  20. <mat-form-field style="width: 100%;color: black">
  21. <input type="text" placeholder="محصولات" matInput [formControl]="prodctCtrl"
  22. [matAutocomplete]="auto1">
  23. <mat-autocomplete #auto1="matAutocomplete">
  24. <mat-option *ngFor="let product of filterProduct"
  25. (click)="request.addProductById(product.id)"
  26. >
  27. {{product.name}}
  28. </mat-option>
  29. </mat-autocomplete>
  30. </mat-form-field>
  31. </div>
  32. </div>
  33. <div class="wrapper">
  34. <div fxLayout="row wrap">
  35. <div fxFlex="100">
  36. <div fxLayout="row-reverse" style="place-content:flex-start" fxLayout.xs="column">
  37. <div fxFlex="50">
  38. <!--<div fxflex="row" fxflex="50">-->
  39. <div fxFlex="column">
  40. <div fxflex="row">
  41. <mat-card>
  42. <mat-list>
  43. <mat-list-item matLine
  44. *ngFor=" let pivotService of request.pivotServices;let index = index">
  45. <span>
  46. <a (click)="request.removeServiceById(pivotService.id)">
  47. <img src="../../../../../assets/images/delete.png" alt="delete"
  48. height="18px" width="18px"
  49. >
  50. </a>
  51. {{pivotService.num * pivotService.price}}
  52. </span>
  53. <span>
  54. <button class="buttonMinus" (click)="minusService(pivotService , valueInput.value)"
  55. mat-icon-button>
  56. <mat-icon class="iconbutton" aria-label="کاستن">remove</mat-icon>
  57. </button>
  58. <input matInput #valueInput
  59. [value]="pivotService.num" style="text-align: center">
  60. <button class="buttonPlus" (click)="plusService(pivotService , valueInput.value)" mat-icon-button>
  61. </button>
  62. </span>
  63. <span>
  64. {{pivotService.name}}
  65. </span>
  66. </mat-list-item>
  67. </mat-list>
  68. </mat-card>
  69. </div>
  70. </div>
  71. <!--</div>-->
  72. </div>
  73. <div fxFlex="50">
  74. <div fxFlex="column">
  75. <div fxflex="row">
  76. <mat-card>
  77. <mat-list>
  78. <mat-list-item matLine
  79. *ngFor=" let pivotProduct of request.pivotProducts;let index = index">
  80. <span>
  81. <a (click)="request.removeProductById(pivotProduct .id)">
  82. <img src="../../../../../assets/images/delete.png" alt="delete"
  83. height="18px" width="18px"
  84. >
  85. </a>
  86. <!--{{pivotProduct.num}} , {{ pivotProduct.price}}-->
  87. {{pivotProduct.num * pivotProduct.price}}
  88. </span>
  89. <span>
  90. <button class="buttonMinus" (click)="minusProduct(pivotProduct , valueInput.value)"
  91. mat-icon-button>
  92. <mat-icon class="iconbutton" aria-label="کاستن">remove</mat-icon>
  93. </button>
  94. <input matInput #valueInput style="text-align: center"
  95. [value]="pivotProduct .num">
  96. <button class="buttonPlus" (click)="plusProduct(pivotProduct , valueInput.value)"
  97. mat-icon-button>
  98. <mat-icon class="iconbutton" aria-label="افزودن">add</mat-icon>
  99. </button>
  100. </span>
  101. <span>
  102. {{pivotProduct.name}}
  103. </span>
  104. </mat-list-item>
  105. </mat-list>
  106. </mat-card>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>