Commit 21b7af73 by 杨北旺

..

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