Browse Source

1.胎号扫码:显示品号,隐藏DOT
2.显示审核原因
3.商务理赔新加条码照片

qukaidi 2 weeks ago
parent
commit
c87542e144

+ 1 - 1
common/setting.js

@@ -10,7 +10,7 @@ module.exports = {
 	version: '1.0.0',
 	// 开发环境接口Url
 	devUrl: 'https://b2b.gubersail.com:9000/api',
-	// devUrl: 'http://192.168.8.118:1080',
+	// devUrl: 'http://192.168.8.111:1080',
 	// 线上环境接口Url
 	// prodUrl: 'http://192.168.8.118:1080',
 	prodUrl: 'https://b2b.gubersail.com:9000/api',

+ 52 - 38
pages/home/claim/details.vue

@@ -25,6 +25,10 @@
 					<uni-easyinput v-model="form.tyreNo" class="right-align" placeholder-class="placeholder-right"
 						placeholder=" " :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
 				</uni-forms-item>
+				<uni-forms-item name="productCode" label="品号">
+					<uni-easyinput v-model="form.productCode" class="right-align" placeholder-class="placeholder-right"
+						placeholder=" " :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
+				</uni-forms-item>
 				<uni-forms-item name="tyreSpecs" label="规格型号">
 					<uni-easyinput v-model="form.tyreSpecs" class="right-align" placeholder-class="placeholder-right"
 						placeholder=" " :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
@@ -42,11 +46,18 @@
 						placeholder="请输入数量" :inputBorder="false" :disabled="true" type="number"
 						@blur="intBlur('tireQuantity',form.tireQuantity)" :clearable="false"></uni-easyinput>
 				</uni-forms-item>
-<!--				<uni-forms-item name="claimAmount" label="理赔金额">
+				<!--				<uni-forms-item name="claimAmount" label="理赔金额">
 					<uni-easyinput v-model="form.claimAmount" class="right-align" placeholder-class="placeholder-right"
 						placeholder=" " :inputBorder="false" :disabled="true" type="number"
 						@blur="handleBlur(form.claimAmount)" :clearable="false"></uni-easyinput>
 				</uni-forms-item>-->
+				<uni-forms-item v-if="form.auditStatus==2||form.auditStatus==3" name="returnFactory" label="是否返厂">
+					<view style="display: flex;justify-content: flex-end;align-items: center;height: 36px;">
+						<text style="color: #B5B4B4;">
+							{{form.returnFactory==1?'是':'否'}}
+						</text>
+					</view>
+				</uni-forms-item>
 				<uni-forms-item name="claimReason" label="理赔原因">
 					<uni-easyinput v-model="form.claimReason" class="right-align" type="textarea"
 						placeholder-class="placeholder-right" :placeholder="form.auditStatus>0?' ':'请输入内容'"
@@ -110,24 +121,24 @@
 					</view>
 				</view>
 			</view>
-			<!-- 		<view class="photo-upload">
+			<view class="photo-upload">
 				<view>
 					<view class="photo-upload-text">示例照片</view>
 					<view>
-						<image class="photo-upload-img" src="@/static/images/home/insurance/em4.png" />
+						<image class="photo-upload-img" src="@/static/images/home/insurance/em6.png" />
 					</view>
 				</view>
 				<view>
-					<view class="photo-upload-text" style="color: #B5B4B4;">鼓包处照片</view>
+					<view class="photo-upload-text" style="color: #03803B;">条码照片</view>
 					<view class="photo-upload-upload">
 						<uni-file-picker v-model="form.file4" return-type="object" limit="1" :imageStyles="imageStyles"
-							file-mediatype="image" @select="fileSelect4" @delete="fileDelete" @success="fileSuccess"
-						 :del-icon="!(form.auditStatus>0)">
+							file-mediatype="image" @select="fileSelect4" @delete="fileDelete"
+							:del-icon="!(form.auditStatus>0)" :sourceType="['camera']">
 							<image class="photo-upload-img2" src="@/static/images/home/insurance/upload.png" />
 						</uni-file-picker>
 					</view>
 				</view>
-			</view> -->
+			</view>
 		</uni-section>
 		<!-- <view style="height: 200rpx;display: flex;align-items: center;justify-content: center;">
 			<debounce-button style="color:#ffffff;backgroundColor:#03803B;width: 400rpx;" @click="submit">提交材料</debounce-button>
@@ -140,13 +151,15 @@
 			</view>
 			<debounce-button type="warn" v-if="form.auditStatus==1" @click="revoke">撤销审核</debounce-button>
 		</view> -->
-		<view  class="nav-bottom-height">
+		<view class="nav-bottom-height">
 		</view>
 		<view class="goods-nav-bottom">
 			<uni-goods-nav v-if="!form.id" :fill="true" :options="[]" :buttonGroup="buttonGroup"
 				@buttonClick="buttonClick" />
 			<uni-goods-nav v-if="form.auditStatus==0" :fill="true" :options="[]" :buttonGroup="buttonGroup2"
 				@buttonClick="buttonClick2" />
+			<uni-goods-nav v-if="form.auditStatus==3" :fill="true" :options="[]" :buttonGroup="buttonGroup2"
+				@buttonClick="buttonClick2" />
 			<uni-goods-nav v-if="form.auditStatus==1" :fill="true" :options="[]" :buttonGroup="buttonGroup3"
 				@buttonClick="buttonClick3" />
 		</view>
@@ -538,13 +551,13 @@
 					});
 					return
 				}
