浏览代码

事件编辑

seimin 5 月之前
父节点
当前提交
03a3bf0dfe

+ 70 - 0
src/app/components/incidentManagement/incident-create/incident-create.component copy.html

@@ -0,0 +1,70 @@
1
+<!--
2
+ * @Author: seimin
3
+ * @Date: 2024-10-24 13:47:40
4
+ * @LastEditors: seimin
5
+ * @LastEditTime: 2024-10-24 13:58:19
6
+ * @Description: 创建
7
+-->
8
+<div class="save display_flex justify-content_flex-center align-items_center add">
9
+  <div class="modalBody">
10
+    <div class="title">回访<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
11
+    <div class="content">
12
+      <overlay-scrollbars #osComponentRef1 class="workingArea">
13
+        <div class="tabs">
14
+          <div class="tab" *ngFor="let item of tabs" (click)="clickTbab(item)" [ngClass]="{ active: activeTabValue === item.value }">{{ item.name }}</div>
15
+        </div>
16
+        <div class="detail">
17
+          <ng-container *ngIf="activeTabValue === 1">
18
+            <!-- <app-incident-handle-repair [incidentData]="incidentData"></app-incident-handle-repair> -->
19
+          </ng-container>
20
+          <ng-container *ngIf="activeTabValue === 2">
21
+            <!-- <app-incident-handle-handle [incidentData]="incidentData"></app-incident-handle-handle> -->
22
+          </ng-container>
23
+        </div>
24
+      </overlay-scrollbars>
25
+      <form nz-form [formGroup]="validateForm" class="addForm">
26
+        <nz-form-item>
27
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="degree">满意度评价</nz-form-label>
28
+          <nz-form-control [nzSpan]="18" nzErrorTip="请选择满意度评价!">
29
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="degree" nzPlaceHolder="请选择满意度评价" nzServerSearch>
30
+              <ng-container *ngFor="let data of deferralDayList">
31
+                <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
32
+              </ng-container>
33
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
34
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
35
+              </nz-option>
36
+            </nz-select>
37
+          </nz-form-control>
38
+        </nz-form-item>
39
+        <nz-form-item>
40
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="handleResult">回访处理结果</nz-form-label>
41
+          <nz-form-control [nzSpan]="18" nzErrorTip="请选择回访处理结果!">
42
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="handleResult" nzPlaceHolder="请选择回访处理结果" nzServerSearch>
43
+              <ng-container *ngFor="let data of repairTypeList">
44
+                <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
45
+              </ng-container>
46
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
47
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
48
+              </nz-option>
49
+            </nz-select>
50
+          </nz-form-control>
51
+        </nz-form-item>
52
+        <nz-form-item>
53
+          <nz-form-label [nzSpan]="6" nzFor="visitRemarks" style="text-indent: 11px;">回访备注</nz-form-label>
54
+          <nz-form-control [nzSpan]="18" nzErrorTip="请输入回访备注!">
55
+            <nz-input-group>
56
+              <textarea formControlName="visitRemarks" nz-input rows="3" placeholder="请输入回访备注"></textarea>
57
+            </nz-input-group>
58
+          </nz-form-control>
59
+        </nz-form-item>
60
+      </form>
61
+    </div>
62
+    <div class="display_flex justify-content_flex-center">
63
+      <button nz-button nzType="primary" (click)="submitForm()"[nzLoading]="isLoading">确认</button>
64
+      <button nz-button nzType="default" class="btn cancel" (click)="hideModal()">取消</button>
65
+    </div>
66
+  </div>
67
+</div>
68
+
69
+<!-- 遮罩 -->
70
+<app-mask *ngIf="maskFlag"></app-mask>

文件差异内容过多而无法显示
+ 1116 - 0
src/app/components/incidentManagement/incident-create/incident-create.component.html


文件差异内容过多而无法显示
+ 2619 - 0
src/app/components/incidentManagement/incident-create/incident-create.component.less


文件差异内容过多而无法显示
+ 1392 - 0
src/app/components/incidentManagement/incident-create/incident-create.component.ts


+ 22 - 0
src/app/components/incidentManagement/incident-create/incident-create.module.ts

@@ -0,0 +1,22 @@
1
+import { NgModule } from '@angular/core';
2
+import { CommonModule } from '@angular/common';
3
+
4
+import { IncidentCreateComponent } from './incident-create.component';
5
+import { ShareModule } from 'src/app/share/share.module';
6
+import { KnowledgeLookModule } from '../../knowledge-look/knowledge-look.module';
7
+
8
+
9
+@NgModule({
10
+  declarations: [
11
+    IncidentCreateComponent,
12
+  ],
13
+  imports: [
14
+    CommonModule,
15
+    ShareModule,
16
+    KnowledgeLookModule,
17
+  ],
18
+  exports: [
19
+    IncidentCreateComponent,
20
+  ]
21
+})
22
+export class IncidentCreateModule { }

+ 1 - 1
src/app/views/fuwutai/fuwutai.component.html

@@ -2213,7 +2213,7 @@
2213 2213
                   <div class="left_cots" style="width: 96%;height: auto;">
