瀏覽代碼

Merge branch 'master' of http://git.dashitech.com/seimin/zy-pc

maotao 9 月之前
父節點
當前提交
686bfee7a7

+ 2 - 2
src/app/components/configurationCenter/configuration-callcenter/configuration-callcenter.component.html

@@ -8,7 +8,7 @@
8 8
             节假日班次:
9 9
             <nz-select class="select" [nzDropdownMatchSelectWidth]="false" nzAllowClear [(ngModel)]="dataInfo.holidayClassId"
10 10
               nzPlaceHolder="请选择节假日班次" nzServerSearch>
11
-              <ng-container *ngFor="let data of classList1">
11
+              <ng-container *ngFor="let data of classList2">
12 12
                 <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
13 13
               </ng-container>
14 14
               <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
@@ -20,7 +20,7 @@
20 20
             工作日班次:
21 21
             <nz-select class="select" [nzDropdownMatchSelectWidth]="false" nzAllowClear [(ngModel)]="dataInfo.workdayClassId"
22 22
               nzPlaceHolder="请选择工作日班次" nzServerSearch>
23
-              <ng-container *ngFor="let data of classList2">
23
+              <ng-container *ngFor="let data of classList1">
24 24
                 <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
25 25
               </ng-container>
26 26
               <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>

+ 1 - 0
src/app/components/configurationCenter/configuration-callcenter/configuration-callcenter.component.ts

@@ -62,6 +62,7 @@ export class ConfigurationCallcenterComponent implements OnInit {
62 62
       sum: 9999,
63 63
       scheduleClass: {
64 64
         hospital: { id: this.currentHospital.id },
65
+        bindCall: 1,
65 66
         type,
66 67
       },
67 68
     };

+ 5 - 3
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.ts

@@ -175,6 +175,7 @@ export class ConfigurationDictionaryComponent implements OnInit {
175 175
           }
176 176
         }
177 177
       })
178
+      console.log(this.validateDictionaryForm.controls)
178 179
     })
179 180
   }
180 181
 
