浏览代码

故障现象开发

seimin 8 月之前
父节点
当前提交
b3ffbe1097
共有 25 个文件被更改,包括 2980 次插入11 次删除
  1. 8 0
      src/app/app-routing.module.ts
  2. 22 0
      src/app/guard/ConfigurationCenter.guard.ts
  3. 7 1
      src/app/services/main.service.ts
  4. 18 0
      src/app/views/configuration-center/configuration-center-routing.module.ts
  5. 371 0
      src/app/views/configuration-center/configuration-center.component.html
  6. 385 0
      src/app/views/configuration-center/configuration-center.component.less
  7. 1045 0
      src/app/views/configuration-center/configuration-center.component.ts
  8. 19 0
      src/app/views/configuration-center/configuration-center.module.ts
  9. 3 3
      src/app/views/fuwutai/fuwutai.component.less
  10. 5 0
      src/app/views/main/main-routing.module.ts
  11. 1 0
      src/app/views/main/main.component.html
  12. 9 0
      src/app/views/main/main.component.ts
  13. 14 0
      src/app/views/tripartite-company/tripartite-company-routing.module.ts
  14. 177 0
      src/app/views/tripartite-company/tripartite-company.component.html
  15. 176 0
      src/app/views/tripartite-company/tripartite-company.component.less
  16. 521 0
      src/app/views/tripartite-company/tripartite-company.component.ts
  17. 19 0
      src/app/views/tripartite-company/tripartite-company.module.ts
  18. 118 3
      src/assets/iconfont/demo_index.html
  19. 23 3
      src/assets/iconfont/iconfont.css
  20. 1 1
      src/assets/iconfont/iconfont.js
  21. 35 0
      src/assets/iconfont/iconfont.json
  22. 二进制
      src/assets/iconfont/iconfont.ttf
  23. 二进制
      src/assets/iconfont/iconfont.woff
  24. 二进制
      src/assets/iconfont/iconfont.woff2
  25. 3 0
      src/common.less

+ 8 - 0
src/app/app-routing.module.ts

@@ -13,6 +13,8 @@ import { PharmacyGuard } from './guard/pharmacy.guard';
13 13
 import { SpecimenView2Guard } from './guard/SpecimenView2Guard.guard';
14 14
 // 全局业务查看权限
15 15
 import { DisinfectionSupplyGuard } from './guard/DisinfectionSupplyGuard.guard';
16
+// 配置中心查看权限
17
+import { ConfigurationCenterGuard } from './guard/ConfigurationCenter.guard';
16 18
 
17 19
 const routes: Routes = [
18 20
   // 默认
@@ -73,6 +75,12 @@ const routes: Routes = [
73 75
     loadChildren: () => import('./views/disinfection-supply/disinfection-supply.module').then(m => m.DisinfectionSupplyModule),
74 76
     canActivate: [DisinfectionSupplyGuard]
75 77
   },
78
+  // 配置中心查看
79
+  {
80
+    path: 'configurationCenter',
81
+    loadChildren: () => import('./views/configuration-center/configuration-center.module').then(m => m.ConfigurationCenterModule),
82
+    canActivate: [ConfigurationCenterGuard]
83
+  },
76 84
   // 问卷预览
77 85
   {
78 86
     path: "preview",

+ 22 - 0
src/app/guard/ConfigurationCenter.guard.ts

@@ -0,0 +1,22 @@
1
+import { Injectable } from '@angular/core';
2
+import { CanActivate, Router } from '@angular/router';
3
+
4
+@Injectable({
5
+  providedIn: 'root'
6
+})
7
+export class ConfigurationCenterGuard implements CanActivate  {
8
+  constructor(public router: Router) { }
9
+
10
+  canActivate(): boolean {
11
+    const menus = JSON.parse(localStorage.getItem('menu'));
12
+    let can = false;
13
+    if (menus) {
14
+      can = menus.some(e => e.link == 'configurationCenter');
15
+    }
16
+    if (!can) {
17
+      this.router.navigate(['login']);
18
+      return false
19
+    }
20
+    return true;
21
+  }
22
+}

+ 7 - 1
src/app/services/main.service.ts

@@ -833,5 +833,11 @@ export class MainService {
833 833
 	    headers: this.headers,
834 834
 	  });
835 835
 	}
836
-	
836
+  // 配置中心
837
+	incidentPost(type, data): any {
838
+	  return this.http.post(host.host + "/incident/" + type, data, {
839
+	    headers: this.headers,
840
+	  });
841
+	}
842
+
837 843
 }

+ 18 - 0
src/app/views/configuration-center/configuration-center-routing.module.ts

@@ -0,0 +1,18 @@
1
+import { NgModule } from '@angular/core';
2
+import { Routes, RouterModule } from '@angular/router';
3
+import { ConfigurationCenterComponent } from './configuration-center.component';
4
+
5
+
6
+const routes: Routes = [
7
+  {
8
+    path: '',
9
+    component: ConfigurationCenterComponent,
10
+  }
11
+];
12
+
13
+@NgModule({
14
+  imports: [RouterModule.forChild(routes)],
15
+  exports: [RouterModule]
16
+})
17
+export class ConfigurationCenterRoutingModule { }
18
+

+ 371 - 0
src/app/views/configuration-center/configuration-center.component.html

