product-confirmation.component.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <page-header [action]="phActionTpl">
  2. <ng-template #phActionTpl>
  3. <button (click)="add()" nz-button nzType="primary" acl [acl-ability]="'product-confirmation:add'">新建</button>
  4. </ng-template>
  5. </page-header>
  6. <nz-card>
  7. <!-- 查询条件 -->
  8. <form nz-form>
  9. <div nz-row [nzGutter]="{ xs: 8, sm: 16, md: 24, lg: 32 }">
  10. <div nz-col [nzSpan]="8">
  11. <nz-form-item>
  12. <nz-form-label [nzSm]="6" [nzXs]="24">单据编码</nz-form-label>
  13. <nz-form-control [nzSm]="14" [nzXs]="24">
  14. <input nz-input name="code" [(ngModel)]="proWorkMilestone.billcode" />
  15. </nz-form-control>
  16. </nz-form-item>
  17. </div>
  18. <div nz-col [nzSpan]="8">
  19. <nz-form-item>
  20. <nz-form-label [nzSm]="2" [nzXs]="24" [nzNoColon]=true></nz-form-label>
  21. <nz-form-control [nzSm]="14" [nzXs]="24">
  22. <button nzType="primary" (click)="query()" nz-button><span>查询</span></button>
  23. </nz-form-control>
  24. </nz-form-item>
  25. </div>
  26. </div>
  27. </form>
  28. <!-- 表格 -->
  29. <div nz-row [nzGutter]="{ xs: 8, sm: 16, md: 24, lg: 32 }">
  30. <div nz-col [nzSpan]="24">
  31. <nz-table nzSize="small" #basicTable [nzData]="listOfData" [nzFrontPagination]="false" [nzTotal]="page.total"
  32. [nzPageIndex]="page.current" (nzPageIndexChange)="pageIndexChange($event)" [nzLoading]="isSpinning">
  33. <thead>
  34. <tr>
  35. <th>单据编码</th>
  36. <th>项目编码</th>
  37. <th>项目名称</th>
  38. <th>客户编码</th>
  39. <th>客户名称</th>
  40. <!-- <th>项目里程碑</th> -->
  41. <th>里程碑确认</th>
  42. <th>确认时间</th>
  43. <th>操作</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <tr *ngFor="let data of basicTable.data">
  48. <td>{{ data.billcode }}</td>
  49. <td>{{ data.proCode }}</td>
  50. <td>{{ data.proName }}</td>
  51. <td>{{ data.cusCode }}</td>
  52. <td>{{ data.cusName }}</td>
  53. <!-- <td>{{ data.mileName }}</td> -->
  54. <td>
  55. <nz-tag *ngIf="data.mileConfirm===0" [nzColor]="'red'">否</nz-tag>
  56. <nz-tag *ngIf="data.mileConfirm===1" [nzColor]="'green'">是</nz-tag>
  57. </td>
  58. <td>{{ data.confirmTime }}</td>
  59. <td>
  60. <a (click)="view(data)" acl [acl-ability]="'product-confirmation:view'">详情</a>
  61. <nz-divider nzType="vertical" acl [acl-ability]="'product-confirmation:view'"></nz-divider>
  62. <a (click)="update(data)" acl [acl-ability]="'product-confirmation:update'">修改</a>
  63. <nz-divider nzType="vertical" acl [acl-ability]="'product-confirmation:update'"></nz-divider>
  64. <a (click)="delete(data.id)" acl [acl-ability]="'product-confirmation:delete'">删除</a>
  65. </td>
  66. </tr>
  67. </tbody>
  68. </nz-table>
  69. </div>
  70. </div>
  71. </nz-card>