Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 21b7af73
authored
Sep 30, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
..
1 parent
f040c5ac
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
37 deletions
src/assets/css/public.scss
src/views/claims/components/card.vue
src/views/claims/components/fastReview.vue
src/views/claims/components/uploadMaterial.vue
src/views/claims/ghIndex.vue
src/assets/css/public.scss
View file @
21b7af7
...
...
@@ -349,7 +349,9 @@
background
:
white
;
.title
{
padding
:
15px
20px
;
padding
:
0
20px
;
height
:
57px
;
line-height
:
57px
;
border-bottom
:
1px
solid
#e5e5e5
;
}
...
...
src/views/claims/components/card.vue
View file @
21b7af7
...
...
@@ -47,9 +47,9 @@ export default {
.box
{
background-color
:
#fff
;
.header
{
height
:
47
px
;
height
:
58
px
;
background-color
:
#fff
;
line-height
:
47
px
;
line-height
:
58
px
;
padding
:
0
20px
;
box-sizing
:
border-box
;
font-family
:
inherit
;
...
...
src/views/claims/components/fastReview.vue
View file @
21b7af7
...
...
@@ -202,6 +202,7 @@ export default {
},
initDialog
()
{
this
.
visibility
=
true
console
.
log
(
this
.
images
);
this
.
handlerData
(
this
.
images
)
},
changeCurImg
(
item
,
index
)
{
...
...
src/views/claims/components/uploadMaterial.vue
View file @
21b7af7
...
...
@@ -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
()
},
...
...
src/views/claims/ghIndex.vue
View file @
21b7af7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment