Commit 3099f631 by zhangquan

Merge branch 'v3.11.0' of http://192.168.3.233:8090/saas/scrm-micro-presale into v3.11.0

2 parents 43fc0e45 8712c549
......@@ -200,17 +200,18 @@ export default {
// 以下是文件数据
res.files.forEach(item => {
let obj = { url: item.fileUrl, fileType: item.fileType, name: item.fileName, progress: 100, mark: item.mark, fileCode: item.fileCode }
if (item.fileCode == '1') {
if (item.fileCode == '1'&&item.fileUrl) {
if (this.materialForm.idCard.length === 0) {
this.materialForm.idCard.push(obj)
} else {
this.materialForm.idCardBack.push(obj)
}
} else if (item.fileCode == '31') {
} else if (item.fileCode == '31'&&item.fileUrl) {
this.materialForm.billInfo.push(obj)
} else if (item.fileCode == '4') {
} else if (item.fileCode == '4'&&item.fileUrl) {
this.materialForm.otherInfo.push(obj)
}
console.log(this.materialForm);
})
// 案件说明
res.supplementList.forEach(el => {
......
......@@ -4,7 +4,7 @@
<div class="material">
<div class="material-item" v-for="item in materialData" :key="item.name">
<label :class="{ require: item.label }">{{ item.label }}</label>
<el-upload :disabled="pageType == 2 || renewDisable" :id="item.name" :ref="item.name + 'Ref'" :file-list="materialForm[item.name]" :list-type="item.listType ? item.listType : 'picture-card'" :class="[renewDisable || pageType == 2 || item.limit == materialForm[item.name].length ? 'hidePlusBtn' : '', 'upload-item']" :limit="item.limit" action="#" :before-upload="e => beforeAvatarUpload(e, item.name)" :on-preview="handlePictureCardPreview" :on-remove="e => handleRemove(e, item.name)" :http-request="e => httpRequest(e, item.name)">
<el-upload :disabled="pageType == 2 || renewDisable" :id="item.name" :ref="item.name + 'Ref'" :file-list="materialForm[item.name]" :list-type="item.listType ? item.listType : 'picture-card'" :class="[ pageType == 2 || item.limit == materialForm[item.name].length ? 'hidePlusBtn' : '', 'upload-item',{'renewDisable':renewDisable&&!materialForm[item.name].length}]" :limit="item.limit" action="#" :before-upload="e => beforeAvatarUpload(e, item.name)" :on-preview="handlePictureCardPreview" :on-remove="e => handleRemove(e, item.name)" :http-request="e => httpRequest(e, item.name)">
<!-- <i v-if="item.name == 'billInfo'" slot="default" class="el-icon-plus">
<p>上传图片</p>
</i> -->
......@@ -136,7 +136,8 @@ export default {
vin: '车架号VIN照片',
carAndPeople: '45°车头角度全车照片及人车合照',
vehicleDamage: '车辆受损细节照片',
InsuranceLossStatement: '保险定损单'
InsuranceLossStatement: '保险定损单',
repiare:'维修单'
}
}
},
......@@ -257,6 +258,12 @@ export default {
display: none;
}
}
/deep/ .renewDisable {
.el-upload--picture-card {
display: block;
cursor: not-allowed;
}
}
// 上传闪屏问题
/deep/.el-upload-list__item.is-ready {
......@@ -463,7 +470,7 @@ export default {
.xuBao {
margin-top: 22px;
width: 522px;
height: 242px;
min-height: 24px;
}
}
.material-item:last-child {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!