Browse Source

商务、质量理赔增加日期查询,门店无法报错问题优化,门店增加省份存储

liyuan 2 weeks ago
parent
commit
aac9666c22

+ 5 - 5
pages/home/claim/details.vue

@@ -65,11 +65,11 @@
 						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>-->
 				<uni-forms-item name="claimReason" label="理赔原因">
 					<uni-easyinput v-model="form.claimReason" class="right-align" type="textarea"
 						placeholder-class="placeholder-right"
@@ -107,7 +107,7 @@
 					</view>
 				</view>
 				<view>
-					<view class="photo-upload-text" style="color: #03803B;">轮胎DOT</view>
+					<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"
@@ -732,7 +732,7 @@
 				}
 				if (!this.form.file2) {
 					uni.showToast({
-						title: '请上传轮胎DOT',
+						title: '请上传花纹',
 						icon: 'none'
 					});
 					return
@@ -797,7 +797,7 @@
 				}
 				if (!this.form.file2) {
 					uni.showToast({
-						title: '请上传轮胎DOT',
+						title: '请上传花纹',
 						icon: 'none'
 					});
 					return

+ 69 - 2
pages/home/claim/index.vue

@@ -12,6 +12,12 @@
 			<uni-search-bar bgColor="#F6F6F6 " v-model="searchValue" placeholder="请输入理赔信息" @confirm="searchChange"
 				cancelButton="none" @clear="searchChange">
 			</uni-search-bar>
+			<view class="date-range-wrap">
+				<view class="date-range-picker">
+					<uni-datetime-picker v-model="createDateRange" bgColor="#F6F6F6"  type="daterange" :clear-icon="true" :border="false"
+						start-placeholder="开始日期" end-placeholder="结束日期" @change="dateRangeChange" />
+				</view>
+			</view>
 		</view>
 		<z-paging ref="paging" v-model="dataList" @query="getList" :fixed="false" :auto-show-back-to-top="true"
 			:empty-view-text="'暂无数据'" :hide-empty-view="false" :auto-show-system-loading="true">
@@ -69,6 +75,7 @@
 		data() {
 			return {
 				searchValue:"",
+				createDateRange: [],
 				dataList: [],
 			}
 		},
@@ -104,13 +111,19 @@
 			searchChange() {
 				this.$refs.paging.reload()
 			},
+			dateRangeChange() {
+				this.$refs.paging.reload()
+			},
 			async getList(pageNo, pageSize) {
 				try {
+					const [createStartDate, createEndDate] = this.createDateRange || []
 					const obj = {
 						current: pageNo,
 						size: pageSize,
 						claimType:1,
-						searchCriteria:this.searchValue
+						searchCriteria:this.searchValue,
+						createStartDate,
+						createEndDate
 					}
 					const res = await getList(obj)
 					this.$refs.paging.complete(res.data.records)
@@ -175,6 +188,60 @@
 		height: 42rpx;
 	}
 
+	.date-range-wrap {
+		padding: 0 30rpx 20rpx;
+	}
+
+	.date-range-picker {
+		background: #f6f6f6;
+		border-radius: 12rpx;
+		padding: 0 20rpx;
+		min-height: 64rpx;
+		display: flex;
+		align-items: center;
+		flex: 1;
+	}
+
+	.date-range-picker uni-datetime-picker {
+		display: block;
+		width: 100%;
+		flex: 1;
+	}
+
+	::v-deep .date-range-picker .uni-date {
+		width: 100%;
+	}
+
+	::v-deep .date-range-picker .uni-date-editor {
+		width: 100%;
+	}
+
+	::v-deep .date-range-picker .uni-date-editor--x {
+		width: 100%;
+		background: transparent;
+		border: none;
+		border-radius: 8rpx;
+		padding: 0;
+		box-sizing: border-box;
+	}
+
+	::v-deep .date-range-picker .uni-date-x {
+		width: 100%;
+		background-color: transparent !important;
+	}
+
+	::v-deep .date-range-picker .uni-date__x-input {
+		flex: 1;
+	}
+
+	::v-deep .date-range-picker .uni-date-range {
+		background-color: transparent !important;
+	}
+
+	::v-deep .date-range-picker .uni-date-editor {
+		background-color: transparent !important;
+	}
+
 	.list {
 		width: 100%;
 
@@ -205,4 +272,4 @@
 			}
 		}
 	}
-</style>
+</style>

+ 3 - 3
pages/home/insurancePolicy/details.vue

@@ -98,7 +98,7 @@
 					</view>
 				</view>
 				<view>
