Commit 88e72599 by 杨北旺

..

1 parent 21a01dab
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<i class="gl-icon-filter filter-icon" @click.stop="showFilter = !showFilter"></i> <i class="gl-icon-filter filter-icon" @click.stop="showFilter = !showFilter"></i>
<div v-show="showFilter" ref="closetree" class="tree-wrap"> <div v-show="showFilter" ref="closetree" class="tree-wrap">
<div class="filter-tree"> <div class="filter-tree">
<el-tree ref="tree" :data="treeBasic" show-checkbox node-key="id" :props="defaultProps"></el-tree> <el-tree ref="tree" :data="treeBasic" show-checkbox node-key="id" :props="defaultProps"></el-tree>
</div> </div>
<div class="filter-all"> <div class="filter-all">
<el-checkbox v-model="treeChecked">全选</el-checkbox> <el-checkbox v-model="treeChecked">全选</el-checkbox>
...@@ -98,7 +98,7 @@ export default { ...@@ -98,7 +98,7 @@ export default {
inputType: 'textarea', inputType: 'textarea',
rows: 3, rows: 3,
isClear: true, isClear: true,
maxlength:200, maxlength: 200,
inputChange: e => { inputChange: e => {
this.handleApproval(0, e) this.handleApproval(0, e)
} }
...@@ -184,14 +184,25 @@ export default { ...@@ -184,14 +184,25 @@ export default {
id: index id: index
} }
this.treeBasic[0].children.push(obj) this.treeBasic[0].children.push(obj)
el.secondClassifyList.forEach(ele => { if (el.firstClassifyName.indexOf('其他') != -1) {
ele.attachmentList.forEach(ke => { el.secondClassifyList.forEach(ele => {
if (ke.attachmentFile) { el.allImages.forEach(ke => {
ke.secondClassifyName = ele.secondClassifyName if (ke.attachmentFile) {
arr.push(ke) ke.secondClassifyName = ele.secondClassifyName
} arr.push(ke)
}
})
}) })
}) } else {
el.secondClassifyList.forEach(ele => {
ele.attachmentList.forEach(ke => {
if (ke.attachmentFile) {
ke.secondClassifyName = ele.secondClassifyName
arr.push(ke)
}
})
})
}
}) })
this.filterImgList = arr this.filterImgList = arr
this.curImg = arr[0] this.curImg = arr[0]
...@@ -202,7 +213,6 @@ export default { ...@@ -202,7 +213,6 @@ export default {
}, },
initDialog() { initDialog() {
this.visibility = true this.visibility = true
console.log(this.images);
this.handlerData(this.images) this.handlerData(this.images)
}, },
changeCurImg(item, index) { changeCurImg(item, index) {
...@@ -250,7 +260,7 @@ export default { ...@@ -250,7 +260,7 @@ export default {
} }
}) })
} }
if(!filtterList.length)return if (!filtterList.length) return
filtterList = [...new Set(filtterList)] filtterList = [...new Set(filtterList)]
this.showFilter = false this.showFilter = false
this.filterImages(filtterList) this.filterImages(filtterList)
......
...@@ -181,15 +181,15 @@ export default { ...@@ -181,15 +181,15 @@ export default {
isClear: true, isClear: true,
isDisabled: this.pageType == 2 isDisabled: this.pageType == 2
}, },
{ // {
label: '出险经过描述:', // label: '出险经过描述:',
name: 'reimbursementDesc', // name: 'reimbursementDesc',
type: 'input', // type: 'input',
inputType: 'textarea', // inputType: 'textarea',
maxlength: 200, // maxlength: 200,
isClear: true, // isClear: true,
isDisabled: this.pageType == 2 // isDisabled: this.pageType == 2
}, // },
// { // {
// label: '申请核赔服务:', // label: '申请核赔服务:',
// addHtml: 'serviceApply' // addHtml: 'serviceApply'
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
trigger: 'change' trigger: 'change'
} }
], ],
reimbursementDesc: [{ required: true, message: '请输入出险经过描述', trigger: 'change' }] // reimbursementDesc: [{ required: true, message: '请输入出险经过描述', trigger: 'change' }]
}, },
checkList: [] checkList: []
} }
......
...@@ -262,7 +262,6 @@ export default { ...@@ -262,7 +262,6 @@ export default {
otherObj.attachmentFile = res otherObj.attachmentFile = res
otherObj.auditStatus = null otherObj.auditStatus = null
otherObj.attachmentType = file.name.split('.').pop() otherObj.attachmentType = file.name.split('.').pop()
console.log(otherObj);
if (this.otherUploadIndex != null) { if (this.otherUploadIndex != null) {
this.insuranceAttachmentConfigs[this.currentIndx].allImages[this.otherUploadIndex] = otherObj this.insuranceAttachmentConfigs[this.currentIndx].allImages[this.otherUploadIndex] = otherObj
this.$forceUpdate() this.$forceUpdate()
...@@ -273,6 +272,7 @@ export default { ...@@ -273,6 +272,7 @@ export default {
otherObj.reasonForFailure = null otherObj.reasonForFailure = null
otherObj.auditBy = null otherObj.auditBy = null
otherObj.classifyId = this.classifyId otherObj.classifyId = this.classifyId
otherObj.attachmentCode = 4
this.insuranceAttachmentConfigs[this.currentIndx].allImages.push(otherObj) this.insuranceAttachmentConfigs[this.currentIndx].allImages.push(otherObj)
} }
return return
......
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
</div> </div>
<div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container"> <div v-if="item.firstClassifyName.indexOf('细节') != -1" class="image_container">
<template v-for="(img, i) in images[currentIndx].secondClassifyList"> <template v-for="(img, i) in images[currentIndx].secondClassifyList">
<div v-if="!isClaims && img.serviceItemName == '钥匙及车牌重置服务' && img.serviceItemName == item.services[currentServicesIndex] ? lossTypeList.includes(img.lossType) : img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box"> <div v-if="img.serviceItemName == '钥匙及车牌重置服务' && img.serviceItemName == item.services[currentServicesIndex] ? lossTypeList.includes(img.lossType) : img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box">
<div class="title_tip flex_sc"> <div class="title_tip flex_sc">
<i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i> <i v-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i> <i v-else-if="img.attachmentList.length && img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></i>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="tab_wrap"> <div class="tab_wrap">
<el-tabs v-model="activeName"> <el-tabs v-model="activeName">
<el-tab-pane class="bg" label="核赔信息" name="first"> <el-tab-pane class="bg" label="核赔信息" name="first">
<CheckClaims @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" @changeObjectType="changeObjectType" :insuranceAttachmentConfigs.sync="claimsAttachmentConfigs" :repotData.sync="repotData" :itemsList.sync="itemList" :accountForm.sync="accountForm"></CheckClaims> <CheckClaims ref="checkclaims" @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" @changeObjectType="changeObjectType" :insuranceAttachmentConfigs.sync="claimsAttachmentConfigs" :repotData.sync="repotData" :itemsList.sync="itemList" :accountForm.sync="accountForm"></CheckClaims>
</el-tab-pane> </el-tab-pane>
<el-tab-pane class="bg" label="定损信息" name="second"> <el-tab-pane class="bg" label="定损信息" name="second">
<CheckData @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" :isDisabled="true" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData> <CheckData @getCurrentLoosType="getLossType" :lossTypeList.sync="lossTypeList" :isDisabled="true" :otherInfoData.sync="otherInfoData" :itemList.sync="itemList" :insuranceAttachmentConfigs.sync="insuranceAttachmentConfigs" :repotData.sync="repotData"></CheckData>
...@@ -272,8 +272,8 @@ export default { ...@@ -272,8 +272,8 @@ export default {
item.lossTypeList = [] item.lossTypeList = []
if (item.serviceItemCode == 'SC0006' && item.lossType) { if (item.serviceItemCode == 'SC0006' && item.lossType) {
item.lossTypeList = item.lossType.split(',') item.lossTypeList = item.lossType.split(',')
this.lossTypeList = item.lossTypeList
} }
this.lossTypeList = item.lossTypeList
this.$set(item, 'checked', true) this.$set(item, 'checked', true)
}) })
this.itemList = res.itemsList this.itemList = res.itemsList
...@@ -755,7 +755,6 @@ export default { ...@@ -755,7 +755,6 @@ export default {
writeOffCode: this.repotData.writeOffCode, writeOffCode: this.repotData.writeOffCode,
...imgObj ...imgObj
} }
return this.orderMsg.status == 12 || this.orderMsg.status == 2 ? claims : para return this.orderMsg.status == 12 || this.orderMsg.status == 2 ? claims : para
}, },
// 保存订单 // 保存订单
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!