소스 검색

🐞 fix(【drp-采购需求单】): 修改物料编码,选择某行粘贴后面的行都丢失

采购需求单界面选择导入数据修改物料编码,随便选择某行粘贴后面的行都丢失了 具体操作:在采购需求单界面导入数据后修改,直接粘贴物料编码到某一行的物料编码文本框中,不管粘贴的物料编码是系统存在的还是不存在的都会把粘贴这一行后面的所有行都去掉不显示。物料编码可以用:501-02-01-000006/501-02-01-00006 影响版本	 bug发生的原因/解决方案

20240611122
002390 11 달 전
부모
커밋
ad0d0f35c5
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 4
      src/views/purchase/PurchaseDemandList/add.vue

+ 8 - 4
src/views/purchase/PurchaseDemandList/add.vue

@@ -2494,7 +2494,8 @@ export default {
                 // 删除指定下标
                 this.basicForm.puDemandItemList.splice(
                   index,
-                  this.basicForm.puDemandItemList.length - index,
+                  newLine.length,
+                  // this.basicForm.puDemandItemList.length - index,
                   ...newLine
                 );
                 this.$modal.notifySuccess("共粘贴" + rowList.length + "条数据");
@@ -2524,7 +2525,8 @@ export default {
             // 删除指定下标
             this.basicForm.puDemandItemList.splice(
               index,
-              this.basicForm.puDemandItemList.length - index,
+              newLine.length,
+              // this.basicForm.puDemandItemList.length - index,
               ...newLine
             );
             this.$modal.notifySuccess("共粘贴" + rows.length + "条数据");
@@ -2566,7 +2568,8 @@ export default {
                   // 删除指定下标
                   this.basicForm.puDemandItemList.splice(
                     index,
-                    this.basicForm.puDemandItemList.length - index,
+                    // this.basicForm.puDemandItemList.length - index,
+                    newLine.length,
                     ...newLine
                   );
                   this.$modal.notifySuccess(
@@ -2621,7 +2624,8 @@ export default {
                   // 删除指定下标
                   this.basicForm.puDemandItemList.splice(
                     index,
-                    this.basicForm.puDemandItemList.length - index,
+                    // this.basicForm.puDemandItemList.length - index,
+                    newLine.length,
                     ...newLine
                   );
                   this.$modal.notifySuccess(