瀏覽代碼

Merge branch 'master' into develop

seimin 5 月之前
父節點
當前提交
3da50bf85c
共有 2 個文件被更改,包括 14 次插入6 次删除
  1. 2 2
      src/app/views/fuwutai/fuwutai.component.html
  2. 12 4
      src/app/views/fuwutai/fuwutai.component.ts

+ 2 - 2
src/app/views/fuwutai/fuwutai.component.html

@@ -1190,7 +1190,7 @@
1190 1190
             <span class="grayFont">申请人:</span>
1191 1191
             <ng-container *ngIf="buildType === '报修转事件'">{{incidentMsg.requesterName}}</ng-container>
1192 1192
             <ng-container *ngIf="buildType !== '报修转事件'">
1193
-              <nz-select style="width: 160px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeCommonInp('requester', $event)" nzPlaceHolder="请选择申请人" [(ngModel)]="incidentModel.requester" (ngModelChange)="changeApplyRequester($event)" nzAllowClear>
1193
+              <nz-select style="width: 160px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeCommonInp('requester', $event)" nzPlaceHolder="请选择申请人" [(ngModel)]="incidentModel.requester" (ngModelChange)="changeApplyRequester($event)" nzAllowClear (nzOpenChange)="openChangeApplyRequester($event)">
1194 1194
                 <ng-container *ngFor="let option of applicationRequesterList">
1195 1195
                   <nz-option *ngIf="!isLoading" [nzLabel]="option.name" [nzValue]="option.id"></nz-option>
1196 1196
                 </ng-container>
@@ -1914,7 +1914,7 @@
1914 1914
                   <div class="row gap8">
1915 1915
                     <div class="col">
1916 1916
                       <span class="name required">故障现象:</span>
1917
-                      <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeCommonInp('category', $event)" nzPlaceHolder="请选择故障现象" [(ngModel)]="incidentModel.category" (ngModelChange)="changeApplyCategory($event)">
1917
+                      <nz-select class="w100" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch (nzOnSearch)="changeCommonInp('category', $event)" nzPlaceHolder="请选择故障现象" [(ngModel)]="incidentModel.category" (ngModelChange)="changeApplyCategory($event)" (nzOpenChange)="openChangeApplyCategory($event)">>
1918 1918
                         <ng-container *ngFor="let option of applicationCategoryList">
1919 1919
                           <nz-option *ngIf="!isLoading" [nzLabel]="option.mutiCategory" [nzValue]="option.id"></nz-option>
1920 1920
                         </ng-container>

+ 12 - 4
src/app/views/fuwutai/fuwutai.component.ts

@@ -2299,7 +2299,7 @@ export class FuwutaiComponent implements OnInit {
2299 2299
     }
2300 2300
     this.buildType = buildType;
2301 2301
     if(this.itsmData.mdv2Switch){
2302
-      this.resetOrderData();
2302
+      this.buildType !== '继续建单' && this.resetOrderData();
2303 2303
       this.searchApplicationHospital();
2304 2304
       this.searchApplicationCategory();
2305 2305
       this.searchApplicationPriority();
@@ -2760,7 +2760,7 @@ export class FuwutaiComponent implements OnInit {
2760 2760
         "directProcess": 1,
2761 2761
         "handleDescription": this.incidentModel.handleDescription,
2762 2762
         "handlingPersonnelUser": {id: this.tool.getCurrentUserId()},
2763
-        "yyTime": this.incidentModel.yyTime ? format(this.incidentModel.yyTime, 'yyyy-MM-dd HH:mm:ss') : undefined,
2763
+        "yyTime": this.incidentModel.yyTime ? format(new Date(this.incidentModel.yyTime), 'yyyy-MM-dd HH:mm:ss') : undefined,
2764 2764
         "closecode": this.incidentModel.closecode ? { id: this.incidentModel.closecode } : undefined,
2765 2765
         "acceptUser": { id: this.tool.getCurrentUserId() },
2766 2766
         "callID": this.incidentModel.callID || undefined,
@@ -3164,6 +3164,12 @@ export class FuwutaiComponent implements OnInit {
3164 3164
   openChangeApplyDept(flag){
3165 3165
     flag && this.searchApplicationDepartment('itsm');
3166 3166
   }
3167
+  openChangeApplyRequester(flag){
3168
+    flag && this.searchApplicationRequester();
3169
+  }
3170
+  openChangeApplyCategory(flag){
3171
+    flag && this.searchApplicationCategory();
3172
+  }
3167 3173
   openChangeApplyGroup(flag){
3168 3174
     flag && this.searchApplicationGroup()
3169 3175
   }
@@ -3479,7 +3485,7 @@ export class FuwutaiComponent implements OnInit {
3479 3485
         "source": this.incidentModel.source ? { id: this.incidentModel.source } : undefined,
3480 3486
         "title": category.mutiCategory,
3481 3487
         "description": this.incidentModel.description,
3482
-        "yyTime": this.incidentModel.yyTime ? format(this.incidentModel.yyTime, 'yyyy-MM-dd HH:mm:ss') : undefined,
3488
+        "yyTime": this.incidentModel.yyTime ? format(new Date(this.incidentModel.yyTime), 'yyyy-MM-dd HH:mm:ss') : undefined,
3483 3489
         "requester": this.incidentModel.requester ? { id: this.incidentModel.requester } : undefined,
3484 3490
         "acceptUser": { id: this.tool.getCurrentUserId() },
3485 3491
         "callID": this.incidentModel.callID || undefined,
@@ -3549,7 +3555,7 @@ export class FuwutaiComponent implements OnInit {
3549 3555
         "source": this.incidentModel.source ? { id: this.incidentModel.source } : undefined,
3550 3556
         "title": category ? category.mutiCategory : '',
3551 3557
         "description": this.incidentModel.description,
3552
-        "yyTime": this.incidentModel.yyTime ? format(this.incidentModel.yyTime, 'yyyy-MM-dd HH:mm:ss') : undefined,
3558
+        "yyTime": this.incidentModel.yyTime ? format(new Date(this.incidentModel.yyTime), 'yyyy-MM-dd HH:mm:ss') : undefined,
3553 3559
         "requester": this.incidentModel.requester ? { id: this.incidentModel.requester } : undefined,
3554 3560
         "acceptUser": { id: this.tool.getCurrentUserId() },
3555 3561
         "callID": this.incidentModel.callID || undefined,
@@ -4646,6 +4652,8 @@ export class FuwutaiComponent implements OnInit {
4646 4652
     incidentModel.source && (incidentModel.source = incidentModel.source.id);
4647 4653
     incidentModel.area && (incidentModel.area = incidentModel.area.id);
4648 4654
     incidentModel.place && (incidentModel.place = incidentModel.place.id);
4655
+    incidentModel.category && (this.applicationCategoryList = [cloneDeep(incidentModel.category)]);
4656
+    incidentModel.category && (incidentModel.category = incidentModel.category.id);
4649 4657
     this.incidentModel = incidentModel;
4650 4658
     this.incidentMsg = incidentMsg;
4651 4659
     console.log('this.applicationDeptList:', this.applicationDeptList)