@@ -0,0 +1,371 @@
1
+<div class="configurationCenter">
2
+  <div class="tagsAndTemplete">
3
+    <div class="tags">
4
+      <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;事件配置</div>
5
+      <div class="tagList">
6
+        <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagId === tag.id }" (click)="clickTag(tag)">{{ tag.name }}</span>
7
+      </div>
8
+      <button nz-button class="btn default" (click)="goBack()">返回</button>
9
+    </div>
10
+  </div>
11
+  <!-- 故障现象 -->
12
+  <ng-container *ngIf="activeTagId === 1">
13
+    <div class="hospitalConfig">
14
+      <nz-radio-group [(ngModel)]="hospitalConfig" (ngModelChange)="changeHospitalConfig($event)">
15
+        <label nz-radio [nzValue]="item.id" *ngFor="let item of hospitalConfigList">{{ item.name }}</label>
16
+      </nz-radio-group>
17
+    </div>
18
+
19
+    <div class="content">
20
+      <div class="contentInner">
21
+        <div class="address">
22
+          <div class="contentHead">一级故障现象<button nz-button nzType="primary" nzSize="small" (click)="addCategoryModal(1)">新增</button></div>
23
+          <overlay-scrollbars #osComponentRef1 class="contentBody">
24
+            <nz-spin nzSimple [nzSpinning]="categoryLoading1" class="mt8 text_align_center"></nz-spin>
25
+            <div [hidden]="categoryLoading1" class="contentItem" [ngClass]="{ active: item.id === activeCategory1.id }" (click)="clickCategory(item, 1)" *ngFor="let item of categoryList1">{{ item.category }}</div>
26
+          </overlay-scrollbars>
27
+        </div>
28
+        <div class="address">
29
+          <div class="contentHead">二级故障现象<button nz-button nzType="primary" nzSize="small" *ngIf="activeCategory1.id" (click)="addCategoryModal(2)">新增</button></div>
30
+          <overlay-scrollbars #osComponentRef2 class="contentBody">
31
+            <nz-spin nzSimple [nzSpinning]="categoryLoading2" class="mt8 text_align_center"></nz-spin>
32
+            <div [hidden]="categoryLoading2" class="contentItem" [ngClass]="{ active: item.id === activeCategory2.id }" (click)="clickCategory(item, 2)" *ngFor="let item of categoryList2">{{ item.category }}</div>
33
+          </overlay-scrollbars>
34
+        </div>
35
+        <div class="address">
36
+          <div class="contentHead">三级故障现象<button nz-button nzType="primary" nzSize="small" *ngIf="activeCategory2.id" (click)="addCategoryModal(3)">新增</button></div>
37
+          <overlay-scrollbars #osComponentRef3 class="contentBody">
38
+            <nz-spin nzSimple [nzSpinning]="categoryLoading3" class="mt8 text_align_center"></nz-spin>
39
+            <div [hidden]="categoryLoading3" class="contentItem" [ngClass]="{ active: item.id === activeCategory3.id }" (click)="clickCategory(item, 3)" *ngFor="let item of categoryList3">{{ item.category }}</div>
40
+          </overlay-scrollbars>
41
+        </div>
42
+        <div class="addressAssign">
43
+          <div class="contentHead">
44
+            <div class="title" title="{{activeCategory1.category}}{{activeCategory2.category ? ' - ' + activeCategory2.category : ''}}{{activeCategory3.category ? ' - ' + activeCategory3.category : ''}}">{{activeCategory1.category}}{{activeCategory2.category ? ' - ' + activeCategory2.category : ''}}{{activeCategory3.category ? ' - ' + activeCategory3.category : ''}}</div>
45
+            <div class="btns" *ngIf="activeCategory1.id || activeCategory2.id || activeCategory3.id">
46
+              <button nz-button nzType="primary" nzSize="small" (click)="showDelModal(data, hospitalConfig === 1 ? '您确认向下复制您的配置信息吗?' : '您确认向下复制您的配置吗?将会移除各科室的配置,使用当前配置进行覆盖。','向下复制','copy')" *ngIf="currentChildrenCategoryList">向下复制</button>
47
+              <button nz-button nzType="primary" nzSize="small" class="ml8" *ngIf="hospitalConfig === 2" (click)="addConfigModal()">新增</button>
48
+            </div>
49
+          </div>
50
+          <div class="contentBody" id="categoryTable">
51
+            <div class="list-template">
52
+              <div class="list-template__content">
53
+                <div class="list-template__bottom">
54
+                  <nz-table class="list-template__nzTable" [nzData]="categoryConfigList" nzSize="middle" [nzShowPagination]="false"
55
+                    [nzLoading]="loading1" [nzScroll]="{ y: tableCategoryHeight + 'px' }">
56
+                    <thead>
57
+                      <tr class="thead">
58
+                        <th nzWidth="16%">院区</th>
59
+                        <th nzWidth="16%">责任部门</th>
60
+                        <th nzWidth="16%">优先级</th>
61
+                        <th nzWidth="16%">积分</th>
62
+                        <th nzWidth="16%">维修人|组</th>
63
+                        <th nzWidth="20%">操作</th>
64
+                      </tr>
65
+                    </thead>
66
+                    <tbody>
67
+                      <tr *ngFor="let data of categoryConfigList;let i = index">
68
+                        <td>{{data.hospitalDTO?.hosName}}</td>
69
+                        <td>{{data.dutyDTO?.hosName}}</td>
70
+                        <td>{{data.priorityDTO?.name}}</td>
71
+                        <td>{{data.score?.value}}</td>
72
+                        <td>{{data.userGroup === 1 ? data.userDTO?.name : (data.userGroup === 2 ? data.groupDTO?.groupName : '')}}</td>
73
+                        <td>
74
+                          <div class="coop">
75
+                            <span (click)="showDelModal(data,'您确认要删除吗?','删除','delConfig')">删除</span>
76
+                            <span (click)="editConfig(data)">编辑</span>
77
+                          </div>
78
+                        </td>
79
+                      </tr>
80
+                    </tbody>
81
+                  </nz-table>
82
+                </div>
83
+              </div>
84
+            </div>
85
+          </div>
86
+        </div>
87
+      </div>
88
+    </div>
89
+  </ng-container>
90
+  <!-- 优先级 -->
91
+  <ng-container *ngIf="activeTagId === 2">
92
+    <div class="content priority">
93
+      <div class="contentInner">
94
+        <div class="list-template" id="priorityTable">
95
+          <div class="list-template__content">
96
+            <div class="list-template__bottom">
97
+              <div class="list-template__top" nz-row>
98
+                <div nz-col nzLg="24" class="list-template__btns">
99
+                  <button nz-button class="btn default" (click)="addPriorityModal()">新增</button>
100
+                </div>
101
+              </div>
102
+              <nz-table class="list-template__nzTable" [nzData]="priorityList" nzSize="middle" [nzShowPagination]="false"
103
+                [nzLoading]="loading1" [nzScroll]="{ y: tablePriorityHeight + 'px' }">
104
+                <thead>
105
+                  <tr class="thead">
106
+                    <th nzWidth="20%">优先级名称</th>
107
+                    <th nzWidth="20%">排序</th>
108
+                    <th nzWidth="20%">响应时间(分钟)</th>
109
+                    <th nzWidth="20%">解决时间(分钟)</th>
110
+                    <th nzWidth="20%">操作</th>
111
+                  </tr>
112
+                </thead>
113
+                <tbody>
114
+                  <tr *ngFor="let data of priorityList;let i = index">
115
+                    <td>{{data.name}}</td>
116
+                    <td>{{data.orders}}</td>
117
+                    <td>{{data.responseTime}}</td>
118
+                    <td>{{data.handleTime}}</td>
119
+                    <td>
120
+                      <div class="coop">
121
+                        <span (click)="showDelModal(data,'您确认要删除吗?','删除','delPriority')">删除</span>
122
+                        <span (click)="editPriority(data)">编辑</span>
123
+                      </div>
124
+                    </td>
125
+                  </tr>
126
+                </tbody>
127
+              </nz-table>
128
+            </div>
129
+          </div>
130
+        </div>
131
+      </div>
132
+    </div>
133
+  </ng-container>
134
+  <!-- 数据字典 -->
135
+  <ng-container *ngIf="activeTagId === 3">
136
+    <div class="content" id="dictionary">
137
+      <div class="contentInner">
138
+        <div class="address">
139
+          <overlay-scrollbars #osComponentRef5 class="contentBody">
140
+            <div class="contentItem" [ngClass]="{ active: item.id === activeDictionaryKey.id }" (click)="clickDictionaryKey(item)" *ngFor="let item of dictionaryKeyList">{{ item.name }}</div>
141
+          </overlay-scrollbars>
142
+        </div>
143
+        <div class="addressAssign">
144
+          <div class="contentBody">
145
+            <div class="dictionaryRow">
146
+              <div class="name">键</div>
147
+              <div class="value">值</div>
148
+            </div>
149
+            <form nz-form [formGroup]="validateDictionaryForm" class="w100">
150
+              <div class="dictionaryRow" *ngFor="let data of dictionaryList;let i = index;">
151
+                <div class="name">
152
+                  <nz-form-item>
153
+                    <nz-form-control [nzSpan]="24" nzErrorTip="请输入键!">
154
+                      <nz-input-group>
155
+                        <input [formControlName]="'name_' + data.id" nz-input class="nameInput">
156
+                      </nz-input-group>
157
+                    </nz-form-control>
158
+                  </nz-form-item>
159
+                </div>
160
+                <div class="value">
161
+                  <nz-form-item>
162
+                    <nz-form-control [nzSpan]="24" nzErrorTip="请输入值!">
163
+                      <nz-input-group>
164
+                        <nz-input-number [formControlName]="'value_' + data.id" class="valueInput"></nz-input-number>
165
+                      </nz-input-group>
166
+                    </nz-form-control>
167
+                  </nz-form-item>
168
+                  <i class="icon_transport transport-tag27fuben ml8" (click)="addField(i)"></i>
169
+                  <i class="icon_transport transport-shanchu1 ml8" *ngIf="dictionaryList.length > 1" (click)="removeField(data, i)"></i>
170
+                </div>
171
+              </div>
172
+            </form>
173
+          </div>
174
+          <div class="contentBtns">
175
+            <button nz-button nzType="primary" class="ml8" (click)="saveDictionary()">保存</button>
176
+          </div>
177
+        </div>
178
+      </div>
179
+    </div>
180
+  </ng-container>
181
+</div>
182
+
183
+<!-- 操作成功/失败提示框 -->
184
+<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
185
+  [info]="promptInfo">
186
+</app-prompt-modal>
187
+
188
+<!-- 删除模态框 -->
189
+<app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
190
+(confirmDelEvent)="confirmDel()" [content]="tipsMsg1"></app-dialog-delete>
191
+
192
+<!-- 新增/编辑优先级模态框 -->
193
+<div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="modalPriority">
194
+  <div class="modalBody">
195
+    <div class="title">{{modelName}}优先级<i class="icon_transport transport-guanbi" (click)="hidePriorityModal()"></i></div>
196
+    <div class="content">
197
+      <form nz-form [formGroup]="validatePriorityForm" class="addForm">
198
+        <nz-form-item>
199
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="name">优先级名称</nz-form-label>
200
+          <nz-form-control [nzSpan]="18" nzErrorTip="请输入优先级名称!">
201
+            <nz-input-group>
202
+              <input formControlName="name" nz-input placeholder="请输入优先级名称">
203
+            </nz-input-group>
204
+          </nz-form-control>
205
+        </nz-form-item>
206
+        <nz-form-item>
207
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="orders">排&nbsp;&nbsp;&nbsp;序&nbsp;&nbsp;&nbsp;号</nz-form-label>
208
+          <nz-form-control [nzSpan]="18" nzErrorTip="请输入排序号!">
209
+            <nz-input-group>
210
+              <nz-input-number class="w100" formControlName="orders" nzPlaceHolder="请输入排序号" [nzMin]="0" [nzStep]="1" [nzPrecision]="0"></nz-input-number>
211
+            </nz-input-group>
212
+          </nz-form-control>
213
+        </nz-form-item>
214
+        <nz-form-item>
215
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="responseTime">响&nbsp;应&nbsp;时&nbsp;间</nz-form-label>
216
+          <nz-form-control [nzSpan]="18" nzErrorTip="请输入响应时间(分钟)!">
217
+            <nz-input-group>
218
+              <nz-input-number class="w100" formControlName="responseTime" nzPlaceHolder="请输入响应时间(分钟)" [nzMin]="0" [nzStep]="1" [nzPrecision]="0" [nzFormatter]="formatterMinute" [nzParser]="parserMinute"></nz-input-number>
219
+            </nz-input-group>
220
+          </nz-form-control>
221
+        </nz-form-item>
222
+        <nz-form-item>
223
+          <nz-form-label [nzSpan]="6" nzRequired nzFor="handleTime">解&nbsp;决&nbsp;时&nbsp;间</nz-form-label>
224
+          <nz-form-control [nzSpan]="18" nzErrorTip="请输入解决时间(分钟)!">
225
+            <nz-input-group>
226
+              <nz-input-number class="w100" formControlName="handleTime" nzPlaceHolder="请输入解决时间(分钟)" [nzMin]="0" [nzStep]="1" [nzPrecision]="0" [nzFormatter]="formatterMinute" [nzParser]="parserMinute"></nz-input-number>
227
+            </nz-input-group>
228
+          </nz-form-control>
229
+        </nz-form-item>
230
+      </form>
231
+    </div>
232
+    <div class=" display_flex justify-content_flex-center">
233
+      <button nzType="primary" nz-button (click)="submitPriorityForm()" [nzLoading]="btnLoading">确认</button>
234
+      <button class="btn cancel" nz-button nzType="default" (click)="hidePriorityModal()">取消</button>
235
+    </div>
236
+  </div>
237
+</div>
238
+
239
+<!-- 新增/编辑故障现象模态框 -->
240
+<div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="modalCategory">
241
+  <div class="modalBody">
242
+    <div class="title">{{modelName}}<i class="icon_transport transport-guanbi" (click)="hideCategoryModal()"></i></div>
243
+    <div class="content">
244
+      <div class="tips" *ngIf="coopType === 1">您将添加一级故障现象,请输入故障现象</div>
245
+      <div class="tips" *ngIf="coopType === 2">您将在“<span class="red">{{activeCategory1.category}}</span>”下新增故障现象,请输入故障现象</div>
246
+      <div class="tips" *ngIf="coopType === 3">您将在“<span class="red">{{activeCategory1.category}}{{activeCategory2.category ? ' - ' + activeCategory2.category : ''}}</span>”下新增故障现象,请输入故障现象</div>
247
+      <form nz-form [formGroup]="validateCategoryForm" class="addForm">
248
+        <nz-form-item>
249
+          <nz-form-control [nzSpan]="24" nzErrorTip="请输入故障现象名称!">
250
+            <nz-input-group>
251
+              <textarea formControlName="name" nz-input placeholder="请输入故障现象名称" [nzAutosize]="{minRows: 3}"></textarea>
252
+            </nz-input-group>
253
+          </nz-form-control>
254
+        </nz-form-item>
255
+      </form>
256
+    </div>
257
+    <div class=" display_flex justify-content_flex-center">
258
+      <button nzType="primary" nz-button (click)="submitCategoryForm()" [nzLoading]="btnLoading">确认</button>
259
+      <button class="btn cancel" nz-button nzType="default" (click)="hideCategoryModal()">取消</button>
260
+    </div>
261
+  </div>
262
+</div>
263
+
264
+<!-- 新增/编辑关联模态框 -->
265
+<div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="modalConfig">
266
+  <div class="modalBody">
267
+    <div class="title">{{modelName}}<i class="icon_transport transport-guanbi" (click)="hideConfigModal()"></i></div>
268
+    <div class="content">
269
+      <form nz-form [formGroup]="validateConfigForm" class="addForm">
270
+        <nz-form-item>
271
+          <nz-form-label [nzSpan]="5" nzRequired nzFor="hosId">院区</nz-form-label>
272
+          <nz-form-control [nzSpan]="19" nzErrorTip="请选择院区!">
273
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="hosId" nzShowSearch
274
+              nzPlaceHolder="请选择院区" nzServerSearch (ngModelChange)="changeHospital($event)" [nzDisabled]="!add">
275
+              <ng-container *ngFor="let data of hospitalList">
276
+                <nz-option *ngIf="!isLoading" [nzLabel]="data.hosName" [nzValue]="data.id"></nz-option>
277
+              </ng-container>
278
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
279
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
280
+              </nz-option>
281
+            </nz-select>
282
+          </nz-form-control>
283
+        </nz-form-item>
284
+        <nz-form-item>
285
+          <nz-form-label [nzSpan]="5" nzRequired nzFor="dutyId">责任部门</nz-form-label>
286
+          <nz-form-control [nzSpan]="19" nzErrorTip="请选择责任部门!">
287
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="dutyId" nzShowSearch
288
+              nzPlaceHolder="请选择责任部门" nzServerSearch (ngModelChange)="changeDuty($event)" [nzDisabled]="!add">
289
+              <ng-container *ngFor="let data of dutyList">
290
+                <nz-option *ngIf="!isLoading" [nzLabel]="data.hosName" [nzValue]="data.id"></nz-option>
291
+              </ng-container>
292
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
293
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
294
+              </nz-option>
295
+            </nz-select>
296
+          </nz-form-control>
297
+        </nz-form-item>
298
+        <nz-form-item>
299
+          <nz-form-label [nzSpan]="5" nzRequired nzFor="priority">优先级</nz-form-label>
300
+          <nz-form-control [nzSpan]="19" nzErrorTip="请选择优先级!">
301
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="priority" nzShowSearch
302
+            nzPlaceHolder="请选择优先级" nzServerSearch>
303
+              <ng-container *ngFor="let option of priority_c_List">
304
+                <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
305
+              </ng-container>
306
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
307
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
308
+              </nz-option>
309
+            </nz-select>
310
+          </nz-form-control>
311
+        </nz-form-item>
312
+        <nz-form-item>
313
+          <nz-form-label [nzSpan]="5" nzRequired nzFor="score">积分</nz-form-label>
314
+          <nz-form-control [nzSpan]="19" nzErrorTip="请选择积分!">
315
+            <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="score" nzShowSearch
316
+              nzPlaceHolder="请选择积分" nzServerSearch>
317
+              <ng-container *ngFor="let data of scoreList">
318
+                <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
319
+              </ng-container>
320
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
321
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
322
+              </nz-option>
323
+            </nz-select>
324
+          </nz-form-control>
325
+        </nz-form-item>
326
+        <nz-form-item>
327
+          <nz-form-label [nzSpan]="5" nzRequired nzFor="userGroup">分配方式</nz-form-label>
328
+          <nz-form-control [nzSpan]="19" nzErrorTip="请选择积分!">
329
+            <nz-radio-group formControlName="userGroup" (ngModelChange)="changeUserGroup($event)">
330
+              <label nz-radio [nzValue]="1">人</label>
331
+              <label nz-radio [nzValue]="2">组</label>
332
+            </nz-radio-group>
333
+          </nz-form-control>
334
+        </nz-form-item>
335
+        <nz-form-item *ngIf="validateConfigForm.value.userGroup === 1">
336
+          <nz-form-label [nzSpan]="5" nzRequired nzFor="userId">维修人</nz-form-label>
337
+          <nz-form-control [nzSpan]="19" nzErrorTip="请选择维修人!">
338
+            <nz-select (nzOnSearch)="changeInp('add', 'user', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="userId" nzPlaceHolder="请选择维修人">
339
+              <ng-container *ngFor="let option of userList">
340
+                <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
341
+              </ng-container>
342
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
343
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
344
+              </nz-option>
345
+            </nz-select>
346
+          </nz-form-control>
347
+        </nz-form-item>
348
+        <nz-form-item *ngIf="validateConfigForm.value.userGroup === 2">
349
+          <nz-form-label [nzSpan]="5" nzRequired nzFor="groupId">维修组</nz-form-label>
350
+          <nz-form-control [nzSpan]="19" nzErrorTip="请选择维修组!">
351
+            <nz-select (nzOnSearch)="changeInp('add', 'group', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="groupId" nzPlaceHolder="请选择维修组">
352
+              <ng-container *ngFor="let option of groupList">
353
+                <nz-option *ngIf="!isLoading" [nzLabel]="option.groupName" [nzValue]="option.id"></nz-option>
354
+              </ng-container>
355
+              <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
356
+                <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
357
+              </nz-option>
358
+            </nz-select>
359
+          </nz-form-control>
360
+        </nz-form-item>
361
+      </form>
362
+    </div>
363
+    <div class=" display_flex justify-content_flex-center">
364
+      <button nzType="primary" nz-button (click)="submitConfigForm()" [nzLoading]="btnLoading">确认</button>
365
+      <button class="btn cancel" nz-button nzType="default" (click)="hideConfigModal()">取消</button>
366
+    </div>
367
+  </div>
368
+</div>
369
+
370
+<!-- 遮罩 -->
371
+<app-mask *ngIf="maskFlag"></app-mask>

