seimin 4 months ago
parent
commit
77d8de22d8

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

@@ -65,23 +65,25 @@
65
           <tr class="thead">
65
           <tr class="thead">
66
             <th nzWidth="5%">序号</th>
66
             <th nzWidth="5%">序号</th>
67
             <th nzWidth="10%">姓名</th>
67
             <th nzWidth="10%">姓名</th>
68
-            <th nzWidth="10%">用户名</th>
68
+            <th nzWidth="5%">用户名</th>
69
+            <th nzWidth="10%">绩效ID</th>
69
             <th nzWidth="5%">性别</th>
70
             <th nzWidth="5%">性别</th>
70
             <th nzWidth="10%">手机号码</th>
71
             <th nzWidth="10%">手机号码</th>
71
             <th nzWidth="15%">所属科室</th>
72
             <th nzWidth="15%">所属科室</th>
72
             <th nzWidth="15%">所属组</th>
73
             <th nzWidth="15%">所属组</th>
73
             <th nzWidth="10%">用户类型</th>
74
             <th nzWidth="10%">用户类型</th>
74
-            <th nzWidth="20%">操作</th>
75
+            <th nzWidth="15%">操作</th>
75
           </tr>
76
           </tr>
76
         </thead>
77
         </thead>
77
         <tbody>
78
         <tbody>
78
           <tr *ngFor="let data of listOfData;let index=index;">
79
           <tr *ngFor="let data of listOfData;let index=index;">
79
             <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
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
             <td>
87
             <td>
86
               <div *ngIf="data.group&&data.group.length">
88
               <div *ngIf="data.group&&data.group.length">
87
                 <div *ngFor="let gro of data.group;let i=index;">
89
                 <div *ngFor="let gro of data.group;let i=index;">
@@ -138,6 +140,14 @@
138
           </nz-form-control>
140
           </nz-form-control>
139
         </nz-form-item>
141
         </nz-form-item>
140
         <nz-form-item>
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
           <nz-form-label [nzSm]="6" [nzXs]="24" [nzRequired]="wxRequired" nzFor="weixin">微信</nz-form-label>
151
           <nz-form-label [nzSm]="6" [nzXs]="24" [nzRequired]="wxRequired" nzFor="weixin">微信</nz-form-label>
142
           <nz-form-control nzErrorTip="请填写微信!">
152
           <nz-form-control nzErrorTip="请填写微信!">
