|
@@ -2,6 +2,8 @@
|
2
|
2
|
<view class="Scanning_Result">
|
3
|
3
|
<view class="Scanning_top">
|
4
|
4
|
<view class="Scanning_top_icon">{{scanCount}}</view>
|
|
5
|
+ <view class="tips" v-if="workOrder.gdState && workOrder.gdState.value == 4">您已到达<text class="red">起点科室-{{workOrder.startDept.dept}},</text>请扫描核对药包码。</view>
|
|
6
|
+ <view class="tips" v-if="workOrder.gdState && workOrder.gdState.value == 5">您已到达<text class="red">终点科室-{{workOrder.endDeptNames}}</text>,请扫描核对药包码。</view>
|
5
|
7
|
</view>
|
6
|
8
|
|
7
|
9
|
<view class="Scanning_cont">
|
|
@@ -54,6 +56,7 @@
|
54
|
56
|
export default {
|
55
|
57
|
data() {
|
56
|
58
|
return {
|
|
59
|
+ workOrder: {}, //工单信息
|
57
|
60
|
drugsBag: {}, //药包信息
|
58
|
61
|
queryObj: {}, //路由传递过来的数据
|
59
|
62
|
scanCount: '', //已扫描数量
|
|
@@ -168,7 +171,7 @@
|
168
|
171
|
});
|
169
|
172
|
}else{
|
170
|
173
|
uni.redirectTo({
|
171
|
|
- url: `/pages/newDrug/continueScanning/continueScanning?drugsBagType=${this.queryObj.drugsBagType}&orderId=${this.queryObj.orderId}&scanOrHand=${type}&drugsBagId=${this.queryObj.drugsBagId}&orderStateValue=${this.queryObj.orderStateValue}`,
|
|
174
|
+ url: `/pages/newDrug/continueScanning/continueScanning?drugsBagType=${this.queryObj.drugsBagType}&orderId=${this.queryObj.orderId}&scanOrHand=${type}&drugsBagId=${ress.data.dto.id}&orderStateValue=${this.queryObj.orderStateValue}`,
|
172
|
175
|
});
|
173
|
176
|
}
|
174
|
177
|
} else {
|
|
@@ -192,6 +195,9 @@
|
192
|
195
|
if(res.data){
|
193
|
196
|
this.scanCount = res.data.scanCount;
|
194
|
197
|
this.drugsBag = res.data.dto || {};
|
|
198
|
+ let workOrder = res.data.workOrder || {};
|
|
199
|
+ workOrder.endDeptNames = workOrder.endDepts.map(v=>v.dept).toString();
|
|
200
|
+ this.workOrder = workOrder;
|
195
|
201
|
}
|
196
|
202
|
}else{
|
197
|
203
|
uni.showToast({
|
|
@@ -224,7 +230,15 @@
|
224
|
230
|
height: 100vh;
|
225
|
231
|
|
226
|
232
|
.Scanning_top {
|
227
|
|
- margin: 24rpx auto;
|
|
233
|
+ display: flex;
|
|
234
|
+ flex-direction: column;
|
|
235
|
+ align-items: center;
|
|
236
|
+ .tips{
|
|
237
|
+ margin: 24rpx 0 40rpx;
|
|
238
|
+ text-align: justify;
|
|
239
|
+ font-weight: bold;
|
|
240
|
+ font-size: 30rpx;
|
|
241
|
+ }
|
228
|
242
|
.Scanning_top_icon {
|
229
|
243
|
font-size: 140rpx;
|
230
|
244
|
color: #FF0000;
|