+ 385 - 0
src/app/views/configuration-center/configuration-center.component.less

@@ -0,0 +1,385 @@
1
+@import "../../../../src/theme.less";
2
+:host {
3
+  width: 100%;
4
+  .list-template__nzTable,
5
+  .list-template__bottom{
6
+    padding: 0!important;
7
+    border: none!important;
8
+    background: #fff!important;
9
+  }
10
+  .list-template{
11
+    width: 100%!important;
12
+    height: 100%!important;
13
+  }
14
+  #dictionary{
15
+    margin: 24px 16px;
16
+    .addressAssign{
17
+      flex: 7;
18
+    }
19
+    .contentItem{
20
+      margin: 0 16px;
21
+      padding: 8px;
22
+      text-align: center;
23
+      &.active{
24
+        background-color: @primary-color;
25
+        color: #fff;
26
+        border-radius: 4px;
27
+      }
28
+    }
29
+    .contentBody{
30
+      padding: 16px;
31
+    }
32
+    ::ng-deep .ant-form-item{
33
+      margin-bottom: 0;
34
+    }
35
+    .dictionaryRow{
36
+      display: flex;
37
+      align-items: center;
38
+      justify-content: center;
39
+      gap: 16px;
40
+      .name{
41
+        flex: 1;
42
+        display: flex;
43
+        justify-content: flex-end;
44
+        align-items: center;
45
+        .nameInput{
46
+          width: 100px;
47
+        }
48
+      }
49
+      .value{
50
+        flex: 3;
51
+        display: flex;
52
+        align-items: center;
53
+        .valueInput{
54
+          width: 600px;
55
+        }
56
+        .icon_transport{
57
+          font-size: 20px;
58
+          color: #8a8a8a;
59
+          cursor: pointer;
60
+        }
61
+      }
62
+    }
63
+  }
64
+  .configurationCenter{
65
+    padding-bottom: 24px;
66
+    height: 100%;
67
+    display: flex;
68
+    flex-direction: column;
69
+    justify-content: space-between;
70
+    background-color: #F0F2F5;
71
+    .tagsAndTemplete{
72
+      height: 64px;
73
+      display: flex;
74
+      justify-content: space-between;
75
+      align-items: center;
76
+      .tags{
77
+        height: 100%;
78
+        background: #fff;
79
+        flex: 1;
80
+        padding: 16px 24px;
81
+        display: flex;
82
+        align-items: center;
83
+        justify-content: space-between;
84
+        position: relative;
85
+        .transport-peizhizhongxin{
86
+          color: @primary-color;
87
+          font-size: 20px;
88
+          margin-right: 8px;;
89
+        }
90
+        .tagList{
91
+          width: 100%;
92
+          position: absolute;
93
+          left: 0;
94
+          top: 50%;
95
+          transform: translateY(-50%);
96
+          display: flex;
97
+          justify-content: center;
98
+          align-items: center;
99
+          gap: 48px;
100
+          span{
101
+            cursor: pointer;
102
+            &.active{
103
+              color: @primary-color;
104
+            }
105
+          }
106
+        }
107
+      }
108
+    }
109
+    .hospitalConfig{
110
+      height: 60px;
111
+      display: flex;
112
+      justify-content: center;
113
+      align-items: center;
114
+      gap: 72px;
115
+    }
116
+    .content{
117
+      flex: 1;
118
+      min-height: 0;
119
+      display: flex;
120
+      flex-direction: column;
121
+      justify-content: space-between;
122
+      border: 1px solid #EEF3F9;
123
+      &.priority{
124
+        margin: 24px 118px 0;
125
+        background-color: #fff;
126
+        .contentInner{
127
+          padding: 48px 206px;
128
+          border: 1px solid #E8EBEF;
129
+        }
130
+      }
131
+      .contentItem{
132
+        padding: 4px 16px;
133
+        cursor: pointer;
134
+        &.active{
135
+          color: @primary-color;
136
+          background-color: #F0F6ED;
137
+          border-radius: 4px;
138
+        }
139
+      }
140
+      .contentInner{
141
+        flex: 1;
142
+        display: flex;
143
+        justify-content: space-between;
144
+        align-items: center;
145
+        padding: 0 16px;
146
+        gap: 16px;
147
+        .contentHead{
148
+          height: 45px;
149
+          display: flex;
150
+          justify-content: space-between;
151
+          align-items: center;
152
+          gap: 16px;
153
+          padding: 0 16px;
154
+          font-size: 16px;
155
+          font-weight: bold;
156
+          border-bottom: 1px solid #D9D9D9;
157
+          .title{
158
+            overflow: hidden;
159
+            text-overflow: ellipsis;
160
+            white-space: nowrap;
161
+          }
162
+          .btns{
163
+            flex-shrink: 0;
164
+          }
165
+        }
166
+        .contentBody{
167
+          padding: 0 8px;
168
+          margin: 4px 0;
169
+          flex: 1;
170
+        }
171
+        .address{
172
+          flex: 1;
173
+          height: 100%;
174
+          background: #FFFFFF;
175
+          border: 1px solid #E8EBEF;
176
+          display: flex;
177
+          flex-direction: column;
178
+          width: 0;
179
+        }
180
+        .addressAssign{
181
+          flex: 3;
182
+          height: 100%;
183
+          background: #FFFFFF;
184
+          border: 1px solid #E8EBEF;
185
+          display: flex;
186
+          flex-direction: column;
187
+          width: 0;
188
+        }
189
+        .list-template__searchItem {
190
+          margin-bottom: 16px;
191
+          .label {
192
+            color: #333;
193
+            display: inline-block;
194
+            width: 70px;
195
+            text-align-last: justify;
196
+            text-align: justify;
197
+            &.label--big {
198
+              width: 100px;
199
+            }
200
+          }
201
+          .formItem {
202
+            width: 135px;
203
+          }
204
+        }
205
+      }
206
+      .contentBtns{
207
+        margin-bottom: 16px;
208
+        display: flex;
209
+        justify-content: center;
210
+        align-items: center;
211
+      }
212
+    }
213
+  }
214
+
215
+  .save {
216
+    position: fixed;
217
+    left: 0;
218
+    top: 0;
219
+    width: 100%;
220
+    height: 100%;
221
+    background: rgba(0, 0, 0, 0.4);
222
+    z-index: 99;
223
+
224
+    .tips{
225
+      margin-bottom: 16px!important;
226
+    }
227
+
228
+    .modalBody {
229
+      width: 350px;
230
+      background: #fff;
231
+      border-radius: 5px;
232
+      padding: 10px 20px;
233
+      color: #333;
234
+
235
+      .title {
236
+        width: 100%;
237
+        text-align: center;
238
+        font-size: 18px;
239
+        position: relative;
240
+
241
+        i {
242
+          position: absolute;
243
+          right: 0;
244
+          top: 0;
245
+          font-size: 20px;
246
+          color: #666;
247
+          cursor: pointer;
248
+          padding: 0 5px;
249
+        }
250
+      }
251
+
252
+      .content {
253
+        width: 310px;
254
+        background: #f9fafb;
255
+        border: 1px solid #e5e9ed;
256
+        border-radius: 5px;
257
+        overflow: hidden;
258
+        margin-top: 12px;
259
+        padding: 16px 0;
260
+
261
+        .busyList{
262
+          display: flex;
263
+          margin-bottom: 8px;
264
+          .busyContent{
265
+            margin-right: 8px;
266
+            flex: 1;
267
+          }
268
+        }
269
+
270
+        & > div {
271
+          text-align: center;
272
+          margin: 0;
273
+
274
+          &.icon {
275
+            // margin-top: 17px;
276
+
277
+            i {
278
+              color: #34b349;
279
+              font-size: 30px !important;
280
+
281
+              &.transport-wenhao {
282
+                color: #f5a523;
283
+              }
284
+
285
+              &.transport-shibai {
286
+                color: #ff3a52;
287
+              }
288
+            }
289
+          }
290
+
291
+          &.defeat {
292
+            color: #333;
293
+            font-size: 14px;
294
+          }
295
+
296
+          &:nth-child(3) {
297
+            font-size: 14px;
298
+            color: #666;
299
+          }
300
+        }
301
+        .workAssignmentTips {
302
+          font-size: 12px;
303
+        }
304
+      }
305
+
306
+      button {
307
+        margin-top: 10px;
308
+
309
+        &.btn {
310
+          margin-left: 8px;
311
+        }
312
+      }
313
+    }
314
+
315
+    // 新增
316
+    &.add {
317
+      .modalBody {
318
+        width: 480px;
319
+        height: auto;
320
+
321
+        .content {
322
+          width: 100%;
323
+          height: auto;
324
+          padding: 16px;
325
+          max-height: 497px;
326
+          overflow-y: auto;
327
+
328
+          .addForm {
329
+            .ant-form-item {
330
+              margin-bottom: 0;
331
+
332
+              .ant-form-item-label {
333
+                text-align: left;
334
+              }
335
+
336
+              .desc {
337
+                margin-top: 5px;
338
+              }
339
+            }
340
+
341
+            .datesControl {
342
+              margin-top: -16px;
343
+
344
+              .ant-form-item-label {
345
+                line-height: 40px;
346
+              }
347
+            }
348
+
349
+            .timer {
350
+              .ant-form-item-label {
351
+                width: 100%;
352
+                text-align: left;
353
+              }
354
+
355
+              .numInp {
356
+                margin-right: 5px;
357
+              }
358
+
359
+              .line {
360
+                margin-right: 5px;
361
+              }
362
+            }
363
+
364
+            .timer2 {
365
+              .ant-form-item-label {
366
+                line-height: 20px;
367
+              }
368
+            }
369
+          }
370
+
371
+          .editForm {
372
+            .ant-form-item {
373
+              margin-bottom: 15px;
374
+
375
+              .ant-form-item-label {
376
+                line-height: 14px;
377
+                text-align: left;
378
+              }
379
+            }
380
+          }
381
+        }
382
+      }
383
+    }
384
+  }
385
+}

