浏览代码

新药品

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
               if(responeseData.orderStateValue == 2 || responeseData.orderStateValue == 3 || responeseData.orderStateValue == 4){
238
               if(responeseData.orderStateValue == 2 || responeseData.orderStateValue == 3 || responeseData.orderStateValue == 4){
239
                 // 待抢单、待接单、待到达,进入起点科室流程
239
                 // 待抢单、待接单、待到达,进入起点科室流程
240
                 uni.navigateTo({
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
               }else if(responeseData.orderStateValue == 5){
243
               }else if(responeseData.orderStateValue == 5){
244
                 // 待送达,进入起点科室流程
244
                 // 待送达,进入起点科室流程
245
                 this.pageNavigateByConfig(config, responeseData, responeseData, code)
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
           }else{
253
           }else{
@@ -474,7 +479,7 @@
474
                           }else{
479
                           }else{
475
                             // 没有工单,进入起点科室流程
480
                             // 没有工单,进入起点科室流程
476
                             uni.navigateTo({
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
                         }else{
485
                         }else{

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

@@ -34,8 +34,8 @@
34
     <view class="foot_btn_spe">
34
     <view class="foot_btn_spe">
35
       <view class="column">
35
       <view class="column">
36
         <view class="btn" @click="goIndex()">知道了</view>
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
       </view>
39
       </view>
40
     </view>
40
     </view>
41
   </view>
41
   </view>