lilei 1 年之前
父节点
当前提交
5384ec482a

+ 22 - 10
pagesA/digitalShelf/choosePart.vue

@@ -224,25 +224,37 @@
 		<!-- 价格查看 -->
 		<u-popup v-model="showPriceModal" mode="center" length="80%" closeable>
 			<view class="show-price-modal" v-if="tempData">
-				<view>
+				<view class="itemlist">
 					<text>产品编码</text>
 					<text>{{tempData.code||'--'}}</text>
 				</view>
-				<view v-if="tempData.productTypeSn=='543766811373752320'">
+				<view class="itemlist" v-if="tempData.productTypeSn=='543766811373752320'">
 					<text>原厂编码</text>
 					<text>{{tempData.origCode||'--'}}</text>
 				</view>
-				<view>
+				<view class="itemlist">
 					<text>产品名称</text>
 					<text>{{tempData.name||'--'}}</text>
 				</view>
-				<view>
-					<text>进货价</text>
-					<text>{{tempData.cost?'¥'+tempData.cost:'暂无价格'}}</text>
+				<view v-if="tempData.affiliation=='SHELF'">
+					<view class="itemlist" v-if="configPrice.shelf_cost_show == '1'">
+						<text>进货价</text>
+						<text>{{tempData.cost?'¥'+tempData.cost:'暂无价格'}}</text>
+					</view>
+					<view class="itemlist" v-if="configPrice.shelf_price_show == '1'">
+						<text>车主价</text>
+						<text>{{tempData.price?'¥'+tempData.price:'暂无价格'}}</text>
+					</view>
 				</view>
-				<view>
-					<text>车主价</text>
-					<text>{{tempData.price?'¥'+tempData.price:'暂无价格'}}</text>
+				<view v-else>
+					<view class="itemlist" v-if="configPrice.non_shelf_cost_show == '1'">
+						<text>进货价</text>
+						<text>{{tempData.cost?'¥'+tempData.cost:'暂无价格'}}</text>
+					</view>
+					<view class="itemlist" v-if="configPrice.non_shelf_price_show == '1'">
+						<text>车主价</text>
+						<text>{{tempData.price?'¥'+tempData.price:'暂无价格'}}</text>
+					</view>
 				</view>
 			</view>
 		</u-popup>
@@ -748,7 +760,7 @@
 	}
 	.show-price-modal{
 		padding: 30px 20px;
-		>view{
+		.itemlist{
 			display: flex;
 			align-items: center;
 			justify-content: space-between;

+ 10 - 2
pagesA/qualityPolicy/creatCustomInfo.vue

@@ -12,11 +12,11 @@
 				<view class="inputs">{{carInfo.carModel}}</view>
 			</view>
 			<view class="flex align_center">
-				<view class="labes">里程数<u-icon name="question-circle-fill"></u-icon>:</view>
+				<view class="labes" @click="showTip">里程数<u-icon color="#2979ff" name="question-circle-fill"></u-icon>:</view>
 				<view class="inputs">{{carInfo.mileage}}KM</view>
 			</view>
 			<view class="flex align_center">
-				<view class="labes">车牌号<u-icon name="question-circle-fill"></u-icon>:</view>
+				<view class="labes">车牌号:</view>
 				<view class="inputs">{{carInfo.vehicleNumber||'--'}}</view>
 			</view>
 		</view>
@@ -114,6 +114,14 @@
 					url: "/pagesA/qualityPolicy/creatCarInfo"
 				})
 			},
+			showTip(){
+				uni.showModal({
+					title: "提示",
+					content: "使用超过3年或者行驶超过5万公里则不在质保期内。",
+					showCancel: false,
+					confirmText: "知道了"
+				})
+			},
 			readXy(){
 				const baseUrl = getApp().globalData.baseUrl
 				uni.navigateTo({

+ 3 - 0
pagesA/qualityPolicy/creatOrder.vue

@@ -121,6 +121,9 @@
 				});
 			},
 			saveForm(){
+				uni.redirectTo({
+					url: "/pagesA/qualityPolicy/creatCustomInfo"
+				})
 				if(this.uuid.length){
 					if(this.$store.state.vuex_uuidTempData){
 						this.$store.state.vuex_uuidTempData.traceCodeList = this.uuid

+ 9 - 1
pagesA/qualityPolicy/orderDetail.vue

@@ -14,7 +14,7 @@
 					</view>
 					<view class="uuid-info" style="width: 100%;">
 						<view class="uuid" style="margin-top: 0.2rem;"><text>唯一码:</text>{{detail.traceCode}}</view>
-						<view class="uuid"><text>质保时间:</text>{{detail.warrantyStartDate.split(' ')[0]}}至{{detail.warrantyEndDate.split(' ')[0]}}</view>
+						<view class="uuid"><text @click="showTip">质保时间<u-icon color="#2979ff" name="question-circle-fill"></u-icon>:</text>{{detail.warrantyStartDate.split(' ')[0]}}至{{detail.warrantyEndDate.split(' ')[0]}}</view>
 					</view>
 					<view class="state" :class="detail.state"></view>
 				</view>
@@ -92,6 +92,14 @@
 					urls: [img]
 				})
 			},
+			showTip(){
+				uni.showModal({
+					title: "提示",
+					content: "使用超过3年或者行驶超过5万公里则不在质保期内。",
+					showCancel: false,
+					confirmText: "知道了"
+				})
+			},
 			getDetail(){
 				uni.showLoading({
 					mask:true,

+ 9 - 1
pagesA/qualityPolicy/searchOrder.vue

@@ -22,7 +22,7 @@
 							</view>
 							<view class="uuid-info" style="width: 100%;">
 								<view class="uuid" style="margin-top: 0.2rem;"><text>唯一码:</text>{{item.traceCode}}</view>
-								<view class="uuid"><text>质保时间:</text>{{item.warrantyStartDate.split(' ')[0]}}至{{item.warrantyEndDate.split(' ')[0]}}</view>
+								<view class="uuid"><text @click="showTip">质保时间<u-icon color="#2979ff" name="question-circle-fill"></u-icon>:</text>{{item.warrantyStartDate.split(' ')[0]}}至{{item.warrantyEndDate.split(' ')[0]}}</view>
 								<view class="uuid"><text>手机号码:</text>{{item.customMobile}}</view>
 							</view>
 							<view class="state" :class="item.state"></view>
@@ -66,6 +66,14 @@
 				})
 				this.getRow()
 			},
+			showTip(){
+				uni.showModal({
+					title: "提示",
+					content: "使用超过3年或者行驶超过5万公里则不在质保期内。",
+					showCancel: false,
+					confirmText: "知道了"
+				})
+			},
 			// 查询列表
 			getRow (pageNo) {
 			  let _this = this