seimin пре 4 месеци
родитељ
комит
77d8de22d8

+ 17 - 7
src/app/views/clinical-users-management/clinical-users-management.component.html

@@ -65,23 +65,25 @@
65 65
           <tr class="thead">
66 66
             <th nzWidth="5%">序号</th>
67 67
             <th nzWidth="10%">姓名</th>
68
-            <th nzWidth="10%">用户名</th>
68
+            <th nzWidth="5%">用户名</th>
69
+            <th nzWidth="10%">绩效ID</th>
69 70
             <th nzWidth="5%">性别</th>
70 71
             <th nzWidth="10%">手机号码</th>
71 72
             <th nzWidth="15%">所属科室</th>
72 73
             <th nzWidth="15%">所属组</th>
73 74
             <th nzWidth="10%">用户类型</th>
74
-            <th nzWidth="20%">操作</th>
75
+            <th nzWidth="15%">操作</th>
75 76
           </tr>
76 77
         </thead>
77 78
         <tbody>
78 79
           <tr *ngFor="let data of listOfData;let index=index;">
79 80
             <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
80
-            <td>{{ data.name||'-' }}</td>
81
-            <td>{{ data.account||'-' }}</td>
82
-            <td>{{data.gender?data.gender.name:'-'}}</td>
83
-            <td>{{ data.phone||'-' }}</td>
84
-            <td>{{ data.dept?data.dept.dept:'-' }}</td>
81
+            <td>{{ data.name }}</td>
82
+            <td>{{ data.account }}</td>
83
+            <td>{{ data.gradeId }}</td>
84
+            <td>{{data.gender?data.gender.name:''}}</td>
85
+            <td>{{ data.phone }}</td>
86
+            <td>{{ data.dept?data.dept.dept:'' }}</td>
85 87
             <td>
86 88
               <div *ngIf="data.group&&data.group.length">
87 89
                 <div *ngFor="let gro of data.group;let i=index;">
@@ -138,6 +140,14 @@
138 140
           </nz-form-control>
139 141
         </nz-form-item>
140 142
         <nz-form-item>
143
+          <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="gradeId">绩效ID</nz-form-label>
144
+          <nz-form-control nzErrorTip="请填写绩效ID!">
145
+            <nz-input-group>
146
+              <input type="gradeId" nz-input formControlName="gradeId" placeholder="请填写绩效ID" />
147
+            </nz-input-group>
148
+          </nz-form-control>
149
+        </nz-form-item>
150
+        <nz-form-item>
141 151
           <nz-form-label [nzSm]="6" [nzXs]="24" [nzRequired]="wxRequired" nzFor="weixin">微信</nz-form-label>
142 152
           <nz-form-control nzErrorTip="请填写微信!">
143 153
             <nz-input-group>

+ 3 - 0
src/app/views/clinical-users-management/clinical-users-management.component.ts

