123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- <div class="list-template">
- <div class="list-template__content">
- <div class="list-template__top" nz-row>
- <div nz-col nzXl='18' class="list-template__searchBox">
- <div class="list-template__searchItem">
- <span class="label width-105">记录时间区间:</span>
- <nz-range-picker nzShowTime [(ngModel)]="dateRange" (ngModelChange)="changeDate($event)"></nz-range-picker>
- </div>
- <div class="list-template__searchItem">
- <span class="label">来电电话</span>:
- <input nz-input class="formItem" [(ngModel)]="incomingCall" placeholder="请输入来电电话" nzSize="default" />
- </div>
- <div class="list-template__searchItem">
- <span class="label">投诉人</span>:
- <input nz-input class="formItem" [(ngModel)]="complainant" placeholder="请输入投诉人" nzSize="default" />
- </div>
- <div class="list-template__searchItem">
- <span class="label">省市区:</span>
- <nz-cascader [nzOptions]="nzOptions" [(ngModel)]="district" (ngModelChange)="onChanges($event)"></nz-cascader>
- </div>
- </div>
- <div nz-col nzXl='6' class="list-template__btns">
- <button nz-button class="btn default" (click)='search()'>搜索</button>
- <button nz-button class="btn ml8 default" (click)='reset()'>重置</button>
- <button nz-button *ngIf="coopBtns.add" class="btn ml8 default" (click)="showModal()">新增</button>
- </div>
- </div>
- <div class="list-template__bottom">
- <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
- [nzLoading]="loading1">
- <thead>
- <tr class="thead">
- <th>单号</th>
- <th>来电电话</th>
- <th>投诉人</th>
- <th>记录人</th>
- <th>记录内容</th>
- <th>记录时间</th>
- <th>联系电话</th>
- <th>省/市/区/详细地址</th>
- <th nzWidth="180px">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr *ngFor="let data of listOfData;let index=index;">
- <td>{{ data.govDutySign||'-' }}</td>
- <td>{{ data.incomingCall||'-' }}</td>
- <td>{{ data.complainant||'-'}}</td>
- <td>{{ data.userDTO && data.userDTO.name ||'-'}}</td>
- <td>{{ data.record||'-' }}</td>
- <td>{{ data.addTime | date:'yyyy-MM-dd HH:mm:ss' }}</td>
- <td>{{ data.contactsPhone || '-'}}</td>
- <td>
- {{ data.province && data.province.name || '-'}}/
- {{ data.city && data.city.name || '-'}}/
- {{ data.district && data.district.name || '-'}}/
- {{ data.detailedAddress || '-'}}
- </td>
- <td>
- <div class="coop">
- <span *ngIf="coopBtns.edit" (click)="edit(data)">编辑</span>
- <span *ngIf="coopBtns.del" (click)="del(data)">删除</span>
- </div>
- </td>
- </tr>
- </tbody>
- </nz-table>
- <div class="list-template__pagination">
- <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" nzShowSizeChanger [(nzPageSize)]="pageSize"
- (nzPageIndexChange)="getList()" (nzPageSizeChange)="getList()">
- </nz-pagination>
- </div>
- </div>
- </div>
- </div>
- <!-- 新增/编辑模态框 -->
- <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="modal">
- <div class="modalBody">
- <div class="title">{{add?"新增":"编辑"}}<i class="icon_transport transport-guanbi" (click)="hideModal()"></i>
- </div>
- <div class="content">
- <form nz-form [formGroup]="validateForm" class="addForm" (ngSubmit)="submitForm()">
- <nz-form-item>
- <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="incomingCall">来电电话</nz-form-label>
- <nz-form-control nzErrorTip="请选择来电电话!">
- <nz-input-group>
- <input nz-input type="number" class="formItem" formControlName="incomingCall" placeholder="请输入来电电话" nzSize="default" />
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label class="margin-label" [nzSm]="6" [nzXs]="24" nzRequired nzFor="sketch">简述</nz-form-label>
- <nz-form-control nzErrorTip="请选择简述!">
- <nz-input-group>
- <textarea formControlName="sketch" nz-input rows="1" placeholder="请输入简述"></textarea>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label class="margin-label" [nzSm]="6" [nzXs]="24" nzRequired nzFor="record">记录内容</nz-form-label>
- <nz-form-control nzErrorTip="请选择记录内容!">
- <nz-input-group>
- <textarea formControlName="record" nz-input rows="3" placeholder="请输入记录内容"></textarea>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="contactsPhone">联系电话</nz-form-label>
- <nz-form-control nzErrorTip="请选择联系电话!">
- <nz-input-group>
- <input nz-input type="number" class="formItem" formControlName="contactsPhone" placeholder="请输入联系电话" nzSize="default" />
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="contacts">联系人</nz-form-label>
- <nz-form-control nzErrorTip="请选择联系人!">
- <nz-input-group>
- <input nz-input class="formItem" formControlName="contacts" placeholder="请输入联系人" nzSize="default" />
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="complainant">投诉人</nz-form-label>
- <nz-form-control nzErrorTip="请选择投诉人!">
- <nz-input-group>
- <input nz-input class="formItem" formControlName="complainant" placeholder="请输入投诉人" nzSize="default" />
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="province">省市区</nz-form-label>
- <nz-form-control nzErrorTip="请选择省市区!">
- <nz-input-group>
- <nz-cascader [nzOptions]="nzOptions" formControlName="province" placeholder="请选择省市区" (ngModelChange)="onProvinceChanges($event)"></nz-cascader>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="detailedAddress">详细地址</nz-form-label>
- <nz-form-control nzErrorTip="请选择详细地址!">
- <nz-input-group>
- <input nz-input class="formItem" formControlName="detailedAddress" placeholder="请输入详细地址" nzSize="default" />
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- </form>
- </div>
- <div class="display_flex justify-content_flex-center">
- <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
- <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
- </div>
- </div>
- </div>
- <!-- 分配任务 -->
- <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="allocationModal">
- <div class="modalBody">
- <div class="title">分配任务<i class="icon_transport transport-guanbi" (click)="hideAllocationModal()"></i>
- </div>
- <div class="content">
- <form nz-form [formGroup]="validateAllocationForm" class="addForm" (ngSubmit)="submitAllocationForm()">
-
- <nz-form-item>
- <nz-form-label class="margin-label" [nzSm]="6" [nzXs]="24" nzRequired nzFor="taskContent">任务内容</nz-form-label>
- <nz-form-control nzErrorTip="请选择任务内容!">
- <nz-input-group>
- <textarea formControlName="taskContent" nz-input rows="3" placeholder="请输入任务内容"></textarea>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="executor">执行人</nz-form-label>
- <nz-form-control nzErrorTip="请选择执行人!">
- <nz-input-group>
- <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
- (nzOnSearch)="changeUser($event)" nzAllowClear nzPlaceHolder="请选择执行人" formControlName="executor">
- <ng-container *ngFor="let option of dutyUser">
- <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
- </ng-container>
- <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
- <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
- </nz-option>
- </nz-select>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
-
- <nz-form-item>
- <nz-form-label [nzSm]="8" [nzXs]="24" nzRequired nzFor="estimatedCompletionTime">预计完成时间</nz-form-label>
- <nz-form-control nzErrorTip="请选择预计完成时间!">
- <nz-input-group>
- <nz-date-picker
- class="width-100"
- nzShowTime
- nzFormat="yyyy-MM-dd HH:mm:ss"
- nzPlaceHolder="请选择预计完成时间"
- formControlName="estimatedCompletionTime"
- (ngModelChange)="onAllocationChange($event)"
- ></nz-date-picker>
- </nz-input-group>
- </nz-form-control>
- </nz-form-item>
- </form>
- </div>
- <div class="display_flex justify-content_flex-center">
- <button nzType="primary" nz-button (click)="submitAllocationForm()" [nzLoading]="btnLoading">确认</button>
- <button class="btn cancel" nz-button nzType="default" (click)="hideAllocationModal()">取消</button>
- </div>
- </div>
- </div>
- <!-- 任务完成 -->
- <div class="save add display_flex align-items_center justify-content_flex-center" *ngIf="accomplishModal">
- <div class="modalBody">
- <div class="title">任务完成<i class="icon_transport transport-guanbi"></i>
- </div>
- <div class="content padding-bottom">
- <span class="label"><span class="sign">*</span> 月度任务总结:</span>
- <textarea [(ngModel)]="taskConclusion" nz-input rows="3" placeholder="请输入任务内容"></textarea>
- </div>
- <div class="display_flex justify-content_flex-center">
- <button nzType="primary" nz-button (click)="submitAccomplishForm()" [nzLoading]="btnLoading">确认</button>
- <button class="btn cancel" nz-button nzType="default" (click)="hideAccomplishModal()">取消</button>
- </div>
- </div>
- </div>
- <!-- 删除模态框 -->
- <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
- (confirmDelEvent)="confirmDel()" (cancelDelEvent)="cancelDel()" content="您确认要删除吗?" confirmTxt="是" cancelTxt="否">
- </app-dialog-delete>
- <!-- 操作成功/失败提示框 -->
- <app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
- [info]="promptInfo"></app-prompt-modal>
- <!-- 查看详情 -->
- <router-outlet (deactivate)="getList()"></router-outlet>
|