Browse Source

修改品牌遮挡
保单附件控制

Qukatie 1 day ago
parent
commit
6116dee206
2 changed files with 27 additions and 27 deletions
  1. 18 23
      pages/home/insurancePolicy/details.vue
  2. 9 4
      pages/home/store/details.vue

+ 18 - 23
pages/home/insurancePolicy/details.vue

@@ -9,14 +9,12 @@
 			<uni-forms ref="form1" :modelValue="form" :border="true" label-width="80">
 				<uni-forms-item name="consumerName" label="联系人">
 					<uni-easyinput v-model="form.consumerName" class="right-align" placeholder-class="placeholder-right"
-						placeholder="请输入联系人" :inputBorder="false" :disabled="true"
-						:clearable="false"></uni-easyinput>
+						placeholder="请输入联系人" :inputBorder="false" :disabled="true" :clearable="false"></uni-easyinput>
 				</uni-forms-item>
 				<uni-forms-item name="consumerPhone" label="电话" required>
 					<uni-easyinput v-model="form.consumerPhone" class="right-align" type="number"
-						placeholder-class="placeholder-right" placeholder="请输入电话" :inputBorder="false"
-						:disabled="true" :clearable="false" maxlength="11"
-						@change="photoChange"></uni-easyinput>
+						placeholder-class="placeholder-right" placeholder="请输入电话" :inputBorder="false" :disabled="true"
+						:clearable="false" maxlength="11" @change="photoChange"></uni-easyinput>
 				</uni-forms-item>
 				<uni-forms-item name="vehicleNumber" label="车牌号">
 					<view style="display: flex;align-items: center;">
@@ -30,24 +28,22 @@
 								{{form.vehicleNumber||'请输入车牌号'}}
 							</view>
 						</view>
-						<uni-icons v-if="!(true)" type="camera" size="24"
-							color='#03803B' @click="allClick('识别车牌号')"></uni-icons>
+						<uni-icons v-if="!(true)" type="camera" size="24" color='#03803B'
+							@click="allClick('识别车牌号')"></uni-icons>
 					</view>
 				</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="请输入胎号" :inputBorder="false"
-							:disabled="true" :clearable="false"
+							placeholder="请输入胎号" :inputBorder="false" :disabled="true" :clearable="false"
 							@change="getMaterialDetail"></uni-easyinput>
-						<uni-icons v-if="!(true)" type="scan" size="24"
-							color='#03803B' @click="allClick('识别胎号')"></uni-icons>
+						<uni-icons v-if="!(true)" type="scan" size="24" color='#03803B'
+							@click="allClick('识别胎号')"></uni-icons>
 					</view>
 				</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" :disabled="true" :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"
@@ -70,8 +66,7 @@
 				<uni-forms-item name="claimReason" label="理赔原因">
 					<uni-easyinput v-model="form.claimReason" class="right-align" type="textarea"
 						placeholder-class="placeholder-right" placeholder="请输入内容" :inputBorder="false"
-						:del-icon="!(true)"
-						:disabled="true"></uni-easyinput>
+						:del-icon="!(true)" :disabled="true"></uni-easyinput>
 				</uni-forms-item>
 			</uni-forms>
 		</uni-section>
@@ -88,8 +83,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="!(true)" :sourceType="['camera']">
+							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>
@@ -106,8 +101,8 @@
 					<view class="photo-upload-text" style="color: #03803B;">轮胎DOT</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="!(true)" :sourceType="['camera']">
+							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>
@@ -124,8 +119,8 @@
 					<view class="photo-upload-text" style="color: #03803B;">花纹深度</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="!(true)" :sourceType="['camera']">
+							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>
@@ -309,7 +304,7 @@
 						uni.chooseImage({
 							count: 1, //默认9
 							sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
-							sourceType:['camera'],
+							sourceType: ['camera'],
 							success: function(file) {
 								uni.showLoading({
 									title: '加载中',
@@ -354,7 +349,7 @@
 						let _this = this
 						uni.scanCode({
 							scanType: ['barCode'],
-							onlyFromCamera:true,
+							onlyFromCamera: true,
 							success: function(res) {
 								_this.form.tyreNo = res.result
 								_this.getMaterialDetail(res.result)

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

@@ -93,7 +93,7 @@
 							<uni-icons v-if="!form.brandName.length" type="down" size="14" color='#BCBCBC'
 								@click="brandPopup"></uni-icons>
 						</view>
-						<uni-popup ref="brand" type="bottom">
+						<uni-popup ref="brand" type="bottom" @change="popupChange">
 							<view class="popup-content">
 								<view class="popup-content-checkbox">
 									<scroll-view scroll-y="true" style="height: 600rpx;" :show-scrollbar="false">
@@ -107,7 +107,7 @@
 						</uni-popup>
 					</view>
 				</uni-forms-item>
-				<uni-forms-item name="c" label="所属区域" required>
+				<uni-forms-item name="address" label="所属区域" required>
 					<!-- 	<uni-data-picker v-model="form.address" :localdata="addressData" popup-title="请选择所属区域"
 						:map="mapObject" :inputBorder="false" :clear-icon="false"
 						:readonly="form.enableOrNot==1"></uni-data-picker> -->
@@ -194,7 +194,7 @@
 								@click="openPopup"></uni-icons>
 						</view>
 
-						<uni-popup ref="popup" type="bottom">
+						<uni-popup ref="popup" type="bottom" @change="popupChange">
 							<view class="popup-content">
 								<view class="popup-content-checkbox">
 									<scroll-view scroll-y="true" style="height: 600rpx;" :show-scrollbar="false">
@@ -265,7 +265,7 @@
 		</view> -->
 		<view v-if="form.enableOrNot!=1" class="nav-bottom-height">
 		</view>
-		<view v-if="form.enableOrNot!=1" class="goods-nav-bottom">
+		<view v-if="form.enableOrNot!=1&&!popupShow" class="goods-nav-bottom">
 			<uni-goods-nav v-if="form.checkStatus=='录入'||form.checkStatus=='审核驳回'" :fill="true" :options="[]" :buttonGroup="buttonGroup"
 				@buttonClick="buttonClick" />
 			<uni-goods-nav v-if="!(form.checkStatus=='录入'||form.checkStatus=='审核驳回')" :fill="true" :options="[]" :buttonGroup="buttonGroup2"
@@ -294,6 +294,7 @@
 	export default {
 		data() {
 			return {
+				popupShow:false,
 				buttonGroup: [{
 						text: '通过',
 						backgroundColor: '#18bc37',
@@ -385,6 +386,10 @@
 			uni.$off();
 		},
 		methods: {
+			popupChange(e){
+				console.log(e)
+				this.popupShow=e.show
+			},
 			buttonClick(e) {
 				if (e.index == 0) {
 					this.approval(1)