lilei 4 anni fa
parent
commit
240c8b9e8c
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      src/views/salesManagement/salesQuery/edit.vue

+ 2 - 4
src/views/salesManagement/salesQuery/edit.vue

@@ -212,9 +212,7 @@ export default {
           productSn: row.productSn,
           productSn: row.productSn,
           price: row.price
           price: row.price
         }).then(res => {
         }).then(res => {
-          if (res.status == 200) {
-            this.resetSearchForm(true)
-          }
+          this.resetSearchForm(true)
           this.$message.info(res.message)
           this.$message.info(res.message)
         })
         })
       }
       }
@@ -223,8 +221,8 @@ export default {
           id: row.id,
           id: row.id,
           qty: row.qty
           qty: row.qty
         }).then(res => {
         }).then(res => {
+          this.resetSearchForm(true)
           if (res.status == 200) {
           if (res.status == 200) {
-            this.resetSearchForm(true)
             this.$refs.partQuery.resetCurForm()
             this.$refs.partQuery.resetCurForm()
           }
           }
           this.$message.info(res.message)
           this.$message.info(res.message)