Commit 21b7af73 by 杨北旺

..

1 parent f040c5ac
......@@ -349,7 +349,9 @@
background: white;
.title {
padding: 15px 20px;
padding: 0 20px;
height: 57px;
line-height: 57px;
border-bottom: 1px solid #e5e5e5;
}
......
......@@ -47,9 +47,9 @@ export default {
.box {
background-color: #fff;
.header {
height: 47px;
height: 58px;
background-color: #fff;
line-height: 47px;
line-height: 58px;
padding: 0 20px;
box-sizing: border-box;
font-family: inherit;
......
......@@ -202,6 +202,7 @@ export default {
},
initDialog() {
this.visibility = true
console.log(this.images);
this.handlerData(this.images)
},
changeCurImg(item, index) {
......
......@@ -27,14 +27,14 @@
<template v-for="(img, i) in insuranceAttachmentConfigs[currentIndx].secondClassifyList">
<div v-if="img.serviceItemName == item.services[currentServicesIndex]" :key="i" class="img_box">
<div class="title flex_sc">
<i v-if="img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></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>
<div class="">{{ img.secondClassifyName }}</div>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length&&img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length&&img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
<div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
</div>
<div v-if="!isDisabled" class="footer_btn">
<el-button style="margin-left: 39px" @click="toHandlerImage(img, i, 1)" type="text">通过</el-button>
......@@ -51,14 +51,14 @@
<div v-for="(img, i) in insuranceAttachmentConfigs[currentIndx].secondClassifyList" :key="i" class="img_box">
<div v-if="img.serviceItemName" class="service_title">{{ img.serviceItemName }}</div>
<div class="title flex_sc">
<i v-if="img.attachmentList[0].auditStatus == 1" class="el-icon-success success"></i>
<i v-else-if="img.attachmentList[0].auditStatus == 0" class="el-icon-error error"></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>
<div class="">{{ img.secondClassifyName }}</div>
</div>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<div class="img_pannel flex_cc" :class="[{ errBorder: img.attachmentList.length&&img.attachmentList[0].auditStatus == 0 }]">
<el-image :preview-src-list="[img.attachmentList[0].attachmentFile]" v-if="img.attachmentList.length&&img.attachmentList[0].attachmentFile" style="width: 216px; height: 135px; border-radius: 4px" :src="img.attachmentList[0].attachmentFile" :fit="fit"></el-image>
<img v-else :src="cameraUrl" style="width: 40px; height: 40px" />
<div v-if="img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
<div v-if="img.attachmentList.length&&img.attachmentList[0].auditStatus == 0" class="errMsg flex_cc">{{ img.attachmentList[0].reasonForFailure }}</div>
</div>
<div v-if="!isDisabled" class="footer_btn">
<el-button style="margin-left: 39px" @click="toHandlerImage(img, i, 1)" type="text">通过</el-button>
......@@ -83,9 +83,9 @@
<div v-if="img.auditStatus == 0" class="errMsg flex_cc">{{ img.reasonForFailure }}</div>
</div>
<div v-if="!isDisabled" class="footer_btn">
<el-button style="margin-left: 39px" @click="toHandlerImage(img, i, 1)" type="text">通过</el-button>
<el-button @click="toHandlerImage(img, i, 0)" type="text">不通过</el-button>
<div @click="toHandlerImage(img, i, 2)" class="up_wrap">
<el-button style="margin-left: 39px" @click="toHandlerImage(img, i, 1, true)" type="text">通过</el-button>
<el-button @click="toHandlerImage(img, i, 0, true)" type="text">不通过</el-button>
<div @click="toHandlerImage(img, i, 2, true)" class="up_wrap">
<span>上传</span>
<input type="file" class="file" id="file" ref="input" @change="upload" accept="image/png, image/jpeg, image/gif, image/jpg" />
</div>
......@@ -142,11 +142,11 @@ export default {
inputType: 'textarea',
rows: 3,
isClear: true,
maxlength:200
maxlength: 200
}
],
currentServicesIndex: 0,
otherUploadIndex:null
otherUploadIndex: null
}
},
components: {
......@@ -156,19 +156,18 @@ export default {
},
props: {
insuranceAttachmentConfigs: Array,
isDisabled:Boolean
isDisabled: Boolean
},
mounted() {},
methods: {
toMutiCheck() {
this.insuranceAttachmentConfigs.forEach((item,index)=>{
item.secondClassifyList.forEach(child=>{
child.attachmentList.forEach(lastChild=>{
this.insuranceAttachmentConfigs.forEach((item, index) => {
item.secondClassifyList.forEach(child => {
child.attachmentList.forEach(lastChild => {
lastChild.isSelect = true
})
})
})
console.log(this.insuranceAttachmentConfigs);
},
selectServices(index) {
this.currentServicesIndex = index
......@@ -180,13 +179,16 @@ export default {
handleReview() {
this.$refs.fastReviewDialog.initDialog()
},
toHandlerImage(img, index, type) {
toHandlerImage(img, index, type, isOther = false) {
this.uploadObj = {
img,
index
}
this.isUploadOther = false
if (type == 2){
this.isUploadOther = isOther
if (isOther) {
this.otherUploadIndex = index
}
if (type == 2) {
this.isUploadOther = true
this.otherUploadIndex = index
return
......@@ -200,7 +202,11 @@ export default {
return
}
if (type == 0) {
this.imgPassObj.desc = img.attachmentList[0].reasonForFailure
if (isOther) {
this.imgPassObj.desc = img.reasonForFailure
} else {
this.imgPassObj.desc = img.attachmentList[0].reasonForFailure
}
this.showNoPassDialog = true
}
this.$set(this.insuranceAttachmentConfigs[this.currentIndx].secondClassifyList[index], img)
......@@ -210,8 +216,8 @@ export default {
},
upload(e) {
let otherObj = {}
if(this.isUploadOther){
Object.assign(otherObj,this.insuranceAttachmentConfigs[this.currentIndx].allImages[0])
if (this.isUploadOther) {
Object.assign(otherObj, this.insuranceAttachmentConfigs[this.currentIndx].allImages[0])
}
const file = e.target.files[0]
const reader = new FileReader()
......@@ -225,12 +231,10 @@ export default {
otherObj.attachmentFile = res
otherObj.auditStatus = null
otherObj.attachmentType = file.name.split('.').pop()
if(this.otherUploadIndex!=null){
if (this.otherUploadIndex != null) {
this.insuranceAttachmentConfigs[this.currentIndx].allImages[this.otherUploadIndex] = otherObj
this.$forceUpdate()
}else[
this.insuranceAttachmentConfigs[this.currentIndx].allImages.push(otherObj)
]
} else [this.insuranceAttachmentConfigs[this.currentIndx].allImages.push(otherObj)]
return
}
this.uploadObj.img.attachmentList[0].attachmentFile = res
......@@ -240,8 +244,14 @@ export default {
}
},
submitForm() {
this.uploadObj.img.attachmentList[0].auditStatus = 0
this.uploadObj.img.attachmentList[0].reasonForFailure = this.imgPassObj.desc
if (this.isUploadOther) {
this.insuranceAttachmentConfigs[this.currentIndx].allImages[this.otherUploadIndex].auditStatus = 0
this.insuranceAttachmentConfigs[this.currentIndx].allImages[this.otherUploadIndex].reasonForFailure = this.imgPassObj.desc
this.$forceUpdate()
} else {
this.uploadObj.img.attachmentList[0].auditStatus = 0
this.uploadObj.img.attachmentList[0].reasonForFailure = this.imgPassObj.desc
}
this.$set(this.insuranceAttachmentConfigs[this.currentIndx].secondClassifyList[this.uploadObj.index], this.uploadObj.img)
this.cancelDialog()
},
......
......@@ -852,7 +852,8 @@ export default {
<style lang="scss" scoped>
.header_info_widget {
box-sizing: border-box;
margin: 16px 0;
// margin: 16px 0;
margin-bottom: 16px;
width: 100%;
height: 40px;
display: flex;
......@@ -885,7 +886,7 @@ export default {
.table_widget {
padding: 0px 20px 20px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
.table_top_line {
margin-bottom: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!