Browse Source

质量理赔与添加门店页面调整

liyuan 2 weeks ago
parent
commit
cab81eec66
5 changed files with 85 additions and 41 deletions
  1. 10 1
      api/user.js
  2. 32 12
      pages/home/claim/details.vue
  3. 5 5
      pages/home/index.vue
  4. 28 17
      pages/home/store/details.vue
  5. 10 6
      pages/home/store/index.vue

+ 10 - 1
api/user.js

@@ -42,8 +42,17 @@ const getVersion = (params) => {
 		params
 	})
 }
+
+export const getUserDetail = () => {
+	return http.request({
+		url: '/blade-user/getShopUserDetail',
+		method: 'POST',
+	})
+}
+
 export default {
 	token,
 	userInfo,
-	getVersion
+	getVersion,
+	getUserDetail
 }

+ 32 - 12
pages/home/claim/details.vue

@@ -18,12 +18,12 @@
 						:disabled="form.auditStatus>0||form.claimSourceType>1" :clearable="false" maxlength="11"
 						@change="photoChange"></uni-easyinput>
 				</uni-forms-item>
-				<uni-forms-item name="vehicleNumber" label="车牌号">
+<!--				<uni-forms-item name="vehicleNumber" label="车牌号">
 					<view style="display: flex;align-items: center;">
-						<!-- <uni-easyinput v-model="form.vehicleNumber" class="right-align"
+						&lt;!&ndash; <uni-easyinput v-model="form.vehicleNumber" class="right-align"
 							placeholder-class="placeholder-right" placeholder="请输入车牌号" :inputBorder="false"
 							:disabled="true" :clearable="false" @change="carNoVerify" maxlength="8"
-							@click="handleInputFocus"></uni-easyinput> -->
+							@click="handleInputFocus"></uni-easyinput> &ndash;&gt;
 						<view style="display: flex;align-items: center;height: 36px;width: 100%;">
 							<view @click="handleInputFocus()" style="width: 100%;text-align: right;padding: 0 20rpx;"
 								:style="form.vehicleNumber?'color:#000;':'color:#B5B4B4;font-size: 24rpx;'">
@@ -33,8 +33,8 @@
 						<uni-icons v-if="!(form.auditStatus>0||form.claimSourceType>1)" type="camera" size="24"
 							color='#03803B' @click="allClick('识别车牌号')"></uni-icons>
 					</view>
-				</uni-forms-item>
-				<uni-forms-item name="tyreNo" label="胎号">
+				</uni-forms-item>-->
+<!--				<uni-forms-item name="tyreNo" label="胎号">
 					<view style="display: flex;align-items: center;">
 						<uni-easyinput v-model="form.tyreNo" class="right-align" placeholder-class="placeholder-right"
 							:placeholder="form.auditStatus>0||form.claimSourceType>1?' ':'请输入胎号'" :inputBorder="false"
@@ -43,15 +43,19 @@
 						<uni-icons v-if="!(form.auditStatus>0||form.claimSourceType>1)" type="scan" size="24"
 							color='#03803B' @click="allClick('识别胎号')"></uni-icons>
 					</view>
-				</uni-forms-item>
+				</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>
+						placeholder="" :inputBorder="false"  :clearable="false"></uni-easyinput>
 				</uni-forms-item>
 				<uni-forms-item name="brandItem" label="花纹">
 					<uni-easyinput v-model="form.brandItem" class="right-align" placeholder-class="placeholder-right"
-						placeholder="" :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
+						placeholder="" :inputBorder="false"  :clearable="false"></uni-easyinput>
 				</uni-forms-item>
+        <uni-forms-item name="dot" label="dot">
+          <uni-easyinput v-model="form.dot" class="right-align" placeholder-class="placeholder-right"
+                         placeholder="" :inputBorder="false"  :clearable="false"></uni-easyinput>
+        </uni-forms-item>
 				<uni-forms-item name="brandName" label="品牌">
 					<uni-easyinput v-model="form.brandName" class="right-align" placeholder-class="placeholder-right"
 						placeholder="" :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
@@ -121,7 +125,7 @@
 					</view>
 				</view>
 				<view>
-					<view class="photo-upload-text" style="color: #03803B;">花纹深度</view>
+					<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"
@@ -171,6 +175,8 @@
 		revokeApproval,
 		getMaterialDetail
 	} from '@/api/home/claim.js'
