From 74ead6f7bb66fe8d3f8db11b1cbadd92b57e28d1 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期二, 04 十一月 2025 10:23:19 +0800
Subject: [PATCH] 解决铜杆报工的数据覆盖问题

---
 pages/wareHouse/moveWareHouse/index.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pages/wareHouse/moveWareHouse/index.vue b/pages/wareHouse/moveWareHouse/index.vue
index 5ebff67..5e4c4b0 100644
--- a/pages/wareHouse/moveWareHouse/index.vue
+++ b/pages/wareHouse/moveWareHouse/index.vue
@@ -45,7 +45,7 @@
             :index="index"
           >
             <view class="content-header">
-              <view class="content-header-title">{{ index + 1 }}</view>
+              <view class="content-header-title">{{ hasScanSnList.length - index }}</view>
             </view>
             <view class="content-body">
               <view class="row-list">
@@ -191,14 +191,14 @@
         let codeInfo = JSON.parse(data.code);
         // 鎵弿鎶ュ伐鍗曚簩缁寸爜
         // 鍒ゆ柇鎵弿鐨勬槸搴撲綅鐮佽繕鏄祦杞爜
-        if (codeInfo.LN) {
+        if (codeInfo.CT) {
           that.saveForm(codeInfo);
         } else {
           if (!that.registerInfo.toLocationNo) {
             that.$u.toast("璇峰厛鎵弿搴撲綅");
             return; 
           }
-          that.hasScanSnList = [];
+          // that.hasScanSnList = [];
           that.codeInfoId = codeInfo.id;
           that.saveModalForm(codeInfo);
           //   that.getHandelList();
@@ -236,7 +236,7 @@
         })
         .then((res) => {
           console.log("绉诲簱璁板綍", res);
-          this.hasScanSnList.push(res.data);
+          this.hasScanSnList.unshift(res.data);
           console.log("绉诲簱璁板綍", this.hasScanSnList);
           this.$u.toast("绉诲簱鎴愬姛");
         });
@@ -251,7 +251,7 @@
     saveModalForm(val) {
       this.$u.api.shiftingParking
         .selPartInfoPDA({
-          outBatchNo: val.outBatchNo,
+          outBatchNo: val.BN,
         })
         .then((res) => {
           this.detailedList = res.data;

--
Gitblit v1.9.3