فهرست منبع

Merge branch 'develop_szhj07' of http://git.chelingzhu.com/jianguan-web/qpls-md-app into develop_szhj07

chenrui 2 سال پیش
والد
کامیت
6f864cf4a5
1فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 7 3
      pages/soldOut/creatOrder.vue

+ 7 - 3
pages/soldOut/creatOrder.vue

@@ -100,7 +100,7 @@
 				</view>
 			</view>
 			<view class="f-btns">
-				<u-button size="medium" @click="submitOrder" :custom-style="customBtnStyle" shape="circle" type="primary" hover-class="none" >创建补货单</u-button>
+				<u-button size="medium" @click="submitOrder" :loading="loading" :custom-style="customBtnStyle" shape="circle" type="primary" hover-class="none" >创建补货单</u-button>
 			</view>
 		</view>
 	</view>
@@ -122,6 +122,7 @@
 				},
 				chooseList: [],
 				tempData: null,
+				loading: false
 			}
 		},
 		onNavigationBarButtonTap(e) {
@@ -236,21 +237,24 @@
 			      shelfPlaceCode: item.shelfPlaceCode,
 			      productSn: item.productSn,
 			      productCode: item.productCode,
-			      qty: item.replenishQty
+			      qty: item.replenishQty,
+				  id: item.id
 			    })
 			  })
 			  this.showLoading("正在提交...")
+			  this.loading = true
 			  // 开始提交
 			  saveMainAndDetail({
 			    shelfSn: this.nowData.shelfSn,
 			    dealerSn: this.nowData.dealerSn,
 			    detailList: dataList
 			  }).then(res => {
+				uni.hideLoading()
 			    if (res.status == 200) {
 			      this.toashMsg(res.message)
 				  uni.redirectTo({ url: "/pages/replenishmentManage/outWarehousing?sn="+res.data.replenishBillSn })
 			    }
-				uni.hideLoading()
+				this.loading = false
 			  })
 			},
 		}