Andy 3 лет назад
Родитель
Сommit
26208befb3

+ 10 - 2
src/views/ChipPrintScreen/ChipPrintScreen.vue

@@ -572,9 +572,17 @@ export default {
       if (type) {
         this.selectedInfo.rows.splice(v, 1);
       } else {
+        if (v == "order_no") {
+          this.selectedInfo.residential_name = "";
+          this.selectedInfo.url_number = "";
+          this.selectedInfo.product_id = "";
+          this.selectedInfo.rows = [];
+        }
         this.selectedInfo[v] = "";
       }
-      this.getChipDetail();
+      if (v != "order_no") {
+        this.getChipDetail();
+      }
     },
     handleChooseBlockClick(row) {
       console.log(`row`, row);
@@ -729,12 +737,12 @@ export default {
         this.selectedInfo.url_number = this.chooseUrlNo.url_number;
         this.selectedInfo.product_id = this.chooseUrlNo.product_id;
         this.selectionDetailModal = false;
+        this.getChipDetail();
       }
       // order_no: "20211010",
       // residential_name: "2",
       // url_number: "3",
       // row_no: [],
-      this.getChipDetail();
     },
     // 获取具体详情
     getChipDetail() {

+ 10 - 2
src/views/ChipPrintScreen/ChipPrintScreenCheck.vue

@@ -523,9 +523,17 @@ export default {
       if (type) {
         this.selectedInfo.rows.splice(v, 1);
       } else {
+        if (v == "order_no") {
+          this.selectedInfo.residential_name = "";
+          this.selectedInfo.url_number = "";
+          this.selectedInfo.product_id = "";
+          this.selectedInfo.rows = [];
+        }
         this.selectedInfo[v] = "";
       }
-      this.getChipDetail();
+      if (v != "order_no") {
+        this.getChipDetail();
+      }
     },
     handleChooseBlockClick(row) {
       console.log(`row`, row);
@@ -680,12 +688,12 @@ export default {
         this.selectedInfo.url_number = this.chooseUrlNo.url_number;
         this.selectedInfo.product_id = this.chooseUrlNo.product_id;
         this.selectionDetailModal = false;
+        this.getChipDetail();
       }
       // order_no: "20211010",
       // residential_name: "2",
       // url_number: "3",
       // row_no: [],
-      this.getChipDetail();
     },
     // 获取具体详情
     getChipDetail() {