|
@@ -17,7 +17,7 @@
|
|
|
<u-empty :src="`/static/${$config('themePath')}/def_no_data@3x.png`" icon-size="240" :text="noDataText" img-width="120" v-if="listdata.length==0 && status!='loading'" mode="list"></u-empty>
|
|
|
</scroll-view>
|
|
|
<view class="replenishment-confirm-footer" v-if="listdata.length>0">
|
|
|
- <u-button @click="confirmModal=true" type="success" :custom-style="customStyle" hover-class="none" shape="circle">确定补货({{confirmQty}}/{{totalQty}})</u-button>
|
|
|
+ <u-button @click="confirmModal=true" :loading="loading" type="success" :custom-style="customStyle" hover-class="none" shape="circle">确定补货({{confirmQty}}/{{totalQty}})</u-button>
|
|
|
</view>
|
|
|
<!-- 确认弹框 -->
|
|
|
<common-modal :openModal="confirmModal" content="确认对该数字货架进行补货吗?" confirmText="确认补货" @confirm="modalConfirm" @close="confirmModal=false" />
|
|
@@ -34,6 +34,7 @@
|
|
|
components: { commonModal, stockModal },
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading: false,
|
|
|
listdata: [],
|
|
|
status: 'loadmore',
|
|
|
noDataText: '暂无数据',
|
|
@@ -113,6 +114,7 @@
|
|
|
replenishBillNo: this.listdata[0].replenishBillNo,
|
|
|
detailList: arr
|
|
|
}
|
|
|
+ this.loading = true
|
|
|
// 校验产品库存是否足够
|
|
|
shelfReplenishDetailStock(params).then(res => {
|
|
|
if (res.status == 200) {
|
|
@@ -121,7 +123,9 @@
|
|
|
this.paramsData = params
|
|
|
this.confirmModal = false
|
|
|
this.stockModal = true
|
|
|
+ this.loading = false
|
|
|
} else {
|
|
|
+ this.confirmModal = false
|
|
|
this.confirmFun(params)
|
|
|
}
|
|
|
}
|
|
@@ -130,6 +134,7 @@
|
|
|
// 提交确认
|
|
|
confirmFun (params) {
|
|
|
shelfReplenishConfirm(params).then(res => {
|
|
|
+ this.loading = false
|
|
|
if (res.status == 200) {
|
|
|
this.toashMsg(res.message)
|
|
|
uni.$emit('refreshBL')
|
|
@@ -143,6 +148,7 @@
|
|
|
// 库存不足 confirm
|
|
|
modalStock(params){
|
|
|
this.stockModal = false
|
|
|
+ this.loading = true
|
|
|
this.confirmFun(params)
|
|
|
}
|
|
|
}
|