-				// if (!this.form.file4) {
-				// 	uni.showToast({
-				// 		title: '请上传鼓包处照片',
-				// 		icon: 'none'
-				// 	});
-				// 	return
-				// }
+				if (!this.form.file4) {
+					uni.showToast({
+						title: '请上传条码照片',
+						icon: 'none'
+					});
+					return
+				}
 				let obj = await this.convertData(this.$deepClone(this.form))
 				uni.showLoading({
 					title: '加载中',
@@ -642,13 +655,14 @@
 					});
 					return
 				}
-				// if (!this.form.file4) {
-				// 	uni.showToast({
-				// 		title: '请上传鼓包处照片',
-				// 		icon: 'none'
-				// 	});
-				// 	return
-				// }
+				if (!this.form.file4) {
+					uni.showToast({
+						title: '请上传条码照片',
+						icon: 'none'
+					});
+					return
+				}
+				this.form.auditStatus = 0
 				let form = await this.convertData(this.$deepClone(this.form))
 				let obj = {
 					id: this.form.id
@@ -755,15 +769,15 @@
 									size: item.fileSize,
 								}
 							}
-							// if (item.fileProperties == 4) {
-							// 	res.data.file4 = {
-							// 		...item,
-							// 		url: item.fileUrl,
-							// 		name: item.fileName,
-							// 		extname: item.fileType,
-							// 		size: item.fileSize,
-							// 	}
-							// }
+							if (item.fileProperties == 4) {
+								res.data.file4 = {
+									...item,
+									url: item.fileUrl,
+									name: item.fileName,
+									extname: item.fileType,
+									size: item.fileSize,
+								}
+							}
 						})
 						this.form = res.data
 					})
@@ -792,12 +806,12 @@
 
 					})
 				}
