seimin пре 3 година
родитељ
комит
44b02e7c66

+ 0 - 27
src/app/views/order-management/order-management.component.html

@@ -123,7 +123,6 @@
123 123
                 <span *ngIf="coopBtns.look" (click)="detail($event,data.id)">查看</span>
124 124
                 <span *ngIf="coopBtns.del&&data.gdState.value!=6&&data.gdState.value!=7"
125 125
                   (click)="showDelModal($event,data.id)">删除</span>
126
-                <span *ngIf="coopBtns.reply&&data.replaceFlag==0" (click)="reply($event,data)">回复</span>
127 126
               </div>
128 127
             </td>
129 128
           </tr>
@@ -136,32 +135,6 @@
136 135
       </div>
137 136
     </div>
138 137
   </div>
139
-  <!-- 意见箱查看 -->
140
-  <div class="save display_flex align-items_center justify-content_flex-center advice" *ngIf="modal">
141
-    <div class="modalBody">
142
-      <div class="title">意见箱 - 回复<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
143
-      <div class="content">
144
-        <div class="conItem">
145
-          <div class="jiTit borderB color3" nz-row>
146
-            <div nz-col nzSpan="8" class="txtL">填写科室:{{replyCon.creatDepartment.dept}}
147
-            </div>
148
-            <div nz-col nzSpan="6" class="txtL">填写人:{{replyCon.createUser.name}}
149
-            </div>
150
-            <div nz-col nzSpan="10" class="txtR">填写时间:{{replyCon.createTime}}</div>
151
-          </div>
152
-          <div class="defeat">意见内容:{{replyCon.content}}</div>
153
-        </div>
154
-        <div class="conItem noCon">
155
-          <div class="title">回复内容:</div>
156
-          <textarea rows="4" maxlength="255" nz-input [(ngModel)]="adviceSubContent" placeholder="请填写回复内容"></textarea>
157
-        </div>
158
-      </div>
159
-      <div class=" display_flex justify-content_flex-center">
160
-        <button nzType="primary" nz-button (click)="submitForm()" [nzLoading]="btnLoading">回复</button>
161
-        <button class="btn cancel" nz-button nzType="default" (click)="hideModal()">取消</button>
162
-      </div>
163
-    </div>
164
-  </div>
165 138
   <!-- 删除模态框 -->
166 139
   <app-dialog-delete [delModal]="delModal" (hideDelModalEvent)="hideDelModal()" [btnLoading]="loading3"
167 140
     (confirmDelEvent)="confirmDel()" content="您确认要删除工单吗?"></app-dialog-delete>

+ 0 - 37
src/app/views/order-management/order-management.component.ts

@@ -293,43 +293,6 @@ export class OrderManagementComponent implements OnInit {
293 293
       "23:59:59";
294 294
   }
295 295
 
296
-  // 新增弹框
297
-  replyCon: any; //意见内容
298
-  reply(e, data) {
299
-    e.stopPropagation();
300
-    this.modal = true;
301
-    this.replyCon = data;
302
-  }
303
-  hideModal() {
304
-    this.modal = false;
305
-  }
306
-  // 回复
307
-  adviceSubContent: string; //回复内容
308
-  submitForm() {
309
-    console.log(this.adviceSubContent);
310
-    let that = this;
311
-    if (!this.adviceSubContent) return;
312
-    this.btnLoading = true;
313
-    let postData = {
314
-      advice: {
315
-        id: that.replyCon.id,
316
-        replyUser: { id: that.replyCon.createUser.id },
317
-        replyContent: that.adviceSubContent,
318
-      },
319
-    };
320
-    that.mainService
321
-      .postCustom("adviceCollection", "updData/advice", postData)
322
-      .subscribe((data) => {
323
-        if (data.status == 200) {
324
-          that.showPromptModal("回复", true, "");
325
-          that.getList();
326
-          that.hideModal();
327
-        } else {
328
-          that.showPromptModal("回复", false, data.msg);
329
-        }
330
-      });
331
-  }
332
-
333 296
   // 展示信息提示框(con:提示信息,success:操作是否成功,promptInfo:操作结果提示信息)
334 297
   showPromptModal(con, success, promptInfo?) {
335 298
     this.promptModalShow = false;