Browse Source

bug修改

seimin 4 months ago
parent
commit
bd49e1825c
1 changed files with 36 additions and 15 deletions
  1. 36 15
      components/bigScreen/bigScreen.vue

+ 36 - 15
components/bigScreen/bigScreen.vue

@@ -323,23 +323,44 @@
323 323
             }
324 324
           }else if(responseData.orderStateValue == 5){
325 325
             // 待送达
326
-            if(config.drugsEndCheck === 1){
327
-              // 起点科室支持核对
328
-              uni.navigateTo({
329
-                url: `/pages/newDrug/checkPage/checkPage?drugsBagType=${drugsBagType}&orderId=${orderId}`,
330
-              });
331
-            }else{
332
-              // 起点科室不支持核对
333
-              if(config.drugsEndPhoto === 1){
334
-                // 起点科室支持拍照留存
335
-                uni.navigateTo({
336
-                  url: `/pages/newDrug/photoRetention/photoRetention?drugsBagType=${drugsBagType}&orderId=${orderId}`,
326
+            uni.showLoading({
327
+              title: "加载中",
328
+              mask: true,
329
+            });
330
+            post("/transflow/scanBind", { type: drugsBagType, orderId, code }).then((ress) => {
331
+              uni.hideLoading();
332
+              if (ress.state == 200) {
333
+                if(ress.data.msg){
334
+                  uni.showToast({
335
+                    icon: "none",
336
+                    title: ress.data.msg || "接口获取数据失败!",
337
+                  });
338
+                }else{
339
+                  if(config.drugsEndCheck === 1){
340
+                    // 起点科室支持核对
341
+                    uni.navigateTo({
342
+                      url: `/pages/newDrug/checkPage/checkPage?drugsBagType=${drugsBagType}&orderId=${orderId}`,
343
+                    });
344
+                  }else{
345
+                    // 起点科室不支持核对
346
+                    if(config.drugsEndPhoto === 1){
347
+                      // 起点科室支持拍照留存
348
+                      uni.navigateTo({
349
+                        url: `/pages/newDrug/photoRetention/photoRetention?drugsBagType=${drugsBagType}&orderId=${orderId}`,
350
+                      });
351
+                    }else{
352
+                      // 终点科室不支持拍照留存
353
+                      this.completeOrder(responseData, queryObj);
354
+                    }
355
+                  }
356
+                }
357
+              } else {
358
+                uni.showToast({
359
+                  icon: "none",
360
+                  title: ress.msg || "接口获取数据失败!",
337 361
                 });
338
-              }else{
339
-                // 终点科室不支持拍照留存
340
-                this.completeOrder(responseData, queryObj);
341 362
               }
342
-            }
363
+            });
343 364
           }
344 365
         }else if(config.drugsModel === 2){
345 366
           // 一单多码