From aaa8efda7a2697cf36e7021a1c5d94f3a541b387 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 22 十月 2025 16:19:50 +0800
Subject: [PATCH] 物料下发/物料取消下发页面

---
 pages/product/WorkshopOrderCancellationIssued/index.vue |   43 ++++++++++++++++++++++---------------------
 1 files changed, 22 insertions(+), 21 deletions(-)

diff --git a/pages/product/WorkshopOrderCancellationIssued/index.vue b/pages/product/WorkshopOrderCancellationIssued/index.vue
index 4102cfa..e50244c 100644
--- a/pages/product/WorkshopOrderCancellationIssued/index.vue
+++ b/pages/product/WorkshopOrderCancellationIssued/index.vue
@@ -29,7 +29,7 @@
             ></u-icon>
           </view>
         </view>
-        <view class="packing-registration-param-item param-extra">
+        <!-- <view class="packing-registration-param-item param-extra">
           <view class="packing-registration-param-item-left">
             <text class="item-one">宸ュ崟</text>
           </view>
@@ -79,7 +79,7 @@
               size="28"
             ></u-icon>
           </view>
-        </view>
+        </view> -->
         <view class="packing-registration-param-item param-extra">
           <view class="packing-registration-param-item-left">
             <text class="item-one">鍙栨秷涓嬪彂璁板綍锛�</text>
@@ -246,14 +246,14 @@
     uni.$off("scan"); // 姣忔杩涙潵鍏� 绉婚櫎鍏ㄥ眬鑷畾涔変簨浠剁洃鍚櫒
     uni.$on("scan", function (data) {
       console.log("onscan");
-      if (that.registerInfo.workstationId == "") {
-        uni.showToast({
-          icon: "none",
-          title: "璇峰厛閫夋嫨鏈哄彴锛�",
-          duration: 2 * 1000,
-        });
-        return;
-      }
+      // if (that.registerInfo.workstationId == "") {
+      //   uni.showToast({
+      //     icon: "none",
+      //     title: "璇峰厛閫夋嫨鏈哄彴锛�",
+      //     duration: 2 * 1000,
+      //   });
+      //   return;
+      // }
       if (data.code) {
         //鎵爜鎴愬姛鍚庣殑鍥炶皟锛屼綘鍙互鍐欒嚜宸辩殑閫昏緫浠g爜鍦ㄨ繖閲�
         console.log("鎵爜缁撴灉锛�", data.code);
@@ -329,9 +329,9 @@
         return;
       }
       // 澶勭悊纭閫昏緫
-      this.$u.api.WorkshopOrderCancellationIssued.feeding([
-        this.modalList,
-      ]).then((res) => {
+      this.$u.api.WorkshopOrderCancellationIssued.rejectPDA(
+        this.modalList
+      ).then((res) => {
         console.log("res", res);
         if (res.code === 0) {
           this.$u.toast("鎻愪氦鎴愬姛");
@@ -413,14 +413,15 @@
         feedingWorkstationId: workstationId,
         operationTaskId: operationTaskId,
       };
-      this.$u.api.WorkshopOrderCancellationIssued.checkReturnPartPDA(obj).then(
-        (res) => {
-          console.log("res", res);
-          if (res.code === 0) {
-            this.getHandymanItem(obj);
-          }
-        }
-      );
+     this.getReturnInfo(obj);
+      // this.$u.api.WorkshopOrderCancellationIssued.checkReturnPartPDA(obj).then(
+      //   (res) => {
+      //     console.log("res", res);
+      //     if (res.code === 0) {
+      //       this.getHandymanItem(obj);
+      //     }
+      //   }
+      // );
     },
     //   鑾峰彇鍩烘湰淇℃伅
     getReturnInfo(obj) {

--
Gitblit v1.9.3