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 29650a7d
authored
Feb 20, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
2月份需求开发
1 parent
396c2b80
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
233 additions
and
13 deletions
src/components/glsx-combi-form/index.vue
src/views/beforeSale/editEquity.vue
src/views/claims/ghOrder.vue
src/views/claims/order.vue
src/components/glsx-combi-form/index.vue
View file @
29650a7
...
...
@@ -63,7 +63,8 @@
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || defaultWidth }">
<div
v-if=
"Array.isArray(formObj[item.name]) ? formObj[item.name].length
< item
.
maxPhotoNum
:
!
formObj
[
item
.
name
]"
class=
"activity-img img-w-h"
>
<div
class=
"add"
:style=
"
{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+
</div>
<div
class=
"add"
>
+
</div>
<div
class=
"add-label"
>
上传图片
</div>
<span
v-if=
"item.maxPhotoNum > 1"
class=
"number"
>
{{
formObj
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
<input
v-if=
"item.uploadType == 'video'"
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"video/mp4"
@
change=
"e => handleUploadChange(e, item)"
/>
<input
v-else
type=
"file"
style=
"opacity: 0;"
:id=
"item.name + 'file'"
ref=
"file"
class=
"activity-img img-w-h"
accept=
"image/png, image/jpeg, image/gif, image/jpg"
@
change=
"e => handleUploadChange(e, item)"
/>
...
...
@@ -134,7 +135,7 @@ export default {
},
props
:
{
formDisable
:{
formDisable
:
{
type
:
Boolean
,
default
:
false
},
...
...
@@ -366,15 +367,17 @@ export default {
color
:
#999999
;
}
.glsx-combi-form
.img-w-h
{
width
:
80px
;
height
:
80px
;
width
:
104px
;
height
:
104px
;
box-sizing
:
border-box
;
}
.glsx-combi-form
.activity-img
{
position
:
relative
;
color
:
#999999
;
background
-color
:
#f7f7f7
;
border
:
1px
dotted
#
d9d9d9
;
background
:
#0000000
a
;
border
:
1px
dotted
#
00000026
;
cursor
:
pointer
;
border-radius
:
4px
;
}
.glsx-combi-form
.activity-Input
{
...
...
@@ -390,12 +393,21 @@ export default {
.activity-img
.add
{
position
:
absolute
;
top
:
4
0%
;
font-size
:
4
0px
;
top
:
3
0%
;
font-size
:
3
0px
;
left
:
50%
;
transform
:
translate3d
(
-50%
,
-50%
,
0
);
}
.add-label
{
position
:
absolute
;
top
:
50%
;
font-size
:
14px
;
left
:
50%
;
white-space
:
nowrap
;
transform
:
translateX
(
-50%
);
}
.activity-img
.number
{
position
:
absolute
;
bottom
:
0
;
...
...
@@ -407,8 +419,9 @@ export default {
display
:
none
;
height
:
100%
;
position
:
absolute
;
width
:
80px
;
height
:
80px
;
width
:
104px
;
height
:
104px
;
border-radius
:
4px
;
left
:
0
;
top
:
0
;
z-index
:
2
;
...
...
src/views/beforeSale/editEquity.vue
View file @
29650a7
...
...
@@ -233,6 +233,12 @@
<uploadInfo
:imgsQuery=
"attachmentListQuery"
:disabled=
"disabled"
:cardImg=
"cardImg"
:uploadMessage=
"uploadMessage"
@
getAttachmentList=
"getAttachmentList"
></uploadInfo>
</
template
>
<!-- 改装件信息 -->
<div
v-if=
"(refitFormObj.customFlag && equityRadio == '2') || (refitFormObj.autoFlag && equityRadio == '1') || refitFormObj.showFlag"
class=
"container m-t-10"
>
<p
class=
"edit-title"
>
改装件信息
</p>
<div
style=
"padding: 20px 20px 1px;"
><glsx-combi-form
ref=
"refitRef"
:isEdit=
"true"
:isInline=
"false"
defaultWidth=
"320px"
:formObj=
"refitFormObj"
:formData=
"refitFormData"
:formRules=
"refitRules"
></glsx-combi-form></div>
</div>
<!-- 其他信息 -->
<div
class=
"container m-t-10"
>
<p
class=
"edit-title"
>
其他信息
</p>
...
...
@@ -249,7 +255,7 @@
<div
class=
"page-btm-btn"
>
<el-button
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
class=
"custom_black"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
class=
"custom_blue"
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
@
click=
"handleDraft"
>
草稿
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != '5'"
type=
"primary"
@
click=
"
handleConfirm
"
>
{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != '5'"
type=
"primary"
@
click=
"
checkRefitInfo()
"
>
{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}
</el-button>
</div>
<!-- 二维码 -->
...
...
@@ -571,6 +577,96 @@ export default {
tire
:
{},
glass
:
{}
},
refitRules
:
{
addOnsFlag
:
[{
required
:
true
,
message
:
'请选择含加改装件'
,
trigger
:
'change'
}],
invoice
:
[
{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
refitFormObj
.
addOnsFlag
&&
!
value
)
{
callback
(
new
Error
(
'请上传发票或收据'
))
}
else
{
callback
()
}
},
trigger
:
'change'
}
],
refitImg
:
[
{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
refitFormObj
.
addOnsFlag
&&
!
value
)
{
callback
(
new
Error
(
'请上传加改装部位照片'
))
}
else
{
callback
()
}
},
trigger
:
'change'
}
]
},
refitFormObj
:
{
autoFlag
:
0
,
customFlag
:
0
,
showFlag
:
false
,
addOnsFlag
:
1
,
invoice
:
''
,
refitImg
:
''
},
refitFormData
:
[
{
label
:
'含加改装件'
,
name
:
'addOnsFlag'
,
type
:
'radio'
,
optionList
:
[
{
confId
:
1
,
confName
:
'是'
},
{
confId
:
0
,
confName
:
'否'
}
],
optionId
:
'confId'
,
optionLabel
:
'confName'
},
{
label
:
'发票或收据'
,
name
:
'invoice'
,
type
:
'upload'
,
isHide
:
false
,
maxPhotoNum
:
1
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
beforeSale
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
if
(
res
)
{
this
.
refitFormObj
.
invoice
=
res
this
.
$refs
.
refitRef
.
$refs
.
formRef
.
validateField
(
'invoice'
)
}
})
}
},
{
label
:
'加改装部位照片'
,
name
:
'refitImg'
,
isHide
:
false
,
type
:
'upload'
,
maxPhotoNum
:
1
,
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
imgFile
.
split
(
','
)[
1
]
this
.
$apis
.
beforeSale
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
if
(
res
)
{
this
.
refitFormObj
.
refitImg
=
res
this
.
$refs
.
refitRef
.
$refs
.
formRef
.
validateField
(
'refitImg'
)
}
})
}
}
],
// 其他信息
editRuleOther
:
{
deviceNo
:
[{
required
:
false
,
message
:
'请输入设备号'
,
trigger
:
'change'
}],
...
...
@@ -826,6 +922,16 @@ export default {
},
watch
:
{
'refitFormObj.addOnsFlag'
:
{
handler
(
newValue
,
oldValue
)
{
this
.
refitFormData
.
forEach
(
item
=>
{
if
(
item
.
type
==
'upload'
)
{
item
.
isHide
=
!
newValue
}
})
},
immediate
:
true
},
'editForm.vehicle.invoicePrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
vehicle
.
invoicePrice
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
,
0
,
2000000
)
if
(
this
.
currentVaildItem
)
{
...
...
@@ -1048,6 +1154,8 @@ export default {
})
}
}
let
hasRefitFlagList
=
this
.
allProdList
.
filter
(
item
=>
this
.
packageCodeList
.
includes
(
item
.
packageCode
))
this
.
refitFormObj
.
autoFlag
=
!!
hasRefitFlagList
?.
find
(
item
=>
item
.
qsFlag
)
},
changeRaido
(
e
,
item
)
{
if
(
e
)
{
...
...
@@ -1090,6 +1198,8 @@ export default {
this
.
showUploadInfo
=
false
}
}
let
hasRefitFlagList
=
this
.
allProdList
.
filter
(
item
=>
this
.
autoPackageCodeList
.
includes
(
item
.
packageCode
))
this
.
refitFormObj
.
customFlag
=
!!
hasRefitFlagList
?.
find
(
item
=>
item
.
qsFlag
)
},
// 获取店铺信息
getStoreInfo
()
{
...
...
@@ -1491,6 +1601,19 @@ export default {
},
getInfo
(
productArrData
)
{
this
.
$apis
.
beforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
,
repeatedFlag
:
this
.
routeInfo
.
addOrEdit
==
4
?
1
:
0
}).
then
(
res
=>
{
this
.
refitFormObj
.
addOnsFlag
=
res
.
addOnsFlag
this
.
refitFormObj
.
showFlag
=
res
.
addOnsFlag
!==
null
let
attachmentList
=
[]
res
.
attachmentList
?.
forEach
(
item
=>
{
if
(
item
.
attachmentCode
==
'QS0001'
)
{
this
.
refitFormObj
.
invoice
=
item
.
attachmentFile
}
else
if
(
item
.
attachmentCode
==
'QS0002'
)
{
this
.
refitFormObj
.
refitImg
=
item
.
attachmentFile
}
else
{
attachmentList
.
push
(
item
)
}
})
res
.
attachmentList
=
attachmentList
this
.
editForm
=
{
...
res
}
...
...
@@ -2071,6 +2194,26 @@ export default {
setTimeout
(()
=>
{
this
.
submit
=
false
},
3000
)
const
{
customFlag
,
autoFlag
,
showFlag
,
addOnsFlag
,
invoice
,
refitImg
}
=
this
.
refitFormObj
if
((
customFlag
&&
this
.
equityRadio
==
'2'
)
||
(
autoFlag
&&
this
.
equityRadio
==
'1'
)
||
showFlag
)
{
params
.
addOnsFlag
=
addOnsFlag
if
(
addOnsFlag
)
{
let
invoiceItem
=
{
attachmentCode
:
'QS0001'
,
attachmentFile
:
invoice
,
attachmentType
:
'IMG'
}
params
.
attachmentList
.
push
(
invoiceItem
)
let
refitImgItem
=
{
attachmentCode
:
'QS0002'
,
attachmentFile
:
refitImg
,
attachmentType
:
'IMG'
}
params
.
attachmentList
.
push
(
refitImgItem
)
}
}
this
.
$apis
.
beforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
submit
=
false
...
...
@@ -2138,6 +2281,17 @@ export default {
}
return
isEmpty
},
checkRefitInfo
()
{
if
(
this
.
$refs
?.
refitRef
?.
$refs
?.
formRef
)
{
this
.
$refs
?.
refitRef
?.
$refs
.
formRef
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
handleConfirm
()
}
})
}
else
{
this
.
handleConfirm
()
}
},
handleConfirm
()
{
try
{
this
.
vaildGlassParams
()
...
...
@@ -2223,6 +2377,14 @@ export default {
}
},
handleReset
()
{
this
.
refitFormObj
=
{
autoFlag
:
0
,
customFlag
:
0
,
showFlag
:
false
,
addOnsFlag
:
1
,
invoice
:
''
,
refitImg
:
''
}
this
.
editForm
=
{
packageCode
:
''
,
suggestedSellingPrice
:
''
,
...
...
src/views/claims/ghOrder.vue
View file @
29650a7
...
...
@@ -285,7 +285,7 @@ export default {
// 服务list
res
.
itemsList
.
map
(
item
=>
{
item
.
applyAmount
=
item
.
applyAmount
?
(
item
.
applyAmount
/
100
).
toFixed
(
2
)
:
item
.
applyAmount
item
.
approveAmount
=
item
.
approveAmount
?
(
item
.
approveAmount
/
100
).
toFixed
(
2
)
:
item
.
approveAmount
item
.
approveAmount
=
item
.
approveAmount
?
(
item
.
approveAmount
/
100
).
toFixed
(
2
)
:
null
item
.
lossAssessmentAmount
=
item
.
lossAssessmentAmount
?
(
item
.
lossAssessmentAmount
/
100
).
toFixed
(
2
)
:
item
.
lossAssessmentAmount
item
.
lossTypeList
=
[]
if
(
item
.
serviceItemCode
==
'SC0006'
&&
item
.
lossType
)
{
...
...
src/views/claims/order.vue
View file @
29650a7
...
...
@@ -9,6 +9,14 @@
<!-- 维修信息 -->
<repair
ref=
"repairRef"
@
changeObjectType=
"changeObjectType"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:serviceItemsList
.
sync=
"serviceItemsList"
:totalPrice
.
sync=
"totalPrice"
:accountForm
.
sync=
"accountForm"
></repair>
<material
ref=
"materialRef"
:pageType=
"pageType"
:materialForm
.
sync=
"materialForm"
></material>
<!-- 查看和待核赔 2个页面查看上传加装件信息 v-if="pageType == 2 || pageType == 6" -->
<div
v-if=
"refitInfo.addOnsFlag == 1 && (pageType == 2 || pageType == 6)"
class=
"refit-info"
>
<div
class=
"title"
>
上传加改装件凭证
</div>
<div
class=
"refit-img"
v-for=
"(item, index) in refitInfo.attachmentList || []"
:key=
"index"
>
<label
class=
"label"
for=
""
>
{{
item
.
attachmentCode
==
'QS0001'
?
'发票或收据'
:
'加改装部位照片'
}}
:
</label>
<el-image
class=
"img"
:preview-src-list=
"[item.attachmentFile]"
:src=
"item.attachmentFile"
></el-image>
</div>
</div>
<wraning
:isWatchOrder=
"isWatchOrder"
@
getWarningData=
"getWarningData"
v-if=
"accountMatchResultList.length && detailOrderStatus != 2"
:list=
"accountMatchResultList"
></wraning>
<div
v-if=
"pageType != 2"
class=
"page-btm-btn"
>
<template
v-if=
"detailOrderStatus
< 19
||
detailOrderStatus =
=
22
||
detailOrderStatus =
=
25
"
>
...
...
@@ -162,7 +170,8 @@ export default {
2
:
'资料不清晰'
},
reasonForFailureCode
:
1
,
isWatchOrder
:
false
isWatchOrder
:
false
,
refitInfo
:
{}
}
},
created
()
{
...
...
@@ -370,6 +379,8 @@ export default {
//详情
getDetailById
()
{
this
.
$apis
.
claims
.
getClaimsDetail
({
id
:
this
.
routeInfo
.
orderId
}).
then
(
res
=>
{
console
.
log
(
res
,
'getDetailById'
)
this
.
refitInfo
=
res
?.
equityOrderDetail
||
{}
// 以下是report数据
for
(
let
key
in
this
.
editForm
)
{
this
.
editForm
[
key
]
=
res
[
key
]
...
...
@@ -637,6 +648,40 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.title
{
padding
:
0
20px
;
font-size
:
16px
;
font-weight
:
bold
;
height
:
58px
;
line-height
:
58px
;
border-bottom
:
1px
solid
#d8d8d8
;
margin
:
0
0
;
color
:
#333
;
}
.refit-info
{
margin-top
:
20px
;
background-color
:
#ffffff
;
.refit-img
{
padding
:
20px
;
display
:
inline-block
;
}
.label
{
vertical-align
:
top
;
width
:
154px
;
height
:
20px
;
display
:
inline-block
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#666666
;
text-align
:
right
;
line-height
:
20px
;
}
.img
{
height
:
104px
;
width
:
104px
;
border-radius
:
4px
;
}
}
.fail_status_widget
{
width
:
100%
;
height
:
40px
;
...
...
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