product-module.component.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!-- 产品 -->
  2. <nz-card nzTitle="{{ 'product' | translate }}">
  3. <!-- 表格 -->
  4. <div nz-row [nzGutter]="24">
  5. <div nz-col [nzSpan]="24">
  6. <nz-table #productRowTable nzSize="small" [nzFrontPagination]="false" [nzShowPagination]="false" nzBordered
  7. [nzData]="productList">
  8. <thead>
  9. <tr>
  10. <!-- 产品编码 -->
  11. <th nzWidth="10%">{{ 'product' | translate }}{{ 'table.thead.code' | translate }}</th>
  12. <!-- 产品名称 -->
  13. <th nzWidth="17%">{{ 'product' | translate }}{{ 'contract.name' | translate }}</th>
  14. <!-- 折扣率 -->
  15. <th nzWidth="9%">{{ 'The discount' | translate }}</th>
  16. <!-- 标准报价 -->
  17. <th nzWidth="9%">{{ 'standard.quotation' | translate }}</th>
  18. <!-- 折扣后单价 -->
  19. <th nzWidth="9%">
  20. {{ 'pm.quotation.Discount' | translate }}
  21. {{ 'after' | translate }}
  22. {{ 'price' | translate }}
  23. </th>
  24. <!-- 标准金额 -->
  25. <th nzWidth="9%">{{ 'standard.amount' | translate }}</th>
  26. <!-- 折扣后金额 -->
  27. <th nzWidth="9%">
  28. {{ 'pm.quotation.Discount' | translate }}
  29. {{ 'after' | translate }}
  30. {{ 'their.fees.money' | translate }}
  31. </th>
  32. <!-- 成本单价 -->
  33. <th nzWidth="9%">
  34. {{ 'cost' | translate }}
  35. {{ 'price' | translate }}
  36. </th>
  37. <!--成本金额 -->
  38. <th nzWidth="9%">
  39. {{ 'cost' | translate }}
  40. {{ 'their.fees.money' | translate }}
  41. </th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <tr *ngFor="let data of productRowTable.data" class="editable-row">
  46. <td>{{ data.code }}</td>
  47. <td>
  48. {{ data.name }}
  49. </td>
  50. <td>
  51. {{ data.discountRate }}
  52. </td>
  53. <td>
  54. {{ data.standardQuotation }}
  55. </td>
  56. <td>
  57. {{ data.unitPriceAfterDiscount }}
  58. </td>
  59. <td>
  60. {{ data.standardAmount }}
  61. </td>
  62. <td>
  63. {{ data.amountAfterDiscount }}
  64. </td>
  65. <td>
  66. {{ data.costUnitPrice }}
  67. </td>
  68. <td>
  69. {{ data.costAmount }}
  70. </td>
  71. </tr>
  72. </tbody>
  73. </nz-table>
  74. </div>
  75. </div>
  76. </nz-card>
  77. <!-- 模块 -->
  78. <nz-card nzTitle="{{ 'module' | translate }}">
  79. <nz-tabset>
  80. <nz-tab *ngFor="let product of productList" [nzTitle]="product.name">
  81. <!-- 表格 -->
  82. <div nz-row [nzGutter]="24">
  83. <div nz-col [nzSpan]="24">
  84. <nz-table #moduleRowTable nzSize="small" [nzFrontPagination]="false" [nzShowPagination]="false" nzBordered
  85. [nzData]="product.contractFileModularList">
  86. <thead>
  87. <tr>
  88. <!-- 产品模块编码 -->
  89. <th nzWidth="30%">{{ 'product' | translate }}{{ 'module.code' | translate }}</th>
  90. <!-- 产品模块名称 -->
  91. <th nzWidth="30%">{{ 'product' | translate }}{{ 'module.name' | translate }}</th>
  92. <!-- 标准报价 -->
  93. <th nzWidth="10%">{{ 'standard.quotation' | translate }}</th>
  94. <!-- 采购价格 -->
  95. <th nzWidth="10%">
  96. {{ 'procurement' | translate }}
  97. {{ 'the.price' | translate }}
  98. </th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. <tr *ngFor="let data of moduleRowTable.data" class="editable-row">
  103. <td>{{ data.code }}</td>
  104. <td>
  105. {{ data.baseMaterialFileModularId }}
  106. </td>
  107. <td>
  108. {{ data.standardQuotation }}
  109. </td>
  110. <td>
  111. {{ data.purchasePrice }}
  112. </td>
  113. </tr>
  114. </tbody>
  115. </nz-table>
  116. </div>
  117. </div>
  118. </nz-tab>
  119. </nz-tabset>
  120. </nz-card>