Browse Source

bug 修复

lilei 2 years ago
parent
commit
404d28b9b8
3 changed files with 31 additions and 33 deletions
  1. 17 18
      pages/soldOut/chooseProduct.vue
  2. 13 14
      pages/soldOut/creatOrder.vue
  3. 1 1
      pages/soldOut/productList.vue

+ 17 - 18
pages/soldOut/chooseProduct.vue

@@ -78,34 +78,32 @@
 									<text>{{item.shelfPlaceCode}}</text>
 									{{item.productCode}}
 								</view>
-								<view class="item-name">
+								<view class="item-name ellipsis-two">
 									{{item.productName}}
 								</view>
-								<view class="item-detail">
-									<view class="item-detail-info align_center flex justify_between">
-										<view></view>
-										<view class="flex justify_end">
-											<view class="item-detail-text">
-											最大库容:<text class="pnums">{{item.maxQty||0}}</text>
-											货架库存:<text class="pnums">{{item.qty||0}}</text>
-											门店库存:<text class="pnums">{{item.qplsStockQty||0}}</text>
-											</view>
-										</view>
-									</view>
-								</view>
 							</view>
 						</view>
 					</view>
 					<view class="nav-right-item">
+						<view class="item-detail">
+							<view class="item-detail-info align_center flex justify_between">
+								<view></view>
+								<view class="flex justify_end">
+									<view class="item-detail-text">
+									最大库容:<text class="pnums">{{item.maxQty||0}}</text>
+									货架库存:<text class="pnums">{{item.qty||0}}</text>
+									门店库存:<text class="pnums">{{item.qplsStockQty||0}}</text>
+									</view>
+								</view>
+							</view>
+						</view>
 						<view class="item-detail">
 							<view class="item-detail-info">
-								<view class="flex justify_between">
+								<view class="flex justify_end">
 									<view class="item-detail-text flex">
 										<view v-if="item.replenishBillQty">补货在途:<text class="pnums1">{{item.replenishBillQty||0}}</text></view>
 										<view v-if="item.recallBillQty">调回在途:<text class="pnums1">{{item.recallBillQty||0}}</text></view>
 									</view>
-									 <view class="item-detail-text">
-									 </view>
 								</view>
 							</view>
 						</view>
@@ -204,6 +202,8 @@
 		onLoad(opts) {
 			this.nowData = JSON.parse(decodeURIComponent(opts.data));
 			this.getpartList()
+		},
+		onReady() {
 			uni.setNavigationBarColor({
 				frontColor: '#ffffff',
 				backgroundColor: this.$config('primaryColor')
@@ -614,7 +614,7 @@
 			}
 			.item-detail{
 				.item-detail-info{
-					padding: 10upx 0 4upx;
+					padding: 5upx 0;
 					font-size: 24upx;
 					.pnums{
 						margin-right: 10rpx;
@@ -629,7 +629,6 @@
 							align-items: center;
 							.item-detail-text{
 								color: #999;
-								margin-left: 20upx;
 							}
 						}
 					}

+ 13 - 14
pages/soldOut/creatOrder.vue

@@ -34,25 +34,25 @@
 								<text>{{item.shelfPlaceCode}}</text>
 								{{item.productCode}}
 							</view>
-							<view class="item-name">
+							<view class="item-name ellipsis-two">
 								{{item.productName}}
 							</view>
-							<view class="item-detail">
-								<view class="item-detail-info align_center flex justify_between">
-									<view></view>
-									<view class="flex justify_end">
-										<view class="item-detail-text">
-										最大库容:<text class="pnums">{{item.maxQty||0}}</text>
-										货架库存:<text class="pnums">{{item.qty||0}}</text>
-										门店库存:<text class="pnums">{{item.qplsStockQty||0}}</text>
-										</view>
-									</view>
-								</view>
-							</view>
 						</view>
 					</view>
 				</view>
 				<view class="nav-right-item">
+					<view class="item-detail">
+						<view class="item-detail-info align_center flex justify_between">
+							<view></view>
+							<view class="flex justify_end">
+								<view class="item-detail-text">
+								最大库容:<text class="pnums">{{item.maxQty||0}}</text>
+								货架库存:<text class="pnums">{{item.qty||0}}</text>
+								门店库存:<text class="pnums">{{item.qplsStockQty||0}}</text>
+								</view>
+							</view>
+						</view>
+					</view>
 					<view class="item-detail">
 						<view class="item-detail-info">
 							<view class="flex justify_between">
@@ -390,7 +390,6 @@
 						align-items: center;
 						.item-detail-text{
 							color: #999;
-							margin-left: 20upx;
 						}
 					}
 				}

+ 1 - 1
pages/soldOut/productList.vue

@@ -28,7 +28,7 @@
 					门店库存:<text class="pnums">{{item.qplsStockQty||0}}</text>
 					</view>
 				</view>
-				<view class="ptools flex align_center justify_between">
+				<view class="ptools flex align_center justify_end">
 					<view class="flex align_center">
 						<view v-if="item.replenishBillQty">
 							补货在途:<text class="pnums">{{item.replenishBillQty||0}}</text>