Browse Source

6.护士端其他类类型建单,建单成功后依然选择上一次选择的类型

seimin 4 years ago
parent
commit
46a6d985ef
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 3 - 4
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -288,8 +288,9 @@ export class HushijiandanComponent implements OnInit {
288
   otherSearch = ""; //搜索的关键词
288
   otherSearch = ""; //搜索的关键词
289
   oLoading = false;
289
   oLoading = false;
290
   nLoading = false;
290
   nLoading = false;
291
+  handleOffsetY=0;//记录其他建单Y轴滚动距离
291
   otherClick(item) {
292
   otherClick(item) {
292
-    console.log(item);
293
+    this.handleOffsetY = this.osComponentRef2.osInstance().scroll().handleOffset.y;
293
     this.selectOtherId = item.id;
294
     this.selectOtherId = item.id;
294
     this.newShortcutOrder(item, "other");
295
     this.newShortcutOrder(item, "other");
295
   }
296
   }
@@ -583,10 +584,8 @@ export class HushijiandanComponent implements OnInit {
583
             this.otherSearch = "";
584
             this.otherSearch = "";
584
             this.workOrderRemark = "";
585
             this.workOrderRemark = "";
585
             this.customRemarks = [];
586
             this.customRemarks = [];
587
+            this.osComponentRef2.osInstance().scroll(this.handleOffsetY);
586
             this.historyCustomRemarks = [];
588
             this.historyCustomRemarks = [];
587
-            this.selectOtherId = that.othersList.length
588
-              ? that.othersList[0].id
589
-              : null;
590
             let obj = that.othersList.find(
589
             let obj = that.othersList.find(
591
               (item) => item.id == this.selectOtherId
590
               (item) => item.id == this.selectOtherId
592
             );
591
             );