aXin-0810 hace 1 año
padre
commit
2791fe6502
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      src/views/supply/reserve/components/reserve_form.vue

+ 3 - 4
src/views/supply/reserve/components/reserve_form.vue

@@ -763,11 +763,10 @@ export default {
     },
     },
 
 
     // 确定 添加产品
     // 确定 添加产品
-    submitAddGoods() {
-      this.dialogSelection.forEach(async item => {
+    async submitAddGoods() {
+      for (var item of this.dialogSelection) {
         item.warehouseList = await this.getListStock(item.customerId)
         item.warehouseList = await this.getListStock(item.customerId)
-      })
-
+      }
       this.goodsList = this.goodsList.concat(
       this.goodsList = this.goodsList.concat(
         this.dialogSelection.map(item => {
         this.dialogSelection.map(item => {
           item.reservedNum = item.refundableQty
           item.reservedNum = item.refundableQty