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