-					<view class="photo-upload-text" style="color: #03803B;">轮胎DOT</view>
+					<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"
@@ -633,7 +633,7 @@
 				}
 				if (!this.form.file2) {
 					uni.showToast({
-						title: '请上传轮胎DOT',
+						title: '请上传花纹',
 						icon: 'none'
 					});
 					return
@@ -698,7 +698,7 @@
 				}
 				if (!this.form.file2) {
 					uni.showToast({
-						title: '请上传轮胎DOT',
+						title: '请上传花纹',
 						icon: 'none'
 					});
 					return

+ 65 - 1
pages/home/insurancePolicy/index.vue

@@ -4,6 +4,12 @@
 			<uni-search-bar bgColor="#F6F6F6 " v-model="searchValue" placeholder="请输入保单信息" @confirm="searchChange"
 				cancelButton="none" @clear="searchChange">
 			</uni-search-bar>
+			<view class="date-range-wrap">
+				<view class="date-range-picker">
+					<uni-datetime-picker v-model="createDateRange" type="daterange" :clear-icon="true" :border="false"
+						start-placeholder="注册开始日期" end-placeholder="注册结束日期" @change="dateRangeChange" />
+				</view>
+			</view>
 		</view>
 		<z-paging ref="paging" v-model="dataList" @query="getList" :fixed="false" :auto-show-back-to-top="true"
 			:empty-view-text="'暂无数据'" :hide-empty-view="false" :auto-show-system-loading="true">
@@ -80,6 +86,7 @@
 		data() {
 			return {
 				searchValue:"",
+				createDateRange: [],
 				dataList: [],
 			}
 		},
@@ -127,13 +134,19 @@
 			searchChange() {
 				this.$refs.paging.reload()
 			},
+			dateRangeChange() {
+				this.$refs.paging.reload()
+			},
 			async getList(pageNo, pageSize) {
 				try {
+					const [registrationStartDate, registrationEndDate] = this.createDateRange || []
 					const obj = {
 						current: pageNo,
 						size: pageSize,
 						claimType:2,
-						searchCriteria:this.searchValue
+						searchCriteria:this.searchValue,
+            registrationStartDate,
+            registrationEndDate
 					}
 					const res = await getList(obj)
 					this.$refs.paging.complete(res.data.records)
@@ -198,6 +211,57 @@
 		height: 42rpx;
 	}
 
+	.date-range-wrap {
+		padding: 0 30rpx 20rpx;
+	}
+
+	.date-range-picker {
+		background: #f6f6f6;
+		border-radius: 12rpx;
+		padding: 0 20rpx;
+		min-height: 64rpx;
+		display: flex;
+		align-items: center;
+		flex: 1;
+	}
+
+	.date-range-picker uni-datetime-picker {
+		display: block;
+		width: 100%;
+		flex: 1;
+	}
+
+	::v-deep .date-range-picker .uni-date {
+		width: 100%;
+	}
+
+	::v-deep .date-range-picker .uni-date-editor {
+		width: 100%;
+		background-color: transparent !important;
+	}
+
+	::v-deep .date-range-picker .uni-date-editor--x {
+		width: 100%;
+		background: transparent;
+		border: none;
+		border-radius: 8rpx;
+		padding: 0;
+		box-sizing: border-box;
+	}
+
+	::v-deep .date-range-picker .uni-date-x {
+		width: 100%;
+		background-color: transparent !important;
+	}
+
+	::v-deep .date-range-picker .uni-date-range {
+		background-color: transparent !important;
+	}
+
+	::v-deep .date-range-picker .uni-date__x-input {
+		flex: 1;
+	}
+
 	.list {
 		width: 100%;
 

+ 12 - 9
pages/home/store/details.vue

@@ -345,6 +345,7 @@
 					dimension: null,
 					longitude: null,
 					address: null,
+					province: null,
 					detailedAddress: null,
 					label: [],
 					brandName: [],
@@ -360,6 +361,7 @@
 					dimension: null,
 					longitude: null,
 					address: null,
+					province: null,
 					detailedAddress: null,
 					label: [],
 					brandName: [],
@@ -401,6 +403,7 @@
 			uni.$on('commitCheck', (data) => {
 				this.form.address = (data.province ? data.province : '') + (data.city ? "," + data.city :
 					'') + (data.district ? "," + data.district : '')
+				this.form.province = data.province || null
 				this.form.detailedAddress = data.name
 				this.form.longitude = data.location ? data.location.split(',')[0] : null
 				this.form.dimension = data.location ? data.location.split(',')[1] : null
@@ -455,13 +458,13 @@
 						});
 						return
 					}
-					if (this.form.corpsFilesList.filter(item => item.isDeleted == 0).length == 0) {
+/*					if (this.form.corpsFilesList.filter(item => item.isDeleted == 0).length == 0) {
 						uni.showToast({
 							title: '请上传店面照片',
 							icon: 'none'
 						});
 						return
-					}
+					}*/
 
 					if (!this.form.contacts) {
 						uni.showToast({
@@ -505,13 +508,13 @@
 						});
 						return
 					}*/
-					if (!this.form.address) {
+/*					if (!this.form.address) {
 						uni.showToast({
 							title: '请选择所属区域',
 							icon: 'none'
 						});
 						return
-					}
+					}*/
 					if (!this.form.detailedAddress) {
 						uni.showToast({
 							title: '请输入详细地址',
@@ -792,13 +795,13 @@
 					});
 					return
 				}
-				if (this.form.corpsFilesList.filter(item => item.isDeleted == 0).length == 0) {
+/*				if (this.form.corpsFilesList.filter(item => item.isDeleted == 0).length == 0) {
 					uni.showToast({
 						title: '请上传店面照片',
 						icon: 'none'
 					});
 					return
-				}
+				}*/
 
 				if (!this.form.contacts) {
 					uni.showToast({
@@ -842,13 +845,13 @@
 					});
 					return
 				}*/
-				if (!this.form.address) {
+/*				if (!this.form.address) {
 					uni.showToast({
 						title: '请选择所属区域',
 						icon: 'none'
 					});
 					return
-				}
+				}*/
 				if (!this.form.detailedAddress) {
 					uni.showToast({
 						title: '请输入详细地址',
@@ -957,7 +960,7 @@
 				}
 
 				obj.label = obj.label ? obj.label.join(",") : null
-				obj.brandName = obj.brandName ? obj.brandName.join(",") : null
+				// obj.brandName = obj.brandName ? obj.brandName.join(",") : null
 				if (obj.signingPeriodEnd) {
 					obj.signingPeriodEnd = obj.signingPeriodEnd.slice(0, 10) + ' 00:00:00'
 				}