|
@@ -0,0 +1,334 @@
|
|
1
|
+<template>
|
|
2
|
+ <view class="pharmacyDetails">
|
|
3
|
+ <view class="pharmacyDetails_title">药品批次</view>
|
|
4
|
+ <view class="page_item footerOtherMargin">
|
|
5
|
+ <view class="page_item_wrap" v-for="item in batchNoList" :key="item.id">
|
|
6
|
+ <view class="page_item">
|
|
7
|
+ <view class="page_item_top">
|
|
8
|
+ <view class="page_item_top-inner">
|
|
9
|
+ <view class="page_item_top_L">
|
|
10
|
+ <view class="L_text">{{item.packid || "无"}}</view>
|
|
11
|
+ </view>
|
|
12
|
+ <view class="page_item_top_R">
|
|
13
|
+ <text>{{item.drugsState ? item.drugsState.name : "无"}}</text>
|
|
14
|
+ </view>
|
|
15
|
+ </view>
|
|
16
|
+ </view>
|
|
17
|
+ <view class="page_item_cont">
|
|
18
|
+ <view class="page_item_cont_T">
|
|
19
|
+
|
|
20
|
+ </view>
|
|
21
|
+ </view>
|
|
22
|
+ <view class="L"></view>
|
|
23
|
+ <view class="R"></view>
|
|
24
|
+ </view>
|
|
25
|
+ <view class="L-l"></view>
|
|
26
|
+ <view class="R-l"></view>
|
|
27
|
+ </view>
|
|
28
|
+ </view>
|
|
29
|
+ <view class="foot_btn2 footerPadding">
|
|
30
|
+ <view class="btn2" @click="goBack">返回</view>
|
|
31
|
+ </view>
|
|
32
|
+ </view>
|
|
33
|
+</template>
|
|
34
|
+<script>
|
|
35
|
+ import {
|
|
36
|
+ post,
|
|
37
|
+ webHandle
|
|
38
|
+ } from "../../http/http.js";
|
|
39
|
+ export default {
|
|
40
|
+ data() {
|
|
41
|
+ return {
|
|
42
|
+ hosId: null,
|
|
43
|
+ options: {}, //路由传递过来的数据
|
|
44
|
+ batchNoList: [],
|
|
45
|
+ };
|
|
46
|
+ },
|
|
47
|
+ methods: {
|
|
48
|
+ // 返回
|
|
49
|
+ goBack() {
|
|
50
|
+ uni.navigateBack();
|
|
51
|
+ },
|
|
52
|
+ //获取药包信息及其关联的工单信息
|
|
53
|
+ queryDrugsBagForBatchNo(batchNo) {
|
|
54
|
+ uni.showLoading({
|
|
55
|
+ title: "加载中",
|
|
56
|
+ mask: true,
|
|
57
|
+ });
|
|
58
|
+ post("/drugsBag/fetchDataList/drugsBag", {
|
|
59
|
+ "idx": 0,
|
|
60
|
+ "sum": 10,
|
|
61
|
+ "drugsBag": {
|
|
62
|
+ "hosId": this.hosId,
|
|
63
|
+ "batchNo": batchNo,
|
|
64
|
+ }
|
|
65
|
+ }).then((res) => {
|
|
66
|
+ uni.hideLoading();
|
|
67
|
+ if (res.status == 200) {
|
|
68
|
+ this.batchNoList = res.list || [];
|
|
69
|
+ } else {
|
|
70
|
+ uni.showToast({
|
|
71
|
+ icon: "none",
|
|
72
|
+ title: "请求失败",
|
|
73
|
+ });
|
|
74
|
+ }
|
|
75
|
+ });
|
|
76
|
+ },
|
|
77
|
+ },
|
|
78
|
+ onLoad(options) {
|
|
79
|
+ this.hosId = uni.getStorageSync('userData').user.currentHospital.id;
|
|
80
|
+ console.log(options);
|
|
81
|
+ this.options = options;
|
|
82
|
+ if (options.batchNo) {
|
|
83
|
+ this.queryDrugsBagForBatchNo(options.batchNo);
|
|
84
|
+ }
|
|
85
|
+ // #ifdef APP-PLUS
|
|
86
|
+ webHandle("no", "app");
|
|
87
|
+ // #endif
|
|
88
|
+ // #ifdef H5
|
|
89
|
+ webHandle("no", "wx");
|
|
90
|
+ // #endif
|
|
91
|
+ },
|
|
92
|
+ };
|
|
93
|
+</script>
|
|
94
|
+<style lang="less" scoped>
|
|
95
|
+ .pharmacyDetails {
|
|
96
|
+ background-color: rgb(249, 250, 251);
|
|
97
|
+ padding-top: 50rpx;
|
|
98
|
+ height: 100%;
|
|
99
|
+ box-sizing: border-box;
|
|
100
|
+
|
|
101
|
+ .pharmacyDetails_title {
|
|
102
|
+ font-size: 46rpx;
|
|
103
|
+ font-weight: 550;
|
|
104
|
+ text-align: center;
|
|
105
|
+ }
|
|
106
|
+
|
|
107
|
+ .page_item_wrap {
|
|
108
|
+ position: relative;
|
|
109
|
+ margin-top: 32rpx;
|
|
110
|
+
|
|
111
|
+ .page_item {
|
|
112
|
+ margin-top: 16rpx;
|
|
113
|
+ margin-bottom: 124rpx;
|
|
114
|
+ background: #fff;
|
|
115
|
+ border-radius: 8rpx;
|
|
116
|
+ margin: 0 20rpx;
|
|
117
|
+ border: 2rpx solid #e5e9ed;
|
|
118
|
+ position: relative;
|
|
119
|
+ overflow: hidden;
|
|
120
|
+ padding: 0 16rpx;
|
|
121
|
+
|
|
122
|
+ .L {
|
|
123
|
+ width: 40rpx;
|
|
124
|
+ height: 40rpx;
|
|
125
|
+ border-radius: 50%;
|
|
126
|
+ background: #f9fafb;
|
|
127
|
+ position: absolute;
|
|
128
|
+ left: -20rpx;
|
|
129
|
+ top: 68rpx;
|
|
130
|
+ border: 2rpx solid #e5e9ed;
|
|
131
|
+ }
|
|
132
|
+
|
|
133
|
+ .R {
|
|
134
|
+ width: 40rpx;
|
|
135
|
+ height: 40rpx;
|
|
136
|
+ border-radius: 50%;
|
|
137
|
+ background: #f9fafb;
|
|
138
|
+ position: absolute;
|
|
139
|
+ float: right;
|
|
140
|
+ right: -20rpx;
|
|
141
|
+ top: 68rpx;
|
|
142
|
+ border: 2rpx solid #e5e9ed;
|
|
143
|
+ }
|
|
144
|
+
|
|
145
|
+ .page_item_top {
|
|
146
|
+ height: 88rpx;
|
|
147
|
+ border-bottom: 2rpx dashed #e5e9ed;
|
|
148
|
+ padding: 0 16rpx;
|
|
149
|
+
|
|
150
|
+ .page_item_top-inner {
|
|
151
|
+ display: flex;
|
|
152
|
+ justify-content: space-between;
|
|
153
|
+ align-items: center;
|
|
154
|
+ height: 100%;
|
|
155
|
+
|
|
156
|
+ .page_item_top_L {
|
|
157
|
+ .L_text {
|
|
158
|
+ font-size: 32rpx;
|
|
159
|
+ font-weight: 700;
|
|
160
|
+ }
|
|
161
|
+ }
|
|
162
|
+
|
|
163
|
+ .page_item_top_R {
|
|
164
|
+ font-size: 32rpx;
|
|
165
|
+
|
|
166
|
+ .L_iocn {
|
|
167
|
+ color: rgb(7, 134, 60);
|
|
168
|
+ font-size: 36rpx;
|
|
169
|
+ font-weight: 700;
|
|
170
|
+ }
|
|
171
|
+ }
|
|
172
|
+ }
|
|
173
|
+ }
|
|
174
|
+
|
|
175
|
+ .page_item_cont {
|
|
176
|
+ min-height: 90rpx;
|
|
177
|
+ padding: 0 16rpx;
|
|
178
|
+ text-align: left;
|
|
179
|
+ position: relative;
|
|
180
|
+
|
|
181
|
+ .text_big {
|
|
182
|
+ font-size: 32rpx;
|
|
183
|
+ font-weight: 700;
|
|
184
|
+ // margin-top: 10rpx;
|
|
185
|
+
|
|
186
|
+ p {
|
|
187
|
+ font-weight: 700;
|
|
188
|
+ line-height: 1.5;
|
|
189
|
+ }
|
|
190
|
+ }
|
|
191
|
+
|
|
192
|
+ .line {
|
|
193
|
+ height: 20rpx;
|
|
194
|
+ width: 2rpx;
|
|
195
|
+ border-left: 2rpx solid #e5e9ed;
|
|
196
|
+ position: absolute;
|
|
197
|
+ top: 82rpx;
|
|
198
|
+ left: 40rpx;
|
|
199
|
+ }
|
|
200
|
+
|
|
201
|
+ .page_item_cont_T {
|
|
202
|
+ padding-top: 28rpx;
|
|
203
|
+ padding-bottom: 28rpx;
|
|
204
|
+ font-size: 28rpx;
|
|
205
|
+
|
|
206
|
+ .page_item_cont_title {
|
|
207
|
+ height: 100%;
|
|
208
|
+ font-size: 32rpx;
|
|
209
|
+ display: flex;
|
|
210
|
+ justify-content: space-between;
|
|
211
|
+ align-items: center;
|
|
212
|
+ }
|
|
213
|
+ }
|
|
214
|
+
|
|
215
|
+ .page_item_cont_B {
|
|
216
|
+ padding-top: 28rpx;
|
|
217
|
+ margin-bottom: 28rpx;
|
|
218
|
+
|
|
219
|
+ .page_item_cont_title {
|
|
220
|
+ font-size: 32rpx;
|
|
221
|
+ display: flex;
|
|
222
|
+ justify-content: space-between;
|
|
223
|
+ align-items: center;
|
|
224
|
+ }
|
|
225
|
+ }
|
|
226
|
+
|
|
227
|
+ .page_item_cont_C {
|
|
228
|
+ margin-bottom: 28rpx;
|
|
229
|
+
|
|
230
|
+ .page_item_cont_title_C {
|
|
231
|
+ font-size: 32rpx;
|
|
232
|
+ display: flex;
|
|
233
|
+ justify-content: space-between;
|
|
234
|
+ align-items: center;
|
|
235
|
+ }
|
|
236
|
+ }
|
|
237
|
+
|
|
238
|
+ #infos {
|
|
239
|
+ display: none;
|
|
240
|
+ }
|
|
241
|
+ }
|
|
242
|
+ }
|
|
243
|
+
|
|
244
|
+ .L-l {
|
|
245
|
+ width: 2rpx;
|
|
246
|
+ height: 40rpx;
|
|
247
|
+ background: #f9fafb;
|
|
248
|
+ position: absolute;
|
|
249
|
+ left: 20rpx;
|
|
250
|
+ top: 72rpx;
|
|
251
|
+ }
|
|
252
|
+
|
|
253
|
+ .R-l {
|
|
254
|
+ width: 2rpx;
|
|
255
|
+ height: 40rpx;
|
|
256
|
+ background: #f9fafb;
|
|
257
|
+ position: absolute;
|
|
258
|
+ right: 20rpx;
|
|
259
|
+ top: 72rpx;
|
|
260
|
+ }
|
|
261
|
+ }
|
|
262
|
+
|
|
263
|
+ .cube-toolbar-item {
|
|
264
|
+ width: 710rpx;
|
|
265
|
+ height: 68rpx;
|
|
266
|
+ line-height: 68rpx;
|
|
267
|
+ position: fixed;
|
|
268
|
+ left: 20rpx;
|
|
269
|
+ bottom: 160rpx;
|
|
270
|
+ border-radius: 8rpx;
|
|
271
|
+ background: linear-gradient(to right, #72c172, #3bb197);
|
|
272
|
+ font-size: 36rpx;
|
|
273
|
+ color: #fff;
|
|
274
|
+ text-align: center;
|
|
275
|
+ }
|
|
276
|
+
|
|
277
|
+ .btn-wrap {
|
|
278
|
+ display: flex;
|
|
279
|
+ justify-content: space-between;
|
|
280
|
+ position: fixed;
|
|
281
|
+ left: 20rpx;
|
|
282
|
+ bottom: 160rpx;
|
|
283
|
+ }
|
|
284
|
+
|
|
285
|
+ .cube-toolbar-item1 {
|
|
286
|
+ width: 350rpx;
|
|
287
|
+ height: 68rpx;
|
|
288
|
+ line-height: 68rpx;
|
|
289
|
+ border-radius: 8rpx;
|
|
290
|
+ margin: 0 5rpx;
|
|
291
|
+ background: linear-gradient(to right, #72c172, #3bb197);
|
|
292
|
+ font-size: 36rpx;
|
|
293
|
+ color: #fff;
|
|
294
|
+ text-align: center;
|
|
295
|
+ }
|
|
296
|
+
|
|
297
|
+ .foot_btn2 {
|
|
298
|
+ position: fixed;
|
|
299
|
+ bottom: 0;
|
|
300
|
+ right: 20rpx;
|
|
301
|
+ left: 20rpx;
|
|
302
|
+ line-height: 66rpx;
|
|
303
|
+ height: 100rpx;
|
|
304
|
+ border-top: 2rpx solid #e5e9ed;
|
|
305
|
+ background: #f9fafb;
|
|
306
|
+ display: flex;
|
|
307
|
+ justify-content: space-between;
|
|
308
|
+
|
|
309
|
+ .btn2 {
|
|
310
|
+ height: 66rpx;
|
|
311
|
+ width: 100%;
|
|
312
|
+ margin: 0 1%;
|
|
313
|
+ background-image: linear-gradient(to right, #72c172, #3bb197);
|
|
314
|
+ color: #fff;
|
|
315
|
+ border-radius: 8rpx;
|
|
316
|
+ font-size: 32rpx;
|
|
317
|
+ margin-top: 16rpx;
|
|
318
|
+ text-align: center;
|
|
319
|
+ }
|
|
320
|
+
|
|
321
|
+ .btn3 {
|
|
322
|
+ height: 66rpx;
|
|
323
|
+ width: 48%;
|
|
324
|
+ margin: 0 1%;
|
|
325
|
+ background-image: linear-gradient(to right, #72c172, #3bb197);
|
|
326
|
+ color: #fff;
|
|
327
|
+ border-radius: 8rpx;
|
|
328
|
+ font-size: 32rpx;
|
|
329
|
+ margin-top: 16rpx;
|
|
330
|
+ text-align: center;
|
|
331
|
+ }
|
|
332
|
+ }
|
|
333
|
+ }
|
|
334
|
+</style>
|