lilei 1 år sedan
förälder
incheckning
dd7172713a

+ 15 - 4
pagesA/qualityPolicy/creatCarInfo.vue

@@ -7,10 +7,10 @@
 					<view class="uuid-info">
 					<view class="uuid-info">
 						<view>产品名称:{{item.productName}}</view>
 						<view>产品名称:{{item.productName}}</view>
 						<view>产品编码:{{item.productCode}}</view>
 						<view>产品编码:{{item.productCode}}</view>
-						<view class="uuid">唯一码:{{item.traceCode}}</view>
+						<view class="uuid" style="margin-top: 0.2rem;">唯一码:{{item.traceCode}}</view>
 					</view>
 					</view>
 					<view v-if="item.productMsg" class="uuid-img" @click="viewImg(item.productMsg)">
 					<view v-if="item.productMsg" class="uuid-img" @click="viewImg(item.productMsg)">
-						<image style="width: 100%;height: 80px;background: #eaeaea;" :src="item.productMsg"></image>
+						<image :src="item.productMsg"></image>
 					</view>
 					</view>
 				</view>
 				</view>
 			</view>
 			</view>
@@ -184,7 +184,8 @@
 		color: #666;
 		color: #666;
 		.uuid-info{
 		.uuid-info{
 			flex-grow: 1;
 			flex-grow: 1;
-			padding-right: 1rem;
+			line-height: 1.5rem;
+			width: 50%;
 			.uuid{
 			.uuid{
 				color: #333;
 				color: #333;
 			}
 			}
@@ -193,8 +194,18 @@
 			}
 			}
 		}
 		}
 		.uuid-img{
 		.uuid-img{
-			width: 7rem;
+			width: 6rem;
+			height: 6rem;
 			border: 1px solid #eee;
 			border: 1px solid #eee;
+			overflow: hidden;
+			display: flex;
+			align-items: center;
+			margin-left: 0.5rem;
+			image {
+				max-width: 100%;
+				max-height: 100%;
+				background: #eaeaea;
+			}
 		}
 		}
 		margin-bottom: 0.5rem;
 		margin-bottom: 0.5rem;
 	}
 	}

+ 12 - 4
pagesA/qualityPolicy/creatCustomInfo.vue

@@ -259,15 +259,23 @@
 					// 保存数据
 					// 保存数据
 					this.loading = true
 					this.loading = true
 					const res = await traceWarrantySave(params)
 					const res = await traceWarrantySave(params)
