Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
dj-digital-equlity
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 fb97f15e
authored
Aug 07, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.14.0' into 'master'
V3.14.0 See merge request
!5
2 parents
0afe81fa
609e4a16
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
76 additions
and
35 deletions
src/config/index.js
src/views/beforeSale/writeOff/components/explanation.vue
src/views/beforeSale/writeOff/components/imgList.vue
src/views/beforeSale/writeOff/damage.vue
src/views/beforeSale/writeOff/writeOff.vue
src/views/beforeSale/writeOff/writeOffList.vue
src/config/index.js
View file @
fb97f15
...
@@ -17,7 +17,7 @@ export const fetchConfig = function (isEnv = true) {
...
@@ -17,7 +17,7 @@ export const fetchConfig = function (isEnv = true) {
// Object.assign(request, { timeout })
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// return Promise.resolve(cfg)
// }
// }
return
new
Http
({
request
:
{
timeout
:
timeout
}
}).
get
(
'https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config
'
)
return
new
Http
({
Headers
:
{
refererurl
:
location
.
href
},
request
:
{
timeout
:
30000
}
}).
get
(
'https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=services
'
)
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
}
...
...
src/views/beforeSale/writeOff/components/explanation.vue
View file @
fb97f15
...
@@ -2,10 +2,16 @@
...
@@ -2,10 +2,16 @@
<div>
<div>
<Card
title=
"案件补充说明"
>
<Card
title=
"案件补充说明"
>
<div
class=
"explanation"
>
<div
class=
"explanation"
>
<div
class=
"explanation-list"
v-for=
"(item, idx) in supplementList"
:key=
"idx"
>
<div
class=
"explanation-list"
v-for=
"(item, idx) in supplementList"
:key=
"idx"
>
<label
class=
"label"
for=
""
>
{{
`说明${idx + 1
}
:`
}}
<
/label
>
<div
class=
"explanation-item"
>
<
el
-
input
:
disabled
=
"disabled"
:
placeholder
=
"
`请输入说明${idx + 1
}
`" v-model="
item
.
content
" type="
textarea
" maxlength="
200
" :rows="
3
"></el-input>
<label
class=
"label"
for=
""
>
{{
`说明${idx + 1
}
:`
}}
<
/label
>
<i class="
el
-
icon
-
delete
del
" v-if="
!
disabled
&&
supplementList
.
length
>
1
" @click="
handleDel
(
idx
)
"></i>
<
el
-
input
:
disabled
=
"disabled || item.operation==1"
:
placeholder
=
"
`请输入说明${idx + 1
}
`" v-model="
item
.
content
" type="
textarea
" maxlength="
200
" :rows="
3
"></el-input>
<i class="
el
-
icon
-
delete
del
" v-if="
(
!
disabled
&&
supplementList
.
length
>
1
)
&&
item
.
operation
!=
1
" @click="
handleDel
(
idx
)
"></i>
</div>
<div v-if="
item
.
operation
==
1
" class="
operate
-
wrap
"
>
<
span
>
操作人:
{{
item
.
operationUser
||
'--'
}}
<
/span
>
<
span
>
操作时间:
{{
item
.
operationTime
|
formatTime
(
item
.
operationTime
)
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"add-explanation"
v
-
if
=
"!disabled"
@
click
=
"addExplanation"
>
<
div
class
=
"add-explanation"
v
-
if
=
"!disabled"
@
click
=
"addExplanation"
>
...
@@ -17,6 +23,7 @@
...
@@ -17,6 +23,7 @@
<
/template
>
<
/template
>
<
script
type
=
"text/ecmascript-6"
>
<
script
type
=
"text/ecmascript-6"
>
import
Card
from
'./card.vue'
import
Card
from
'./card.vue'
import
util
from
'@/util/util'
export
default
{
export
default
{
name
:
'explanation'
,
name
:
'explanation'
,
data
()
{
data
()
{
...
@@ -26,6 +33,11 @@ export default {
...
@@ -26,6 +33,11 @@ export default {
components
:
{
components
:
{
Card
Card
}
,
}
,
filters
:
{
formatTime
(
time
)
{
return
time
?
util
.
dateFormat
(
time
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
}
,
props
:
{
props
:
{
supplementList
:{
supplementList
:{
type
:
Array
,
type
:
Array
,
...
@@ -53,13 +65,27 @@ export default {
...
@@ -53,13 +65,27 @@ export default {
<
/script
>
<
/script
>
<
style
lang
=
"scss"
scoped
>
<
style
lang
=
"scss"
scoped
>
.
explanation
{
.
explanation
{
.
explanation
-
list
{
.
explanation
-
list
{
display
:
flex
;
// align-items: center;
margin
-
bottom
:
20
px
;
margin
-
bottom
:
20
px
;
&
:
last
-
child
{
&
:
last
-
child
{
margin
-
bottom
:
10
px
;
margin
-
bottom
:
10
px
;
}
}
}
.
operate
-
wrap
{
display
:
flex
;
margin
-
left
:
154
px
;
width
:
580
px
;
justify
-
content
:
space
-
between
;
font
-
weight
:
400
;
font
-
size
:
12
px
;
height
:
17
px
;
line
-
height
:
17
px
;
margin
-
top
:
4
px
;
color
:
#
666666
;
}
.
explanation
-
item
{
display
:
flex
;
// align-items: center;
/deep/
.
el
-
textarea
{
/deep/
.
el
-
textarea
{
width
:
580
px
;
width
:
580
px
;
}
}
...
...
src/views/beforeSale/writeOff/components/imgList.vue
View file @
fb97f15
...
@@ -36,12 +36,14 @@
...
@@ -36,12 +36,14 @@
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
/>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
/>
</el-dialog>
</el-dialog>
<image-viewer
:z-index=
"10000"
:initial-index=
"initIdx"
v-if=
"showViewer"
:on-close=
"closeViewer"
:url-list=
"reviewList"
/>
<!-- <pre-img ref="preImgRef"></pre-img> -->
<!-- <pre-img ref="preImgRef"></pre-img> -->
</div>
</div>
</template>
</template>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
cameraUrl
from
'@/assets/camera.png'
import
cameraUrl
from
'@/assets/camera.png'
import
url
from
'../../image/code.png'
import
url
from
'../../image/code.png'
import
imageViewer
from
'element-ui/packages/image/src/image-viewer'
;
// import preImg from './preImg'
// import preImg from './preImg'
// import glsxCombiForm from '@/components/glsx-combi-form'
// import glsxCombiForm from '@/components/glsx-combi-form'
export
default
{
export
default
{
...
@@ -87,11 +89,18 @@ export default {
...
@@ -87,11 +89,18 @@ export default {
// if(item.secondClassifyName.indexOf('钥匙:')!=0 || item.secondClassifyName.indexOf('车牌:')!=0) return true;
// if(item.secondClassifyName.indexOf('钥匙:')!=0 || item.secondClassifyName.indexOf('车牌:')!=0) return true;
return
item
.
serviceItemCode
!=
'SC0006'
||
(
item
.
serviceItemCode
==
'SC0006'
&&
((
item
.
secondClassifyName
.
indexOf
(
'钥匙:'
)
===
0
&&
this
.
curLossType
?.
includes
(
'3'
))
||
(
item
.
secondClassifyName
.
indexOf
(
'车牌:'
)
===
0
&&
this
.
curLossType
?.
includes
(
'4'
))))
return
item
.
serviceItemCode
!=
'SC0006'
||
(
item
.
serviceItemCode
==
'SC0006'
&&
((
item
.
secondClassifyName
.
indexOf
(
'钥匙:'
)
===
0
&&
this
.
curLossType
?.
includes
(
'3'
))
||
(
item
.
secondClassifyName
.
indexOf
(
'车牌:'
)
===
0
&&
this
.
curLossType
?.
includes
(
'4'
))))
}
}
},
reviewList
(){
return
this
.
list
?.
map
(
item
=>
{
if
(
this
.
curKey
==
item
.
key
||
(
this
.
isWriteOff
&&
item
.
serviceItemCode
==
this
.
curCode
))
return
item
?.
imgObj
?.
attachmentFile
})?.
filter
(
item
=>
!!
item
)
}
}
},
},
data
()
{
data
()
{
return
{
return
{
url
,
url
,
initIdx
:
0
,
showViewer
:
false
,
cameraUrl
,
cameraUrl
,
dialogImageUrl
:
''
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -100,16 +109,19 @@ export default {
...
@@ -100,16 +109,19 @@ export default {
}
}
},
},
components
:
{
components
:
{
imageViewer
// glsxCombiForm
// glsxCombiForm
// preImg
// preImg
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
handlePreview
(
url
)
{
closeViewer
(){
this
.
dialogImageUrl
=
url
;
this
.
showViewer
=
false
this
.
dialogVisible
=
true
;
},
handlePreview
(
e
)
{
this
.
initIdx
=
this
.
reviewList
?.
indexOf
(
e
)
||
0
this
.
showViewer
=
true
},
},
viewExample
(
url
){
viewExample
(
url
){
// this.$refs.preImgRef.preImage(url)
// this.$refs.preImgRef.preImage(url)
...
...
src/views/beforeSale/writeOff/damage.vue
View file @
fb97f15
...
@@ -26,20 +26,20 @@
...
@@ -26,20 +26,20 @@
<div
slot=
"approveAmountSlot"
class=
"amount-wrap"
>
<div
slot=
"approveAmountSlot"
class=
"amount-wrap"
>
<div
v-for=
"(item, index) in serviceCodesList"
:key=
"index"
>
<div
v-for=
"(item, index) in serviceCodesList"
:key=
"index"
>
<template
v-if=
"item.checked || curRouteInfo.status == 5 || curRouteInfo.status == 7 || curRouteInfo.pageType==6"
>
<template
v-if=
"item.checked || curRouteInfo.status == 5 || curRouteInfo.status == 7 || curRouteInfo.pageType==6"
>
<el-checkbox
:disabled=
"disabled"
v-model=
"item.checked"
@
change=
"changeCheckedStatus(item)"
>
{{
item
.
serviceItemName
}}
</el-checkbox>
<el-checkbox
:disabled=
"disabled
|| (serviceChecked && !item.checked)
"
v-model=
"item.checked"
@
change=
"changeCheckedStatus(item)"
>
{{
item
.
serviceItemName
}}
</el-checkbox>
<div
class=
"unit-wrap"
>
<div
class=
"unit-wrap"
>
<el-radio-group
:disabled=
"disabled"
v-if=
"item.serviceItemCode == 'SC0003'"
v-model=
"item.lossType"
>
<el-radio-group
:disabled=
"disabled
|| !item.checked
"
v-if=
"item.serviceItemCode == 'SC0003'"
v-model=
"item.lossType"
>
<el-radio
label=
"1"
>
全损
</el-radio>
<el-radio
label=
"1"
>
全损
</el-radio>
<el-radio
label=
"2"
>
局部
</el-radio>
<el-radio
label=
"2"
>
局部
</el-radio>
</el-radio-group>
</el-radio-group>
<el-checkbox-group
:disabled=
"disabled"
@
change=
"changeLossType"
v-if=
"item.serviceItemCode == 'SC0006'"
v-model=
"item.lossType"
>
<el-checkbox-group
:disabled=
"disabled
|| !item.checked
"
@
change=
"changeLossType"
v-if=
"item.serviceItemCode == 'SC0006'"
v-model=
"item.lossType"
>
<el-checkbox
label=
"3"
>
钥匙
</el-checkbox>
<el-checkbox
:disabled=
"item.lossType && item.lossType.length > 0 && !item.lossType.includes('3')"
label=
"3"
>
钥匙
</el-checkbox>
<el-checkbox
label=
"4"
>
车牌重置
</el-checkbox>
<el-checkbox
:disabled=
"item.lossType && item.lossType.length > 0 && !item.lossType.includes('4')"
label=
"4"
>
车牌重置
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
<div
class=
"unit-price"
>
<div
class=
"unit-price"
>
<label
class=
"required"
for=
""
>
预估损失金额/元:
</label>
<label
class=
"required"
for=
""
>
预估损失金额/元:
</label>
<el-input
maxlength=
"13"
:disabled=
"disabled"
@
input=
"validPrice($event, index)"
@
blur=
"changePrice($event, index)"
placeholder=
"请输入定损预估损失金额"
v-model=
"item.applyAmount"
></el-input>
<el-input
maxlength=
"13"
:disabled=
"disabled
|| !item.checked
"
@
input=
"validPrice($event, index)"
@
blur=
"changePrice($event, index)"
placeholder=
"请输入定损预估损失金额"
v-model=
"item.applyAmount"
></el-input>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -332,7 +332,10 @@ export default {
...
@@ -332,7 +332,10 @@ export default {
return
prev
+
+
(
curPrice
*
100
).
toFixed
(
0
)
return
prev
+
+
(
curPrice
*
100
).
toFixed
(
0
)
},
0
)
},
0
)
return
total
/
100
return
total
/
100
}
},
serviceChecked
(){
return
!!
this
.
serviceCodesList
.
find
(
item
=>
item
.
checked
)
},
},
},
created
(){
created
(){
...
@@ -741,8 +744,8 @@ export default {
...
@@ -741,8 +744,8 @@ export default {
}
}
}
}
this
.
resData
.
supplementList1
.
forEach
(
item
=>
{
this
.
resData
.
supplementList1
.
forEach
(
item
=>
{
let
{
id
,
claimsId
,
content
}
=
item
let
{
id
,
claimsId
,
content
,
operation
}
=
item
supplementList1
.
push
({
id
:
id
||
''
,
claimsId
,
content
,
suppType
:
1
})
supplementList1
.
push
({
id
:
id
||
''
,
operation
:
type
==
1
?
1
:
(
operation
||
0
),
claimsId
,
content
,
suppType
:
1
})
})
})
if
(
errorTarget
==
'errorFile'
)
return
{
error
:
'errorTip'
,
tip
:
`请重新上传审核失败的图片`
}
if
(
errorTarget
==
'errorFile'
)
return
{
error
:
'errorTip'
,
tip
:
`请重新上传审核失败的图片`
}
if
(
type
==
1
&&
errorTarget
)
return
{
error
:
'errorTip'
,
tip
:
`请上传
${
errorTarget
.
firstClassifyName
}
中的
${
errorTarget
.
secondClassifyName
}
`
}
if
(
type
==
1
&&
errorTarget
)
return
{
error
:
'errorTip'
,
tip
:
`请上传
${
errorTarget
.
firstClassifyName
}
中的
${
errorTarget
.
secondClassifyName
}
`
}
...
...
src/views/beforeSale/writeOff/writeOff.vue
View file @
fb97f15
...
@@ -453,8 +453,8 @@ export default {
...
@@ -453,8 +453,8 @@ export default {
}
}
this
.
resData
.
supplementList2
.
forEach
(
item
=>
{
this
.
resData
.
supplementList2
.
forEach
(
item
=>
{
let
{
id
,
claimsId
,
content
}
=
item
let
{
id
,
claimsId
,
content
,
operation
}
=
item
supplementList2
.
push
({
id
:
id
||
''
,
claimsId
,
content
,
suppType
:
2
}
)
supplementList2
.
push
({
id
:
id
||
''
,
operation
:
type
==
1
?
1
:
(
operation
||
0
),
claimsId
,
content
,
suppType
:
2
}
)
}
)
}
)
if
(
target
==
'errorFile'
)
return
{
error
:
'errorTip'
,
tip
:
`请重新上传审核失败的图片`
}
if
(
target
==
'errorFile'
)
return
{
error
:
'errorTip'
,
tip
:
`请重新上传审核失败的图片`
}
if
(
type
==
1
&&
target
)
return
{
error
:
'errorTip'
,
tip
:
`请上传${target.firstClassifyName
}
中的${target.secondClassifyName
}
`
}
if
(
type
==
1
&&
target
)
return
{
error
:
'errorTip'
,
tip
:
`请上传${target.firstClassifyName
}
中的${target.secondClassifyName
}
`
}
...
...
src/views/beforeSale/writeOff/writeOffList.vue
View file @
fb97f15
...
@@ -76,18 +76,18 @@ const serviceList = [
...
@@ -76,18 +76,18 @@ const serviceList = [
confId
:
8
,
confId
:
8
,
confName
:
'定损通过'
confName
:
'定损通过'
},
},
{
//
{
confId
:
9
,
//
confId: 9,
confName
:
'待主管审核'
//
confName: '待主管审核'
},
//
},
{
//
{
confId
:
10
,
//
confId: 10,
confName
:
'主管审核不通过'
//
confName: '主管审核不通过'
},
//
},
{
//
{
confId
:
11
,
//
confId: 11,
confName
:
'待客户签字授权'
//
confName: '待客户签字授权'
},
//
},
{
{
confId
:
12
,
confId
:
12
,
confName
:
'待核赔'
confName
:
'待核赔'
...
...
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