invoice-manage-purchase.component.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!-- 采购发票 -->
  2. <page-header [action]="phActionTpl">
  3. <ng-template #phActionTpl>
  4. <!-- 新建 -->
  5. <button (click)="add()" nz-button nzType="primary" acl [acl-ability]="'invoice-manage-purchase:add'">
  6. {{ 'cost.new' | translate }}
  7. </button>
  8. </ng-template>
  9. </page-header>
  10. <nz-card>
  11. <!-- 查询条件 -->
  12. <form nz-form>
  13. <div nz-row [nzGutter]="{ xs: 8, sm: 16, md: 24, lg: 32 }">
  14. <div nz-col [nzSpan]="8">
  15. <nz-form-item>
  16. <!--单据编码 -->
  17. <nz-form-label [nzSm]="6" [nzXs]="24">{{ 'documents.code' | translate }}</nz-form-label>
  18. <nz-form-control [nzSm]="14" [nzXs]="24">
  19. <input nz-input name="code" [(ngModel)]="invoiceManagePurchase.billcode" />
  20. </nz-form-control>
  21. </nz-form-item>
  22. </div>
  23. <div nz-col [nzSpan]="8">
  24. <nz-form-item>
  25. <nz-form-label [nzSm]="2" [nzXs]="24" [nzNoColon]="true"></nz-form-label>
  26. <nz-form-control [nzSm]="14" [nzXs]="24">
  27. <!-- 查询 -->
  28. <button nzType="primary" (click)="query()" nz-button>
  29. <span>{{ 'button.query' | translate }}</span>
  30. </button>
  31. </nz-form-control>
  32. </nz-form-item>
  33. </div>
  34. </div>
  35. </form>
  36. <!-- 表格 -->
  37. <div nz-row [nzGutter]="{ xs: 8, sm: 16, md: 24, lg: 32 }">
  38. <div nz-col [nzSpan]="24">
  39. <nz-table
  40. nzSize="small"
  41. #basicTable
  42. [nzData]="listOfData"
  43. [nzFrontPagination]="false"
  44. [nzTotal]="page.total"
  45. [nzPageIndex]="page.current"
  46. (nzPageIndexChange)="pageIndexChange($event)"
  47. [nzLoading]="isSpinning"
  48. >
  49. <thead>
  50. <tr>
  51. <!-- 单据编码-->
  52. <th>{{ 'documents.code' | translate }}</th>
  53. <!--项目编码 -->
  54. <th>{{ 'project.code' | translate }}</th>
  55. <!-- 项目名称-->
  56. <th>{{ 'cost.item.name' | translate }}</th>
  57. <!-- 填写人 -->
  58. <th>{{ 'fill.person' | translate }}</th>
  59. <!-- 填写时间 -->
  60. <th>{{ 'fill.time' | translate }}</th>
  61. <!--操作 -->
  62. <th>{{ 'table.operation' | translate }}</th>
  63. </tr>
  64. </thead>
  65. <tbody>
  66. <tr *ngFor="let data of basicTable.data">
  67. <td>{{ data.billcode }}</td>
  68. <td>{{ data.proCode }}</td>
  69. <td>{{ data.proName }}</td>
  70. <td>{{ data.currentUser }}</td>
  71. <td>{{ data.createTime }}</td>
  72. <td>
  73. <!-- 详情 修改 删除 -->
  74. <a (click)="view(data)" acl [acl-ability]="'invoice-manage-purchase:view'">
  75. {{ 'table.view' | translate }}
  76. </a>
  77. <nz-divider nzType="vertical" acl [acl-ability]="'invoice-manage-purchase:view'"></nz-divider>
  78. <a (click)="update(data)" acl [acl-ability]="'invoice-manage-purchase:update'">
  79. {{ 'table.update' | translate }}
  80. </a>
  81. <nz-divider nzType="vertical" acl [acl-ability]="'invoice-manage-purchase:update'"></nz-divider>
  82. <a (click)="delete(data.id)" acl [acl-ability]="'invoice-manage-purchase:delete'">
  83. {{ 'table.delete' | translate }}
  84. </a>
  85. </td>
  86. </tr>
  87. </tbody>
  88. </nz-table>
  89. </div>
  90. </div>
  91. </nz-card>