From 300ca9810420efbf8468c9d6f47bd364c9c72d5f Mon Sep 17 00:00:00 2001
From: 647556386 <647556386@qq.com>
Date: 星期一, 12 一月 2026 11:09:20 +0800
Subject: [PATCH] 盘点更改

---
 项目代码/WIDESEA_WMSClient/src/extension/inbound/takeStockOrderDetail.js |  136 --------------------------------------------
 1 files changed, 2 insertions(+), 134 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/takeStockOrderDetail.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/takeStockOrderDetail.js"
index fb2ce17..ab7f6a7 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/takeStockOrderDetail.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEA_WMSClient/src/extension/inbound/takeStockOrderDetail.js"
@@ -18,19 +18,6 @@
   buttons: { view: [], box: [], detail: [] }, // 鎵╁睍鎸夐挳
   methods: {
     onInit() {
-      // 鍘熸湁鐩樼偣鎸夐挳閫昏緫淇濈暀
-      let OrderStockTakeBtn = this.buttons.find(x => x.value === 'OrderStockTake');
-      if (OrderStockTakeBtn) {
-        OrderStockTakeBtn.onClick = function () {
-          let rows = this.$refs.table.getSelected();
-          if (rows.length === 0) return this.$error("璇烽�夋嫨涓�鏉$洏鐐瑰崟鎹暟鎹紒");
-          if (rows.length > 1) return this.$error("鍙兘閫夋嫨涓�鏉$洏鐐瑰崟鎹暟鎹紒");
-          
-          const selectedReceiptNo = rows[0].orderNo;
-          if (!selectedReceiptNo) return this.$error("閫変腑鐨勫崟鎹己灏戞湁鏁堢殑鍗曟嵁鍙凤紒");
-          this.$refs.gridBody.open(selectedReceiptNo);
-        };
-      }
 
       // 鐩戝惉鍘熸湁寮圭獥浜嬩欢锛堜繚鐣欙級
       this.$nextTick(() => {
@@ -48,128 +35,9 @@
       });
 
       // ========== 鏂板鎿嶄綔鍒楋細浜哄伐骞宠处 + 鏉傛敹鏉傚彂骞宠处 ==========
-      this.columns.push({
-        field: 'operation',
-        title: '鎿嶄綔',
-        width: 200,
-        fixed: 'right',
-        align: 'center',
-        formatter: (row) => {
-          return `
-            <span style="cursor: pointer;color: #2d8cf0;margin-right: 10px;" class="manual-reconciliation">
-              <i class="el-icon-check"></i>浜哄伐骞宠处
-            </span>
-            <span style="cursor: pointer;color: #1989fa;" class="misc-reconciliation">
-              <i class="el-icon-edit"></i>鏉傛敹鏉傚彂骞宠处
-            </span>
-          `;
-        },
-        click: (row, column, event) => {
-          const target = event.target;
-          // 鍖哄垎鐐瑰嚮鐨勬槸浜哄伐骞宠处杩樻槸鏉傛敹鏉傚彂骞宠处
-          if (target.closest('.manual-reconciliation')) {
-            this.handleManualReconciliation(row); // 浜哄伐骞宠处閫昏緫
-          } else if (target.closest('.misc-reconciliation')) {
-            this.handleMiscReconciliation(row); // 鏉傛敹鏉傚彂骞宠处閫昏緫
-          }
-        }
-      });
+      
     },
-
-    // ========== 浜哄伐骞宠处鏍稿績閫昏緫 ==========
-    handleManualReconciliation(row) {
-      // 寮瑰嚭纭妗�
-      ElMessageBox.confirm(
-        '纭瑕佹墽琛屼汉宸ュ钩璐︽搷浣滃悧锛�',
-        '鎿嶄綔纭',
-        {
-          confirmButtonText: '纭',
-          cancelButtonText: '鍙栨秷',
-          type: 'warning'
-        }
-      ).then(async () => {
-        // 娣诲姞閬僵灞傞槻姝㈤噸澶嶇偣鍑�
-        const loading = ElLoading.service({
-          lock: true,
-          text: '澶勭悊涓紝璇风◢鍊�...',
-          background: 'rgba(0, 0, 0, 0.7)'
-        });
-
-        try {
-          // 璋冪敤浜哄伐骞宠处鎺ュ彛
-          const response = await this.http.get(`/api/TakeStockOrder/ManualReconciliation?id=${row.id}`);
-          if (response.status) {
-            ElMessage.success('浜哄伐骞宠处鎿嶄綔鎴愬姛锛�');
-            this.$refs.table.reload(); // 鍒锋柊琛ㄦ牸
-          } else {
-            ElMessage.error(`鎿嶄綔澶辫触锛�${response.message || '鏈煡閿欒'}`);
-          }
-        } catch (error) {
-        } finally {
-          // 鍏抽棴閬僵灞�
-          loading.close();
-        }
-      }).catch(() => {
-        ElMessage.info('宸插彇娑堜汉宸ュ钩璐︽搷浣�');
-      });
-    },
-
-    // ========== 鏉傛敹鏉傚彂骞宠处鏍稿績閫昏緫锛堜慨鏀瑰悗锛� ==========
-    handleMiscReconciliation(row) {
-      // 閫変腑褰撳墠琛�
-      const table = this.$refs.table.$refs.table;
-      if (table) {
-        table.clearSelection();
-        table.toggleRowSelection(row, true);
-      }
-
-      // 璋冪敤鎺ュ彛鑾峰彇鏉傛敹鏉傚彂骞宠处鏁版嵁
-      const fetchMiscData = async () => {
-        const loading = ElLoading.service({
-          lock: true,
-          text: '鍔犺浇鏁版嵁涓�...',
-          background: 'rgba(0, 0, 0, 0.7)'
-        });
-
-        try {
-          // 璋冪敤鎺ュ彛锛屼紶閫抮ow涓殑remark鍜宨d鍙傛暟
-          const response = await this.http.get(`/api/TakeStockOrder/SelectOrder?remark=${row.remark || ''}&id=${row.id}`);
-          loading.close();
-          
-          if (response.status) {
-            if (!Array.isArray(response.data) || response.data.length === 0) {
-              ElMessage.warning("鏈煡璇㈠埌鐩稿叧鏁版嵁");
-              // 鎵撳紑绌烘暟鎹殑寮圭獥
-              this.$refs.gridHeader.open(row, []);
-              return;
-            }
-
-            // 鎻愬彇闇�瑕佸睍绀虹殑瀛楁
-            const displayData = response.data.map(item => ({
-              id: item.id || '',
-              materielCode: item.materielCode || '',
-              materielName: item.materielName || '',
-              batchNo: item.batchNo || '',
-              orderQuantity: item.orderQuantity || 0,
-              unit: item.unit || '',
-              supplyCode: item.supplyCode || '',
-              warehouseCode: item.warehouseCode || ''
-            }));
-
-            // 鎵撳紑寮圭獥骞朵紶閫掑鐞嗗悗鐨勬暟鎹�
-            this.$refs.gridHeader.open(row, displayData);
-          } else {
-            ElMessage.error(`鏌ヨ澶辫触锛�${response.message || '鏈煡閿欒'}`);
-          }
-        } catch (error) {
-          loading.close();
-          ElMessage.error(`缃戠粶寮傚父锛�${error.message || '鎺ュ彛璋冪敤澶辫触'}`);
-        }
-      };
-
-      // 鎵ц鏁版嵁鏌ヨ骞舵墦寮�寮圭獥
-      fetchMiscData();
-    },
+    
 
     onInited() {
       // 妗嗘灦鍒濆鍖栧畬鎴愬悗鎵ц

--
Gitblit v1.9.3