implementation.component.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <!-- 商务 -->
  2. <form nz-form>
  3. <div nz-row [nzGutter]="24">
  4. <div nz-col [nzSpan]="6">
  5. <nz-form-item>
  6. <!-- 客户编码 -->
  7. <nz-form-label [nzSpan]="8">{{ 'customer.code' | translate }}</nz-form-label>
  8. <nz-form-control [nzSm]="16" [nzXs]="24">{{ projectManageArchives.cusCode }}</nz-form-control>
  9. </nz-form-item>
  10. </div>
  11. <div nz-col [nzSpan]="6">
  12. <nz-form-item>
  13. <!-- 客户名称 -->
  14. <nz-form-label [nzSpan]="8">
  15. {{ 'customer.name' | translate }}
  16. </nz-form-label>
  17. <nz-form-control [nzSm]="16" [nzXs]="24">
  18. {{ projectManageArchives.cusName }}
  19. </nz-form-control>
  20. </nz-form-item>
  21. </div>
  22. <div nz-col [nzSpan]="6">
  23. <nz-form-item>
  24. <!-- 实施项目经理 -->
  25. <nz-form-label [nzSpan]="8"> {{ 'implementation' | translate }}{{ 'pm.PM' | translate }} </nz-form-label>
  26. <nz-form-control [nzSm]="16" [nzXs]="24">
  27. {{ projectManageArchives.impManager }}
  28. </nz-form-control>
  29. </nz-form-item>
  30. </div>
  31. <div nz-col [nzSpan]="6">
  32. <nz-form-item>
  33. <!--实施顾问 -->
  34. <nz-form-label [nzSpan]="8"> {{ 'implementation' | translate }}{{ 'consultant' | translate }} </nz-form-label>
  35. <nz-form-control [nzSm]="16" [nzXs]="24">
  36. {{ projectManageArchives.impConsultant }}
  37. </nz-form-control>
  38. </nz-form-item>
  39. </div>
  40. </div>
  41. </form>
  42. <!-- 回款信息 -->
  43. <nz-card nzTitle="{{ 'receivable' | translate }}{{ 'info' | translate }}" nzSize="small">
  44. <nz-table nzBordered nzSize="small" [nzNoResult]="' '" [nzShowPagination]="false">
  45. <tbody>
  46. <tr>
  47. <!-- 实施金额 -->
  48. <td>
  49. <strong>{{ 'implementation' | translate }}{{ 'their.fees.money' | translate }}</strong>
  50. </td>
  51. <!-- 第一笔 -->
  52. <td>{{ 'the.first' | translate }}</td>
  53. <td>{{ remittanceInformation.price1 }}</td>
  54. <td>{{ 'the.second' | translate }}</td>
  55. <td>{{ remittanceInformation.price2 }}</td>
  56. <td>{{ 'the.third' | translate }}</td>
  57. <td>{{ remittanceInformation.price3 }}</td>
  58. <td>{{ 'the.fourth' | translate }}</td>
  59. <td>{{ remittanceInformation.price4 }}</td>
  60. <td>{{ 'the.fifth' | translate }}</td>
  61. <td>{{ remittanceInformation.price5 }}</td>
  62. </tr>
  63. <tr>
  64. <!--实际回款 -->
  65. <td>
  66. <strong>{{ 'actual' | translate }}{{ 'receivable' | translate }}</strong>
  67. </td>
  68. <td>{{ remittanceInformation.milestone1 }}</td>
  69. <td>{{ remittanceInformation.desc1 }}</td>
  70. <td>{{ remittanceInformation.milestone2 }}</td>
  71. <td>{{ remittanceInformation.desc2 }}</td>
  72. <td>{{ remittanceInformation.milestone3 }}</td>
  73. <td>{{ remittanceInformation.desc3 }}</td>
  74. <td>{{ remittanceInformation.milestone4 }}</td>
  75. <td>{{ remittanceInformation.desc4 }}</td>
  76. <td>{{ remittanceInformation.milestone5 }}</td>
  77. <td>{{ remittanceInformation.desc5 }}</td>
  78. </tr>
  79. </tbody>
  80. </nz-table>
  81. </nz-card>
  82. <!-- 实施计划 -->
  83. <nz-card nzTitle="{{ 'implementation' | translate }}{{ 'the.plan' | translate }}" nzSize="small">
  84. <div nz-row [nzGutter]="24">
  85. <div nz-col [nzSpan]="24">
  86. <!-- 新增按钮 -->
  87. <button (click)="addParent()" nz-button nzType="primary">
  88. {{ 'button.add' | translate }}
  89. </button>
  90. </div>
  91. </div>
  92. <div nz-row [nzGutter]="24">
  93. <div nz-col [nzSpan]="24">
  94. <nz-table
  95. style="padding-top: 5px;"
  96. nzSize="small"
  97. class="tableTdPadding"
  98. #expandTable
  99. [nzData]="listOfMapData"
  100. nzTableLayout="fixed"
  101. [nzShowPagination]="false"
  102. [nzFrontPagination]="false"
  103. >
  104. <thead>
  105. <tr>
  106. <th style="width: 8%;"></th>
  107. <!-- 编码 -->
  108. <th style="width: 5%;">{{ 'table.thead.code' | translate }}</th>
  109. <!-- 里程碑 -->
  110. <th style="width: 12%;">{{ 'financial.management.milestoneName' | translate }}</th>
  111. <!-- 开始时间 -->
  112. <th style="width: 10%;">{{ 'contract.start.date' | translate }}</th>
  113. <!-- 结束时间 -->
  114. <th style="width: 10%;">{{ 'contract.end.date' | translate }}</th>
  115. <!--计划人天 -->
  116. <th style="width: 10%;">{{ 'the.plan' | translate }}{{ 'person.date' | translate }}</th>
  117. <!-- 执行人 -->
  118. <th style="width: 20%;">{{ 'executor' | translate }}</th>
  119. <!-- 实际人天 -->
  120. <th style="width: 10%;">{{ 'actual' | translate }}{{ 'person.date' | translate }}</th>
  121. <!--操作 -->
  122. <th style="width: 10%;">{{ 'table.operation' | translate }}</th>
  123. </tr>
  124. </thead>
  125. <tbody>
  126. <ng-container *ngFor="let data of expandTable.data">
  127. <ng-container *ngFor="let item of mapOfExpandedData[data.key]">
  128. <tr *ngIf="(item.parent && item.parent.expand) || !item.parent">
  129. <td
  130. [nzIndentSize]="item.level! * 20"
  131. [nzShowExpand]="!!item.children"
  132. [(nzExpand)]="item.expand"
  133. (nzExpandChange)="collapse(mapOfExpandedData[data.key], item, $event)"
  134. >
  135. *
  136. <!-- <input style="width: 50%;" nz-input [(ngModel)]="item.code" /> -->
  137. </td>
  138. <td><input nz-input [(ngModel)]="item.code" maxlength="6" /></td>
  139. <td>
  140. <ng-container *ngIf="item.id">
  141. {{ item.name }}
  142. </ng-container>
  143. <ng-container *ngIf="!item.id">
  144. <input nz-input [(ngModel)]="item.name" maxlength="20" />
  145. </ng-container>
  146. </td>
  147. <td>
  148. <nz-date-picker
  149. [(ngModel)]="item.startDate"
  150. (ngModelChange)="startChange(item, $event)"
  151. ></nz-date-picker>
  152. </td>
  153. <td>
  154. <nz-date-picker
  155. [(ngModel)]="item.endDate"
  156. (ngModelChange)="startChange(item, $event)"
  157. ></nz-date-picker>
  158. </td>
  159. <td>
  160. <nz-input-number
  161. [(ngModel)]="item.planTime"
  162. [nzMin]="0"
  163. [nzStep]="1"
  164. (nzBlur)="planTimeKeyup(item)"
  165. [nzMax]="1000"
  166. ></nz-input-number>
  167. </td>
  168. <td>
  169. <!-- <nz-select style="width: 100%;" [nzMaxTagCount]="3" nzMode="multiple" nzPlaceHolder="请选择"
  170. [(ngModel)]="item.executor">
  171. <nz-option *ngFor="let item of personnelList" [nzLabel]="item.id" [nzValue]="item.name"></nz-option>
  172. </nz-select> -->
  173. <nz-tree-select
  174. style="width: 100%"
  175. [nzNodes]="personnelList"
  176. nzShowSearch
  177. [nzMultiple]="true"
  178. nzPlaceHolder="{{ 'select.please.choose' | translate }}"
  179. [(ngModel)]="item.executors"
  180. [nzMaxTagCount]="3"
  181. [nzAllowClear]="true"
  182. [nzDefaultExpandedKeys]="expandKeys"
  183. >
  184. </nz-tree-select>
  185. </td>
  186. <td>
  187. <nz-input-number
  188. [(ngModel)]="item.realTime"
  189. [nzMin]="0"
  190. [nzStep]="1"
  191. [nzMax]="1000"
  192. ></nz-input-number>
  193. </td>
  194. <td>
  195. <a (click)="addChild(item.key)">{{ 'button.leve.lower' | translate }}</a>
  196. <nz-divider nzType="vertical"></nz-divider>
  197. <a
  198. nz-popconfirm
  199. nzTitle="{{ 'isdelete' | translate }}"
  200. nzOkText="{{ 'yes' | translate }}"
  201. nzCancelText="{{ 'no' | translate }}"
  202. (nzOnConfirm)="deleteRow(mapOfExpandedData[data.key], item, item.key)"
  203. >{{ 'milestone.delete' | translate }}</a
  204. >
  205. </td>
  206. </tr>
  207. </ng-container>
  208. </ng-container>
  209. </tbody>
  210. </nz-table>
  211. </div>
  212. </div>
  213. </nz-card>