Explorar el Código

放箱号 自有箱 删除后 重新请求一遍详情接口

qukaidi hace 1 día
padre
commit
90acd09d3f

+ 8 - 7
src/views/boxManagement/containerNumber/detailsPage.vue

@@ -1998,13 +1998,13 @@ export default {
           const itemsWithId = multiList.filter(item => item.id != null);
           let arrIds = itemsWithId.map(item => item.id); // 获取id 数据
           // 把选中的删除掉
-          multiList.forEach(item => {
-            for (let index in arr) {
-              if (JSON.stringify(item) == JSON.stringify(arr[index])) {
-                arr.splice(Number(index), 1);
-              }
-            }
-          });
+          // multiList.forEach(item => {
+          //   for (let index in arr) {
+          //     if (JSON.stringify(item) == JSON.stringify(arr[index])) {
+          //       arr.splice(Number(index), 1);
+          //     }
+          //   }
+          // });
           if (itemsWithId.length != 0) {
             const loading = this.$loading({
               lock: true,
@@ -2015,6 +2015,7 @@ export default {
             tradingBoxItem({ ids: arrIds.join(",") })
               .then(res => {
                 this.$message.success("删除成功");
+                this.getDetail(this.form.id);
               })
               .finally(() => {
                 loading.close();

+ 2 - 2
src/views/ow/owPut/detailsPage.vue

@@ -3227,7 +3227,7 @@ export default {
           return this.$message.error("没有上一票了");
         }
         const lastIndex = index - 1;
-        this.getDetails(this.pageIds[lastIndex]);
+        this.getDetail(this.pageIds[lastIndex]);
       }
     },
     nextPage() {
@@ -3237,7 +3237,7 @@ export default {
           return this.$message.error("没有下一票了");
         }
         const nextIndex = index + 1;
-        this.getDetails(this.pageIds[nextIndex]);
+        this.getDetail(this.pageIds[nextIndex]);
       }
     },
     enter() {