+  import {getUserDetail} from '@/api/user.js'
+
 	export default {
 		data() {
 			return {
@@ -198,6 +204,9 @@
 				}],
 				carShow: false,
 				form: {
+					consumerName: '',
+					consumerPhone: '',
+          brandName: '',
 					file1: null,
 					file2: null,
 					file3: null,
@@ -233,7 +242,9 @@
 			this.addressData = JSON.parse(uni.getStorageSync("addressData"))
 			if (option && option.id) {
 				this.getDetail(option.id)
-			}
+			} else {
+        this.getUserInfo()
+      }
 		},
 		onShow() {
 			// 监听键盘高度变化
@@ -250,6 +261,15 @@
 			uni.offKeyboardHeightChange();
 		},
 		methods: {
+      getUserInfo(){
+
+        getUserDetail().then(res=>{
+          console.info('1222222', res)
+          this.form.consumerName = res.data.name
+          this.form.consumerPhone = res.data.phone
+          this.form.brandName = res.data.brand
+        })
+      },
 			buttonClick(e) {
 				if (e.index == 0) {
 					this.submit()
@@ -727,7 +747,7 @@
 				}
 				if (!this.form.file3) {
 					uni.showToast({
-						title: '请上传花纹深度',
+						title: '请上传DOT胎侧全貌',
 						icon: 'none'
 					});
 					return
@@ -1088,4 +1108,4 @@
 		flex-wrap: wrap;
 		justify-content: flex-end;
 	}
-</style>
+</style>

+ 5 - 5
pages/home/index.vue

@@ -207,8 +207,8 @@
 							<image style="width: 45rpx;height: 45rpx;" src="@/static/images/home/home (15).png" />
 						</view>
 						<view class="grid-item-box-text">
-							理赔
-						</view>
+              质量理赔
+            </view>
 					</view>
 				</uni-grid-item>
 				<uni-grid-item>
@@ -217,7 +217,7 @@
 							<image style="width: 45rpx;height: 45rpx;" src="@/static/images/home/home (15).png" />
 						</view>
 						<view class="grid-item-box-text">
-							保单
+							商务理赔
 						</view>
 					</view>
 				</uni-grid-item>
@@ -292,7 +292,7 @@
 				// 	uni.navigateTo({
 				// 		url: '/pages/home/scan/index'
 				// 	});
-				// } else 
+				// } else
 				if (name == '门店信息') {
 					uni.navigateTo({
 						url: '/pages/home/store/index'
@@ -374,4 +374,4 @@
 		}
 
 	}
-</style>
+</style>

+ 28 - 17
pages/home/store/details.vue

@@ -35,7 +35,7 @@
 						:clearable="false" :disabled="form.enableOrNot==1" maxlength="11"
 						@change="photoChange"></uni-easyinput>
 				</uni-forms-item>
-				<uni-forms-item name="salesmanName" label="业务员" required>
+<!--				<uni-forms-item name="salesmanName" label="业务员" required>
 					<view style="display: flex;align-items: center;height: 36px;">
 						<view @click="getSalerList();form.enableOrNot!=1?salesmanShow=true:null"
 							style="width: 100%;text-align: right;"
@@ -71,13 +71,16 @@
 						</view>
 						<uni-icons v-if="!form.priceSystem" type="down" size="14" color='#BCBCBC'
 							@click="form.enableOrNot!=1?priceSystemShow=true:null"></uni-icons>
-					</view>
+					</view>-->
 					<u-picker :show="priceSystemShow" :columns="priceSystemList" keyName="dictValue"
 						@confirm="priceSystemConfirm" @cancel="priceSystemShow=false" @close="priceSystemShow=false"
 						closeOnClickOverlay></u-picker>
 				</uni-forms-item>
 				<uni-forms-item name="brandName" label="品牌">
-					<view>
+          <uni-easyinput v-model="form.brandName" class="right-align"
+                         placeholder-class="placeholder-right" placeholder="请输入内容" :inputBorder="false"
+                         :clearable="false" disabled ></uni-easyinput>
+<!--					<view>
 						<view style="display: flex;align-items: center;height: 36px;">
 							<view class="slot-box" @click="brandPopup">
 								<view v-for="(item,index) in sliceArray(form.brandName)" :key="index"
@@ -105,7 +108,7 @@
 								<debounce-button class="confirm-btn" @click="brandConfirm">确认</debounce-button>
 							</view>
 						</uni-popup>
-					</view>
+					</view>-->
 				</uni-forms-item>
 				<uni-forms-item name="address" label="所属区域" required>
 					<!-- 	<uni-data-picker v-model="form.address" :localdata="addressData" popup-title="请选择所属区域"
@@ -128,7 +131,7 @@
 				</uni-forms-item>
 			</uni-forms>
 		</uni-section>
-		<uni-section title="店面分类" style="padding: 0 62rpx;margin-top: 30rpx;" titleColor="5F5F5F" titleFontSize="28rpx">
+<!--		<uni-section title="店面分类" style="padding: 0 62rpx;margin-top: 30rpx;" titleColor="5F5F5F" titleFontSize="28rpx">
 			<uni-forms ref="form2" :modelValue="form" :border="true" label-width="80">
 				<uni-forms-item name="corpsTypeName" label="店面分类" required>
 					<view style="display: flex;align-items: center;height: 36px;">
@@ -213,8 +216,8 @@
 		<uni-section title="商务政策" style="padding: 0 62rpx;margin-top: 30rpx;" titleColor="5F5F5F" titleFontSize="28rpx">
 			<uni-forms ref="form3" :modelValue="form" :border="true" label-width="80">
 				<uni-forms-item name="signingLevel" label="签约级别">
-					<!-- <uni-data-select v-model="form.signingLevel" :localdata="signingLevelList">
-					</uni-data-select> -->
+					&lt;!&ndash; <uni-data-select v-model="form.signingLevel" :localdata="signingLevelList">
+					</uni-data-select> &ndash;&gt;
 					<view>
 						<view style="display: flex;align-items: center;height: 36px;">
 							<view @click="form.enableOrNot!=1?signingLevelShow=true:null"
@@ -257,7 +260,7 @@
 					</view>
 				</uni-forms-item>
 			</uni-forms>
-		</uni-section>
+		</uni-section>-->
 		<!--<view v-if="form.enableOrNot!=1" style="padding:30rpx 20rpx;">
 			<view>
 				<debounce-button bgColor="#03803B" @click="submit">保存</debounce-button>
@@ -303,6 +306,7 @@
 	import {
 		contrastObj
 	} from '@/utils/contrastData.js'
+  import {getUserDetail} from '@/api/user.js'
 	export default {
 		data() {
 			return {
@@ -409,6 +413,8 @@
 			this.getBrandlist()
 			if (option && option.id) {
 				this.getDetail(option.id)
+			} else {
+        this.getUserInfo()
 			}
 		},
 		onShow() {
@@ -427,6 +433,11 @@
 			uni.$off();
 		},
 		methods: {
+      getUserInfo(){
+        getUserDetail().then(res=>{
+          this.form.brandName = res.data.brand
+        })
+      },
 			popupChange(e) {
 				console.log(e)
 				this.popupShow = e.show
@@ -473,7 +484,7 @@
 						});
 						return;
 					}
-					if (!this.form.salesmanName) {
+/*					if (!this.form.salesmanName) {
 						uni.showToast({
 							title: '请选择业务员',
 							icon: 'none'
@@ -493,7 +504,7 @@
 							icon: 'none'
 						});
 						return
-					}
+					}*/
 					if (!this.form.address) {
 						uni.showToast({
 							title: '请选择所属区域',
@@ -508,13 +519,13 @@
 						});
 						return
 					}
-					if (!this.form.corpsTypeId) {
+/*					if (!this.form.corpsTypeId) {
 						uni.showToast({
 							title: '请选择店面分类',
 							icon: 'none'
 						});
 						return
-					}
+					}*/
 					this.modalShow = true
 					// this.approval(2)
 				}
@@ -810,7 +821,7 @@
 					});
 					return;
 				}
-				if (!this.form.salesmanName) {
+/*				if (!this.form.salesmanName) {
 					uni.showToast({
 						title: '请选择业务员',
 						icon: 'none'
@@ -830,7 +841,7 @@
 						icon: 'none'
 					});
 					return
-				}
+				}*/
 				if (!this.form.address) {
 					uni.showToast({
 						title: '请选择所属区域',
@@ -845,13 +856,13 @@
 					});
 					return
 				}
-				if (!this.form.corpsTypeId) {
+/*				if (!this.form.corpsTypeId) {
 					uni.showToast({
 						title: '请选择店面分类',
 						icon: 'none'
 					});
 					return
-				}
+				}*/
 				let obj = await this.convertData(this.$deepClone(this.form))
 				uni.showLoading({
 					title: '加载中',
@@ -1042,4 +1053,4 @@
 	::v-deep .uni-date-x .uni-icons {
 		color: #03803B !important;
 	}
-</style>
+</style>

+ 10 - 6
pages/home/store/index.vue

@@ -28,17 +28,21 @@
 										<text style="color: #03803B;">店铺名称:</text>
 										<text style="color: #6A6A6A" class='uni-lastmsg'>{{item.cname||'-'}}</text>
 									</view>
-									<view class="text_content">
+<!--									<view class="text_content">
 										<text style="color: #03803B;">前置仓:</text>
 										<text style="color: #6A6A6A"
 											class='uni-lastmsg2'>{{item.deliveryWarehouseName||'暂无仓库'}}</text>
 										<text style="color: #03803B;margin-left: 10rpx;">价格:</text>
 										<text style="color: #6A6A6A"
 											class='uni-lastmsg2'>¥{{item.priceSystem||0}}</text>
-									</view>
+									</view>-->
+                  <view class="text_content">
+                    <text style="color: #03803B;">电话:</text>
+                    <text style="color: #6A6A6A">{{item.tel}}</text>
+                  </view>
 									<view class="text_foot">
-										<text style="color: #03803B;">电话:</text>
-										<text style="color: #6A6A6A">{{item.tel}}</text>
+                    <text style="color: #03803B;">品牌:</text>
+                    <text style="color: #6A6A6A">{{item.brandName}}</text>
 									</view>
 								</view>
 								<view class="menu">
@@ -84,7 +88,7 @@
 			}
 		},
 		onLoad() {
-	
+
 		},
 		onShow() {
 			if (uni.getStorageSync('isUpdate')) {
@@ -289,4 +293,4 @@
 			}
 		}
 	}
-</style>
+</style>