|
@@ -25,23 +25,23 @@ export class PharmacyComponent implements OnInit {
|
25
|
25
|
})
|
26
|
26
|
osComponentRef3: OverlayScrollbarsComponent;
|
27
|
27
|
constructor(private mainService: MainService, public router: Router) {}
|
28
|
|
- //打印二维码数据
|
|
28
|
+ //待配药数据
|
29
|
29
|
codes = [];
|
30
|
30
|
// 登录切换效果
|
31
|
31
|
loginFlag = false;
|
32
|
|
- // 打印二维码
|
|
32
|
+ // 待配药
|
33
|
33
|
printPharmacyList = []; //数据列表
|
34
|
34
|
printPharmacyIdx = 0; //页码
|
35
|
35
|
printPharmacyFlag = false; //是否查看更多
|
36
|
36
|
printPharmacySearchKey = ""; //搜索的内容
|
37
|
37
|
printPharmacyLoad = false; //按钮的loading
|
38
|
|
- // 待配送列表
|
|
38
|
+ // 配药中列表
|
39
|
39
|
waitPharmacyList = [];
|
40
|
40
|
waitPharmacyIdx = 0;
|
41
|
41
|
waitPharmacyFlag = false;
|
42
|
42
|
waitPharmacySearchKey = "";
|
43
|
43
|
waitPharmacyLoad = false;
|
44
|
|
- // 已配送列表
|
|
44
|
+ // 核对中列表
|
45
|
45
|
pharmacyList = [];
|
46
|
46
|
pharmacyIdx = 0;
|
47
|
47
|
pharmacyFlag = false;
|
|
@@ -51,11 +51,11 @@ export class PharmacyComponent implements OnInit {
|
51
|
51
|
currentDept = "";
|
52
|
52
|
|
53
|
53
|
ngOnInit() {
|
54
|
|
- // 打印二维码列表
|
|
54
|
+ // 待配药列表
|
55
|
55
|
this.getPharmacyList(this.printPharmacyIdx, 1, this.printPharmacySearchKey);
|
56
|
|
- // 待配送列表
|
|
56
|
+ // 配药中列表
|
57
|
57
|
this.getPharmacyList(this.waitPharmacyIdx, 2, this.waitPharmacySearchKey);
|
58
|
|
- // 已配送列表
|
|
58
|
+ // 核对中列表
|
59
|
59
|
this.getPharmacyList(this.pharmacyIdx, 3, this.pharmacySearchKey);
|
60
|
60
|
//当前登录人所属科室
|
61
|
61
|
this.currentDept = JSON.parse(localStorage.getItem("user")).user.dept.dept;
|
|
@@ -63,7 +63,7 @@ export class PharmacyComponent implements OnInit {
|
63
|
63
|
this.initRole();
|
64
|
64
|
}
|
65
|
65
|
// 药房端药房列表查询、搜索
|
66
|
|
- // 1为pc待打印状态、2为pc待配送、3为pc已配送
|
|
66
|
+ // 1为pc待打印状态、2为pc配药中、3为pc核对中
|
67
|
67
|
// searchKey 为搜索的关键字,没有就不传
|
68
|
68
|
loading1 = false;
|
69
|
69
|
loading2 = false;
|
|
@@ -229,7 +229,7 @@ export class PharmacyComponent implements OnInit {
|
229
|
229
|
toggleLogin() {
|
230
|
230
|
this.loginFlag = !this.loginFlag;
|
231
|
231
|
}
|
232
|
|
- //打印二维码
|
|
232
|
+ //待配药
|
233
|
233
|
print(id?) {
|
234
|
234
|
let arr = [];
|
235
|
235
|
if (typeof id === "number" && id > 0) {
|
|
@@ -257,9 +257,9 @@ export class PharmacyComponent implements OnInit {
|
257
|
257
|
if (data["state"] == 200) {
|
258
|
258
|
this.printPharmacyList = [];
|
259
|
259
|
this.waitPharmacyList = [];
|
260
|
|
- // 打印二维码列表
|
|
260
|
+ // 待配药列表
|
261
|
261
|
this.getPharmacyList(0, 1, this.printPharmacySearchKey);
|
262
|
|
- // 待配送列表
|
|
262
|
+ // 配药中列表
|
263
|
263
|
this.getPharmacyList(0, 2, this.waitPharmacySearchKey);
|
264
|
264
|
}
|
265
|
265
|
});
|