@@ -277,6 +277,7 @@ export class ClinicalUsersManagementComponent implements OnInit {
277 277
     this.validateForm = this.fb.group({
278 278
       name: [null, [Validators.required]],
279 279
       account: [null, [Validators.required]],
280
+      gradeId: [null],
280 281
       usertype: [this.userType + '', [Validators.required]],
281 282
       dept: [null, [Validators.required]],
282 283
       deptPhone: [null, [Validators.required]],
@@ -327,6 +328,7 @@ export class ClinicalUsersManagementComponent implements OnInit {
327 328
       user: {
328 329
         name: that.validateForm.value.name,
329 330
         account: that.validateForm.value.account,
331
+        gradeId: that.validateForm.value.gradeId,
330 332
         gender: { id: that.validateForm.value.gender, key: "user_gender" },
331 333
         usertype: { id: that.validateForm.value.usertype },
332 334
         dept: { id: that.validateForm.value.dept },
@@ -418,6 +420,7 @@ export class ClinicalUsersManagementComponent implements OnInit {
418 420
             }
419 421
             this.validateForm.controls.name.setValue(data.name);
420 422
             this.validateForm.controls.account.setValue(data.account);
423
+            this.validateForm.controls.gradeId.setValue(data.gradeId);
421 424
             this.validateForm.controls.usertype.setValue(data.usertype.id + "");
422 425
             if (data.dept) {
423 426
               this.validateForm.controls.dept.setValue(data.dept.id);

+ 17 - 7
src/app/views/users-management/users-management.component.html

@@ -54,23 +54,25 @@
54 54
           <tr class="thead">
55 55
             <th nzWidth="5%">序号</th>
56 56
             <th nzWidth="10%">姓名</th>
57
-            <th nzWidth="10%">用户名</th>
57
+            <th nzWidth="5%">用户名</th>
58
+            <th nzWidth="10%">绩效ID</th>
58 59
             <th nzWidth="5%">性别</th>
59 60
             <th nzWidth="10%">手机号码</th>
60 61
             <th nzWidth="15%">所属科室</th>
61 62
             <th nzWidth="15%">所属组</th>
62 63
             <th nzWidth="10%">用户类型</th>
63
-            <th nzWidth="20%">操作</th>
64
+            <th nzWidth="15%">操作</th>
64 65
           </tr>
65 66
         </thead>
66 67
         <tbody>
67 68
           <tr *ngFor="let data of listOfData;let index=index;">
68 69
             <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
69
-            <td>{{ data.name||'-' }}</td>
70
-            <td>{{ data.account||'-' }}</td>
71
-            <td>{{data.gender?data.gender.name:'-'}}</td>
72
-            <td>{{ data.phone||'-' }}</td>
73
-            <td>{{ data.dept?data.dept.dept:'-' }}</td>
70
+            <td>{{ data.name }}</td>
71
+            <td>{{ data.account }}</td>
72
+            <td>{{ data.gradeId }}</td>
73
+            <td>{{data.gender?data.gender.name:''}}</td>
74
+            <td>{{ data.phone }}</td>
75
+            <td>{{ data.dept?data.dept.dept:'' }}</td>
74 76
             <td>
75 77
               <div *ngIf="data.group&&data.group.length">
76 78
                 <div *ngFor="let gro of data.group;let i=index;">
@@ -127,6 +129,14 @@
127 129
           </nz-form-control>
128 130
         </nz-form-item>
129 131
         <nz-form-item>
132
+          <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="gradeId">绩效ID</nz-form-label>
133
+          <nz-form-control nzErrorTip="请填写绩效ID!">
134
+            <nz-input-group>
135
+              <input type="gradeId" nz-input formControlName="gradeId" placeholder="请填写绩效ID" />
136
+            </nz-input-group>
137
+          </nz-form-control>
138
+        </nz-form-item>
139
+        <nz-form-item>
130 140
           <nz-form-label [nzSm]="6" [nzXs]="24" [nzRequired]="wxRequired" nzFor="weixin">微信</nz-form-label>
131 141
           <nz-form-control nzErrorTip="请填写微信!">
132 142
             <nz-input-group>

+ 3 - 0
src/app/views/users-management/users-management.component.ts

@@ -352,6 +352,7 @@ export class UsersManagementComponent implements OnInit {
352 352
     this.validateForm = this.fb.group({
353 353
       name: [null, [Validators.required]],
354 354
       account: [null, [Validators.required]],
355
+      gradeId: [null],
355 356
       usertype: [null, [Validators.required]],
356 357
       companyId: [null],
357 358
       dept: [null, [Validators.required]],
@@ -411,6 +412,7 @@ export class UsersManagementComponent implements OnInit {
411 412
       user: {
412 413
         name: that.validateForm.value.name,
413 414
         account: that.validateForm.value.account,
415
+        gradeId: that.validateForm.value.gradeId,
414 416
         gender: { id: that.validateForm.value.gender, key: "user_gender" },
415 417
         usertype: this.userTypes.find(v => v.value == that.validateForm.value.usertype),
416 418
         dept: { id: that.validateForm.value.dept },
@@ -534,6 +536,7 @@ export class UsersManagementComponent implements OnInit {
534 536
               }
535 537
               this.validateForm.controls.name.setValue(data.name);
536 538
               this.validateForm.controls.account.setValue(data.account);
539
+              this.validateForm.controls.gradeId.setValue(data.gradeId);
537 540
               this.validateForm.controls.usertype.setValue(data.usertype.value);
538 541
               if (data.dept) {
539 542
                 this.validateForm.controls.dept.setValue(data.dept.id);