seimin 1 year ago
parent
commit
1221fb0e5d

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-    "target": "http://192.168.4.241",
3
+    "target": "http://192.168.4.170",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 14 - 10
src/app/views/clinical-users-management/clinical-users-management.component.ts

@@ -288,16 +288,20 @@ export class ClinicalUsersManagementComponent implements OnInit {
288 288
   }
289 289
   // 选择用户类型
290 290
   usertypeChange() {
291
-    if (this.validateForm.value.usertype == 106) {
292
-      //配送人员
293
-      this.wxRequired = true;
294
-      this.validateForm.get("weixin")!.setValidators(Validators.required);
295
-      this.validateForm.get("weixin")!.markAsDirty();
296
-    } else {
297
-      this.wxRequired = false;
298
-      this.validateForm.get("weixin")!.clearValidators();
299
-      this.validateForm.get("weixin")!.markAsPristine();
300
-    }
291
+    // if (this.validateForm.value.usertype == 106) {
292
+    //   //配送人员
293
+    //   this.wxRequired = true;
294
+    //   this.validateForm.get("weixin")!.setValidators(Validators.required);
295
+    //   this.validateForm.get("weixin")!.markAsDirty();
296
+    // } else {
297
+    //   this.wxRequired = false;
298
+    //   this.validateForm.get("weixin")!.clearValidators();
299
+    //   this.validateForm.get("weixin")!.markAsPristine();
300
+    // }
301
+    this.wxRequired = false;
302
+    this.validateForm.get("weixin")!.clearValidators();
303
+    this.validateForm.get("weixin")!.markAsPristine();
304
+
301 305
     this.validateForm.get("weixin")!.updateValueAndValidity();
302 306
   }
303 307
   // 表单提交

+ 12 - 0
src/app/views/quilt-washing-get-page-control/quilt-washing-get-page-control.component.html

@@ -48,6 +48,18 @@
48 48
             </nz-option>
49 49
           </nz-select>
50 50
         </div>
51
+        <!-- 特定科室无需填写回收数量 -->
52
+        <div class="display_flex align-items_center mb8">
53
+          <nz-form-label class="label" nzRequired>特定科室无需填写回收数量</nz-form-label>
54
+          <nz-select nzMode="multiple" class="w320px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear nzPlaceHolder="请选择" (nzOnSearch)="changeDept($event)" [(ngModel)]="noFillInQuantityIds">
55
+            <ng-container *ngFor="let data of clothingDepts">
56
+              <nz-option *ngIf="!isLoading" [nzLabel]="data.dept" nzValue="{{data.id}}"></nz-option>
57
+            </ng-container>
58
+            <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
59
+              <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
60
+            </nz-option>
61
+          </nz-select>
62
+        </div>
51 63
 
52 64
       </div>
53 65
       <!-- 自动建单配置 -->

+ 9 - 0
src/app/views/quilt-washing-get-page-control/quilt-washing-get-page-control.component.ts

@@ -20,6 +20,8 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
20 20
   clothingDept:any = null;
21 21
   // 批次号生成规则
22 22
   batchNoRule:any = null;
23
+  // 特定科室无需填写回收数量
24
+  noFillInQuantityIds:any = [];
23 25
   // 配置
24 26
   configs:any = {};
25 27
   searchTimerSubject = new Subject();
@@ -138,6 +140,11 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
138 140
       return;
139 141
     }
140 142
 
143
+    if(!this.noFillInQuantityIds.length){
144
+      this.msg.create("warning", "请先配置特定科室无需填写回收数量!");
145
+      return;
146
+    }
147
+
141 148
     let postData:any = {
142 149
       id: this.configs.id,
143 150
       taskType: this.clothingGetTypeId,
@@ -145,6 +152,7 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
145 152
       hosId: this.hosId,
146 153
       clothingDept: this.clothingDept,
147 154
       batchNoRule: { id: this.batchNoRule },
155
+      noFillInQuantityIds: this.noFillInQuantityIds.toString(),
148 156
     };
149 157
     this.btnLoading = true;
150 158
     this.otherPageControlService
@@ -184,6 +192,7 @@ export class QuiltWashingGetPageControlComponent implements OnInit {
184 192
           this.clothingDept = this.configs.clothingDept;
185 193
           this.batchNoRule = this.configs.batchNoRule ? this.configs.batchNoRule.id : null;
186 194
           this.clothingGetTypeId = this.configs.clothingGetTypeId || null;
195
+          this.noFillInQuantityIds = this.configs.noFillInQuantityIds ? this.configs.noFillInQuantityIds.split(',') : [];
187 196
         }
188 197
       });
189 198
   }

+ 14 - 10
src/app/views/users-management/users-management.component.ts

@@ -264,16 +264,20 @@ export class UsersManagementComponent implements OnInit {
264 264
   }
265 265
   // 选择用户类型
266 266
   usertypeChange() {
267
-    if (this.validateForm.value.usertype == 106) {
268
-      //配送人员
269
-      this.wxRequired = true;
270
-      this.validateForm.get("weixin")!.setValidators(Validators.required);
271
-      this.validateForm.get("weixin")!.markAsDirty();
272
-    } else {
273
-      this.wxRequired = false;
274
-      this.validateForm.get("weixin")!.clearValidators();
275
-      this.validateForm.get("weixin")!.markAsPristine();
276
-    }
267
+    // if (this.validateForm.value.usertype == 106) {
268
+    //   //配送人员
269
+    //   this.wxRequired = true;
270
+    //   this.validateForm.get("weixin")!.setValidators(Validators.required);
271
+    //   this.validateForm.get("weixin")!.markAsDirty();
272
+    // } else {
273
+    //   this.wxRequired = false;
274
+    //   this.validateForm.get("weixin")!.clearValidators();
275
+    //   this.validateForm.get("weixin")!.markAsPristine();
276
+    // }
277
+    this.wxRequired = false;
278
+    this.validateForm.get("weixin")!.clearValidators();
279
+    this.validateForm.get("weixin")!.markAsPristine();
280
+
277 281
     this.validateForm.get("weixin")!.updateValueAndValidity();
278 282
   }
279 283
   // 表单提交