government-duty.component.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <div class="list-template">
  2. <div class="list-template__content">
  3. <div class="list-template__top" nz-row>
  4. <div nz-col nzXl='18' class="list-template__searchBox">
  5. <div class="list-template__searchItem">
  6. <span class="label width-105">记录时间区间:</span>
  7. <nz-range-picker nzShowTime [(ngModel)]="dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
  8. </div>
  9. <div class="list-template__searchItem">
  10. <span class="label">来电电话</span>:
  11. <input nz-input class="formItem" [(ngModel)]="incomingCall" placeholder="请输入来电电话" nzSize="default" />
  12. </div>
  13. <div class="list-template__searchItem">
  14. <span class="label">投诉人</span>:
  15. <input nz-input class="formItem" [(ngModel)]="complainant" placeholder="请输入投诉人" nzSize="default" />
  16. </div>
  17. <div class="list-template__searchItem">
  18. <span class="label">省市区:</span>
  19. <nz-cascader [nzOptions]="nzOptions" [(ngModel)]="district" (ngModelChange)="onChanges($event)"></nz-cascader>
  20. </div>
  21. </div>
  22. <div nz-col nzXl='6' class="list-template__btns">
  23. <button nz-button class="btn default" (click)='search()'>搜索</button>
  24. <button nz-button class="btn ml8 default" (click)='reset()'>重置</button>
  25. <button nz-button *ngIf="coopBtns.add" class="btn ml8 default" (click)="showModal()">新增</button>
  26. </div>
  27. </div>
  28. <div class="list-template__bottom">
  29. <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
  30. [nzLoading]="loading1">
  31. <thead>
  32. <tr class="thead">
  33. <th>单号</th>
  34. <th>来电电话</th>
  35. <th>投诉人</th>
  36. <th>记录人</th>
  37. <th>记录内容</th>
  38. <th>记录时间</th>
  39. <th>联系电话</th>
  40. <th>省/市/区/详细地址</th>
  41. <th nzWidth="180px">操作</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <tr *ngFor="let data of listOfData;let index=index;">
  46. <td>{{ data.govDutySign||'-' }}</td>
  47. <td>{{ data.incomingCall||'-' }}</td>
  48. <td>{{ data.complainant||'-'}}</td>
  49. <td>{{ data.userDTO && data.userDTO.name ||'-'}}</td>
  50. <td>{{ data.record||'-' }}</td>
  51. <td>{{ data.addTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
  52. <td>{{ data.contactsPhone || '-'}}</td>
  53. <td>
  54. {{ data.province && data.province.name || '-'}}/
  55. {{ data.city && data.city.name || '-'}}/
  56. {{ data.district && data.district.name || '-'}}/
  57. {{ data.detailedAddress || '-'}}
  58. </td>
  59. <td>
  60. <div class="coop">
  61. <span *ngIf="coopBtns.edit" (click)="edit(data)">编辑</span>
  62. <span *ngIf="coopBtns.del" (click)="del(data)">删除</span>
  63. </div>
  64. </td>
  65. </tr>
  66. </tbody>
  67. </nz-table>
  68. <div class="list-template__pagination">
  69. <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
  70. (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
  71. </nz-pagination>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <!-- 新增/编辑模态框 -->
  77. <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
  78. <div class="modalBody">
  79. <div class="title">{{add?"新增":"编辑"}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
  80. </div>
  81. <div class="content">
  82. <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
  83. <nz-form-item>
  84. <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="incomingCall">来电电话</nz-form-label>
  85. <nz-form-control nzErrorTip="请选择来电电话!">
  86. <nz-input-group>
  87. <input nz-input type="number" class="formItem" formControlName="incomingCall" placeholder="请输入来电电话" nzSize="default" />
  88. </nz-input-group>
  89. </nz-form-control>
  90. </nz-form-item>
  91. <nz-form-item>
  92. <nz-form-label class="margin-label" [nzSm]="6" [nzXs]="24" nzRequired nzFor="sketch">简述</nz-form-label>
  93. <nz-form-control nzErrorTip="请选择简述!">
  94. <nz-input-group>
  95. <textarea formControlName="sketch" nz-input rows="1" placeholder="请输入简述"></textarea>
  96. </nz-input-group>
  97. </nz-form-control>
  98. </nz-form-item>
  99. <nz-form-item>
  100. <nz-form-label class="margin-label" [nzSm]="6" [nzXs]="24" nzRequired nzFor="record">记录内容</nz-form-label>
  101. <nz-form-control nzErrorTip="请选择记录内容!">
  102. <nz-input-group>
  103. <textarea formControlName="record" nz-input rows="3" placeholder="请输入记录内容"></textarea>
  104. </nz-input-group>
  105. </nz-form-control>
  106. </nz-form-item>
  107. <nz-form-item>
  108. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="contactsPhone">联系电话</nz-form-label>
  109. <nz-form-control nzErrorTip="请选择联系电话!">
  110. <nz-input-group>
  111. <input nz-input type="number" class="formItem" formControlName="contactsPhone" placeholder="请输入联系电话" nzSize="default" />
  112. </nz-input-group>
  113. </nz-form-control>
  114. </nz-form-item>
  115. <nz-form-item>
  116. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="contacts">联系人</nz-form-label>
  117. <nz-form-control nzErrorTip="请选择联系人!">
  118. <nz-input-group>
  119. <input nz-input class="formItem" formControlName="contacts" placeholder="请输入联系人" nzSize="default" />
  120. </nz-input-group>
  121. </nz-form-control>
  122. </nz-form-item>
  123. <nz-form-item>
  124. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="complainant">投诉人</nz-form-label>
  125. <nz-form-control nzErrorTip="请选择投诉人!">
  126. <nz-input-group>
  127. <input nz-input class="formItem" formControlName="complainant" placeholder="请输入投诉人" nzSize="default" />
  128. </nz-input-group>
  129. </nz-form-control>
  130. </nz-form-item>
  131. <nz-form-item>
  132. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="province">省市区</nz-form-label>
  133. <nz-form-control nzErrorTip="请选择省市区!">
  134. <nz-input-group>
  135. <nz-cascader [nzOptions]="nzOptions" formControlName="province" placeholder="请选择省市区" (ngModelChange)="onProvinceChanges($event)"></nz-cascader>
  136. </nz-input-group>
  137. </nz-form-control>
  138. </nz-form-item>
  139. <nz-form-item>
  140. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="detailedAddress">详细地址</nz-form-label>
  141. <nz-form-control nzErrorTip="请选择详细地址!">
  142. <nz-input-group>
  143. <input nz-input class="formItem" formControlName="detailedAddress" placeholder="请输入详细地址" nzSize="default" />
  144. </nz-input-group>
  145. </nz-form-control>
  146. </nz-form-item>
  147. </form>
  148. </div>
  149. <div class="display_flex justify-content_flex-center">
  150. <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
  151. <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
  152. </div>
  153. </div>
  154. </div>
  155. <!-- 分配任务 -->
  156. <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="allocationModal">
  157. <div class="modalBody">
  158. <div class="title">分配任务<i class="icon_transport transport-guanbi" (click)="hideAllocationModal()"></i>
  159. </div>
  160. <div class="content">
  161. <form nz-form [formGroup]="validateAllocationForm" class="addForm" (ngSubmit)="submitAllocationForm()">
  162. <nz-form-item>
  163. <nz-form-label class="margin-label" [nzSm]="6" [nzXs]="24" nzRequired nzFor="taskContent">任务内容</nz-form-label>
  164. <nz-form-control nzErrorTip="请选择任务内容!">
  165. <nz-input-group>
  166. <textarea formControlName="taskContent" nz-input rows="3" placeholder="请输入任务内容"></textarea>
  167. </nz-input-group>
  168. </nz-form-control>
  169. </nz-form-item>
  170. <nz-form-item>
  171. <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="executor">执行人</nz-form-label>
  172. <nz-form-control nzErrorTip="请选择执行人!">
  173. <nz-input-group>
  174. <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
  175. (nzOnSearch)="changeUser($event)" nzAllowClear nzPlaceHolder="请选择执行人" formControlName="executor">
  176. <ng-container *ngFor="let option of dutyUser">
  177. <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
  178. </ng-container>
  179. <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
  180. <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
  181. </nz-option>
  182. </nz-select>
  183. </nz-input-group>
  184. </nz-form-control>
  185. </nz-form-item>
  186. <nz-form-item>
  187. <nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="estimatedCompletionTime">预计完成时间</nz-form-label>
  188. <nz-form-control nzErrorTip="请选择预计完成时间!">
  189. <nz-input-group>
  190. <nz-date-picker
  191. class="width-100"
  192. nzShowTime
  193. nzFormat="yyyy-MM-dd HH:mm:ss"
  194. nzPlaceHolder="请选择预计完成时间"
  195. formControlName="estimatedCompletionTime"
  196. (ngModelChange)="onAllocationChange($event)"
  197. ></nz-date-picker>
  198. </nz-input-group>
  199. </nz-form-control>
  200. </nz-form-item>
  201. </form>
  202. </div>
  203. <div class="display_flex justify-content_flex-center">
  204. <button nzType="primary" nz-button (click)="submitAllocationForm()" [nzLoading]="btnLoading">确认</button>
  205. <button class="btn cancel" nz-button nzType="default" (click)="hideAllocationModal()">取消</button>
  206. </div>
  207. </div>
  208. </div>
  209. <!-- 任务完成 -->
  210. <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="accomplishModal">
  211. <div class="modalBody">
  212. <div class="title">任务完成<i class="icon_transport transport-guanbi"></i>
  213. </div>
  214. <div class="content padding-bottom">
  215. <span class="label"><span class="sign">*</span> 月度任务总结:</span>
  216. <textarea [(ngModel)]="taskConclusion" nz-input rows="3" placeholder="请输入任务内容"></textarea>
  217. </div>
  218. <div class="display_flex justify-content_flex-center">
  219. <button nzType="primary" nz-button (click)="submitAccomplishForm()" [nzLoading]="btnLoading">确认</button>
  220. <button class="btn cancel" nz-button nzType="default" (click)="hideAccomplishModal()">取消</button>
  221. </div>
  222. </div>
  223. </div>
  224. <!-- 删除模态框 -->
  225. <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
  226. (confirmDelEvent)="confirmDel()" (cancelDelEvent)="cancelDel()" content="您确认要删除吗?" confirmTxt="是" cancelTxt="否">
  227. </app-dialog-delete>
  228. <!-- 操作成功/失败提示框 -->
  229. <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
  230. [info]="promptInfo"></app-prompt-modal>
  231. <!-- 查看详情 -->
  232. <router-outlet (deactivate)="getList()"></router-outlet>