文件差异内容过多而无法显示
+ 1045 - 0
src/app/views/configuration-center/configuration-center.component.ts


+ 19 - 0
src/app/views/configuration-center/configuration-center.module.ts

@@ -0,0 +1,19 @@
1
+import { NgModule } from '@angular/core';
2
+import { CommonModule } from '@angular/common';
3
+
4
+import { ConfigurationCenterRoutingModule } from './configuration-center-routing.module';
5
+import { ConfigurationCenterComponent } from './configuration-center.component';
6
+import { ShareModule } from 'src/app/share/share.module';
7
+
8
+
9
+@NgModule({
10
+  declarations: [
11
+    ConfigurationCenterComponent
12
+  ],
13
+  imports: [
14
+    CommonModule,
15
+    ConfigurationCenterRoutingModule,
16
+    ShareModule
17
+  ]
18
+})
19
+export class ConfigurationCenterModule { }

+ 3 - 3
src/app/views/fuwutai/fuwutai.component.less

@@ -6,9 +6,9 @@
6 6
   padding: 16px;
7 7
   display: flex;
8 8
   flex-direction: column;
9
-}
10
-::ng-deep .ant-form-item-label {
11
-  line-height: 24px !important;
9
+  ::ng-deep .ant-form-item-label {
10
+    line-height: 24px !important;
11
+  }
12 12
 }
13 13
 
14 14
 .fuwutai {

+ 5 - 0
src/app/views/main/main-routing.module.ts

@@ -563,6 +563,11 @@ const routes: Routes = [
563 563
         path: "inspectionExecute",
564 564
         loadChildren: () => import("../inspection-execute/inspection-execute.module").then((m) => m.InspectionExecuteModule),
565 565
       },
566
+      // 三方公司
567
+      {
568
+        path: "tripartiteCompany",
569
+        loadChildren: () => import("../tripartite-company/tripartite-company.module").then((m) => m.TripartiteCompanyModule),
570
+      },
566 571
     ],
567 572
   },
568 573
 ];

+ 1 - 0
src/app/views/main/main.component.html

@@ -42,6 +42,7 @@
42 42
           <button nz-button nzType="primary" *ngIf="specimenViewRole" (click)="toBigScreen('specimenView')" [nzLoading]="deptTypeLoading">业务视图</button>
43 43
           <button nz-button nzType="primary" *ngIf="specimenViewRole2" (click)="toSpecimenView2()">标本视图</button>
44 44
           <button nz-button nzType="primary" *ngIf="disinfectionSupplyRole" (click)="toDisinfectionSupply()">全局业务查看</button>
45
+          <button nz-button nzType="primary" *ngIf="configurationCenterRole" (click)="toConfigurationCenter()">配置中心</button>
45 46
         </div>
46 47
         <div class="right">
47 48
           <button class="mr8" nz-button nzType="primary" *ngIf='PCCommutesToWork && userInfo.user && !userInfo.user.online' (click)="GoWork()">我要上班</button>

+ 9 - 0
src/app/views/main/main.component.ts

