lilei 1 年之前
父节点
当前提交
d4733549cd
共有 5 个文件被更改,包括 17 次插入3 次删除
  1. 2 2
      pages/index/index.vue
  2. 8 1
      pagesA/queryByCode/confirmQh.vue
  3. 7 0
      pagesA/queryByCode/queryByCode.vue
  4. 二进制
      pagesA/static/inhand.png
  5. 二进制
      pagesA/static/outof.png

+ 2 - 2
pages/index/index.vue

@@ -500,8 +500,8 @@
 								if(res.status == 200 && res.data){
 									if(res.data.currentInven){
 										const billSource = ret.scanType == 'QR_CODE' ? 'qr_code': 'bar_code'
-										const params = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
-										_this.$store.state.vuex_tempData = params
+										const retData = Object.assign({shelfSn: shelfSn, billSource: billSource},res.data)
+										_this.$store.state.vuex_tempData = retData
 										uni.navigateTo({
 											url: '/pagesA/queryByCode/confirmQh'
 										})

+ 8 - 1
pagesA/queryByCode/confirmQh.vue

@@ -3,6 +3,10 @@
 		 <view class="productInfo">
 			 <view><u-image :src="nowData.images" border-radius="16" width="160" height="160" bg-color="#EBEBEB"></u-image></view>
 			 <view style="display: block;"><text class="item-no">{{ nowData.shelfPlaceCode }}</text><text>{{ nowData.code }}</text></view>
+			 <view class="flex align_center" v-if="nowData.productTypeSn=='543766811373752320'" style="padding-top: 5px;">
+			 	<text class="item-detail-text">原厂编码:</text>
+			 	<u-tag :text="nowData.origCode" mode="light" borderColor="#ffffff" type="warning" size="large"></u-tag>
+			 </view>
 			 <view class="item-name">
 			 	<text>{{ nowData.name }}</text>
 			 </view>
@@ -133,6 +137,9 @@
 	padding: 50rpx 30rpx;
 	height: 100vh;
 	.productInfo{
+		.item-detail-text{
+			color: #999;
+		}
 		> view{
 			text-align: center;
 			display: flex;
@@ -145,7 +152,7 @@
 				background: rgba(3, 54, 146, 0.15);
 				border-radius: 20rpx;
 				color: #033692;
-				font-size: 24rpx;
+				font-size: 28rpx;
 			}
 			padding: 10rpx;
 		}

+ 7 - 0
pagesA/queryByCode/queryByCode.vue

@@ -29,6 +29,10 @@
 								<view class="pname flex align_center justify_between">
 									<view class="code"><text>{{item.shelfPlaceCode}}</text>{{item.code}}</view>
 								</view>
+								<view class="flex align_center" v-if="item.productTypeSn=='543766811373752320'" style="padding-top: 5px;">
+									<text class="item-detail-text">原厂编码:</text>
+									<u-tag :text="item.origCode" mode="light" borderColor="#ffffff" type="warning" size="large"></u-tag>
+								</view>
 								<view class="ptxt">
 									<view>
 										<text class="pcode">{{item.name}}</text>
@@ -239,6 +243,9 @@
 				.pinfo{
 					flex-grow: 1;
 					padding-left: 20rpx;
+					.item-detail-text{
+						color: #999;
+					}
 					.pname{
 						font-size: 28rpx;
 						color: #191919;

二进制
pagesA/static/inhand.png


二进制
pagesA/static/outof.png