Browse Source

快速报修

seimin 3 years ago
parent
commit
f8dbb1bd21

+ 67 - 31
src/app/views/hushijiandan/hushijiandan.component.html

@@ -945,62 +945,74 @@
945
                 </div>
945
                 </div>
946
               </div>
946
               </div>
947
               <!-- 快捷报修 -->
947
               <!-- 快捷报修 -->
948
-              <div *ngIf="checkedTableType == 'kjbx'" style="flex: 1; height: 100%">
949
-                <form nz-form [formGroup]="bxForm" (ngSubmit)="submitBxForm()" class="bxForm">
948
+              <div *ngIf="checkedTableType == 'kjbx'" style="flex: 1; height: 100%;display:flex;">
949
+                <form nz-form [formGroup]="bxForm" (ngSubmit)="submitBxForm()" class="bxForm bxFlex">
950
                   <nz-form-item>
950
                   <nz-form-item>
951
-                    <nz-form-label [nzSpan]="10" nzRequired nzFor="name">联系人</nz-form-label>
952
-                    <nz-form-control [nzSpan]="8" nzErrorTip="请填写联系人">
951
+                    <nz-form-label [nzSpan]="8" nzRequired nzFor="name">联系人</nz-form-label>
952
+                    <nz-form-control [nzSpan]="12" nzErrorTip="请填写联系人">
953
                       <input type="text" nz-input formControlName="name" placeholder="请填写联系人" />
953
                       <input type="text" nz-input formControlName="name" placeholder="请填写联系人" />
954
                     </nz-form-control>
954
                     </nz-form-control>
955
                   </nz-form-item>
955
                   </nz-form-item>
956
                   <nz-form-item>
956
                   <nz-form-item>
957
-                    <nz-form-label [nzSpan]="10" nzRequired nzFor="phone">联系人电话</nz-form-label>
958
-                    <nz-form-control [nzSpan]="8" nzErrorTip="请填写联系人电话">
957
+                    <nz-form-label [nzSpan]="8" nzRequired nzFor="phone">联系人电话</nz-form-label>
958
+                    <nz-form-control [nzSpan]="12" nzErrorTip="请填写联系人电话">
959
                       <input type="text" nz-input formControlName="phone" placeholder="请填写联系人电话" />
959
                       <input type="text" nz-input formControlName="phone" placeholder="请填写联系人电话" />
960
                     </nz-form-control>
960
                     </nz-form-control>
961
                   </nz-form-item>
961
                   </nz-form-item>
962
                   <nz-form-item>
962
                   <nz-form-item>
963
-                    <nz-form-label [nzSpan]="10" nzFor="hospital" nzRequired>所属院区</nz-form-label>
964
-                    <nz-form-control [nzSpan]="8" nzErrorTip="请选择所属院区!">
965
-                      <nz-select
966
-                        formControlName="hospital"
967
-                        nzPlaceHolder="请选择所属院区"
968
-                        (ngModelChange)="getPlace($event)"
969
-                      >
963
+                    <nz-form-label [nzSpan]="8" nzFor="hospital" nzRequired>所属院区</nz-form-label>
964
+                    <nz-form-control [nzSpan]="12" nzErrorTip="请选择所属院区!">
965
+                      <nz-select formControlName="hospital" nzPlaceHolder="请选择所属院区" (ngModelChange)="getPlace($event)">
970
                         <nz-option [nzValue]="area.id" [nzLabel]="area.area" *ngFor="let area of areas"></nz-option>
966
                         <nz-option [nzValue]="area.id" [nzLabel]="area.area" *ngFor="let area of areas"></nz-option>
971
                       </nz-select>
967
                       </nz-select>
972
                     </nz-form-control>
968
                     </nz-form-control>
973
                   </nz-form-item>
969
                   </nz-form-item>
974
                   <nz-form-item>
970
                   <nz-form-item>
975
-                    <nz-form-label [nzSpan]="10" nzFor="building" nzRequired>楼栋</nz-form-label>
976
-                    <nz-form-control [nzSpan]="8" nzErrorTip="请选择楼栋!">
977
-                      <nz-select
978
-                        formControlName="building"
979
-                        nzPlaceHolder="请选择楼栋"
980
-                      >
981
-                        <nz-option [nzValue]="place.id" [nzLabel]="place.place" *ngFor="let place of places"></nz-option>
971
+                    <nz-form-label [nzSpan]="8" nzFor="building" nzRequired>楼栋</nz-form-label>
972
+                    <nz-form-control [nzSpan]="12" nzErrorTip="请选择楼栋!">
973
+                      <nz-select formControlName="building" nzPlaceHolder="请选择楼栋">
974
+                        <nz-option [nzValue]="place.id" [nzLabel]="place.place" *ngFor="let place of places">
975
+                        </nz-option>
982
                       </nz-select>
976
                       </nz-select>
983
                     </nz-form-control>
977
                     </nz-form-control>
984
                   </nz-form-item>
978
                   </nz-form-item>
985
                   <nz-form-item>
979
                   <nz-form-item>
986
-                    <nz-form-label [nzSpan]="10" nzRequired>详细地址</nz-form-label>
987
-                    <nz-form-control [nzSpan]="8" nzErrorTip="请填写详细地址">
980
+                    <nz-form-label [nzSpan]="8" nzRequired>详细地址</nz-form-label>
981
+                    <nz-form-control [nzSpan]="12" nzErrorTip="请填写详细地址">
988
                       <textarea formControlName="address" nz-input rows="2" placeholder="请填写详细地址"></textarea>
982
                       <textarea formControlName="address" nz-input rows="2" placeholder="请填写详细地址"></textarea>
989
                     </nz-form-control>
983
                     </nz-form-control>
990
                   </nz-form-item>
984
                   </nz-form-item>
991
                   <nz-form-item>
985
                   <nz-form-item>
992
-                    <nz-form-label [nzSpan]="10" nzRequired>报修内容</nz-form-label>
993
-                    <nz-form-control [nzSpan]="8" nzErrorTip="请填写报修内容">
986
+                    <nz-form-label [nzSpan]="8" nzRequired>报修内容</nz-form-label>
987
+                    <nz-form-control [nzSpan]="12" nzErrorTip="请填写报修内容">
994
                       <textarea formControlName="content" nz-input rows="2" placeholder="请填写报修内容"></textarea>
988
                       <textarea formControlName="content" nz-input rows="2" placeholder="请填写报修内容"></textarea>
995
                     </nz-form-control>
989
                     </nz-form-control>
996
                   </nz-form-item>
990
                   </nz-form-item>
997
                   <nz-form-item>
991
                   <nz-form-item>
998
-                    <nz-form-label [nzSpan]="10" style="visibility: hidden;"></nz-form-label>
999
-                    <nz-form-control [nzSpan]="8">
992
+                    <nz-form-label [nzSpan]="8" style="visibility: hidden;"></nz-form-label>
993
+                    <nz-form-control [nzSpan]="12">
1000
                       <button nz-button nzType="primary" [nzLoading]="bxLoading">提交</button>
