Browse Source

bug 修复

lilei 4 years ago
parent
commit
240c8b9e8c
1 changed files with 2 additions and 4 deletions
  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,
           price: row.price
         }).then(res => {
-          if (res.status == 200) {
-            this.resetSearchForm(true)
-          }
+          this.resetSearchForm(true)
           this.$message.info(res.message)
         })
       }
@@ -223,8 +221,8 @@ export default {
           id: row.id,
           qty: row.qty
         }).then(res => {
+          this.resetSearchForm(true)
           if (res.status == 200) {
-            this.resetSearchForm(true)
             this.$refs.partQuery.resetCurForm()
           }
           this.$message.info(res.message)