|
|
@@ -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)
|