994
                       <button nz-button nzType="primary" [nzLoading]="bxLoading">提交</button>
1001
                     </nz-form-control>
995
                     </nz-form-control>
1002
                   </nz-form-item>
996
                   </nz-form-item>
1003
                 </form>
997
                 </form>
998
+                <nz-table class="bxFlex bxTable" [nzData]="quickBxlbList" nzSize="small" [nzShowPagination]="false"
999
+                  [nzLoading]="quickBxlbLoading">
1000
+                  <thead>
1001
+                    <tr class="thead">
1002
+                      <th nzWidth="7%" style="min-width: 50px;">序号</th>
1003
+                      <th nzWidth="93%">快速报修内容</th>
1004
+                    </tr>
1005
+                  </thead>
1006
+                  <tbody>
1007
+                    <tr (click)="showBxModal(data,'您的报修为“'+data.content+'” 是否确认报修?')" *ngFor="
1008
+                            let data of quickBxlbList;
1009
+                            let i = index
1010
+                          ">
1011
+                      <td>{{ i + 1 }}</td>
1012
+                      <td>{{ data.content||'无' }}</td>
1013
+                    </tr>
1014
+                  </tbody>
1015
+                </nz-table>
1004
               </div>
1016
               </div>
1005
               <!-- 报修列表 -->
1017
               <!-- 报修列表 -->
1006
               <div *ngIf="checkedTableType == 'bxlb'" style="flex: 1; height: 100%">
1018
               <div *ngIf="checkedTableType == 'bxlb'" style="flex: 1; height: 100%">
@@ -1027,8 +1039,8 @@
1027
                 </div>
1039
                 </div>
1028
                 <div class="table">
1040
                 <div class="table">
1029
                   <div class="box">
1041
                   <div class="box">
1030
-                    <nz-table class="hospitalTable" [nzData]="bxlbList" nzSize="middle"
1031
-                      [nzShowPagination]="false" [nzLoading]="bxlbLoading">
1042
+                    <nz-table class="hospitalTable" [nzData]="bxlbList" nzSize="middle" [nzShowPagination]="false"
1043
+                      [nzLoading]="bxlbLoading">
1032
                       <thead>
1044
                       <thead>
1033
                         <tr class="thead">
1045
                         <tr class="thead">
1034
                           <th nzWidth="7%">序号</th>
1046
                           <th nzWidth="7%">序号</th>
@@ -1063,8 +1075,7 @@
1063
                     </nz-table>
1075
                     </nz-table>
1064
                     <div class="pagination">
1076
                     <div class="pagination">
1065
                       <nz-pagination [(nzPageIndex)]="bxlbPageIndex" [(nzTotal)]="bxlbListLength"
1077
                       <nz-pagination [(nzPageIndex)]="bxlbPageIndex" [(nzTotal)]="bxlbListLength"
1066
-                        [(nzPageSize)]="bxlbPageSize" (nzPageIndexChange)="getBxlb()"
1067
-                        (nzPageSizeChange)="getBxlb()">
1078
+                        [(nzPageSize)]="bxlbPageSize" (nzPageIndexChange)="getBxlb()" (nzPageSizeChange)="getBxlb()">
1068
                       </nz-pagination>
1079
                       </nz-pagination>
1069
                     </div>
1080
                     </div>
1070
                   </div>
1081
                   </div>
@@ -1994,6 +2005,31 @@
1994
     </div>
2005
     </div>
1995
   </div>
2006
   </div>
1996
 </div>
2007
 </div>
2008
+<!-- 是否确认报修模态框 -->
2009
+<div class="
2010
+    commonModal
2011
+    display_flex
2012
+    justify-content_flex-center
2013
+    align-items_center
2014
+  " *ngIf="bxModal">
2015
+  <div class="modalBody">
2016
+    <div class="title">
2017
+      提示<i class="icon_transport transport-guanbi" (click)="hideBxModal()"></i>
2018
+    </div>
2019
+    <div class="content">
2020
+      <div class="icon"><i class="icon_transport transport-wenhao"></i></div>
2021
+      <div class="defeat">{{ tipsMsg2 }}</div>
2022
+    </div>
2023
+    <div class="display_flex justify-content_flex-center">
2024
+      <button nz-button nzType="primary" (click)="confirmBx()" [nzLoading]="loading6">
2025
+        确认
2026
+      </button>
2027
+      <button class="btn cancel" nz-button nzType="default" (click)="hideBxModal()">
2028
+        取消
2029
+      </button>
2030
+    </div>
2031
+  </div>
2032
+</div>
1997
 
2033
 
1998
 <!-- 消息弹框模板 -->
2034
 <!-- 消息弹框模板 -->
1999
 <ng-template #msgTemplate let-msg="data">
2035
 <ng-template #msgTemplate let-msg="data">
@@ -2024,7 +2060,7 @@
2024
   (closeModelHs)="closeModelHistory($event)"></app-history-prompt-modal>
2060
   (closeModelHs)="closeModelHistory($event)"></app-history-prompt-modal>
2025
 <!-- 报修详情查看 -->
2061
 <!-- 报修详情查看 -->
2026
 <app-bx-prompt-modal *ngIf="bxPromptModalShow" [show]="bxPromptModalShow" [bData]="bData"
2062
 <app-bx-prompt-modal *ngIf="bxPromptModalShow" [show]="bxPromptModalShow" [bData]="bData"
2027
-(closeModelHs)="closeModelBx($event)"></app-bx-prompt-modal>
2063
+  (closeModelHs)="closeModelBx($event)"></app-bx-prompt-modal>
2028
 
2064
 
2029
 <!-- 科室二维码模态框 -->
2065
 <!-- 科室二维码模态框 -->
2030
 <!-- 在模态框所在的 div 添加属性 [appDrag] -->
2066
 <!-- 在模态框所在的 div 添加属性 [appDrag] -->

+ 161 - 45
src/app/views/hushijiandan/hushijiandan.component.less

@@ -1,24 +1,68 @@
1
 @import "../../../../src/theme.less";
1
 @import "../../../../src/theme.less";
