lilei пре 4 година
родитељ
комит
01b78662cb

+ 1 - 3
src/views/salesManagement/salesReturn/salesReturnEdit.vue

@@ -475,9 +475,7 @@ export default {
         params.salesQty = row.qty
       }
       salesReturnSaveProduct(params).then(res => {
-        if (res.status == 200) {
-          this.resetSearchForm(true)
-        }
+        this.resetSearchForm(true)
         this.isInster = false
       })
     },

+ 2 - 3
src/views/salesManagement/salesReturn/salesReturnGrabEdit.vue

@@ -320,6 +320,7 @@ export default {
         console.log(row.celQty, row.qty)
         if (row.celQty > row.qty) {
           this.$message.info('废品数量不可大于本次退货数量')
+          this.$refs.table.refresh(true)
         } else {
           this.saveProduct(row, 'edit')
         }
@@ -478,9 +479,7 @@ export default {
         params.salesQty = row.qty
       }
       salesReturnSaveProduct(params).then(res => {
-        if (res.status == 200) {
-          this.resetSearchForm(true)
-        }
+        this.resetSearchForm(true)
         this.isInster = false
       })
     },