2214 2214
                     <!-- 工单 -->
2215 2215
                     <div class="gongdan" style="font-size: 16px;">
2216
-                      <span class="left noEllipsis">{{data.title}}</span>
2216
+                      <span class="left ellipsis-oneline w100" nz-tooltip [nzTooltipTitle]="data.title">{{data.title}}</span>
2217 2217
                     </div>
2218 2218
                     <!-- 描述 -->
2219 2219
                     <div class="didian" style="font-size: 12px;height: auto;">

+ 4 - 0
src/app/views/incident-management/incident-management.component.html

@@ -98,6 +98,7 @@
98 98
             <td>
99 99
               <div class="coop">
100 100
                 <span *ngIf="coopBtns.look" (click)="detail($event,data)">查看</span>
101
+                <span *ngIf="data.computedEditFlag" (click)="edit($event,data)">编辑</span>
101 102
                 <span *ngIf="data.computedVisitFlag" (click)="visit($event,data)">回访</span>
102 103
                 <span *ngIf="data.computedReceiveFlag" (click)="showDelModal($event, data,'您确认要接单吗?','接单','receive')">接单</span>
103 104
                 <span *ngIf="data.computedHandleFlag" (click)="handle($event,data)">处理</span>
@@ -194,3 +195,6 @@
194 195
 
195 196
 <!-- 详情 -->
196 197
 <app-incident-detail [id]="coopData.id" *ngIf="detailModalShow" (closeModelHs)="closeDetailModelOrder($event)" (confirmModelHs)="confirmDetailModelOrder($event)"></app-incident-detail>
198
+
199
+<!-- 编辑/新增 -->
200
+<app-incident-create [id]="coopData.id" *ngIf="editModalShow" (closeModelHs)="closeEditModelOrder($event)" (confirmModelHs)="confirmEditModelOrder($event)"></app-incident-create>

+ 24 - 0
src/app/views/incident-management/incident-management.component.ts

@@ -269,6 +269,11 @@ export class IncidentManagementComponent implements OnInit {
269 269
     return this.coopBtns.visit && data.state.value == 'close' && data.deleteFlag !== 1;
270 270
   }
271 271
 
272
+  // 是否显示编辑按钮
273
+  computedEdit(data){
274
+    return (data.state.value === 'pending' || data.state.value === 'reassign' || data.state.value === 'handler' || data.state.value === 'close') && this.coopBtns.edit && data.deleteFlag !== 1;
275
+  }
276
+
272 277
   // 表格数据
273 278
   loading1 = false;
274 279
   getList(isInit = false) {
@@ -320,6 +325,7 @@ export class IncidentManagementComponent implements OnInit {
320 325
         let list = result.list || [];
321 326
         list.forEach((item) => {
322 327
           item.endDeptsName = item.endDepts ? item.endDepts.map(v => v.dept).toString() : '';
328
+          item.computedEditFlag = this.computedEdit(item);
323 329
           item.computedVisitFlag = this.computedVisit(item);
324 330
           item.computedReceiveFlag = this.computedReceive(item);
325 331
           item.computedHandleFlag = this.computedHandle(item);
@@ -445,6 +451,24 @@ export class IncidentManagementComponent implements OnInit {
445 451
     this.getList(true);
446 452
   }
447 453
 
454
+  // 编辑-弹窗
455
+  editModalShow = false; //弹窗开关
456
+  edit(e, data) {
457
+    e.stopPropagation();
458
+    this.coopData = data;
459
+    this.editModalShow = true;
460
+  }
461
+  // 关闭弹窗
462
+  closeEditModelOrder(e) {
463
+    this.editModalShow = JSON.parse(e).show;
464
+  }
465
+  // 弹窗确定
466
+  confirmEditModelOrder(e){
467
+    console.log(e);
468
+    this.editModalShow = false;
469
+    this.getList(true);
470
+  }
471
+
448 472
   // 回访-弹窗
449 473
   visitModalShow = false; //弹窗开关
450 474
   visit(e, data) {

+ 2 - 0
src/app/views/incident-management/incident-management.module.ts

@@ -10,6 +10,7 @@ import { IncidentSetdutyModule } from 'src/app/components/incidentManagement/inc
10 10
 import { IncidentPostponeModule } from 'src/app/components/incidentManagement/incident-postpone/incident-postpone.module';
11 11
 import { IncidentVisitModule } from 'src/app/components/incidentManagement/incident-visit/incident-visit.module';
12 12
 import { IncidentDetailModule } from 'src/app/components/incidentManagement/incident-detail/incident-detail.module';
13
+import { IncidentCreateModule } from 'src/app/components/incidentManagement/incident-create/incident-create.module';
13 14
 
14 15
 
15 16
 @NgModule({
@@ -26,6 +27,7 @@ import { IncidentDetailModule } from 'src/app/components/incidentManagement/inci
26 27
     IncidentPostponeModule,
27 28
     IncidentVisitModule,
28 29
     IncidentDetailModule,
30
+    IncidentCreateModule,
29 31
   ]
30 32
 })
31 33
 export class IncidentManagementModule { }