Explorar el Código

当前人需要选择组

seimin hace 3 semanas
padre
commit
7ab30eb261

+ 1 - 1
src/app/views/inspection-configuration/inspection-configuration.component.html

@@ -131,7 +131,7 @@
131 131
               </nz-radio-group>
132 132
             </nz-form-control>
133 133
           </nz-form-item>
134
-          <nz-form-item *ngIf="validateForm.value.userGroup == 2 || validateForm.value.userGroup == 3">
134
+          <nz-form-item>
135 135
             <nz-form-label [nzSpan]="5" nzRequired nzFor="groupId">维&nbsp;&nbsp;修&nbsp;&nbsp;组</nz-form-label>
136 136
             <nz-form-control [nzSpan]="19" nzErrorTip="请选择维修组!">
137 137
               <nz-select (nzOnSearch)="changeInp('group', $event)" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear formControlName="groupId" nzPlaceHolder="请选择维修组" (nzOpenChange)="changeInp('group', '')">

+ 2 - 4
src/app/views/inspection-configuration/inspection-configuration.component.ts

@@ -335,7 +335,7 @@ export class InspectionConfigurationComponent implements OnInit {
335 335
 
336 336
         data.groupDTO && (this.groupList = [data.groupDTO]);
337 337
         this.validateForm.controls.groupId.setValue(data.groupId);
338
-        this.requiredChange('groupId', data.userGroup == 2 || data.userGroup == 3);
338
+        this.requiredChange('groupId', true);
339 339
 
340 340
         data.userDTO && (this.userList = [data.userDTO]);
341 341
         this.validateForm.controls.userId.setValue(data.userId);
@@ -379,11 +379,9 @@ export class InspectionConfigurationComponent implements OnInit {
379 379
     this.requiredChange('createOrder', value == 1);
380 380
     this.validateForm.controls.createOrder.setValue(0);
381 381
 
382
-    this.requiredChange('repairDeptId', value == 1);
383 382
     this.validateForm.controls.repairDeptId.setValue(null);
384 383
     this.repairDeptList = [];
385 384
 
386
-    this.requiredChange('categoryId', value == 1);
387 385
     this.validateForm.controls.categoryId.setValue(null);
388 386
     this.categoryList = [];
389 387
 
@@ -420,7 +418,7 @@ export class InspectionConfigurationComponent implements OnInit {
420 418
   }
421 419
 
422 420
   changeUserGroup(value){
423
-    this.requiredChange('groupId', value == 2 || value == 3);
421
+    this.requiredChange('groupId', true);
424 422
     this.validateForm.controls.groupId.setValue(null);
425 423
     this.groupList = [];
426 424