143
             <nz-input-group>
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
     this.validateForm = this.fb.group({
277
     this.validateForm = this.fb.group({
278
       name: [null, [Validators.required]],
278
       name: [null, [Validators.required]],
279
       account: [null, [Validators.required]],
279
       account: [null, [Validators.required]],
280
+      gradeId: [null],
280
       usertype: [this.userType + '', [Validators.required]],
281
       usertype: [this.userType + '', [Validators.required]],
281
       dept: [null, [Validators.required]],
282
       dept: [null, [Validators.required]],
282
       deptPhone: [null, [Validators.required]],
283
       deptPhone: [null, [Validators.required]],
@@ -327,6 +328,7 @@ export class ClinicalUsersManagementComponent implements OnInit {
327
       user: {
328
       user: {
328
         name: that.validateForm.value.name,
329
         name: that.validateForm.value.name,
329
         account: that.validateForm.value.account,
330
         account: that.validateForm.value.account,
331
+        gradeId: that.validateForm.value.gradeId,
330
         gender: { id: that.validateForm.value.gender, key: "user_gender" },
332
         gender: { id: that.validateForm.value.gender, key: "user_gender" },
331
         usertype: { id: that.validateForm.value.usertype },
333
         usertype: { id: that.validateForm.value.usertype },
332
         dept: { id: that.validateForm.value.dept },
334
         dept: { id: that.validateForm.value.dept },
@@ -418,6 +420,7 @@ export class ClinicalUsersManagementComponent implements OnInit {
418
             }
420
             }
419
             this.validateForm.controls.name.setValue(data.name);
421
             this.validateForm.controls.name.setValue(data.name);
420
             this.validateForm.controls.account.setValue(data.account);
422
             this.validateForm.controls.account.setValue(data.account);
423
+            this.validateForm.controls.gradeId.setValue(data.gradeId);
421
             this.validateForm.controls.usertype.setValue(data.usertype.id + "");
424
             this.validateForm.controls.usertype.setValue(data.usertype.id + "");
422
             if (data.dept) {
425
             if (data.dept) {
423
               this.validateForm.controls.dept.setValue(data.dept.id);
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
           <tr class="thead">
54
           <tr class="thead">
55
             <th nzWidth="5%">序号</th>
55
             <th nzWidth="5%">序号</th>
56
             <th nzWidth="10%">姓名</th>
56
             <th nzWidth="10%">姓名</th>
57
-            <th nzWidth="10%">用户名</th>
57
+            <th nzWidth="5%">用户名</th>
58
+            <th nzWidth="10%">绩效ID</th>
58
             <th nzWidth="5%">性别</th>
59
             <th nzWidth="5%">性别</th>
59
             <th nzWidth="10%">手机号码</th>
60
             <th nzWidth="10%">手机号码</th>
60
             <th nzWidth="15%">所属科室</th>
61
             <th nzWidth="15%">所属科室</th>
61
             <th nzWidth="15%">所属组</th>
62
             <th nzWidth="15%">所属组</th>
62
             <th nzWidth="10%">用户类型</th>
63
             <th nzWidth="10%">用户类型</th>
63
-            <th nzWidth="20%">操作</th>
64
+            <th nzWidth="15%">操作</th>
64
           </tr>
65
           </tr>
65
         </thead>
66
         </thead>
66
         <tbody>
67
         <tbody>
67
           <tr *ngFor="let data of listOfData;let index=index;">
68
           <tr *ngFor="let data of listOfData;let index=index;">
68
             <td>{{index+(pageIndex-1) * pageSize + 1}}</td>
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
             <td>
76
             <td>
75
               <div *ngIf="data.group&&data.group.length">
77
               <div *ngIf="data.group&&data.group.length">
76
                 <div *ngFor="let gro of data.group;let i=index;">
78
                 <div *ngFor="let gro of data.group;let i=index;">
@@ -127,6 +129,14 @@
127
           </nz-form-control>
129
           </nz-form-control>
128
         </nz-form-item>
130
         </nz-form-item>
129
         <nz-form-item>
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
           <nz-form-label [nzSm]="6" [nzXs]="24" [nzRequired]="wxRequired" nzFor="weixin">微信</nz-form-label>
140
           <nz-form-label [nzSm]="6" [nzXs]="24" [nzRequired]="wxRequired" nzFor="weixin">微信</nz-form-label>
131
           <nz-form-control nzErrorTip="请填写微信!">
141
           <nz-form-control nzErrorTip="请填写微信!">
132
             <nz-input-group>
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
     this.validateForm = this.fb.group({
352
     this.validateForm = this.fb.group({
353
       name: [null, [Validators.required]],
353
       name: [null, [Validators.required]],
354
       account: [null, [Validators.required]],
354
       account: [null, [Validators.required]],
355
+      gradeId: [null],
355
       usertype: [null, [Validators.required]],
356
       usertype: [null, [Validators.required]],
356
       companyId: [null],
357
       companyId: [null],
357
       dept: [null, [Validators.required]],
358
       dept: [null, [Validators.required]],
@@ -411,6 +412,7 @@ export class UsersManagementComponent implements OnInit {
411
       user: {
412
       user: {
412
         name: that.validateForm.value.name,
413
         name: that.validateForm.value.name,
413
         account: that.validateForm.value.account,
414
         account: that.validateForm.value.account,
415
+        gradeId: that.validateForm.value.gradeId,
414
         gender: { id: that.validateForm.value.gender, key: "user_gender" },
416
         gender: { id: that.validateForm.value.gender, key: "user_gender" },
415
         usertype: this.userTypes.find(v => v.value == that.validateForm.value.usertype),
417
         usertype: this.userTypes.find(v => v.value == that.validateForm.value.usertype),
416
         dept: { id: that.validateForm.value.dept },
418
         dept: { id: that.validateForm.value.dept },
@@ -534,6 +536,7 @@ export class UsersManagementComponent implements OnInit {
534
               }
536
               }
535
               this.validateForm.controls.name.setValue(data.name);
537
               this.validateForm.controls.name.setValue(data.name);
536
               this.validateForm.controls.account.setValue(data.account);
538
               this.validateForm.controls.account.setValue(data.account);
539
+              this.validateForm.controls.gradeId.setValue(data.gradeId);
537
               this.validateForm.controls.usertype.setValue(data.usertype.value);
540
               this.validateForm.controls.usertype.setValue(data.usertype.value);
538
               if (data.dept) {
541
               if (data.dept) {
539
                 this.validateForm.controls.dept.setValue(data.dept.id);
542
                 this.validateForm.controls.dept.setValue(data.dept.id);