Browse Source

bug 修复

lilei 2 năm trước cách đây
mục cha
commit
462d1a14fc

+ 2 - 2
pages/shelfSetting/quickProductList.vue

@@ -33,7 +33,7 @@
 					<view class="pcurnums flex align_center">
 						<text>补货数量</text>
 						<view class="u-ninput">
-							<u-number-box color="#000" :input-height="60" bg-color="#fff" v-model="item.printQty" :min="0" :max="999999"></u-number-box>
+							<u-number-box color="#000" :long-press="false" :input-height="60" bg-color="#fff" v-model="item.printQty" :min="0" :max="999999"></u-number-box>
 						</view>
 					</view>
 				</view>
@@ -80,7 +80,7 @@
 					item.printQty = item.replenishBillQty
 					item.checked = false
 				})
-				this.partList = JSON.parse(JSON.stringify(list))
+				this.partList = list
 			},
 			// 全选
 			allSelect(val){

+ 12 - 1
pages/shelfSetting/quickReplenish.vue

@@ -73,8 +73,15 @@
 			this.$refs.productList.setData(this.partList)
 			this.allCheckeChange({value:true})
 			this.allChecked = true
+			setTimeout(()=>{
+				uni.hideLoading()
+			},Math.floor(this.partList.length * 15))
 		},
 		onLoad(option) {
+			uni.showLoading({
+				title: "正在加载数据...",
+				mask:true
+			})
 			this.basicInfoData = this.$store.state.vuex_tempData;
 			this.partList = this.basicInfoData.list
 			// 保持屏幕常亮
@@ -131,7 +138,8 @@
 				    qty: item.printQty,
 					shelfSn: this.basicInfoData.shelfSn,
 				    shelfPlaceCode: item.shelfPlaceCode,
-					shelfPlaceSn: item.shelfPlaceSn
+					shelfPlaceSn: item.shelfPlaceSn,
+					id: item.id
 				  })
 				})
 				const params = {
@@ -158,6 +166,9 @@
 							uni.navigateBack()
 							this.toashMsg(res.message)
 						}
+					}else{
+						uni.navigateBack()
+						this.toashMsg(res.message)
 					}
 					this.loading = false
 					this.chooseModal = false

+ 6 - 0
pages/shelfSetting/searchShelfHw.vue

@@ -104,6 +104,12 @@
 		onShow() {
 			this.changeSearch()
 		},
+		onBackPress() {
+			if(this.showTab){
+				this.showTab = false
+				return true
+			}
+		},
 		methods: {
 			//编辑货位
 			toEdit(item){

+ 2 - 2
pages/shelfSetting/shelfSet.vue

@@ -26,13 +26,13 @@
 				<view class="label" style="width: 50%;" @click="showTip(1)">是否设置完成 <u-icon color="#ffaa00" name="question-circle"></u-icon></view>
 				<view class="text" style="width: 50%;text-align: right;"><u-switch v-model="switchVal" @change="switchChange"></u-switch></view>
 			</view>
-			<view class="card-row align_center flex justify_between" v-if="showMore">
+			<!-- <view class="card-row align_center flex justify_between" v-if="showMore">
 				<view class="label" style="width: 40%;" @click="showTip(0)">价格显示 <u-icon color="#ffaa00" name="question-circle"></u-icon></view>
 				<view class="text flex align_center" style="width: 60%;text-align: right;" @click="updateShowPrice = true">
 					<text style="width: 80%;flex: 1;">非铺货产品——{{ showPrice == '1' ? '显示': '不显示' }}价格</text>
 					<u-icon name="arrow-right" color="#969da3" size="28"></u-icon>
 				</view>
-			</view>
+			</view> -->
 			<view class="moreSeting" @click="showMore=!showMore">
 				<text>{{!showMore?'更多设置':'收起'}}</text> <u-icon :name="showMore?'arrow-up':'arrow-down'"></u-icon>
 			</view>