Browse Source

报修的故障现象非必选

seimin 2 years ago
parent
commit
4f3a4797ae
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 6 - 5
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -2575,10 +2575,10 @@ export class HushijiandanComponent implements OnInit {
2575 2575
       this.bxForm.controls[i].updateValueAndValidity();
2576 2576
     }
2577 2577
     if (this.bxForm.invalid) return;
2578
-    if(!this.selectIncidentId){
2579
-      this.message.error("请选择故障现象!");
2580
-      return;
2581
-    }
2578
+    // if(!this.selectIncidentId){
2579
+    //   this.message.error("请选择故障现象!");
2580
+    //   return;
2581
+    // }
2582 2582
     this.bxLoading = true;
2583 2583
     this.mainService.wxbx({}).subscribe((result) => {
2584 2584
       if ((result as any).status == 200) {
@@ -2595,7 +2595,7 @@ export class HushijiandanComponent implements OnInit {
2595 2595
             // contacts: this.bxForm.controls.name.value,
2596 2596
             // contactsInformation: this.bxForm.controls.phone.value,
2597 2597
             description: this.bxForm.controls.content.value,
2598
-            categoryId: this.selectIncidentId,
2598
+            // categoryId: this.selectIncidentId,
2599 2599
             // placeId: this.bxForm.controls.building.value,
2600 2600
             requester: { account: this.loginUser.account },
2601 2601
             sourceType: "wechatUserIncident",
@@ -2747,6 +2747,7 @@ export class HushijiandanComponent implements OnInit {
2747 2747
     this.bxlbLoading = true;
2748 2748
     this.mainService
2749 2749
       .listWxIncident({
2750
+        deptId: current.user.dept.id,
2750 2751
         assignee: current.user.account,
2751 2752
         state: this.incidentStateId?parseInt(this.incidentStateId):undefined,
2752 2753
         idx: this.bxlbPageIndex - 1,