2
+
2
 :host {
3
 :host {
3
   width: 100%;
4
   width: 100%;
4
   height: 100%;
5
   height: 100%;
5
   display: flex;
6
   display: flex;
6
-  .bxForm{
7
+
8
+  .bxForm {
7
     margin-top: 16px;
9
     margin-top: 16px;
8
   }
10
   }
11
+
12
+  .bxFlex {
13
+    flex: 1;
14
+  }
15
+
16
+  .bxTable {
17
+    ::ng-deep .ant-table-body {
18
+      margin: 0 !important;
19
+    }
20
+
21
+    tr {
22
+      cursor: pointer;
23
+    }
24
+
25
+    th,
26
+    td {
27
+      text-align: center;
28
+    }
29
+
30
+    .thead {
31
+      background-image: linear-gradient(to right,
32
+          @bg-start,
33
+          @bg-end );
34
+      padding: 10px 0;
35
+
36
+      th {
37
+        background: transparent;
38
+        color: #fff;
39
+        text-align: center;
40
+        font-size: 14px;
41
+
42
+        &.txtL {
43
+          text-align: left;
44
+        }
45
+      }
46
+    }
47
+  }
48
+
9
   .yyTime {
49
   .yyTime {
10
     display: flex;
50
     display: flex;
11
     align-items: center;
51
     align-items: center;
12
     flex-direction: column;
52
     flex-direction: column;
13
   }
53
   }
54
+
14
   .yyTimeError {
55
   .yyTimeError {
56
+
15
     ::ng-deep .ant-time-picker-input,
57
     ::ng-deep .ant-time-picker-input,
16
     ::ng-deep .ant-calendar-picker-input {
58
     ::ng-deep .ant-calendar-picker-input {
17
       border: 1px solid red !important;
59
       border: 1px solid red !important;
18
     }
60
     }
19
   }
61
   }
62
+
20
   .pos {
63
   .pos {
21
     position: relative;
64
     position: relative;
65
+
22
     .pos-item {
66
     .pos-item {
23
       position: absolute;
67
       position: absolute;
24
       left: 100px;
68
       left: 100px;
@@ -26,15 +70,18 @@
26
       z-index: 9;
70
       z-index: 9;
27
     }
71
     }
28
   }
72
   }
73
+
29
   .addRemarks {
74
   .addRemarks {
30
     color: @primary-color;
75
     color: @primary-color;
31
     cursor: pointer;
76
     cursor: pointer;
32
   }
77
   }
78
+
33
   .orderThis {
79
   .orderThis {
34
     color: @primary-color;
80
     color: @primary-color;
35
     border: 1px solid @primary-color;
81
     border: 1px solid @primary-color;
36
     margin-left: 8px;
82
     margin-left: 8px;
37
   }
83
   }
84
+
38
   .nzContent {
85
   .nzContent {
39
     position: absolute;
86
     position: absolute;
40
     top: 88px;
87
     top: 88px;
@@ -43,6 +90,7 @@
43
     right: 0;
90
     right: 0;
44
     height: 100%;
91
     height: 100%;
45
   }
92
   }
93
+
46
   .modal {
94
   .modal {
47
     // 相对于 background 定位, 位置暂时设置为 0,0,0,0 在指令中将其位置水平垂直居中在页面中间
95
     // 相对于 background 定位, 位置暂时设置为 0,0,0,0 在指令中将其位置水平垂直居中在页面中间
48
     position: absolute;
96
     position: absolute;
@@ -59,10 +107,12 @@
59
     border: 1px solid #e5e9ed;
107
     border: 1px solid #e5e9ed;
60
     overflow: hidden;
108
     overflow: hidden;
61
     cursor: move;
109
     cursor: move;
110
+
62
     .drag-title {
111
     .drag-title {
63
       height: 50px;
112
       height: 50px;
64
       line-height: 50px;
113
       line-height: 50px;
65
       position: relative;
114
       position: relative;
115
+
66
       h2 {
116
       h2 {
67
         height: 100%;
117
         height: 100%;
68
         font-size: 18px;
118
         font-size: 18px;
@@ -70,6 +120,7 @@
70
         text-align: center;
120
         text-align: center;
71
         margin: 0;
121
         margin: 0;
72
       }
122
       }
123
+
73
       .icon-close {
124
       .icon-close {
74
         position: absolute;
125
         position: absolute;
75
         top: 0;
126
         top: 0;
@@ -79,6 +130,7 @@
79
         color: #dde1e5;
130
         color: #dde1e5;
80
       }
131
       }
81
     }
132
     }
133
+
82
     .dialog-center {
134
     .dialog-center {
83
       width: 235px;
135
       width: 235px;
84
       height: 208px;
136
       height: 208px;
@@ -87,6 +139,7 @@
87
       margin: 0 auto;
139
       margin: 0 auto;
88
       border-radius: 30px;
140
       border-radius: 30px;
89
       position: relative;
141
       position: relative;
142
+
90
       .dialog-code {
143
       .dialog-code {
91
         width: 180px;
144
         width: 180px;
92
         height: 200px;
145
         height: 200px;
@@ -97,30 +150,36 @@
97
         right: 0;
150
         right: 0;
98
         bottom: 0;
151
         bottom: 0;
99
         left: 0;
152
         left: 0;
153
+
100
         img {
154
         img {
101
           width: 100%;
155
           width: 100%;
102
         }
156
         }
103
       }
157
       }
104
     }
158
     }
159
+
105
     .dialog-operate {
160
     .dialog-operate {
106
       display: flex;
161
       display: flex;
107
       height: 40px;
162
       height: 40px;
108
       justify-content: space-between;
163
       justify-content: space-between;
109
       align-items: center;
164
       align-items: center;
110
       font-size: 14px;
165
       font-size: 14px;
166
+
111
       .dialog-refresh {
167
       .dialog-refresh {
112
         color: @primary-color;
168
         color: @primary-color;
113
         margin-left: 40px;
169
         margin-left: 40px;
114
         cursor: pointer;
170
         cursor: pointer;
115
       }
171
       }
172
+
116
       span {
173
       span {
117
         color: #999;
174
         color: #999;
118
         margin-right: 40px;
175
         margin-right: 40px;
119
       }
176
       }
120
     }
177
     }
121
   }
178
   }
179
+
122
   // }
180
   // }
123
 }
181
 }
182
+
124
 // 查看标本详情 start
183
 // 查看标本详情 start
125
 .noData33 {
184
 .noData33 {
126
   height: 100%;
185
   height: 100%;
@@ -129,6 +188,7 @@
129
   align-items: center;
188
   align-items: center;
130
   font-weight: bold;
189
   font-weight: bold;
131
 }
190
 }
191
+
132
 .loading33 {
192
 .loading33 {
133
   height: 100%;
193
   height: 100%;
134
   display: flex;
194
   display: flex;
@@ -136,6 +196,7 @@
136
   align-items: center;
196
   align-items: center;
137
   flex-direction: column;
197
   flex-direction: column;
138
 }
198
 }
