|
|
@@ -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="form.auditStatus>0?' ':'请输入内容'"
|
|
|
@@ -110,24 +121,24 @@
|
|
|
</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/insurance/em4.png" />
|
|
|
+ <image class="photo-upload-img" src="@/static/images/home/insurance/em6.png" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <view class="photo-upload-text" style="color: #B5B4B4;">鼓包处照片</view>
|
|
|
+ <view class="photo-upload-text" style="color: #03803B;">条码照片</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="!(form.auditStatus>0)">
|
|
|
+ file-mediatype="image" @select="fileSelect4" @delete="fileDelete"
|
|
|
+ :del-icon="!(form.auditStatus>0)" :sourceType="['camera']">
|
|
|
<image class="photo-upload-img2" src="@/static/images/home/insurance/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>
|
|
|
@@ -140,13 +151,15 @@
|
|
|
</view>
|
|
|
<debounce-button type="warn" v-if="form.auditStatus==1" @click="revoke">撤销审核</debounce-button>
|
|
|
</view> -->
|
|
|
- <view class="nav-bottom-height">
|
|
|
+ <view class="nav-bottom-height">
|
|
|
</view>
|
|
|
<view class="goods-nav-bottom">
|
|
|
<uni-goods-nav v-if="!form.id" :fill="true" :options="[]" :buttonGroup="buttonGroup"
|
|
|
@buttonClick="buttonClick" />
|
|
|
<uni-goods-nav v-if="form.auditStatus==0" :fill="true" :options="[]" :buttonGroup="buttonGroup2"
|
|
|
@buttonClick="buttonClick2" />
|
|
|
+ <uni-goods-nav v-if="form.auditStatus==3" :fill="true" :options="[]" :buttonGroup="buttonGroup2"
|
|
|
+ @buttonClick="buttonClick2" />
|
|
|
<uni-goods-nav v-if="form.auditStatus==1" :fill="true" :options="[]" :buttonGroup="buttonGroup3"
|
|
|
@buttonClick="buttonClick3" />
|
|
|
</view>
|
|
|
@@ -538,13 +551,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: '加载中',
|
|
|
@@ -642,13 +655,14 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.form.file4) {
|
|
|
- // uni.showToast({
|
|
|
- // title: '请上传鼓包处照片',
|
|
|
- // icon: 'none'
|
|
|
- // });
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (!this.form.file4) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请上传条码照片',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.form.auditStatus = 0
|
|
|
let form = await this.convertData(this.$deepClone(this.form))
|
|
|
let obj = {
|
|
|
id: this.form.id
|
|
|
@@ -755,15 +769,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
|
|
|
})
|
|
|
@@ -792,12 +806,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 => {
|
|
|
@@ -938,4 +952,4 @@
|
|
|
flex-wrap: wrap;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|