-				// if (obj.file4 && Object.keys(obj.file4).length) {
-				// 	fileList.push({
-				// 		...obj.file4,
-				// 		fileProperties: 4
-				// 	})
-				// }
+				if (obj.file4 && Object.keys(obj.file4).length) {
+					fileList.push({
+						...obj.file4,
+						fileProperties: 4
+					})
+				}
 				//附件明细为空时直接赋值
 				if (obj.claimAttachmentList.length == 0) {
 					fileList.forEach(item => {
@@ -938,4 +952,4 @@
 		flex-wrap: wrap;
 		justify-content: flex-end;
 	}
-</style>
+</style>

+ 33 - 11
pages/home/insurance/details.vue

@@ -61,6 +61,13 @@
 						</text>
 					</view>
 				</uni-forms-item>
+				<uni-forms-item v-if="form.auditStatus==2||form.auditStatus==3" name="remark" label="审核原因" label-width='80'>
+					<view style="display: flex;justify-content: flex-end;align-items: center;height: 36px;">
+						<text style="color: #B5B4B4;">
+							{{form.remark}}
+						</text>
+					</view>
+				</uni-forms-item>
 			</uni-forms>
 		</uni-section>
 		<uni-section title="相应图片信息" style="padding: 0 62rpx 0 62rpx;margin-top: 30rpx;" titleColor="5F5F5F"
@@ -73,13 +80,18 @@
 					<uni-forms-item name="tyreNo" label="胎号">
 						<view style="display: flex;align-items: center;">
 							<uni-easyinput v-model="item.tyreNo" class="right-align"
-								placeholder-class="placeholder-right" placeholder=" "
-								:inputBorder="false" :disabled="true" :clearable="false"
+								placeholder-class="placeholder-right" placeholder=" " :inputBorder="false"
+								:disabled="true" :clearable="false"
 								@change="getMaterialDetail($event,activeTab)"></uni-easyinput>
 							<!-- <uni-icons v-if="!form.status>0" type="scan" size="24" color='#03803B'
 								@click="allClick('识别胎号',activeTab)"></uni-icons> -->
 						</view>
 					</uni-forms-item>
+					<uni-forms-item name="productCode" label="品号">
+						<uni-easyinput v-model="item.productCode" class="right-align"
+							placeholder-class="placeholder-right" placeholder=" " :inputBorder="false" :disabled="true"
+							:clearable="false"></uni-easyinput>
+					</uni-forms-item>
 					<uni-forms-item name="tyreSpecs" label="规格型号">
 						<uni-easyinput v-model="item.tyreSpecs" class="right-align"
 							placeholder-class="placeholder-right" placeholder=" " :inputBorder="false" :disabled="true"
@@ -90,11 +102,10 @@
 							placeholder-class="placeholder-right" placeholder=" " :inputBorder="false" :disabled="true"
 							:clearable="false"></uni-easyinput>
 					</uni-forms-item>
-          <uni-forms-item name="dot" label="dot">
-            <uni-easyinput v-model="item.dot" class="right-align"
-                           placeholder-class="placeholder-right" placeholder=" " :inputBorder="false" :disabled="true"
-                           :clearable="false"></uni-easyinput>
-          </uni-forms-item>
+					<!-- <uni-forms-item name="dot" label="dot">
+						<uni-easyinput v-model="item.dot" class="right-align" placeholder-class="placeholder-right"
+							placeholder=" " :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
+					</uni-forms-item> -->
 					<uni-forms-item name="brandName" label="品牌">
 						<uni-easyinput v-model="item.brandName" class="right-align"
 							placeholder-class="placeholder-right" placeholder=" " :inputBorder="false" :disabled="true"
@@ -140,7 +151,7 @@
 		<u-keyboard ref="uKeyboard" mode="car" :show="carShow" @change="carChange" @backspace="backspace"
 			:showCancel="false" :showConfirm="false" @close="carShow=false" :safeAreaInsetBottom="true"
 			:autoChange="true"></u-keyboard>
-	<!-- 	<view style="padding:30rpx 20rpx;">
+		<!-- 	<view style="padding:30rpx 20rpx;">
 			<view v-if="form.status==0" style="display: flex;">
 				<debounce-button type="warn" @click="approval" style="width: 100%;">提交</debounce-button>
 			</view>
@@ -148,8 +159,7 @@
 		<view v-if="form.status==3" class="nav-bottom-height">
 		</view>
 		<view class="goods-nav-bottom" v-if="form.status==3">
-			<uni-goods-nav  :fill="true" :options="[]" :buttonGroup="buttonGroup"
-				@buttonClick="buttonClick" />
+			<uni-goods-nav :fill="true" :options="[]" :buttonGroup="buttonGroup" @buttonClick="buttonClick" />
 		</view>
 	</view>
 </template>
@@ -199,6 +209,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						}, {
 							affiliatedWithGroup: 1,
 							fileProperties: 2,
@@ -211,6 +222,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						},
 						{
 							affiliatedWithGroup: 1,
@@ -224,6 +236,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						}
 					]
 				},
@@ -466,6 +479,7 @@
 								item.tyreSpecs = res.data.sizeId
 								item.brandItem = res.data.pattern
 								item.brandName = res.data.brand
+								item.productCode = res.data.wlXxId
 							}
 						} else {
 							uni.showToast({
@@ -478,6 +492,7 @@
 								item.tyreSpecs = null
 								item.brandItem = null
 								item.brandName = null
+								item.productCode = null
 							}
 						}
 
@@ -488,6 +503,7 @@
 						item.tyreSpecs = null
 						item.brandItem = null
 						item.brandName = null
+						item.productCode = null
 					}
 				}
 			},
@@ -512,6 +528,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						}, {
 							affiliatedWithGroup: val,
 							fileProperties: 2,
@@ -524,6 +541,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						},
 						{
 							affiliatedWithGroup: val,
@@ -537,6 +555,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						}
 					]
 					this.form.tireInsuranceFilesList = [
@@ -807,12 +826,14 @@
 				let tyreSpecs = null
 				let brandItem = null
 				let brandName = null
+				let productCode = null
 				for (let item of this.form.tireInsuranceFilesList.slice(this.activeTab * 3, this.activeTab * 3 + 3)) {
 					ids.push(item.id)
 					tyreNo = item.tyreNo
 					tyreSpecs = item.tyreSpecs
 					brandItem = item.brandItem
 					brandName = item.brandName
+					productCode = item.productCode
 				}
 				let obj = {
 					...this.form,
@@ -821,6 +842,7 @@
 					tyreSpecs: tyreSpecs,
 					brandItem: brandItem,
 					brandName: brandName,
+					productCode: productCode,
 					tireDescription: '轮胎' + Number(Number(this.activeTab) + 1)
 				}
 				uni.showModal({
@@ -1021,4 +1043,4 @@
 		pointer-events: none !important;
 		touch-action: none !important;
 	}
-</style>
+</style>

BIN
static/images/home/insurance/em6.png