浏览代码

bug 修复

lilei 4 年之前
父节点
当前提交
240c8b9e8c
共有 1 个文件被更改,包括 2 次插入4 次删除
  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)