소스 검색

bug 修复

lilei 2 년 전
부모
커밋
222c2cc6b2
2개의 변경된 파일15개의 추가작업 그리고 23개의 파일을 삭제
  1. 10 21
      pages/batchShelves/setProductCost.vue
  2. 5 2
      pages/replenishmentManage/replenishmentList.vue

+ 10 - 21
pages/batchShelves/setProductCost.vue

@@ -19,12 +19,10 @@
 						</view>
 					</view>
 				</view>
-				<view class="ptools flex align_center justify_end">
-					<view class="pcurnums flex align_center justify_end">
-						<text>结算价</text>
-						<view class="u-ninput">
-							<u-input style="width: 400rpx;" trim border type="digit" clearable @blur="numberToFixed(item,2,999999)" v-model="item.cost" placeholder="请输入价格,最多两位小数"/>
-						</view>
+				<view class="pcurnums flex align_center justify_end">
+					<text>结算价</text>
+					<view class="u-ninput">
+						<u-input trim border type="digit" clearable @blur="numberToFixed(item,2,999999)" v-model="item.cost" placeholder="请输入价格,最多两位小数"/>
 					</view>
 				</view>
 			</view>
@@ -86,6 +84,7 @@
 
 <style lang="less">
 .content{
+	width: 100%;
 	height: 100vh;
 	.tits{
 		padding: 20upx 30upx;
@@ -93,8 +92,8 @@
 		font-size: 24rpx;
 	}
 	.proudct-body{
-		width: 100%;
 		flex-grow: 1;
+		width: 100%;
 		overflow: auto;
 		background-color: #fff;
 		padding: 0 20upx;
@@ -122,21 +121,11 @@
 				}
 			}
 		}
-		.ptxt{
-			font-size: 28rpx;
+		.pcurnums{
 			color: #999;
-			.pnums{
-				color: #222;
-				margin-right: 20upx;
-			}
-		}
-		.ptools{
-			.pcurnums{
-				width: 80%;
-				color: #999;
-				> text{
-					margin-right: 20rpx;
-				}
+			.u-ninput{
+				width: 60%;
+				padding: 0 10rpx;
 			}
 		}
 	}

+ 5 - 2
pages/replenishmentManage/replenishmentList.vue

@@ -139,6 +139,7 @@
 						this.swiperCurrent = current
 						this.current = current
 						this.resetPage()
+						this.queryByTypeSum(true)
 					}
 				}
 			},
@@ -206,13 +207,15 @@
 				}
 			},
 			// 查询每个状态的数据条数
-			queryByTypeSum () {
+			queryByTypeSum (flag) {
 				shelfReplenishStateCount({}).then(res => {
 					if (res.data && res.status == 200) {
 						this.tabList[1].count = res.data.WAIT_CONFIRM || 0
 						this.tabList[2].count = res.data.WAIT_OUT_STOCK || 0
 						this.tabList[3].count = res.data.WAIT_CHECK || 0
-						this.getRow(1)
+						if(!flag){
+							this.getRow(1)
+						}
 					}
 				})
 			},