seimin преди 4 месеца
родител
ревизия
49fa42e620
променени са 2 файла, в които са добавени 9 реда и са изтрити 4 реда
  1. 7 2
      components/bigScreen/bigScreen.vue
  2. 2 2
      pages/newDrug/createOrder/createOrder.vue

+ 7 - 2
components/bigScreen/bigScreen.vue

@@ -238,11 +238,16 @@
238 238
               if(responeseData.orderStateValue == 2 || responeseData.orderStateValue == 3 || responeseData.orderStateValue == 4){
239 239
                 // 待抢单、待接单、待到达,进入起点科室流程
240 240
                 uni.navigateTo({
241
-                  url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${responeseData.drugsBagType}&drugsBagId=${responeseData.drugsBagId}&orderId=${responeseData.orderId || ''}`,
241
+                  url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${responeseData.drugsBagType}&drugsBagId=${responeseData.drugsBagId}&orderId=${responeseData.orderId || ''}&type=receive`,
242 242
                 });
243 243
               }else if(responeseData.orderStateValue == 5){
244 244
                 // 待送达,进入起点科室流程
245 245
                 this.pageNavigateByConfig(config, responeseData, responeseData, code)
246
+              }else{
247
+                // 查看药包信息
248
+                uni.navigateTo({
249
+                  url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${responeseData.drugsBagType}&drugsBagId=${responeseData.drugsBagId}&type=view`,
250
+                });
246 251
               }
247 252
             }
248 253
           }else{
@@ -474,7 +479,7 @@
474 479
                           }else{
475 480
                             // 没有工单,进入起点科室流程
476 481
                             uni.navigateTo({
477
-                              url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${res.drugsBagType}&drugsBagId=${res.drugsBagId}&orderId=${res.orderId || ''}`,
482
+                              url: `/pages/newDrug/createOrder/createOrder?drugsBagType=${res.drugsBagType}&drugsBagId=${res.drugsBagId}&type=build`,
478 483
                             });
479 484
                           }
480 485
                         }else{

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

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