Ver Fonte

no message

aXin-0810 há 1 ano atrás
pai
commit
2791fe6502
1 ficheiros alterados com 3 adições e 4 exclusões
  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