list.component.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <page-header [action]="phActionTpl">
  2. <ng-template #phActionTpl>
  3. <!-- <button (click)="add()" nz-button nzType="primary">新建</button> -->
  4. </ng-template>
  5. </page-header>
  6. <nz-card>
  7. <form nz-form>
  8. <!-- 查询条件 -->
  9. <div nz-row [nzGutter]="{xs:12,sm:15,md:29,lg: 36, xl: 40}">
  10. <!-- 派工时间 -->
  11. <div nz-col nzXs="24" nzSm="4" nzLg="8">
  12. <nz-form-item class="nz-form-item">
  13. <nz-form-label [nzSpan]="8">时间</nz-form-label>
  14. <nz-form-control [nzSpan]="16">
  15. <!-- <input [(ngModel)]="fbsWorkshopDispatchList.name" name="name" nz-input
  16. placeholder="请输入" /> -->
  17. <nz-date-picker name="fbsWorkshopDispatchList.start" [(ngModel)]="fbsWorkingStatistics.start"
  18. nzPlaceHolder="请选择">
  19. </nz-date-picker>
  20. </nz-form-control>
  21. </nz-form-item>
  22. </div>
  23. <div nz-col nzXs="24" nzSm="4" nzLg="8">
  24. <nz-form-item class="nz-form-item">
  25. <nz-form-label [nzSpan]="8" [nzNoColon]="true"></nz-form-label>
  26. <nz-form-control [nzSpan]="16">
  27. <!-- <input [(ngModel)]="fbsWorkshopDispatchList.name" name="name" nz-input
  28. placeholder="请输入" /> -->
  29. <nz-date-picker name="fbsWorkshopDispatchList.end" [(ngModel)]="fbsWorkingStatistics.end"
  30. nzPlaceHolder="请选择">
  31. </nz-date-picker>
  32. </nz-form-control>
  33. </nz-form-item>
  34. </div>
  35. <!-- 按钮 -->
  36. <div nz-col nzXs="24" nzSm="4" nzLg="8">
  37. <nz-form-item class="nz-form-item">
  38. <nz-form-label [nzSpan]="2" [nzNoColon]="true"></nz-form-label>
  39. <nz-form-control [nzSpan]="22" style="text-align: right;">
  40. <!-- 查询 -->
  41. <button nz-button nzType="primary" (click)="query()">查询</button>
  42. </nz-form-control>
  43. </nz-form-item>
  44. </div>
  45. </div>
  46. <div nz-row [nzGutter]="{xs:12,sm:15,md:29,lg: 36, xl: 40}">
  47. <!-- 名称 -->
  48. <div nz-col nzXs="24" nzSm="4" nzLg="8">
  49. <nz-form-item class="nz-form-item">
  50. <nz-form-label [nzSpan]="8">姓名</nz-form-label>
  51. <nz-form-control [nzSpan]="16">
  52. <nz-select [(ngModel)]="fbsWorkingStatistics.personnelCode" name="personnelCode" style="width: 100%"
  53. nzShowSearch nzAllowClear nzPlaceHolder="请选择">
  54. <ng-container *ngFor="let proper of properList">
  55. <nz-option [nzLabel]="proper.personnelName" [nzValue]="proper.personnelCode"> </nz-option>
  56. </ng-container>
  57. </nz-select>
  58. </nz-form-control>
  59. </nz-form-item>
  60. </div>
  61. <!-- 生产订单号 -->
  62. <div nz-col nzXs="24" nzSm="4" nzLg="8">
  63. <nz-form-item class="nz-form-item">
  64. <nz-form-label [nzSpan]="8">生产订单号</nz-form-label>
  65. <nz-form-control [nzSpan]="16">
  66. <input [(ngModel)]="fbsWorkingStatistics.orderNumber" name="orderNumber" nz-input
  67. placeholder="请输入" />
  68. </nz-form-control>
  69. </nz-form-item>
  70. </div>
  71. </div>
  72. </form>
  73. <!-- 数据表 -->
  74. <nz-table nzSize="small" class="buttonDistance" [nzData]="dataList" [nzLoading]="isLoading"
  75. [nzFrontPagination]="false" #borderedTable [nzTotal]="page.total" [nzPageIndex]="page.current"
  76. (nzPageIndexChange)="pageIndexChange($event)">
  77. <thead>
  78. <tr>
  79. <th>人员编码</th>
  80. <th>姓名</th>
  81. <th>
  82. 生产订单号</th>
  83. <th>物料编码</th>
  84. <th>物料名称</th>
  85. <th>工艺流程</th>
  86. <th>上岗时间</th>
  87. <th>下岗时间</th>
  88. <th>扫码信息</th>
  89. <th nzAlign="center">工时</th>
  90. <th nzAlign="center">完成数量</th>
  91. <th>操作</th>
  92. </tr>
  93. </thead>
  94. <tbody>
  95. <tr *ngFor="let item of borderedTable.data">
  96. <td>{{item.personnelCode}}</td>
  97. <td>{{item.personnelName}}</td>
  98. <td>{{item.orderNumber}}</td>
  99. <td>{{item.materielCode}}</td>
  100. <td>{{item.materielName}}</td>
  101. <td>{{item.fbsTechnologicalProcessItemName}}</td>
  102. <td>{{item.firstTime}}</td>
  103. <td>{{item.finalTime}}</td>
  104. <td>{{item.finalInfo}}</td>
  105. <td nzAlign="center">{{item.workingHours}}</td>
  106. <td nzAlign="center">{{item.qualifiedNumber}}</td>
  107. <td>
  108. <a (click)="update(item)">修改时间</a>
  109. </td>
  110. </tr>
  111. <tr style="font-weight:bolder">
  112. <td>总计</td>
  113. <td></td>
  114. <td></td>
  115. <td></td>
  116. <td></td>
  117. <td ></td>
  118. <td></td>
  119. <td ></td>
  120. <td></td>
  121. <td nzAlign="center">{{totalList.workingHoursTotal}}</td>
  122. <td nzAlign="center">{{totalList.qualifiedNumberTotal}}</td>
  123. </tr>
  124. </tbody>
  125. </nz-table>
  126. </nz-card>