-					uni.showToast({
-						icon: 'none',
-						title: res.message
-					})
+					
 					if(res.status == 200){
 					if(res.status == 200){
+						uni.showToast({
+							icon: 'none',
+							title: res.message
+						})
 						this.$store.state.vuex_tempData = null
 						this.$store.state.vuex_tempData = null
 						uni.redirectTo({
 						uni.redirectTo({
 							url: "/pagesA/qualityPolicy/resultOrder"
 							url: "/pagesA/qualityPolicy/resultOrder"
 						})
 						})
+					}else{
+						uni.showModal({
+							title: '提示',
+							content: res.message,
+							confirmText: "知道了",
+							showCancel: false,
+						})
 					}
 					}
 					this.loading = false
 					this.loading = false
 				}else{
 				}else{

+ 14 - 4
pagesA/qualityPolicy/orderDetail.vue

@@ -9,11 +9,11 @@
 							<view style="margin-top: 0.2rem;">产品编码:{{detail.productCode}}</view>
 							<view style="margin-top: 0.2rem;">产品编码:{{detail.productCode}}</view>
 						</view>
 						</view>
 						<view v-if="detail.productMsg" class="uuid-img" @click="viewPic(detail.productMsg)">
 						<view v-if="detail.productMsg" class="uuid-img" @click="viewPic(detail.productMsg)">
-							<image style="width: 100%;height: 80px;background: #eaeaea;" :src="detail.productMsg"></image>
+							<image :src="detail.productMsg"></image>
 						</view>
 						</view>
 					</view>
 					</view>
 					<view class="uuid-info">
 					<view class="uuid-info">
-						<view class="uuid">唯一码:{{detail.traceCode}}</view>
+						<view class="uuid" style="margin-top: 0.2rem;">唯一码:{{detail.traceCode}}</view>
 						<view class="uuid">质保时间:{{detail.warrantyStartDate.split(' ')[0]}}至{{detail.warrantyEndDate.split(' ')[0]}}</view>
 						<view class="uuid">质保时间:{{detail.warrantyStartDate.split(' ')[0]}}至{{detail.warrantyEndDate.split(' ')[0]}}</view>
 					</view>
 					</view>
 					<view class="state" :class="detail.state"></view>
 					<view class="state" :class="detail.state"></view>
@@ -146,15 +146,25 @@
 		color: #666;
 		color: #666;
 		.uuid-info{
 		.uuid-info{
 			flex-grow: 1;
 			flex-grow: 1;
-			padding-right: 0.5rem;
 			line-height: 1.5rem;
 			line-height: 1.5rem;
+			width: 50%;
 		}
 		}
 		.uuid{
 		.uuid{
 			color: #000;
 			color: #000;
 		}
 		}
 		.uuid-img{
 		.uuid-img{
-			width: 7rem;
+			width: 6rem;
+			height: 6rem;
 			border: 1px solid #eee;
 			border: 1px solid #eee;
+			overflow: hidden;
+			display: flex;
+			align-items: center;
+			margin-left: 0.5rem;
+			image {
+				max-width: 100%;
+				max-height: 100%;
+				background: #eaeaea;
+			}
 		}
 		}
 	}
 	}
 	.buttons{
 	.buttons{

+ 14 - 4
pagesA/qualityPolicy/searchOrder.vue

@@ -17,11 +17,11 @@
 									<view style="margin-top: 0.2rem;">产品编码:{{item.productCode}}</view>
 									<view style="margin-top: 0.2rem;">产品编码:{{item.productCode}}</view>
 								</view>
 								</view>
 								<view class="uuid-img" v-if="item.productMsg">
 								<view class="uuid-img" v-if="item.productMsg">
-									<image style="width: 100%;height: 80px;background: #eaeaea;" :src="item.productMsg"></image>
+									<image :src="item.productMsg"></image>
 								</view>
 								</view>
 							</view>
 							</view>
 							<view class="uuid-info">
 							<view class="uuid-info">
-								<view class="uuid">唯一码:{{item.traceCode}}</view>
+								<view class="uuid" style="margin-top: 0.2rem;">唯一码:{{item.traceCode}}</view>
 								<view class="uuid">质保时间:{{item.warrantyStartDate.split(' ')[0]}}至{{item.warrantyEndDate.split(' ')[0]}}</view>
 								<view class="uuid">质保时间:{{item.warrantyStartDate.split(' ')[0]}}至{{item.warrantyEndDate.split(' ')[0]}}</view>
 								<view class="uuid">手机号码:{{item.customMobile}}</view>
 								<view class="uuid">手机号码:{{item.customMobile}}</view>
 							</view>
 							</view>
@@ -157,15 +157,25 @@
 		color: #666;
 		color: #666;
 		.uuid-info{
 		.uuid-info{
 			flex-grow: 1;
 			flex-grow: 1;
-			padding-right: 0.5rem;
 			line-height: 1.5rem;
 			line-height: 1.5rem;
+			width: 50%;
 		}
 		}
 		.uuid{
 		.uuid{
 			color: #000;
 			color: #000;
 		}
 		}
 		.uuid-img{
 		.uuid-img{
-			width: 7rem;
+			width: 6rem;
+			height: 6rem;
 			border: 1px solid #eee;
 			border: 1px solid #eee;
+			overflow: hidden;
+			display: flex;
+			align-items: center;
+			margin-left: 0.5rem;
+			image {
+				max-width: 100%;
+				max-height: 100%;
+				background: #eaeaea;
+			}
 		}
 		}
 	}
 	}
 }
 }