Browse Source

Merge branch 'master' of http://git.dashitech.com/seimin/zy-wechat

maotao 4 months ago
parent
commit
11c61f6259

+ 3 - 1
pages/newDrug/checkPage/checkPage.vue

@@ -2,7 +2,9 @@
2 2
   <view class="Scanning_Result">
3 3
     <view class="Scanning_top">
4 4
       <view class="Scanning_top_icon">
5
-        {{workOrder.startDept ? workOrder.startDept.dept : ''}}<text class="newicon newicon-arrow-right-full"></text>{{workOrder.endDeptNames || ''}}
5
+        <text :class="{ red: workOrder.gdState && workOrder.gdState.value == 4 }">{{workOrder.startDept ? workOrder.startDept.dept : ''}}</text>
6
+        <text class="newicon newicon-arrow-right-full"></text>
7
+        <text :class="{ red: workOrder.gdState && workOrder.gdState.value == 5 }">{{workOrder.endDeptNames || ''}}</text>
6 8
       </view>
7 9
     </view>
8 10
 

+ 16 - 2
pages/newDrug/continueScanning/continueScanning.vue

@@ -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;

+ 1 - 1
pages/newDrug/createOrder/createOrder.vue

@@ -33,7 +33,7 @@
33 33
 
34 34
     <view class="foot_btn_spe">
35 35
       <view class="column">
36
-        <view class="btn" @click="goIndex()">知道了</view>
36
+        <view class="btn" @click="goIndex()">返回</view>
37 37
         <view class="btn" @click="createOrBuildOrder()" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单并签到</view>
38 38
         <view class="btn" @click="createOrBuildOrder(orderId)" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单并签到</view>
39 39
       </view>

+ 3 - 1
pages/newDrug/photoRetention/photoRetention.vue

@@ -10,7 +10,9 @@
10 10
       <scroll-view scroll-y class="scrollContent">
11 11
         <view class="content">
12 12
           <view class="dept">
13
-            {{workOrder.startDept ? workOrder.startDept.dept : ''}}<text class="newicon newicon-arrow-right-full"></text>{{workOrder.endDeptNames || ''}}
13
+            <text :class="{ red: workOrder.gdState && workOrder.gdState.value == 4 }">{{workOrder.startDept ? workOrder.startDept.dept : ''}}</text>
14
+            <text class="newicon newicon-arrow-right-full"></text>
15
+            <text :class="{ red: workOrder.gdState && workOrder.gdState.value == 5 }">{{workOrder.endDeptNames || ''}}</text>
14 16
           </view>
15 17
           <view class="column">
16 18
             <view class="name">工单单号:</view>