199
+
139
 .detailModel {
200
 .detailModel {
140
   position: fixed;
201
   position: fixed;
141
   left: 0;
202
   left: 0;
@@ -147,6 +208,7 @@
147
   justify-content: center;
208
   justify-content: center;
148
   align-items: center;
209
   align-items: center;
149
   z-index: 999999;
210
   z-index: 999999;
211
+
150
   .box {
212
   .box {
151
     width: 1000px;
213
     width: 1000px;
152
     height: 580px;
214
     height: 580px;
@@ -156,6 +218,7 @@
156
     flex-direction: column;
218
     flex-direction: column;
157
     align-items: center;
219
     align-items: center;
158
     position: relative;
220
     position: relative;
221
+
159
     .transport-guanbi {
222
     .transport-guanbi {
160
       position: absolute;
223
       position: absolute;
161
       right: 16px;
224
       right: 16px;
@@ -164,6 +227,7 @@
164
       color: #8e9d9e;
227
       color: #8e9d9e;
165
       cursor: pointer;
228
       cursor: pointer;
166
     }
229
     }
230
+
167
     .title {
231
     .title {
168
       height: 50px;
232
       height: 50px;
169
       line-height: 50px;
233
       line-height: 50px;
@@ -172,6 +236,7 @@
172
       color: #333;
236
       color: #333;
173
       font-weight: bold;
237
       font-weight: bold;
174
     }
238
     }
239
+
175
     .table {
240
     .table {
176
       width: 960px;
241
       width: 960px;
177
       height: 474px;
242
       height: 474px;
@@ -181,52 +246,60 @@
181
       display: flex;
246
       display: flex;
182
       justify-content: center;
247
       justify-content: center;
183
       align-items: center;
248
       align-items: center;
249
+
184
       .table-content {
250
       .table-content {
185
         width: 896px;
251
         width: 896px;
186
         height: 420px;
252
         height: 420px;
187
         background-color: #fff;
253
         background-color: #fff;
188
         border-radius: 8px;
254
         border-radius: 8px;
189
         border: 1px solid #e5e9ed;
255
         border: 1px solid #e5e9ed;
256
+
190
         table {
257
         table {
191
           width: 100%;
258
           width: 100%;
192
           font-size: 14px;
259
           font-size: 14px;
193
           color: #333;
260
           color: #333;
261
+
194
           th,
262
           th,
195
           td {
263
           td {
196
             text-align: center !important;
264
             text-align: center !important;
197
             width: 167px;
265
             width: 167px;
198
             height: 100%;
266
             height: 100%;
267
+
199
             &:first-of-type {
268
             &:first-of-type {
200
               width: 59px;
269
               width: 59px;
201
             }
270
             }
202
           }
271
           }
272
+
203
           thead {
273
           thead {
204
             display: block;
274
             display: block;
205
             width: 100%;
275
             width: 100%;
206
             height: 40px;
276
             height: 40px;
207
             line-height: 40px;
277
             line-height: 40px;
208
-            background-image: linear-gradient(
209
-              90deg,
210
-              @bg-end 0%,
211
-              @bg-start 100%
212
-            );
278
+            background-image: linear-gradient(90deg,
279
+                @bg-end 0%,
280
+                @bg-start 100%);
281
+
213
             tr {
282
             tr {
214
               height: 40px;
283
               height: 40px;
215
               color: #fff;
284
               color: #fff;
216
             }
285
             }
217
           }
286
           }
287
+
218
           tbody {
288
           tbody {
219
             display: block;
289
             display: block;
220
             width: 894px;
290
             width: 894px;
221
             height: 380px;
291
             height: 380px;
222
             overflow-x: hidden;
292
             overflow-x: hidden;
223
             overflow-y: auto;
293
             overflow-y: auto;
294
+
224
             tr {
295
             tr {
225
               height: 34px;
296
               height: 34px;
226
               line-height: 34px;
297
               line-height: 34px;
298
+
227
               td:last-child {
299
               td:last-child {
228
                 position: relative;
300
                 position: relative;
229
               }
301
               }
302
+
230
               td {
303
               td {
231
                 .ji {
304
                 .ji {
232
                   position: absolute;
305
                   position: absolute;
@@ -234,8 +307,7 @@
234
                   top: -3px;
307
                   top: -3px;
235
                   width: 41px;
308
                   width: 41px;
236
                   height: 42px;
309
                   height: 42px;
237
-                  background: url(./../../../assets/images/icon_ji.png)
238
-                    no-repeat 3px 0;
310
+                  background: url(./../../../assets/images/icon_ji.png) no-repeat 3px 0;
239
                 }
311
                 }
240
               }
312
               }
241
             }
313
             }
@@ -243,11 +315,13 @@
243
         }
315
         }
244
       }
316
       }
245
     }
317
     }
318
+
246
     .btns {
319
     .btns {
247
       flex: 1;
320
       flex: 1;
248
       display: flex;
321
       display: flex;
249
       justify-content: center;
322
       justify-content: center;
250
       align-items: center;
323
       align-items: center;
324
+
251
       .btn {
325
       .btn {
252
         width: 120px;
326
         width: 120px;
253
         height: 34px;
327
         height: 34px;
@@ -263,25 +337,30 @@
263
     }
337
     }
264
   }
338
   }
265
 }
339
 }
340
+
266
 // 查看标本详情 end
341
 // 查看标本详情 end
267
 
342
 
268
 .nurse {
343
 .nurse {
269
   width: 100%;
344
   width: 100%;
270
   height: 100%;
345
   height: 100%;
346
+
271
   .otherBox {
347
   .otherBox {
272
     position: absolute;
348
     position: absolute;
273
     width: 100%;
349
     width: 100%;
274
     height: 100%;
350
     height: 100%;
275
     padding: 16px;
351
     padding: 16px;
352
+
276
     .otherBoxInner {
353
     .otherBoxInner {
277
       height: 100%;
354
       height: 100%;
278
       border: 1px solid #dde1e5;
355
       border: 1px solid #dde1e5;
279
       display: flex;
356
       display: flex;
357
+
280
       .otherBox-nav {
358
       .otherBox-nav {
281
         width: 20%;
359
         width: 20%;
282
         border-right: 1px solid #dde1e5;
360
         border-right: 1px solid #dde1e5;
283
         display: flex;
361
         display: flex;
284
         flex-direction: column;
362
         flex-direction: column;
363
+
285
         .otherBox-nav__head {
364
         .otherBox-nav__head {
286
           height: 50px;
365
           height: 50px;
287
           display: flex;
366
           display: flex;
@@ -290,21 +369,26 @@
290
           align-items: center;
369
           align-items: center;
291
           padding-left: 8px;
370
           padding-left: 8px;
292
           padding-right: 8px;
371
           padding-right: 8px;
372
+
293
           input {
373
           input {
294
             height: 36px;
374
             height: 36px;
295
           }
375
           }
296
         }
376
         }
377
+
297
         .otherBox-nav__main {
378
         .otherBox-nav__main {
298
           flex: 1;
379
           flex: 1;
299
           position: relative;
380
           position: relative;
381
+
300
           ::ng-deep .os-content {
382
           ::ng-deep .os-content {
301
             height: 100% !important;
383
             height: 100% !important;
302
           }
384
           }
385
+
303
           .otherBox-nav__mainInner {
386
           .otherBox-nav__mainInner {
304
             display: flex;
387
             display: flex;
305
             flex-direction: column;
388
             flex-direction: column;
306
             align-items: center;
389
             align-items: center;
307
             margin-top: 16px;
390
             margin-top: 16px;
391
+
308
             &.noData,
392
             &.noData,
309
             &.oLoading {
393
             &.oLoading {
310
               position: absolute;
394
               position: absolute;
@@ -313,6 +397,7 @@
313
               height: 100%;
397
               height: 100%;
314
               margin-top: 0;
398
               margin-top: 0;
315
             }
399
             }
400
+
316
             .otherBox-nav__mainItem {
401
             .otherBox-nav__mainItem {
317
               line-height: 26px;
402
               line-height: 26px;
318
               color: #333;
403
               color: #333;
@@ -323,6 +408,7 @@
323
               overflow: hidden;
408
               overflow: hidden;
324
               text-overflow: ellipsis;
409
               text-overflow: ellipsis;
325
               white-space: nowrap;
410
               white-space: nowrap;
411
+
326
               &.active {
412
               &.active {
327
                 color: @primary-color;
413
                 color: @primary-color;
328
                 background-color: #f0f6ed;
414
                 background-color: #f0f6ed;
@@ -331,37 +417,45 @@
331
           }
417
           }
332
         }
418
         }
333
       }
419
       }
420
+
334
       .otherBox-main {
421
       .otherBox-main {
335
         flex: 1;
422
         flex: 1;
336
         display: flex;
423
         display: flex;
337
         flex-direction: column;
424
         flex-direction: column;
425
+
338
         .otherBox-main__main {
426
         .otherBox-main__main {
339
           position: relative;
427
           position: relative;
340
           flex: 1;
428
           flex: 1;
429
+
341
           .modalBody {
430
           .modalBody {
342
             position: absolute;
431
             position: absolute;
343
             width: 100%;
432
             width: 100%;
344
             height: 100%;
433
             height: 100%;
345
             display: flex;
434
             display: flex;
346
           }
435
           }
436
+
347
           .modalBody_left {
437
           .modalBody_left {
348
             width: 50%;
438
             width: 50%;
349
             height: 100%;
439
             height: 100%;
350
             display: flex;
440
             display: flex;
351
             flex-direction: column;
441
             flex-direction: column;
352
             justify-content: space-between;
442
             justify-content: space-between;
443
+
353
             &.nLoading,
444
             &.nLoading,
354
             &.noData {
445
             &.noData {
355
               justify-content: center;
446
               justify-content: center;
356
               align-items: center;
447
               align-items: center;
448
+
357
               img {
449
               img {
358
                 width: 24px;
450
                 width: 24px;
359
               }
451
               }
452
+
360
               div {
453
               div {
361
                 display: inline-block;
454
                 display: inline-block;
362
               }
455
               }
363
             }
456
             }
364
           }
457
           }
458
+
365
           .modalBody_left_box {
459
           .modalBody_left_box {
366
             min-height: calc(100vh - 279px);
460
             min-height: calc(100vh - 279px);
367
             height: 100%;
461
             height: 100%;
@@ -371,6 +465,7 @@
371
             flex-direction: column;
465
             flex-direction: column;
372
             justify-content: space-between;
466
             justify-content: space-between;
373
           }
467
           }
468
+
374
           .modalBody_right_head {
469
           .modalBody_right_head {
375
             font-size: 16px;
470
             font-size: 16px;
376
             font-weight: bold;
471
             font-weight: bold;
@@ -378,12 +473,14 @@
378
             padding-bottom: 8px;
473
             padding-bottom: 8px;
379
             display: flex;
474
             display: flex;
380
             justify-content: space-between;
475
             justify-content: space-between;
476
+
381
             span {
477
             span {
382
               font-weight: normal;
478
               font-weight: normal;
383
               font-size: 14px;
479
               font-size: 14px;
384
               color: @primary-color;
480
               color: @primary-color;
385
             }
481
             }
386
           }
482
           }
483
+
387
           .modalBody_right_box {
484
           .modalBody_right_box {
388
             box-sizing: border-box;
485
             box-sizing: border-box;
389
             padding: 0 8px;
486
             padding: 0 8px;
@@ -391,6 +488,7 @@
391
             flex-direction: column;
488
             flex-direction: column;
392
             justify-content: center;
489
             justify-content: center;
393
           }
490
           }
491
+
394
           .modalBody_right {
492
           .modalBody_right {
395
             width: 50%;
493
             width: 50%;
396
             height: 100%;
494
             height: 100%;
@@ -399,15 +497,18 @@
399
             justify-content: center;
497
             justify-content: center;
400
             border-left: 1px solid #dde1e5;
498
             border-left: 1px solid #dde1e5;
401
             padding: 8px;
499
             padding: 8px;
500
+
402
             .modalBody_right_list {
501
             .modalBody_right_list {
403
               text-align: justify;
502
               text-align: justify;
404
               border-bottom: 1px solid #dde1e5;
503
               border-bottom: 1px solid #dde1e5;
405
               padding: 8px 0;
504
               padding: 8px 0;
505
+
406
               b {
506
               b {
407
                 color: @primary-color;
507
                 color: @primary-color;
408
               }
508
               }
409
             }
509
             }
410
           }
510
           }
511
+
411
           .modalBody_box {
512
           .modalBody_box {
412
             position: absolute;
513
             position: absolute;
413
             width: 100%;
514
             width: 100%;
@@ -422,16 +523,20 @@
422
               flex-direction: column;
523
               flex-direction: column;
423
               justify-content: center;
524
               justify-content: center;
424
               align-items: center;
525
               align-items: center;
425
-              & > div {
526
+
527
+              &>div {
426
                 width: 100%;
528
                 width: 100%;
427
               }
529
               }
530
+
428
               .shortcutForm {
531
               .shortcutForm {
429
                 width: 100%;
532
                 width: 100%;
533
+
430
                 .ant-form-item-label {
534
                 .ant-form-item-label {
431
                   text-align: left;
535
                   text-align: left;
432
                 }
536
                 }
433
               }
537
               }
434
             }
538
             }
539
+
435
             .btns {
540
             .btns {
436
               padding-bottom: 16px;
541
               padding-bottom: 16px;
437
               padding-top: 16px;
542
               padding-top: 16px;
@@ -441,6 +546,7 @@
441
       }
546
       }
442
     }
547
     }
443
   }
548
   }
549
+
444
   .layout {
550
   .layout {
445
     background: #fff;
551
     background: #fff;
446
   }
552
   }
@@ -528,6 +634,7 @@
528
           overflow: hidden;
634
           overflow: hidden;
529
           padding-right: 10%;
635
           padding-right: 10%;
530
           background: #0f2e3b;
636
           background: #0f2e3b;
637
+
531
           &.inspect {
638
           &.inspect {
532
             .item {
639
             .item {
533
               min-height: 132px;
640
               min-height: 132px;
@@ -565,14 +672,17 @@
565
               justify-content: center;
672
               justify-content: center;
566
               font-size: 14px;
673
               font-size: 14px;
567
               border-bottom: 1px solid #284450;
674
               border-bottom: 1px solid #284450;
675
+
568
               i {
676
               i {
569
                 color: @primary-color;
677
                 color: @primary-color;
570
                 font-size: 20px;
678
                 font-size: 20px;
571
                 font-weight: normal;
679
                 font-weight: normal;
572
                 margin-right: 4px;
680
                 margin-right: 4px;
681
+
573
                 &.colorRed {
682
                 &.colorRed {
574
                   color: red;
683
                   color: red;
575
                 }
684
                 }
685
+
576
                 &.transport-te1 {
686
                 &.transport-te1 {
577
                   font-size: 22px;
687
                   font-size: 22px;
578
                 }
688
                 }
@@ -581,6 +691,7 @@
581
 
691
 
582
             .checkInfo {
692
             .checkInfo {
583
               padding: 8px 0;
693
               padding: 8px 0;
694
+
584
               .transport-zhongdianguanzhu {
695
               .transport-zhongdianguanzhu {
585
                 cursor: pointer;
696
                 cursor: pointer;
586
               }
697
               }
@@ -595,11 +706,9 @@
595
             }
706
             }
596
 
707
 
597
             .btn {
708
             .btn {
598
-              background-image: linear-gradient(
599
-                90deg,
600
-                @bg-start 0%,
601
-                @bg-end 100%
602
-              );
709
+              background-image: linear-gradient(90deg,
710
+                  @bg-start 0%,
711
+                  @bg-end 100%);
603
               line-height: 28px;
712
               line-height: 28px;
604
               text-align: center;
713
               text-align: center;
605
               border-radius: 4px;
714
               border-radius: 4px;
@@ -660,12 +769,14 @@
660
           font-size: 22px;
769
           font-size: 22px;
661
           color: #333;
770
           color: #333;
662
           flex: 1;
771
           flex: 1;
772
+
663
           .updateTipsForNurses {
773
           .updateTipsForNurses {
664
             margin: 0;
774
             margin: 0;
665
             width: 50%;
775
             width: 50%;
666
             line-height: normal;
776
             line-height: normal;
667
             font-size: 14px;
777
             font-size: 14px;
668
           }
778
           }
779
+
669
           .nurseCode {
780
           .nurseCode {
670
             width: 80px;
781
             width: 80px;
671
             font-size: 14px;
782
             font-size: 14px;
@@ -675,6 +786,7 @@
675
             align-items: center;
786
             align-items: center;
676
             margin-right: 40px;
787
             margin-right: 40px;
677
             cursor: pointer;
788
             cursor: pointer;
789
+
678
             .nurseCodeIcon {
790
             .nurseCodeIcon {
679
               margin-right: 8px;
791
               margin-right: 8px;
680
               font-size: 24px;
792
               font-size: 24px;
@@ -709,9 +821,11 @@
709
               margin-right: 8px;
821
               margin-right: 8px;
710
             }
822
             }
711
           }
823
           }
824
+
712
           .userInfo-wrap {
825
           .userInfo-wrap {
713
             display: flex;
826
             display: flex;
714
             justify-content: flex-end;
827
             justify-content: flex-end;
828
+
715
             .logOut {
829
             .logOut {
716
               display: inline-block;
830
               display: inline-block;
717
               text-align: right;
831
               text-align: right;
@@ -767,8 +881,7 @@
767
               width: 56px;
881
               width: 56px;
768
               height: 56px;
882
               height: 56px;
769
               margin-top: 6px;
883
               margin-top: 6px;
770
-              background: url(../../../assets/images/icon_hushebei2.png) center
771
-                no-repeat;
884
+              background: url(../../../assets/images/icon_hushebei2.png) center no-repeat;
772
             }
885
             }
773
 
886
 
774
             &:nth-child(2n) {
887
             &:nth-child(2n) {
@@ -802,7 +915,7 @@
802
         width: 100%;
915
         width: 100%;
803
         height: 100%;
916
         height: 100%;
804
 
917
 
805
-        & > div {
918
+        &>div {
806
           height: 100%;
919
           height: 100%;
807
 
920
 
808
           &:nth-child(1) {
921
           &:nth-child(1) {
@@ -849,11 +962,9 @@
849
 
962
 
850
                   .btn {
963
                   .btn {
851
                     height: 48%;
964
                     height: 48%;
852
-                    background-image: linear-gradient(
853
-                      90deg,
854
-                      @bg-start 0%,
855
-                      @bg-end 100%
856
-                    );
965
+                    background-image: linear-gradient(90deg,
966
+                        @bg-start 0%,
967
+                        @bg-end 100%);
857
                     border-radius: 4px;
968
                     border-radius: 4px;
858
                     color: #fff;
969
                     color: #fff;
859
                     padding: 0;
970
                     padding: 0;
@@ -928,6 +1039,7 @@
928
               line-height: 60px;
1039
               line-height: 60px;
929
               cursor: default;
1040
               cursor: default;
930
               overflow: hidden;
1041
               overflow: hidden;
1042
+
931
               .cur {
1043
               .cur {
932
                 height: 100%;
1044
                 height: 100%;
933
                 border-radius: 4px;
1045
                 border-radius: 4px;
@@ -935,6 +1047,7 @@
935
                 background-size: 400% 100%;
1047
                 background-size: 400% 100%;
936
                 color: #333;
1048
                 color: #333;
937
                 border: 1px solid #e5e9ed;
1049
                 border: 1px solid #e5e9ed;
1050
+
938
                 .text {
1051
                 .text {
939
                   width: 100%;
1052
                   width: 100%;
940
                   text-align: center;
1053
                   text-align: center;
@@ -943,6 +1056,7 @@
943
                   top: 50%;
1056
                   top: 50%;
944
                   transform: translate(-50%, -50%);
1057
                   transform: translate(-50%, -50%);
945
                 }
1058
                 }
1059
+
946
                 .arrow {
1060
                 .arrow {
947
                   width: 20px;
1061
                   width: 20px;
948
                   text-align: center;
1062
                   text-align: center;
@@ -950,7 +1064,8 @@
950
                   font-size: 30px;
1064
                   font-size: 30px;
951
                   top: 45%;
1065
                   top: 45%;
952
                   transform: translateY(-50%);
1066
                   transform: translateY(-50%);
953
-                  left: 140px; /* 移动130~150px */
1067
+                  left: 140px;
1068
+                  /* 移动130~150px */
954
                   /* 调用动画 */
1069
                   /* 调用动画 */
955
                   animation-name: arrow_move;
1070
                   animation-name: arrow_move;
956
                   /* 持续时间 */
1071
                   /* 持续时间 */
@@ -960,7 +1075,7 @@
960
                 }
1075
                 }
961
               }
1076
               }
962
 
1077
 
963
-              & > div {
1078
+              &>div {
964
                 padding: 0 8px;
1079
                 padding: 0 8px;
965
               }
1080
               }
966
 
1081
 
@@ -973,11 +1088,9 @@
973
                 width: 104px;
1088
                 width: 104px;
974
                 height: 34px;
1089
                 height: 34px;
975
                 line-height: 34px;
1090
                 line-height: 34px;
976
-                background-image: linear-gradient(
977
-                  90deg,
978
-                  @bg-start 0%,
979
-                  @bg-end 100%
980
-                );
1091
+                background-image: linear-gradient(90deg,
1092
+                    @bg-start 0%,
1093
+                    @bg-end 100%);
981
                 border-radius: 4px;
1094
                 border-radius: 4px;
982
                 color: #fff;
1095
                 color: #fff;
983
                 border: none;
1096
                 border: none;
@@ -1003,11 +1116,9 @@
1003
                 }
1116
                 }
1004
 
1117
 
1005
                 &:nth-child(2) {
1118
                 &:nth-child(2) {
1006
-                  background-image: linear-gradient(
1007
-                    135deg,
1008
-                    @bg-start 0%,
1009
-                    @bg-end 100%
1010
-                  );
1119
+                  background-image: linear-gradient(135deg,
1120
+                      @bg-start 0%,
1121
+                      @bg-end 100%);
1011
                   border: solid 1px @primary-color;
1122
                   border: solid 1px @primary-color;
1012
                   margin-left: 8px;
1123
                   margin-left: 8px;
1013
                 }
1124
                 }
@@ -1046,11 +1157,9 @@
1046
                 }
1157
                 }
1047
 
1158
 
1048
                 .thead {
1159
                 .thead {
1049
-                  background-image: linear-gradient(
1050
-                    to right,
1051
-                    @bg-start,
1052
-                    @bg-end
1053
-                  );
1160
+                  background-image: linear-gradient(to right,
1161
+                      @bg-start,
1162
+                      @bg-end );
1054
                   padding: 10px 0;
1163
                   padding: 10px 0;
1055
 
1164
 
1056
                   th {
1165
                   th {
@@ -1138,7 +1247,7 @@
1138
             z-index: 9;
1247
             z-index: 9;
1139
             background: #fff;
1248
             background: #fff;
1140
 
1249
 
1141
-            & > span {
1250
+            &>span {
1142
               font-size: 16px;
1251
               font-size: 16px;
1143
               color: #666;
1252
               color: #666;
1144
               font-weight: 500;
1253
               font-weight: 500;
@@ -1184,6 +1293,7 @@
1184
                     width: 100%;
1293
                     width: 100%;
1185
                     overflow: hidden;
1294
                     overflow: hidden;
1186
                     position: relative;
1295
                     position: relative;
1296
+
1187
                     .icon_ji {
1297
                     .icon_ji {
1188
                       position: absolute;
1298
                       position: absolute;
1189
                       right: -3px;
1299
                       right: -3px;
@@ -1426,6 +1536,7 @@
1426
       overflow: hidden;
1536
       overflow: hidden;
1427
       margin-top: 12px;
1537
       margin-top: 12px;
1428
       padding: 16px 10px;
1538
       padding: 16px 10px;
1539
+
1429
       &.bb {
1540
       &.bb {
1430
         display: flex;
1541
         display: flex;
1431
         justify-content: center;
1542
         justify-content: center;
@@ -1457,6 +1568,7 @@
1457
             .linkCheckCheck {
1568
             .linkCheckCheck {
1458
               text-indent: 7px;
1569
               text-indent: 7px;
1459
               margin-top: 0;
1570
               margin-top: 0;
1571
+
1460
               .priority {
1572
               .priority {
1461
                 color: #d81e06;
1573
                 color: #d81e06;
1462
               }
1574
               }
@@ -1479,6 +1591,7 @@
1479
           }
1591
           }
1480
         }
1592
         }
1481
       }
1593
       }
1594
+
1482
       .shortcutForm {
1595
       .shortcutForm {
1483
         padding-top: 20px;
1596
         padding-top: 20px;
1484
 
1597
 
@@ -1500,6 +1613,7 @@
1500
         text-align: center;
1613
         text-align: center;
1501
         color: #666;
1614
         color: #666;
1502
         padding: 8px 0;
1615
         padding: 8px 0;
1616
+
1503
         &.jiTitB {
1617
         &.jiTitB {
1504
           color: @primary-color;
1618
           color: @primary-color;
1505
           font-size: 12px;
1619
           font-size: 12px;
@@ -1507,7 +1621,7 @@
1507
         }
1621
         }
1508
       }
1622
       }
1509
 
1623
 
1510
-      & > div {
1624
+      &>div {
1511
         margin: 0;
1625
         margin: 0;
1512
 
1626
 
1513
         &.title {
1627
         &.title {
@@ -1592,6 +1706,7 @@
1592
     }
1706
     }
1593
   }
1707
   }
1594
 }
1708
 }
1709
+
1595
 .commonModal {
1710
 .commonModal {
1596
   position: fixed;
1711
   position: fixed;
1597
   left: 0;
1712
   left: 0;
@@ -1635,7 +1750,7 @@
1635
       overflow: hidden;
1750
       overflow: hidden;
1636
       margin-top: 12px;
1751
       margin-top: 12px;
1637
 
1752
 
1638
-      & > div {
1753
+      &>div {
1639
         text-align: center;
1754
         text-align: center;
1640
         margin: 0;
1755
         margin: 0;
1641
 
1756
 
@@ -1666,6 +1781,7 @@
1666
           color: #666;
1781
           color: #666;
1667
         }
1782
         }
1668
       }
1783
       }
1784
+
1669
       .roundRobinTips {
1785
       .roundRobinTips {
1670
         font-size: 12px;
1786
         font-size: 12px;
1671
       }
1787
       }
@@ -1726,7 +1842,7 @@
1726
     z-index: 88;
1842
     z-index: 88;
1727
   }
1843
   }
1728
 
1844
 
1729
-  & > .left {
1845
+  &>.left {
1730
     width: 480px;
1846
     width: 480px;
1731
     float: left;
1847
     float: left;
1732
     background: #fff;
1848
     background: #fff;
@@ -1755,7 +1871,7 @@
1755
               padding: 15px 6px;
1871
               padding: 15px 6px;
1756
               text-align: center;
1872
               text-align: center;
1757
 
1873
 
1758
-              & > .tdiv {
1874
+              &>.tdiv {
1759
                 overflow: hidden;
1875
                 overflow: hidden;
1760
 
1876
 
1761
                 .name {
1877
                 .name {
@@ -1792,7 +1908,7 @@
1792
       }
1908
       }
1793
 
1909
 
1794
       .conditions {
1910
       .conditions {
1795
-        & > .ant-row {
1911
+        &>.ant-row {
1796
           margin: 8px 0;
1912
           margin: 8px 0;
1797
 
1913
 
1798
           .ant-row {
1914
           .ant-row {

+ 78 - 6
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -237,9 +237,9 @@ export class HushijiandanComponent implements OnInit {
237
     this.mainService.fetchListBx('area', { idx: 0, sum: 1000 }).subscribe((result: any) => {
237
     this.mainService.fetchListBx('area', { idx: 0, sum: 1000 }).subscribe((result: any) => {
238
       if (result.status == 200) {
238
       if (result.status == 200) {
239
         this.areas = result.list;
239
         this.areas = result.list;
240
-        if(this.areas.length){
240
+        if (this.areas.length) {
241
           this.bxForm.controls.hospital.setValue(this.areas[0].id);
241
           this.bxForm.controls.hospital.setValue(this.areas[0].id);
242
-        }else{
242
+        } else {
243
           this.bxForm.controls.hospital.setValue(null);
243
           this.bxForm.controls.hospital.setValue(null);
244
         }
244
         }
245
       }
245
       }
@@ -252,9 +252,9 @@ export class HushijiandanComponent implements OnInit {
252
     this.mainService.fetchListBx('place', { idx: 0, sum: 1000, place: { area: { id: buildingId } } }).subscribe((result: any) => {
252
     this.mainService.fetchListBx('place', { idx: 0, sum: 1000, place: { area: { id: buildingId } } }).subscribe((result: any) => {
253
       if (result.status == 200) {
253
       if (result.status == 200) {
254
         this.places = result.list;
254
         this.places = result.list;
255
-        if(this.places.length){
255
+        if (this.places.length) {
256
           this.bxForm.controls.building.setValue(this.places[0].id);
256
           this.bxForm.controls.building.setValue(this.places[0].id);
257
-        }else{
257
+        } else {
258
           this.bxForm.controls.building.setValue(null);
258
           this.bxForm.controls.building.setValue(null);
259
         }
259
         }
260
       }
260
       }
@@ -744,6 +744,61 @@ export class HushijiandanComponent implements OnInit {
744
       }
744
       }
745
     );
745
     );
746
   }
746
   }
747
+  // 是否确定报修模态框
748
+  bxModal: boolean = false; //模态框
749
+  loading6 = false;
750
+  tipsMsg2: string; //提示框信息
751
+  coopBx: any; //当前操作列
752
+  showBxModal(data: any, tipsMsg2: string) {
753
+    this.bxModal = true;
754
+    this.coopBx = data;
755
+    this.tipsMsg2 = tipsMsg2;
756
+  }
757
+  // 隐藏模态框
758
+  hideBxModal() {
759
+    this.bxModal = false;
760
+  }
761
+  // 确认
762
+  confirmBx() {
763
+    this.loading6 = true;
764
+    this.mainService.wxbx({}).subscribe(result => {
765
+      if ((result as any).status == 200) {
766
+        let bxcode = (result as any).data;//生成微信报修号
767
+        let postData: any = {
768
+          verification: "true",
769
+          incident: {
770
+            contacts: this.loginUser.name,
771
+            contactsInformation: this.loginUser.phone,
772
+            description: this.coopBx.content,
773
+            requester: { account: this.loginUser.account },
774
+            sourceType: "wechatUserIncident",
775
+            fileUrl: "url",
776
+            bxcode
777
+          },
778
+          loginUser: {
779
+            account: this.loginUser.account,
780
+            id: this.loginUser.id
781
+          }
782
+        };
783
+        if (this.coopBx.category) {
784
+          postData.incident.categoryId = this.coopBx.category.id
785
+        }
786
+        this.mainService.addWxIncident(postData).subscribe(res => {
787
+          this.loading6 = false;
788
+          this.bxModal = false;
789
+          if ((res as any).state == 200) {
790
+            this.showPromptModal("提交", true, "");
791
+            this.checkTable('bxlb');
792
+          } else {
793
+            this.showPromptModal("提交", false, (res as any).msg);
794
+          }
795
+        })
796
+      } else {
797
+        this.loading6 = false;
798
+        this.showPromptModal("提交", false, "");
799
+      }
800
+    })
801
+  }
747
 
802
 
748
   // 获取当前登录人科室任务类型信息
803
   // 获取当前登录人科室任务类型信息
749
   othersList: any = []; // 其他一键建单列表
804
   othersList: any = []; // 其他一键建单列表
@@ -2287,6 +2342,7 @@ export class HushijiandanComponent implements OnInit {
2287
     } else if (type === "bxlb") {
2342
     } else if (type === "bxlb") {
2288
       this.getBxlb();
2343
       this.getBxlb();
2289
     } else if (type === "kjbx") {
2344
     } else if (type === "kjbx") {
2345
+      this.getQuickBxlb();
2290
       // 获取报修的区域(所属院区)
2346
       // 获取报修的区域(所属院区)
2291
       this.getArea();
2347
       this.getArea();
2292
       this.bxForm.controls.name.setValue(this.loginUser.name);
2348
       this.bxForm.controls.name.setValue(this.loginUser.name);
@@ -2302,6 +2358,7 @@ export class HushijiandanComponent implements OnInit {
2302
       this.bxForm.controls[i].markAsDirty();
2358
       this.bxForm.controls[i].markAsDirty();
2303
       this.bxForm.controls[i].updateValueAndValidity();
2359
       this.bxForm.controls[i].updateValueAndValidity();
2304
     }
2360
     }
2361
+    if (this.bxForm.invalid) return;
2305
     this.bxLoading = true;
2362
     this.bxLoading = true;
2306
     this.mainService.wxbx({}).subscribe(result => {
2363
     this.mainService.wxbx({}).subscribe(result => {
2307
       if ((result as any).status == 200) {
2364
       if ((result as any).status == 200) {
@@ -2330,11 +2387,11 @@ export class HushijiandanComponent implements OnInit {
2330
           if ((res as any).state == 200) {
2387
           if ((res as any).state == 200) {
2331
             this.showPromptModal("提交", true, "");
2388
             this.showPromptModal("提交", true, "");
2332
             this.checkTable('bxlb');
2389
             this.checkTable('bxlb');
2333
-          }else{
2390
+          } else {
2334
             this.showPromptModal("提交", false, (res as any).msg);
2391
             this.showPromptModal("提交", false, (res as any).msg);
2335
           }
2392
           }
2336
         })
2393
         })
2337
-      }else{
2394
+      } else {
2338
         this.bxLoading = false;
2395
         this.bxLoading = false;
2339
         this.showPromptModal("提交", false, "");
2396
         this.showPromptModal("提交", false, "");
2340
       }
2397
       }
@@ -2440,6 +2497,21 @@ export class HushijiandanComponent implements OnInit {
2440
       });
2497
       });
2441
   }
2498
   }
2442
 
2499
 
2500
+  //快速报修列表
2501
+  quickBxlbLoading = false;
2502
+  quickBxlbList = [];
2503
+  getQuickBxlb() {
2504
+    this.quickBxlbLoading = true;
2505
+    this.mainService
2506
+      .fetchListBx("incidentCategoryContent", { idx: 0, sum: 10 })
2507
+      .subscribe((data: any) => {
2508
+        this.quickBxlbLoading = false;
2509
+        if (data.status == 200) {
2510
+          this.quickBxlbList = data.list || [];
2511
+        }
2512
+      });
2513
+  }
2514
+
2443
   // 意见箱-查看模态框
2515
   // 意见箱-查看模态框
2444
   adviceModal: boolean = false;
2516
   adviceModal: boolean = false;
2445
   adviceDetailInfo: any = {}; //意见详情
2517
   adviceDetailInfo: any = {}; //意见详情