@@ -228,12 +229,13 @@ export class ConfigurationDictionaryComponent implements OnInit {
228 229
 
229 230
     //增加
230 231
     postData = [];
232
+    let rawValueObj = this.validateDictionaryForm.getRawValue();
231 233
     for (let i = 0; i < this.dictionaryList.length; i++) {
232 234
       postData.push({
233 235
         id: uuidValidate(this.dictionaryList[i].id) ? undefined : this.dictionaryList[i].id,
234
-        name: this.validateDictionaryForm.value['name_' + this.dictionaryList[i].id],
235
-        value: this.validateDictionaryForm.value['value_' + this.dictionaryList[i].id],
236
-        orders: this.validateDictionaryForm.value['orders_' + this.dictionaryList[i].id],
236
+        name: rawValueObj['name_' + this.dictionaryList[i].id],
237
+        value: rawValueObj['value_' + this.dictionaryList[i].id],
238
+        orders: rawValueObj['orders_' + this.dictionaryList[i].id],
237 239
         system: uuidValidate(this.dictionaryList[i].id) ? false : this.dictionaryList[i].system,
238 240
         key: this.activeDictionaryKey.key,
239 241
       })

+ 3 - 3
src/app/components/configurationCenter/configuration-priority/configuration-priority.component.html

@@ -96,7 +96,7 @@
96 96
           <nz-form-control [nzSpan]="18" nzErrorTip="请选择节假日班次!">
97 97
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="holidayClassId"
98 98
               nzPlaceHolder="请选择节假日班次" nzServerSearch>
99
-              <ng-container *ngFor="let data of classList1">
99
+              <ng-container *ngFor="let data of classList2">
100 100
                 <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
101 101
               </ng-container>
102 102
               <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
@@ -110,7 +110,7 @@
110 110
           <nz-form-control [nzSpan]="18" nzErrorTip="请选择工作日班次!">
111 111
             <nz-select [nzDropdownMatchSelectWidth]="false" nzAllowClear formControlName="workdayClassId"
112 112
               nzPlaceHolder="请选择工作日班次" nzServerSearch>
113
-              <ng-container *ngFor="let data of classList2">
113
+              <ng-container *ngFor="let data of classList1">
114 114
                 <nz-option *ngIf="!isLoading" [nzLabel]="data.name" [nzValue]="data.id"></nz-option>
115 115
               </ng-container>
116 116
               <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
@@ -126,4 +126,4 @@
126 126
       <button class="btn cancel" nz-button nzType="default" (click)="hidePriorityModal()">取消</button>
127 127
     </div>
128 128
   </div>
129
-</div>
129
+</div>

+ 1 - 0
src/app/components/configurationCenter/configuration-priority/configuration-priority.component.ts

@@ -178,6 +178,7 @@ export class ConfigurationPriorityComponent implements OnInit {
178 178
       sum: 9999,
179 179
       scheduleClass: {
180 180
         hospital: { id: this.currentHospital.id },
181
+        bindPriority: 1,
181 182
         type,
182 183
       },
183 184
     };

+ 27 - 5
src/app/views/classes-management/classes-management.component.html

@@ -12,17 +12,21 @@
12 12
         [nzLoading]="loading1">
13 13
         <thead>
14 14
           <tr class="thead">
15
-            <th nzWidth="20%">班次名称</th>
16
-            <th nzWidth="20%">班次描述</th>
17
-            <th nzWidth="20%">工作时间</th>
18
-            <th nzWidth="20%">工作日/节假日</th>
19
-            <th nzWidth="20%">操作</th>
15
+            <th nzWidth="14%">班次名称</th>
16
+            <th nzWidth="14%">班次描述</th>
17
+            <th nzWidth="14%">呼叫中心班次</th>
18
+            <th nzWidth="14%">优先级班次</th>
19
+            <th nzWidth="14%">工作时间</th>
20
+            <th nzWidth="14%">工作日/节假日</th>
21
+            <th nzWidth="16%">操作</th>
20 22
           </tr>
21 23
         </thead>
22 24
         <tbody>
23 25
           <tr *ngFor="let data of listOfData">
24 26
             <td>{{ data.name }}</td>
25 27
             <td>{{ (data.describe?data.describe:'-') }}</td>
28
+            <td>{{ data.bindCall == 1 ? '是' : '否' }}</td>
29
+            <td>{{ data.bindPriority == 1 ? '是' : '否' }}</td>
26 30
             <td>
27 31
               <div *ngIf="data.scheduleClassTimes">
28 32
                 <div *ngFor="let time of data.scheduleClassTimes">
@@ -77,6 +81,24 @@
77 81
           </nz-form-control>
78 82
         </nz-form-item>
79 83
         <nz-form-item>
84
+          <nz-form-label [nzSpan]="9" nzRequired nzFor="bindCall">呼叫中心班次</nz-form-label>
85
+          <nz-form-control [nzSpan]="15" nzErrorTip="请选择呼叫中心班次!">
86
+            <nz-radio-group formControlName="bindCall">
87
+              <label nz-radio [nzValue]="1">是</label>
88
+              <label nz-radio [nzValue]="0">否</label>
89
+            </nz-radio-group>
90
+          </nz-form-control>
91
+        </nz-form-item>
92
+        <nz-form-item>
93
+          <nz-form-label [nzSpan]="9" nzRequired nzFor="bindPriority">优先级班次</nz-form-label>
94
+          <nz-form-control [nzSpan]="15" nzErrorTip="请选择优先级班次!">
95
+            <nz-radio-group formControlName="bindPriority">
96
+              <label nz-radio [nzValue]="1">是</label>
97
+              <label nz-radio [nzValue]="0">否</label>
98
+            </nz-radio-group>
99
+          </nz-form-control>
100
+        </nz-form-item>
101
+        <nz-form-item>
80 102
           <nz-form-label [nzSm]="24" [nzXs]="24" nzRequired nzFor="datesType">适用日期类型</nz-form-label>
81 103
           <nz-form-control nzErrorTip="请选择适用日期类型!">
82 104
             <nz-checkbox-group formControlName="datesType" [(ngModel)]="oneOption"

+ 6 - 0
src/app/views/classes-management/classes-management.component.ts

@@ -101,6 +101,8 @@ export class ClassesManagementComponent implements OnInit {
101 101
     this.validateForm = this.fb.group({
102 102
       classesName: [null, [Validators.required]],
103 103
       description: [null, [Validators.required]],
104
+      bindCall: [0, [Validators.required]],
105
+      bindPriority: [0, [Validators.required]],
104 106
       datesType: [null, [this.dateValidator]],
105 107
       // 时间段1
106 108
       timerF1: [null, [Validators.required]],
@@ -189,6 +191,8 @@ export class ClassesManagementComponent implements OnInit {
189 191
       {
190 192
         name: that.validateForm.value.classesName,
191 193
         describe: that.validateForm.value.description,
194
+        bindCall: that.validateForm.value.bindCall,
195
+        bindPriority: that.validateForm.value.bindPriority,
192 196
         scheduleClassTimes: times,
193 197
         type: that.validateForm.value.datesType,
194 198
         hospital: { id: this.hospital },
@@ -258,6 +262,8 @@ export class ClassesManagementComponent implements OnInit {
258 262
     this.coopId = data.id;
259 263
     this.validateForm.controls.classesName.setValue(data.name);
260 264
     this.validateForm.controls.description.setValue(data.describe);
265
+    this.validateForm.controls.bindCall.setValue(data.bindCall);
266
+    this.validateForm.controls.bindPriority.setValue(data.bindPriority);
261 267
     if (data.type == 1) {
262 268
       this.oneOption[0]['checked'] = true;
263 269
     } else if (data.type == 2) {