|
@@ -39,7 +39,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="ptools flex align_center justify_between">
|
|
|
- <view>{{item.id+'----'+item.pageNo}}</view>
|
|
|
+ <view></view>
|
|
|
<view class="pcurnums flex align_center">
|
|
|
<view class="u-ninput" v-if="item.shelfCartApi">
|
|
|
<u-number-box :long-press="false" :index="item.id" :input-height="60" @blur="updateNums" @minus="updateNums" @plus="updateNums" color="#000" bg-color="#fff" v-model="item.shelfCartApi.qty" :min="1"></u-number-box>
|
|
@@ -178,6 +178,7 @@
|
|
|
newRow.pageNo = pageNo
|
|
|
_this.productList.splice(curRowIndex,1,newRow)
|
|
|
_this.status = 'nomore'
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
|
}else{
|
|
|
_this.status = 'nomore'
|
|
@@ -204,7 +205,10 @@
|
|
|
console.log(e)
|
|
|
const row = this.productList.find(item => item.id == e.index)
|
|
|
const nums = e.value
|
|
|
- this.saveData(row,nums)
|
|
|
+ const item = row.shelfCartApi || row.shelfProductApi
|
|
|
+ if(item&&item.shelfCartSn){
|
|
|
+ this.saveData(row,nums)
|
|
|
+ }
|
|
|
},
|
|
|
saveData(row,nums){
|
|
|
console.log(row,nums)
|
|
@@ -228,13 +232,16 @@
|
|
|
}
|
|
|
console.log(params)
|
|
|
shelfCartSave(params).then(res => {
|
|
|
- uni.hideLoading()
|
|
|
if(res.status == 200){
|
|
|
// this.toashMsg(res.message)
|
|
|
if(!item){
|
|
|
row.shelfCartApi={shelfPlaceCode:this.shelfPlaceCode}
|
|
|
this.getProductList(true,row,row.pageNo)
|
|
|
+ }else{
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
|
+ }else{
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
|
})
|
|
|
}
|