|
@@ -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
|
|
|
})
|
|
|
},
|
|
|
}
|