From 45b9b391916c94c42cea303c5c0f0fe0d0b1306c Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期二, 23 九月 2025 15:08:01 +0800
Subject: [PATCH] 取消领料和领料页面

---
 pages/storeManagement/MaterialRequisition/index.vue |   30 ++++++++++++++++++------------
 1 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/pages/storeManagement/MaterialRequisition/index.vue b/pages/storeManagement/MaterialRequisition/index.vue
index 653d809..ca3d29b 100644
--- a/pages/storeManagement/MaterialRequisition/index.vue
+++ b/pages/storeManagement/MaterialRequisition/index.vue
@@ -51,7 +51,7 @@
                   <view class="_label-name">鍑�閲嶏細</view>
                 </view>
                 <view class="_content">
-                  {{ item.NW }}
+                  {{ item.KW }}
                 </view>
               </view>
             </view>
@@ -95,7 +95,7 @@
                 </view>
                 <view class="packing-registration-param-item-right">
                   <text class="item-one item-two">{{
-                    detailedList.NW
+                    detailedList.KW
                   }}</text>
                 </view>
               </view>
@@ -150,23 +150,29 @@
     });
   },
   methods: {
+    cancel() {
+      // 澶勭悊鍙栨秷閫昏緫
+      this.showModal = false;
+    },
 	    // 鍥炴樉鎵爜鐨勪俊鎭�
     saveForm(val) {
 		this.detailedList = val;
         this.showModal = true;
 	  },
 	confirm() {
-    //   // 澶勭悊纭閫昏緫
-    //   this.$u.api.shiftingParking
-    //     .hasScanSn({
-    //       ...this.detailedList,
-    //     })
-    //     .then((res) => {
-    //       this.hasScanSnList.push(this.detailedList);
-    //       console.log("璁板綍", this.hasScanSnList);
-    //       this.$u.toast("棰嗘枡鎴愬姛");
-		//     });
+      // 澶勭悊纭閫昏緫
+      this.$u.api.materialRequisition
+        .materialRequisition({
+          ...this.detailedList,
+        })
+        .then((res) => {
           this.hasScanSnList.push(this.detailedList);
+          console.log("璁板綍", this.hasScanSnList);
+          this.$u.toast("棰嗘枡鎴愬姛");
+        })
+        .catch((err) => {
+          this.$u.toast("棰嗘枡澶辫触");
+        });
     },
   },
 };

--
Gitblit v1.9.3