Browse Source

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

qukaidi 1 week ago
parent
commit
2f7bb954a0
6 changed files with 152 additions and 73 deletions
  1. 1 1
      common/setting.js
  2. 0 1
      http/api.js
  3. 2 2
      manifest.json
  4. 53 42
      pages/home/claim/details.vue
  5. 96 27
      pages/home/insurance/details.vue
  6. BIN
      static/images/home/claim/em6.png

+ 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',

+ 0 - 1
http/api.js

@@ -16,7 +16,6 @@ const checkNetworkStatus = () => {
 	return new Promise((resolve, reject) => {
 		uni.getNetworkType({
 			success: (res) => {
-				console.log(res)
 				if (res.networkType === 'none') {
 					reject(new Error('网络连接已断开'));
 				} else {

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "库比森轮胎",
     "appid" : "__UNI__421BF74",
     "description" : "",
-    "versionName" : "1.0.38",
-    "versionCode" : 1038,
+    "versionName" : "1.0.40",
+    "versionCode" : 1040,
     "transformPx" : false,
     "plus" : {
         "distribute" : {

+ 53 - 42
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="请输入内容" :inputBorder="false"
@@ -67,8 +78,8 @@
 					<view class="photo-upload-text" style="color: #03803B;">病象</view>
 					<view class="photo-upload-upload">
 						<uni-file-picker v-model="form.file1" return-type="object" limit="1" :imageStyles="imageStyles"
-							file-mediatype="image" @select="fileSelect1" @delete="fileDelete"
-							:del-icon="false" :sourceType="['camera']" :readonly="!form.file1">
+							file-mediatype="image" @select="fileSelect1" @delete="fileDelete" :del-icon="false"
+							:sourceType="['camera']" :readonly="!form.file1">
 							<image class="photo-upload-img2" src="@/static/images/home/claim/upload.png" />
 						</uni-file-picker>
 					</view>
@@ -85,8 +96,8 @@
 					<view class="photo-upload-text" style="color: #03803B;">花纹</view>
 					<view class="photo-upload-upload">
 						<uni-file-picker v-model="form.file2" return-type="object" limit="1" :imageStyles="imageStyles"
-							file-mediatype="image" @select="fileSelect2" @delete="fileDelete"
-							:del-icon="false" :sourceType="['camera']" :readonly="!form.file2">
+							file-mediatype="image" @select="fileSelect2" @delete="fileDelete" :del-icon="false"
+							:sourceType="['camera']" :readonly="!form.file2">
 							<image class="photo-upload-img2" src="@/static/images/home/claim/upload.png" />
 						</uni-file-picker>
 					</view>
@@ -103,31 +114,31 @@
 					<view class="photo-upload-text" style="color: #03803B;">DOT胎侧全貌</view>
 					<view class="photo-upload-upload">
 						<uni-file-picker v-model="form.file3" return-type="object" limit="1" :imageStyles="imageStyles"
-							file-mediatype="image" @select="fileSelect3" @delete="fileDelete"
-							:del-icon="false" :sourceType="['camera']" :readonly="!form.file3">
+							file-mediatype="image" @select="fileSelect3" @delete="fileDelete" :del-icon="false"
+							:sourceType="['camera']" :readonly="!form.file3">
 							<image class="photo-upload-img2" src="@/static/images/home/claim/upload.png" />
 						</uni-file-picker>
 					</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/claim/em4.png" />
+						<image class="photo-upload-img" src="@/static/images/home/claim/em6.png" />
 					</view>
 				</view>
 				<view>
-					<view class="photo-upload-text" style="color: #B5B4B4;">鼓包处照片</view>
+					<view class="photo-upload-text" style="color: #B5B4B4;">条码照片</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="false">
+							:del-icon="false">
 							<image class="photo-upload-img2" src="@/static/images/home/claim/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>
@@ -490,13 +501,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: '加载中',
@@ -594,13 +605,13 @@
 					});
 					return
 				}
-				// if (!this.form.file4) {
-				// 	uni.showToast({
-				// 		title: '请上传鼓包处照片',
-				// 		icon: 'none'
-				// 	});
-				// 	return
-				// }
+				if (!this.form.file4) {
+					uni.showToast({
+						title: '请上传条码照片',
+						icon: 'none'
+					});
+					return
+				}
 				let form = await this.convertData(this.$deepClone(this.form))
 				let obj = {
 					id: this.form.id
@@ -707,15 +718,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
 					})
@@ -744,12 +755,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 => {
@@ -886,4 +897,4 @@
 		flex-wrap: wrap;
 		justify-content: flex-end;
 	}
-</style>
+</style>

+ 96 - 27
pages/home/insurance/details.vue

@@ -59,6 +59,14 @@
 						</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 20rpx 62rpx;margin-top: 30rpx;" titleColor="5F5F5F"
@@ -78,6 +86,11 @@
 								@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"
@@ -88,11 +101,10 @@
 							placeholder-class="placeholder-right" placeholder="" :inputBorder="false" :disabled="true"
 							:clearable="false"></uni-easyinput>
 					</uni-forms-item>
-          <uni-forms-item name="brandItem" 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="brandItem" 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"
@@ -142,13 +154,19 @@
 		<view class="nav-bottom-height">
 		</view>
 		<view v-show="!keyboardShow" class="goods-nav-bottom">
-			<view v-if="form.auditStatus === 0 || form.auditStatus === 3 || !form.id" class="bottom-actions">
+			<!-- <view v-if="form.auditStatus === 0 || form.auditStatus === 3 || !form.id" class="bottom-actions">
 				<debounce-button bgColor='#03803B' style="width: 320rpx;" @click="saveRegistration">保存</debounce-button>
 				<debounce-button type="warn" style="width: 320rpx;" @click="submitRegistration">提交</debounce-button>
 			</view>
 			<view v-if="form.auditStatus === 2" class="bottom-actions bottom-actions-center">
 				<debounce-button bgColor='#005A9C' style="width: 660rpx;" @click="viewQrCode">查看二维码</debounce-button>
-			</view>
+			</view> -->
+		<!-- 	<uni-goods-nav v-if="!form.id" :fill="true" :options="[]" :buttonGroup="buttonGroup"
+				@buttonClick="buttonClick" /> -->
+			<uni-goods-nav v-if="form.auditStatus === 0 || form.auditStatus === 3||!form.id" :fill="true" :options="[]"
+				:buttonGroup="buttonGroup2" @buttonClick="buttonClick2" />
+			<uni-goods-nav v-if="form.auditStatus==2" :fill="true" :options="[]" :buttonGroup="buttonGroup3"
+				@buttonClick="buttonClick3" />
 			<!-- <debounce-button v-if="!form.id" bgColor='#03803B' @click="submit">保存</debounce-button>
 
 			<view v-if="form.status==0" style="display: flex;">
@@ -203,6 +221,27 @@
 	export default {
 		data() {
 			return {
+				buttonGroup: [{
+					text: '保存',
+					backgroundColor: '#03803B',
+					color: '#fff'
+				}],
+				buttonGroup2: [{
+						text: '保存',
+						backgroundColor: '#03803B',
+						color: '#fff'
+					},
+					{
+						text: '提交',
+						backgroundColor: '#e64340',
+						color: '#fff'
+					}
+				],
+				buttonGroup3: [{
+					text: '查看二维码',
+					backgroundColor: '#005A9C',
+					color: '#fff'
+				}],
 				keyboardShow: false,
 				carShow: false,
 				form: {
@@ -225,6 +264,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						}, {
 							affiliatedWithGroup: 1,
 							fileProperties: 2,
@@ -237,6 +277,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						},
 						{
 							affiliatedWithGroup: 1,
@@ -250,6 +291,7 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
+							productCode: null
 						}
 					]
 				},
@@ -326,6 +368,24 @@
 			canEditForm() {
 				return this.form.auditStatus !== 1 && this.form.auditStatus !== 2
 			},
+			buttonClick(e) {
+				if (e.index == 0) {
+					this.saveRegistration()
+				}
+			},
+			buttonClick2(e) {
+				if (e.index == 0) {
+					this.saveRegistration()
+				}
+				if (e.index == 1) {
+					this.submitRegistration()
+				}
+			},
+			buttonClick3(e) {
+				if (e.index == 0) {
+					this.viewQrCode()
+				}
+			},
 			saveRegistration() {
 				if (!this.canEditForm()) {
 					return uni.showToast({
@@ -487,15 +547,15 @@
 									success: (res) => {
 										const data = JSON.parse(res.data)
 										console.log(data)
-                    uni.showToast({
-                      title: data.msg,
-                      icon: 'none',
-                      duration: 2000
-                    });
-                    if (data.code !== 200) {
-                      return false
-                    }
-                    _this.form.vehicleNumber = data.data
+										uni.showToast({
+											title: data.msg,
+											icon: 'none',
+											duration: 2000
+										});
+										if (data.code !== 200) {
+											return false
+										}
+										_this.form.vehicleNumber = data.data
 									},
 									fail: (err) => {
 
@@ -573,6 +633,7 @@
 								item.brandItem = res.data.pattern
 								item.dot = res.data.dot
 								item.brandName = res.data.brand
+								item.productCode = res.data.wlXxId
 							}
 						} else {
 							uni.showToast({
@@ -586,6 +647,7 @@
 								item.brandItem = null
 								item.brandName = null
 								item.dot = null
+								item.productCode = null
 							}
 						}
 
@@ -596,6 +658,8 @@
 						item.tyreSpecs = null
 						item.brandItem = null
 						item.brandName = null
+						item.dot = null
+						item.productCode = null
 					}
 				}
 			},
@@ -620,7 +684,8 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
-            dot: null,
+							dot: null,
+							productCode: null
 						}, {
 							affiliatedWithGroup: val,
 							fileProperties: 2,
@@ -633,7 +698,8 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
-            dot: null,
+							dot: null,
+							productCode: null
 						},
 						{
 							affiliatedWithGroup: val,
@@ -647,7 +713,8 @@
 							tyreSpecs: null,
 							brandItem: null,
 							brandName: null,
-              dot: null,
+							dot: null,
+							productCode: null
 						}
 					]
 					this.form.tireInsuranceFilesList = [
@@ -852,15 +919,15 @@
 							index: item.affiliatedWithGroup
 						});
 					}
-          console.info('item.fileUrl------', item.fileUrl)
-          console.info('item.fileUrl------', item.fileUrl == null)
+					console.info('item.fileUrl------', item.fileUrl)
+					console.info('item.fileUrl------', item.fileUrl == null)
 					if (item.fileUrl == null) {
-            uni.showToast({
-              title: `请上传轮胎${item.affiliatedWithGroup }的${+ item.fileProperties == 1 ?
+						uni.showToast({
+							title: `请上传轮胎${item.affiliatedWithGroup }的${+ item.fileProperties == 1 ?
                   '车辆角度45%' : item.fileProperties == 2 ? '轮胎DOT' : '安装照片'}`,
-              icon: 'none'
-            });
-						return  false
+							icon: 'none'
+						});
+						return false
 					}
 				}
 				return true
@@ -972,6 +1039,7 @@
 					tyreSpecs = item.tyreSpecs
 					brandItem = item.brandItem
 					brandName = item.brandName
+					productCode = item.productCode
 				}
 				let obj = {
 					...this.form,
@@ -980,6 +1048,7 @@
 					tyreSpecs: tyreSpecs,
 					brandItem: brandItem,
 					brandName: brandName,
+					productCode: productCode,
 					tireDescription: '轮胎' + Number(Number(this.activeTab) + 1)
 				}
 				uni.showModal({
@@ -1190,4 +1259,4 @@
 	.bottom-actions-center {
 		justify-content: center;
 	}
-</style>
+</style>

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