@@ -30,6 +30,7 @@ export class MainComponent implements OnInit {
30 30
   specimenViewRole: boolean = false; //业务视图权限
31 31
   specimenViewRole2: boolean = false; //标本视图权限
32 32
   disinfectionSupplyRole: boolean = false; //全局业务查看权限
33
+  configurationCenterRole: boolean = false; //配置中心权限
33 34
   PCCommutesToWork: boolean = false; //PC上下班权限
34 35
   @ViewChild("osComponentRef1", {
35 36
     read: OverlayScrollbarsComponent,
@@ -288,6 +289,10 @@ export class MainComponent implements OnInit {
288 289
         this.disinfectionSupplyRole = true;
289 290
         console.log("全局业务查看权限");
290 291
       }
292
+      if (e.link == "configurationCenter") {
293
+        this.configurationCenterRole = true;
294
+        console.log("配置中心权限");
295
+      }
291 296
       if (e.link == "PCCommutesToWork") {
292 297
         this.PCCommutesToWork = true;
293 298
         console.log("PC上下班");
@@ -403,6 +408,10 @@ export class MainComponent implements OnInit {
403 408
   toDisinfectionSupply(): void {
404 409
     this.router.navigateByUrl("disinfectionSupply");
405 410
   }
411
+  // 配置中心
412
+  toConfigurationCenter(): void {
413
+    this.router.navigateByUrl("configurationCenter");
414
+  }
406 415
   // 大屏端或视图端
407 416
   screenType;
408 417
   hosFlag = false;

+ 14 - 0
src/app/views/tripartite-company/tripartite-company-routing.module.ts

@@ -0,0 +1,14 @@
1
+import { NgModule } from '@angular/core';
2
+import { Routes, RouterModule } from '@angular/router';
3
+import { TripartiteCompanyComponent } from './tripartite-company.component';
4
+
5
+
6
+const routes: Routes = [
7
+  { path: '', component: TripartiteCompanyComponent }
8
+];
9
+
10
+@NgModule({
11
+  imports: [RouterModule.forChild(routes)],
12
+  exports: [RouterModule]
13
+})
14
+export class TripartiteCompanyRoutingModule { }

+ 177 - 0
src/app/views/tripartite-company/tripartite-company.component.html

@@ -0,0 +1,177 @@
1
+<div class="list-template">
2
+  <div class="list-template__content">
3
+    <div class="list-template__top" nz-row>
4
+      <div nz-col nzXl='16' class="list-template__searchBox">
5
+        <div class="list-template__searchItem">
6
+          <span class="label">科室</span>:
7
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
8
+            (nzOnSearch)="changeInp('search', 'department', $event)" nzAllowClear nzPlaceHolder="请选择科室" [(ngModel)]="searchDto.deptId">
9
+            <ng-container *ngFor="let option of departmentSearchList">
10
+              <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
11
+            </ng-container>
12
+            <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
13
+              <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
14
+            </nz-option>
15
+          </nz-select>
16
+        </div>
17
+        <div class="list-template__searchItem">
18
+          <span class="label">楼栋</span>:
19
+          <nz-select class="formItem" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
20
+            (nzOnSearch)="changeInp('search', 'building', $event)" nzAllowClear nzPlaceHolder="请选择楼栋" [(ngModel)]="searchDto.buildId">
21
+            <ng-container *ngFor="let option of buildingSearchList">
22
+              <nz-option *ngIf="!isLoading" [nzLabel]="option.buildingName" [nzValue]="option.id"></nz-option>
23
+            </ng-container>
24
+            <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
25
+              <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
26
+            </nz-option>
27
+          </nz-select>
28
+        </div>
29
+        <div class="list-template__searchItem">
30
+          <span class="label">名称</span>:
31
+          <input nz-input class="formItem" placeholder="请输入名称" [(ngModel)]="searchDto.name" />
32
+        </div>
33
+      </div>
34
+      <div nz-col nzLg="8" class="list-template__btns">
35
+        <button nz-button class="btn default ml8" (click)='search()'>搜索</button>
36
+        <button nz-button class="btn default ml8" (click)='reset()'>重置</button>
37
+        <button nz-button *ngIf="coopBtns.add" class="btn default ml8" (click)="addModal()">新增</button>
38
+      </div>
39
+    </div>
40
+    <div class="list-template__bottom">
41
+      <nz-table class="list-template__nzTable" [nzData]="listOfData" nzSize="middle" [nzShowPagination]="false"
42
+        [nzLoading]="loading1">
43
+        <thead>
44
+          <tr class="thead">
45
+            <th nzWidth="14%">公司编号</th>
46
+            <th nzWidth="14%">公司全称</th>
47
+            <th nzWidth="14%">公司简称</th>
48
+            <th nzWidth="14%">公司分类</th>
49
+            <th nzWidth="14%">联系人</th>
50
+            <th nzWidth="14%">联系电话</th>
51
+            <th nzWidth="11%">操作</th>
52
+          </tr>
53
+        </thead>
54
+        <tbody>
55
+          <tr *ngFor="let data of listOfData;let i = index">
56
+            <td>{{data.name}}</td>
57
+            <td>{{data.departmentDTO?.dept}}</td>
58
+            <td>{{data.buildingDTO?.buildingName}}</td>
59
+            <td>{{data.floorDTO?.floorName}}</td>
60
+            <td>{{data.tagIdsList|dataToName:'name':' '}}</td>
61
+            <td>{{data.signType?.name}}</td>
62
+            <td>
63
+              <div class="coop">
64
+                <span *ngIf="coopBtns.edit" (click)="edit($event, data)">编辑</span>
65
+                <span *ngIf="coopBtns.del" (click)="showDelModal($event, data,'删除后您配置的相关巡检计划,下次执行时不在生成巡检任务,您确认要删除吗?','删除','del')">删除</span>
66
+              </div>
67
+            </td>
68
+          </tr>
69
+        </tbody>
70
+      </nz-table>
71
+      <div class="list-template__pagination">
72
+        <nz-pagination [(nzPageIndex)]="pageIndex" [(nzTotal)]="listLength" [(nzPageSize)]="pageSize" nzShowSizeChanger
73
+          (nzPageIndexChange)="getList(0)" (nzPageSizeChange)="getList(0)">
74
+        </nz-pagination>
75
+      </div>
76
+    </div>
77
+  </div>
78
+
79
+  <!-- 新增/编辑模态框 -->
80
+  <div class="save display_flex justify-content_flex-center align-items_center add" *ngIf="modal">
81
+    <div class="modalBody">
82
+      <div class="title">{{modelName}}巡检点<i class="icon_transport transport-guanbi" (click)="hideAddModal()"></i></div>
83
+      <div class="content">
84
+        <form nz-form [formGroup]="validateForm" class="addForm">
85
+          <nz-form-item>
86
+            <nz-form-label [nzSpan]="5" nzRequired nzFor="name">名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称</nz-form-label>
87
+            <nz-form-control [nzSpan]="19" nzErrorTip="请输入名称!">
88
+              <nz-input-group>
89
+                  <input formControlName="name" nz-input placeholder="请输入名称">
90
+              </nz-input-group>
91
+            </nz-form-control>
92
+          </nz-form-item>
93
+          <nz-form-item>
94
+            <nz-form-label [nzSpan]="5" nzRequired nzFor="deptId">关联科室</nz-form-label>
95
+            <nz-form-control [nzSpan]="19" nzErrorTip="请选择关联科室!">
96
+              <nz-select (nzOnSearch)="changeInp('add', 'department', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="deptId" nzPlaceHolder="请选择关联科室" (ngModelChange)="changeDepartment($event)" [nzDisabled]="!add" (nzOpenChange)="changeInp('add', 'department', '')">
97
+                <ng-container *ngFor="let option of departmentAddList">
98
+                  <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
99
+                </ng-container>
100
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
101
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
102
+                </nz-option>
103
+              </nz-select>
104
+            </nz-form-control>
105
+          </nz-form-item>
106
+          <nz-form-item>
107
+            <nz-form-label [nzSpan]="5" nzRequired nzFor="buildId">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;栋</nz-form-label>
108
+            <nz-form-control [nzSpan]="19" nzErrorTip="请选择楼栋!">
109
+              <nz-select (nzOnSearch)="changeInp('add', 'building', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="buildId" nzPlaceHolder="请选择楼栋" (ngModelChange)="changeBuilding($event)">
110
+                <ng-container *ngFor="let option of buildingAddList">
111
+                  <nz-option *ngIf="!isLoading" [nzLabel]="option.buildingName" [nzValue]="option.id"></nz-option>
112
+                </ng-container>
113
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
114
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
115
+                </nz-option>
116
+              </nz-select>
117
+            </nz-form-control>
118
+          </nz-form-item>
119
+          <nz-form-item>
120
+            <nz-form-label [nzSpan]="5" nzRequired nzFor="floorId">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;层</nz-form-label>
121
+            <nz-form-control [nzSpan]="19" nzErrorTip="请选择楼层!">
122
+              <nz-select (nzOnSearch)="changeInp('add', 'floor', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="floorId" nzPlaceHolder="请选择楼层">
123
+                <ng-container *ngFor="let option of floorList">
124
+                  <nz-option *ngIf="!isLoading" [nzLabel]="option.floorName" [nzValue]="option.id"></nz-option>
125
+                </ng-container>
126
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
127
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
128
+                </nz-option>
129
+              </nz-select>
130
+            </nz-form-control>
131
+          </nz-form-item>
132
+          <nz-form-item>
133
+            <nz-form-label [nzSpan]="5" nzRequired nzFor="tagIds">标&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;签</nz-form-label>
134
+            <nz-form-control [nzSpan]="19" nzErrorTip="请选择标签!">
135
+              <nz-select (ngModelChange)="changeTags($event)" nzMode="tags" nzAllowClear formControlName="tagIds" nzPlaceHolder="请选择标签">
136
+                <ng-container *ngFor="let option of tagList">
137
+                  <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.name"></nz-option>
138
+                </ng-container>
139
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
140
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
141
+                </nz-option>
142
+              </nz-select>
143
+            </nz-form-control>
144
+          </nz-form-item>
145
+          <nz-form-item>
146
+            <nz-form-label [nzSpan]="5" nzRequired nzFor="signType">签到模式</nz-form-label>
147
+            <nz-form-control [nzSpan]="19" nzErrorTip="请选择签到模式!">
148
+              <nz-select [nzDropdownMatchSelectWidth]="false" formControlName="signType" nzShowSearch
149
+                nzPlaceHolder="请选择签到模式" nzServerSearch>
150
+                <ng-container *ngFor="let data of dispatchMethods">
151
+                  <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.value"></nz-option>
152
+                </ng-container>
153
+                <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
154
+                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
155
+                </nz-option>
156
+              </nz-select>
157
+            </nz-form-control>
158
+          </nz-form-item>
159
+        </form>
160
+      </div>
161
+      <div class="display_flex justify-content_flex-center">
162
+        <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">确认</button>
163
+        <button class="btn cancel" nz-button nzType="default" (click)="hideAddModal()">取消</button>
164
+      </div>
165
+    </div>
166
+  </div>
167
+  <!-- 模态框 -->
168
+  <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="btnLoading"
169
+    (confirmDelEvent)="confirmDel()" [content]="tipsMsg1"></app-dialog-delete>
170
+</div>
171
+<!-- 操作成功/失败提示框 -->
172
+<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
173
+  [info]="promptInfo">
174
+</app-prompt-modal>
175
+
176
+<!-- 遮罩 -->
177
+<app-mask *ngIf="maskFlag"></app-mask>

+ 176 - 0
src/app/views/tripartite-company/tripartite-company.component.less

@@ -0,0 +1,176 @@
1
+@import "../../../../src/theme.less";
2
+
3
+:host {
4
+  ::ng-deep .ant-calendar-picker {
5
+    width: 100% !important;
6
+  }
7
+  .list-template__top{
8
+    overflow: visible!important;
9
+  }
10
+}
11
+.save {
12
+  position: fixed;
13
+  left: 0;
14
+  top: 0;
15
+  width: 100%;
16
+  height: 100%;
17
+  background: rgba(0, 0, 0, 0.4);
18
+  z-index: 99;
19
+
20
+  .modalBody {
21
+    width: 350px;
22
+    background: #fff;
23
+    border-radius: 5px;
24
+    padding: 10px 20px;
25
+    color: #333;
26
+
27
+    .title {
28
+      width: 100%;
29
+      text-align: center;
30
+      font-size: 18px;
31
+      position: relative;
32
+
33
+      i {
34
+        position: absolute;
35
+        right: 0;
36
+        top: 0;
37
+        font-size: 20px;
38
+        color: #666;
39
+        cursor: pointer;
40
+        padding: 0 5px;
41
+      }
42
+    }
43
+
44
+    .content {
45
+      width: 310px;
46
+      background: #f9fafb;
47
+      border: 1px solid #e5e9ed;
48
+      border-radius: 5px;
49
+      overflow: hidden;
50
+      margin-top: 12px;
51
+      padding: 16px 0;
52
+
53
+      .busyList{
54
+        display: flex;
55
+        margin-bottom: 8px;
56
+        .busyContent{
57
+          margin-right: 8px;
58
+          flex: 1;
59
+        }
60
+      }
61
+
62
+      & > div {
63
+        text-align: center;
64
+        margin: 0;
65
+
66
+        &.icon {
67
+          // margin-top: 17px;
68
+
69
+          i {
70
+            color: #34b349;
71
+            font-size: 30px !important;
72
+
73
+            &.transport-wenhao {
74
+              color: #f5a523;
75
+            }
76
+
77
+            &.transport-shibai {
78
+              color: #ff3a52;
79
+            }
80
+          }
81
+        }
82
+
83
+        &.defeat {
84
+          color: #333;
85
+          font-size: 14px;
86
+        }
87
+
88
+        &:nth-child(3) {
89
+          font-size: 14px;
90
+          color: #666;
91
+        }
92
+      }
93
+      .workAssignmentTips {
94
+        font-size: 12px;
95
+      }
96
+    }
97
+
98
+    button {
99
+      margin-top: 10px;
100
+
101
+      &.btn {
102
+        margin-left: 8px;
103
+      }
104
+    }
105
+  }
106
+
107
+  // 新增
108
+  &.add {
109
+    .modalBody {
110
+      width: 480px;
111
+      height: auto;
112
+
113
+      .content {
114
+        width: 100%;
115
+        height: auto;
116
+        padding: 16px;
117
+        max-height: 497px;
118
+        overflow-y: auto;
119
+
120
+        .addForm {
121
+          .ant-form-item {
122
+            margin-bottom: 0;
123
+
124
+            .ant-form-item-label {
125
+              text-align: left;
126
+            }
127
+
128
+            .desc {
129
+              margin-top: 5px;
130
+            }
131
+          }
132
+
133
+          .datesControl {
134
+            margin-top: -16px;
135
+
136
+            .ant-form-item-label {
137
+              line-height: 40px;
138
+            }
139
+          }
140
+
141
+          .timer {
142
+            .ant-form-item-label {
143
+              width: 100%;
144
+              text-align: left;
145
+            }
146
+
147
+            .numInp {
148
+              margin-right: 5px;
149
+            }
150
+
151
+            .line {
152
+              margin-right: 5px;
153
+            }
154
+          }
155
+
156
+          .timer2 {
157
+            .ant-form-item-label {
158
+              line-height: 20px;
159
+            }
160
+          }
161
+        }
162
+
163
+        .editForm {
164
+          .ant-form-item {
165
+            margin-bottom: 15px;
166
+
167
+            .ant-form-item-label {
168
+              line-height: 14px;
169
+              text-align: left;
170
+            }
171
+          }
172
+        }
173
+      }
174
+    }
175
+  }
176
+}

+ 521 - 0
src/app/views/tripartite-company/tripartite-company.component.ts

@@ -0,0 +1,521 @@
1
+import { Component, OnInit } from "@angular/core";
2
+import { ActivatedRoute, Router } from "@angular/router";
3
+import { FormBuilder, Validators, FormGroup } from "@angular/forms";
4
+
5
+import { MainService } from "../../services/main.service";
6
+import { ToolService } from "../../services/tool.service";
7
+import { NzMessageService } from 'ng-zorro-antd';
8
+import { Subject } from 'rxjs';
9
+import { debounceTime } from 'rxjs/operators';
10
+@Component({
11
+  selector: "app-tripartite-company",
12
+  templateUrl: "./tripartite-company.component.html",
13
+  styleUrls: ["./tripartite-company.component.less"],
14
+})
15
+export class TripartiteCompanyComponent implements OnInit {
16
+  constructor(
17
+    private fb: FormBuilder,
18
+    private mainService: MainService,
19
+    private route: ActivatedRoute,
20
+    private router: Router,
21
+    private tool: ToolService,
22
+    private message: NzMessageService,
23
+  ) {}
24
+
25
+  listOfData: any[] = []; //表格数据
26
+  pageIndex: number = 1; //表格当前页码
27
+  pageSize: number = 10; //表格每页展示条数
28
+  listLength: number = 10; //表格总数据量
29
+  modal: boolean = false; //新增/编辑模态框
30
+  add: boolean; //true:新增;false:编辑
31
+  validateForm: FormGroup; //新增/编辑表单
32
+  coopData: any; //当前操作列
33
+  currentHospital; //当前院区
34
+
35
+  btnLoading: boolean = false; //提交按钮loading状态
36
+
37
+  promptContent: string; //操作提示框提示信息
38
+  ifSuccess: boolean; //操作成功/失败
39
+  promptInfo: string; //操作结果提示信息
40
+  promptModalShow: boolean; //操作提示框是否展示
41
+  nextSchemeName = ""; //下一个开启的方案名称
42
+  modelName = ""; //模态框名称
43
+
44
+  changeInpSubject = new Subject(); //防抖
45
+  showDropdown:boolean = false;
46
+
47
+  ngOnInit() {
48
+    //防抖
49
+    this.changeInpSubject.pipe(debounceTime(500)).subscribe((v) => {
50
+      if(v[1] === 'department'){
51
+        this.getDeparts(v[0], v[2]);
52
+      } else if(v[1] === 'building'){
53
+        this.getBuildings(v[0], v[2]);
54
+      } else if(v[1] === 'floor'){
55
+        this.getFloors(v[0], v[2], this.validateForm.value.buildId);
56
+      }
57
+    });
58
+    this.currentHospital = this.tool.getCurrentHospital();
59
+    this.coopBtns = this.tool.initCoopBtns(this.route);
60
+    this.getList(1);
61
+    this.getDeparts('search', '');
62
+    this.getDeparts('add', '');
63
+    this.getTags('add', '');
64
+    this.getBuildings('add', '');
65
+    this.getBuildings('search', '');
66
+    this.getDispatchMethods();
67
+  }
68
+
69
+  // 初始化增删改按钮
70
+  coopBtns: any = {};
71
+
72
+  // 搜索
73
+  search() {
74
+    this.getList(1);
75
+  }
76
+  // 重置
77
+  reset() {
78
+    this.searchDto = {};
79
+    this.getList(1);
80
+  }
81
+
82
+  // 表格数据
83
+  searchDto: any = {};
84
+  loading1 = false;
85
+  getList(type) {
86
+    if (type == 1) {
87
+      this.pageIndex = 1;
88
+    }
89
+    let data = {
90
+      idx: this.pageIndex - 1,
91
+      sum: this.pageSize,
92
+      company: {
93
+        hosId: this.currentHospital.id,
94
+        ...this.searchDto,
95
+      },
96
+    };
97
+    this.loading1 = true;
98
+    this.mainService
99
+      .getFetchDataList("simple/data", "company", data)
100
+      .subscribe((data) => {
101
+        this.loading1 = false;
102
+        if (data.status == 200) {
103
+          this.listOfData = data.list;
104
+          this.listLength = data.totalNum;
105
+        }else{
106
+          this.message.error(data.msg || "请求数据失败");
107
+        }
108
+      });
109
+  }
110
+
111
+  // 新增弹框
112
+  addModal() {
113
+    this.modelName = "新增";
114
+    this.add = true; //新增
115
+    this.modal = true;
116
+    this.initForm();
117
+  }
118
+  //关闭新增/编辑弹框
119
+  hideAddModal() {
120
+    this.modal = false;
121
+    this.initForm();
122
+  }
123
+
124
+  // 初始化新增form表单
125
+  initForm() {
126
+    this.floorList = [];
127
+    this.validateForm = this.fb.group({
128
+      name: ['', [Validators.required, Validators.pattern(/\S/)]],
129
+      deptId: [null, [Validators.required]],
130
+      buildId: [null, [Validators.required]],
131
+      floorId: [null, [Validators.required]],
132
+      tagIds: [[], [Validators.required]],
133
+      signType: [null, [Validators.required]],
134
+    });
135
+  }
136
+
137
+  // 边输边搜节流阀
138
+  isLoading = false;
139
+  changeInp(type, model, e) {
140
+    this.isLoading = true;
141
+    this.changeInpSubject.next([type, model, e]);
142
+  }
143
+
144
+  // 获取所有科室
145
+  departmentAddList: any = []; //所有所属科室
146
+  departmentSearchList: any = []; //所有所属科室(搜索)
147
+  getDeparts(type, keyword, init = false) {
148
+    let postData:any = {
149
+      department: {
150
+        // searchType: 1,// 简单查询
151
+        dept: keyword,
152
+        cascadeHosId: this.currentHospital.id,
153
+      },
154
+      idx: 0,
155
+      sum: 20,
156
+    };
157
+    if(type === 'add'){
158
+      postData.department.bussType = 'inspection';
159
+    }
160
+    this.mainService
161
+      .getFetchDataList("data", "department", postData)
162
+      .subscribe((data) => {
163
+        if (type == "search") {
164
+          this.departmentSearchList = data.list;
165
+        } else if (type == "add") {
166
+          this.departmentAddList = data.list;
167
+        }
168
+
169
+        this.isLoading = false;
170
+
171
+        if(init && this.coopData && this.coopData.departmentDTO){
172
+          let deptId = this.coopData.departmentDTO.id;
173
+          let flag = this.departmentAddList.some(v => v.id == deptId);
174
+          if(!flag){
175
+            this.departmentAddList.unshift(this.coopData.departmentDTO)
176
+          }
177
+          this.validateForm.controls.deptId.setValue(this.coopData.departmentDTO.id);
178
+        }
179
+      });
180
+  }
181
+
182
+  // 获取标签
183
+  tagList: any = [];
184
+  tagListCopy: any = [];
185
+  getTags(type, keyword) {
186
+    let postData = {
187
+      tag: {
188
+        hosId: this.currentHospital.id,
189
+        modelType: { value: 'inspection' },
190
+      },
191
+      idx: 0,
192
+      sum: 50,
193
+    };
194
+    this.mainService
195
+      .getFetchDataList("simple/data", "tag", postData)
196
+      .subscribe((data) => {
197
+        this.tagList = data.list;
198
+        this.tagListCopy = JSON.parse(JSON.stringify(this.tagList));
199
+        this.isLoading = false;
200
+      });
201
+  }
202
+
203
+  // 获取楼栋
204
+  buildingAddList: any = [];
205
+  buildingSearchList: any = [];
206
+  getBuildings(type, keyword, init = false) {
207
+    let postData = {
208
+      building: {
209
+        simpleQuery: true,
210
+        buildingName: keyword,
211
+        cascadeHosId: this.currentHospital.id,
212
+      },
213
+      idx: 0,
214
+      sum: 20,
215
+    };
216
+    this.mainService
217
+      .getFetchDataList("simple/data", "building", postData)
218
+      .subscribe((data) => {
219
+        if (type == "search") {
220
+          this.buildingSearchList = data.list;
221
+        } else if (type == "add") {
222
+          this.buildingAddList = data.list;
223
+        }
224
+        this.isLoading = false;
225
+
226
+        if(init && this.coopData && this.coopData.buildingDTO){
227
+          let buildId = this.coopData.buildingDTO.id;
228
+          let flag = this.buildingAddList.some(v => v.id == buildId);
229
+          if(!flag){
230
+            this.buildingAddList.unshift(this.coopData.buildingDTO)
231
+          }
232
+          this.validateForm.controls.buildId.setValue(this.coopData.buildingDTO.id);
233
+        } else if (this.deptDto && this.deptDto.building){
234
+          let buildId = this.deptDto.building.id;
235
+          let flag = this.buildingAddList.some(v => v.id == buildId);
236
+          if(!flag){
237
+            this.buildingAddList.unshift(this.deptDto.building)
238
+          }
239
+          this.validateForm.controls.buildId.setValue(this.deptDto.building.id);
240
+        }
241
+      });
242
+  }
243
+
244
+  // 修改关联科室
245
+  deptDto:any = null;
246
+  changeDepartment(deptId){
247
+    if(this.add){
248
+      console.log(deptId)
249
+      this.deptDto = this.departmentAddList.find(v => v.id == deptId);
250
+      console.log(this.deptDto);
251
+      if(this.deptDto && this.deptDto.dept && !this.validateForm.value.name){
252
+        this.validateForm.controls.name.setValue(this.deptDto.dept);
253
+      }
254
+
255
+      if(this.deptDto && this.deptDto.building){
256
+        this.getBuildings('add', '');
257
+      }
258
+
259
+      if(this.deptDto && this.deptDto.floor){
260
+        this.noChangeBuilding = true;
261
+        this.getFloors('add', '', this.deptDto.building.id, false, true);
262
+      }
263
+    }
264
+  }
265
+
266
+  // 修改楼栋
267
+  noChangeBuilding:boolean = false;
268
+  changeBuilding(buildId?){
269
+    console.log(buildId)
270
+    if(!this.noChangeBuilding){
271
+      this.validateForm.controls.floorId.setValue(null);
272
+      this.getFloors('add', '', this.validateForm.value.buildId);
273
+    }
274
+    this.noChangeBuilding = false;
275
+  }
276
+
277
+  // 获取楼层
278
+  floorList: any = [];
279
+  getFloors(type, keyword, buildId, init = false, isNoChangeBuilding = false) {
280
+    console.log(isNoChangeBuilding)
281
+    if(!buildId){
282
+      this.floorList = [];
283
+      return;
284
+    }
285
+    let postData = {
286
+      floor: {
287
+        floorName: keyword,
288
+        buildId,
289
+        // hosId: this.currentHospital.id,
290
+      },
291
+      idx: 0,
292
+      sum: 20,
293
+    };
294
+    this.mainService
295
+      .getFetchDataList("simple/data", "floor", postData)
296
+      .subscribe((data) => {
297
+        this.floorList = data.list;
298
+        this.isLoading = false;
299
+
300
+        if(init && this.coopData && this.coopData.floorDTO){
301
+          let floorId = this.coopData.floorDTO.id;
302
+          let flag = this.floorList.some(v => v.id == floorId);
303
+          if(!flag){
304
+            this.floorList.unshift(this.coopData.floorDTO)
305
+          }
306
+          this.validateForm.controls.floorId.setValue(this.coopData.floorDTO.id);
307
+        } else if (isNoChangeBuilding && this.deptDto && this.deptDto.floor){
308
+          let floorId = this.deptDto.floor.id;
309
+          let flag = this.floorList.some(v => v.id == floorId);
310
+          if(!flag){
311
+            this.floorList.unshift(this.deptDto.floor)
312
+          }
313
+          this.validateForm.controls.floorId.setValue(this.deptDto.floor.id);
314
+        }
315
+      });
316
+  }
317
+
318
+  // 选择标签
319
+  changeTags(tags){
320
+    if(tags.length){
321
+      let flag = tags.every(v => {
322
+        return this.tagListCopy.map(vv => vv.name).includes(v);
323
+      })
324
+
325
+      if(flag){
326
+        return;
327
+      }
328
+
329
+      let tagName = tags[tags.length - 1];
330
+      let postData = {
331
+        tag: {
332
+          name: tagName,
333
+          hosId: this.currentHospital.id,
334
+          modelType: { value: 'inspection' },
335
+        }
336
+      }
337
+      this.isLoading = true;
338
+      this.mainService
339
+      .coopData("addData", "tag", postData)
340
+      .subscribe((result) => {
341
+        this.isLoading = false;
342
+        console.log(result);
343
+        if(result.status == 200){
344
+          this.tagListCopy.unshift(result.data)
345
+          console.log(this.tagListCopy);
346
+        } else if (result.status == 10001){
347
+          // 名称重复
348
+          this.tagListCopy.unshift(result.data)
349
+          console.log(this.tagListCopy);
350
+        } else {
351
+          tags.pop();
352
+          this.message.warning(result.msg || '请求数据失败')
353
+        }
354
+      });
355
+    }
356
+  }
357
+
358
+  //获取填写方式
359
+  dispatchMethods:any[] = [];
360
+  getDispatchMethods() {
361
+    this.isLoading = true;
362
+    this.mainService.getDictionary("list", "inspection_node_sign_type").subscribe((data) => {
363
+      this.isLoading = false;
364
+      this.dispatchMethods = data || [];
365
+    });
366
+  }
367
+
368
+  // 新增/编辑表单提交
369
+  submitForm(): void {
370
+    for (const i in this.validateForm.controls) {
371
+      this.validateForm.controls[i].markAsDirty();
372
+      this.validateForm.controls[i].updateValueAndValidity();
373
+    }
374
+    if (this.validateForm.invalid) {
375
+      return;
376
+    }
377
+
378
+    console.log(this.validateForm.value)
379
+    console.log(this.tagListCopy);
380
+
381
+    this.btnLoading = true;
382
+    let postData:any = {};
383
+
384
+    let tagNames = this.validateForm.value.tagIds;
385
+    let tags = this.tagListCopy;
386
+    let tagIds = tagNames.map(name =>{
387
+      return tags.find(v => v.name === name).id;
388
+    })
389
+
390
+    if (this.add) {
391
+      //增加
392
+      postData = {
393
+        company: {
394
+          name: this.validateForm.value.name,
395
+          deptId: this.validateForm.value.deptId,
396
+          buildId: this.validateForm.value.buildId,
397
+          floorId: this.validateForm.value.floorId,
398
+          tagIds: tagIds.toString(),
399
+          signType: this.dispatchMethods.find(v => v.value === this.validateForm.value.signType),
400
+          hosId: this.currentHospital.id,
401
+        }
402
+      };
403
+    } else {
404
+      //编辑
405
+      postData = {
406
+        company:{
407
+          ...this.coopData,
408
+          ...{
409
+            name: this.validateForm.value.name,
410
+            deptId: this.validateForm.value.deptId,
411
+            buildId: this.validateForm.value.buildId,
412
+            floorId: this.validateForm.value.floorId,
413
+            tagIds: tagIds.toString(),
414
+            signType: this.dispatchMethods.find(v => v.value === this.validateForm.value.signType),
415
+          }
416
+        }
417
+      };
418
+    }
419
+    this.mainService
420
+      .coopData("addData", "company", postData)
421
+      .subscribe((result) => {
422
+        this.btnLoading = false;
423
+        this.hideAddModal();
424
+        let msg = "";
425
+        if (this.add) {
426
+          msg = "新增";
427
+        } else {
428
+          msg = "修改";
429
+        }
430
+        if (result.status == 200) {
431
+          this.showPromptModal(msg, true, "");
432
+        } else if (result.status == 10001) {
433
+          this.showPromptModal(msg, false, "关联科室重复");
434
+        } else {
435
+          this.showPromptModal(msg, false, result.msg);
436
+        }
437
+      });
438
+  }
439
+
440
+  // 编辑
441
+  edit(e, data) {
442
+    e.stopPropagation();
443
+    console.log(data);
444
+    this.initForm();
445
+    this.modelName = "编辑";
446
+    this.add = false;
447
+    this.modal = true;
448
+    this.coopData = data;
449
+    this.validateForm.controls.name.setValue(data.name); //名称
450
+    this.validateForm.controls.deptId.setValue(data.deptId);
451
+    this.validateForm.controls.tagIds.setValue(data.tagIdsList.map(v => v.name));
452
+    this.validateForm.controls.signType.setValue(data.signType.value);
453
+
454
+    if(data.deptId){
455
+      this.getDeparts('add', '', true);
456
+    }
457
+
458
+    if(data.buildId){
459
+      this.getBuildings('add', '', true);
460
+    }
461
+
462
+    if(data.floorId){
463
+      this.noChangeBuilding = true;
464
+      this.getFloors('add', '', data.buildId, true, true);
465
+    }
466
+  }
467
+
468
+  // 展示信息提示框(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)
469
+  showPromptModal(con, success, promptInfo?) {
470
+    this.promptModalShow = false;
471
+    this.promptContent = con;
472
+    this.ifSuccess = success;
473
+    this.promptInfo = promptInfo;
474
+    setTimeout(() => {
475
+      this.promptModalShow = true;
476
+    }, 100);
477
+    this.getList(0);
478
+    this.getTags('add', '');
479
+  }
480
+
481
+  delModal: boolean = false; //删除模态框
482
+  tipsMsg1: string; //提示框信息
483
+  tipsMsg2: string; //操作后信息
484
+  confirmDelType: string; //确认的类型(启用/停用,删除)
485
+  showDelModal(
486
+    e,
487
+    data,
488
+    tipsMsg1: string,
489
+    tipsMsg2: string,
490
+    type: string,
491
+  ) {
492
+    e.stopPropagation();
493
+    this.confirmDelType = type;
494
+    this.delModal = true;
495
+    this.coopData = data;
496
+    this.tipsMsg1 = tipsMsg1;
497
+    this.tipsMsg2 = tipsMsg2;
498
+  }
499
+  // 隐藏删除框
500
+  hideDelModal() {
501
+    this.delModal = false;
502
+  }
503
+  // 确认删除
504
+  confirmDel() {
505
+    this.btnLoading = true;
506
+    if (this.confirmDelType === "del") {
507
+      //删除
508
+      this.mainService
509
+        .simplePost("rmvData", "company", [this.coopData.id])
510
+        .subscribe((data) => {
511
+          this.btnLoading = false;
512
+          this.delModal = false;
513
+          if (data.status == 200) {
514
+            this.showPromptModal(this.tipsMsg2, true, "");
515
+          } else {
516
+            this.showPromptModal(this.tipsMsg2, false, data.msg);
517
+          }
518
+        });
519
+    }
520
+  }
521
+}

+ 19 - 0
src/app/views/tripartite-company/tripartite-company.module.ts

@@ -0,0 +1,19 @@
1
+import { NgModule } from '@angular/core';
2
+import { CommonModule } from '@angular/common';
3
+
4
+import { TripartiteCompanyRoutingModule } from './tripartite-company-routing.module';
5
+import { TripartiteCompanyComponent } from './tripartite-company.component';
6
+import { ShareModule } from 'src/app/share/share.module';
7
+
8
+
9
+@NgModule({
10
+  declarations: [
11
+    TripartiteCompanyComponent
12
+  ],
13
+  imports: [
14
+    CommonModule,
15
+    TripartiteCompanyRoutingModule,
16
+    ShareModule
17
+  ]
18
+})
19
+export class TripartiteCompanyModule { }

+ 118 - 3
src/assets/iconfont/demo_index.html

@@ -55,6 +55,36 @@
55 55
           <ul class="icon_lists dib-box">
56 56
           
57 57
             <li class="dib">
58
+              <span class="icon icon_transport">&#xe611;</span>
59
+                <div class="name">Icon - 统计分析</div>
60
+                <div class="code-name">&amp;#xe611;</div>
61
+              </li>
62
+          
63
+            <li class="dib">
64
+              <span class="icon icon_transport">&#xe630;</span>
65
+                <div class="name">资产</div>
66
+                <div class="code-name">&amp;#xe630;</div>
67
+              </li>
68
+          
69
+            <li class="dib">
70
+              <span class="icon icon_transport">&#xe653;</span>
71
+                <div class="name">控制</div>
72
+                <div class="code-name">&amp;#xe653;</div>
73
+              </li>
74
+          
75
+            <li class="dib">
76
+              <span class="icon icon_transport">&#xe690;</span>
77
+                <div class="name">建单统计</div>
78
+                <div class="code-name">&amp;#xe690;</div>
79
+              </li>
80
+          
81
+            <li class="dib">
82
+              <span class="icon icon_transport">&#xe6af;</span>
83
+                <div class="name">配置中心</div>
84
+                <div class="code-name">&amp;#xe6af;</div>
85
+              </li>
86
+          
87
+            <li class="dib">
58 88
               <span class="icon icon_transport">&#xe885;</span>
59 89
                 <div class="name">24gf-tags</div>
60 90
                 <div class="code-name">&amp;#xe885;</div>
@@ -750,9 +780,9 @@
750 780
 <pre><code class="language-css"
751 781
 >@font-face {
752 782
   font-family: 'icon_transport';
753
-  src: url('iconfont.woff2?t=1719826829751') format('woff2'),
754
-       url('iconfont.woff?t=1719826829751') format('woff'),
755
-       url('iconfont.ttf?t=1719826829751') format('truetype');
783
+  src: url('iconfont.woff2?t=1721896916365') format('woff2'),
784
+       url('iconfont.woff?t=1721896916365') format('woff'),
785
+       url('iconfont.ttf?t=1721896916365') format('truetype');
756 786
 }
757 787
 </code></pre>
758 788
           <h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@@ -779,6 +809,51 @@
779 809
         <ul class="icon_lists dib-box">
780 810
           
781 811
           <li class="dib">
812
+            <span class="icon icon_transport transport-Icon-tongjifenxi"></span>
813
+            <div class="name">
814
+              Icon - 统计分析
815
+            </div>
816
+            <div class="code-name">.transport-Icon-tongjifenxi
817
+            </div>
818
+          </li>
819
+          
820
+          <li class="dib">
821
+            <span class="icon icon_transport transport-zichan"></span>
822
+            <div class="name">
823
+              资产
824
+            </div>
825
+            <div class="code-name">.transport-zichan
826
+            </div>
827
+          </li>
828
+          
829
+          <li class="dib">
830
+            <span class="icon icon_transport transport-kongzhi"></span>
831
+            <div class="name">
832
+              控制
833
+            </div>
834
+            <div class="code-name">.transport-kongzhi
835
+            </div>
836
+          </li>
837
+          
838
+          <li class="dib">
839
+            <span class="icon icon_transport transport-jiandantongji"></span>
840
+            <div class="name">
841
+              建单统计
842
+            </div>
843
+            <div class="code-name">.transport-jiandantongji
844
+            </div>
845
+          </li>
846
+          
847
+          <li class="dib">
848
+            <span class="icon icon_transport transport-peizhizhongxin"></span>
849
+            <div class="name">
850
+              配置中心
851
+            </div>
852
+            <div class="code-name">.transport-peizhizhongxin
853
+            </div>
854
+          </li>
855
+          
856
+          <li class="dib">
782 857
             <span class="icon icon_transport transport-24gf-tags"></span>
783 858
             <div class="name">
784 859
               24gf-tags
@@ -1824,6 +1899,46 @@
1824 1899
           
1825 1900
             <li class="dib">
1826 1901
                 <svg class="icon svg-icon" aria-hidden="true">
1902
+                  <use xlink:href="#transport-Icon-tongjifenxi"></use>
1903
+                </svg>
1904
+                <div class="name">Icon - 统计分析</div>
1905
+                <div class="code-name">#transport-Icon-tongjifenxi</div>
1906
+            </li>
1907
+          
1908
+            <li class="dib">
1909
+                <svg class="icon svg-icon" aria-hidden="true">
1910
+                  <use xlink:href="#transport-zichan"></use>
1911
+                </svg>
1912
+                <div class="name">资产</div>
1913
+                <div class="code-name">#transport-zichan</div>
1914
+            </li>
1915
+          
1916
+            <li class="dib">
1917
+                <svg class="icon svg-icon" aria-hidden="true">
1918
+                  <use xlink:href="#transport-kongzhi"></use>
1919
+                </svg>
1920
+                <div class="name">控制</div>
1921
+                <div class="code-name">#transport-kongzhi</div>
1922
+            </li>
1923
+          
1924
+            <li class="dib">
1925
+                <svg class="icon svg-icon" aria-hidden="true">
1926
+                  <use xlink:href="#transport-jiandantongji"></use>
1927
+                </svg>
1928
+                <div class="name">建单统计</div>
1929
+                <div class="code-name">#transport-jiandantongji</div>
1930
+            </li>
1931
+          
1932
+            <li class="dib">
1933
+                <svg class="icon svg-icon" aria-hidden="true">
1934
+                  <use xlink:href="#transport-peizhizhongxin"></use>
1935
+                </svg>
1936
+                <div class="name">配置中心</div>
1937
+                <div class="code-name">#transport-peizhizhongxin</div>
1938
+            </li>
1939
+          
1940
+            <li class="dib">
1941
+                <svg class="icon svg-icon" aria-hidden="true">
1827 1942
                   <use xlink:href="#transport-24gf-tags"></use>
1828 1943
                 </svg>
1829 1944
                 <div class="name">24gf-tags</div>

+ 23 - 3
src/assets/iconfont/iconfont.css

@@ -1,8 +1,8 @@
1 1
 @font-face {
2 2
   font-family: "icon_transport"; /* Project id 4543613 */
3
-  src: url('iconfont.woff2?t=1719826829751') format('woff2'),
4
-       url('iconfont.woff?t=1719826829751') format('woff'),
5
-       url('iconfont.ttf?t=1719826829751') format('truetype');
3
+  src: url('iconfont.woff2?t=1721896916365') format('woff2'),
4
+       url('iconfont.woff?t=1721896916365') format('woff'),
5
+       url('iconfont.ttf?t=1721896916365') format('truetype');
6 6
 }
7 7
 
8 8
 .icon_transport {
@@ -13,6 +13,26 @@
13 13
   -moz-osx-font-smoothing: grayscale;
14 14
 }
15 15
 
16
+.transport-Icon-tongjifenxi:before {
17
+  content: "\e611";
18
+}
19
+
20
+.transport-zichan:before {
21
+  content: "\e630";
22
+}
23
+
24
+.transport-kongzhi:before {
25
+  content: "\e653";
26
+}
27
+
28
+.transport-jiandantongji:before {
29
+  content: "\e690";
30
+}
31
+
32
+.transport-peizhizhongxin:before {
33
+  content: "\e6af";
34
+}
35
+
16 36
 .transport-24gf-tags:before {
17 37
   content: "\e885";
18 38
 }

文件差异内容过多而无法显示
+ 1 - 1
src/assets/iconfont/iconfont.js


+ 35 - 0
src/assets/iconfont/iconfont.json

@@ -6,6 +6,41 @@
6 6
   "description": "",
7 7
   "glyphs": [
8 8
     {
9
+      "icon_id": "6334918",
10
+      "name": "Icon - 统计分析",
11
+      "font_class": "Icon-tongjifenxi",
12
+      "unicode": "e611",
13
+      "unicode_decimal": 58897
14
+    },
15
+    {
16
+      "icon_id": "11016190",
17
+      "name": "资产",
18
+      "font_class": "zichan",
19
+      "unicode": "e630",
20
+      "unicode_decimal": 58928
21
+    },
22
+    {
23
+      "icon_id": "12975220",
24
+      "name": "控制",
25
+      "font_class": "kongzhi",
26
+      "unicode": "e653",
27
+      "unicode_decimal": 58963
28
+    },
29
+    {
30
+      "icon_id": "26226575",
31
+      "name": "建单统计",
32
+      "font_class": "jiandantongji",
33
+      "unicode": "e690",
34
+      "unicode_decimal": 59024
35
+    },
36
+    {
37
+      "icon_id": "21758119",
38
+      "name": "配置中心",
39
+      "font_class": "peizhizhongxin",
40
+      "unicode": "e6af",
41
+      "unicode_decimal": 59055
42
+    },
43
+    {
9 44
       "icon_id": "7542757",
10 45
       "name": "24gf-tags",
11 46
       "font_class": "24gf-tags",

二进制
src/assets/iconfont/iconfont.ttf


二进制
src/assets/iconfont/iconfont.woff


二进制
src/assets/iconfont/iconfont.woff2


+ 3 - 0
src/common.less

@@ -43,6 +43,9 @@
43 43
 .green {
44 44
   color: #49b856 !important;
45 45
 }
46
+.text_align_center{
47
+  text-align: center !important;
48
+}
46 49
 // 加载中
47 50
 .loadingFull {
48 51
   height: 100%;