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 79f56e26
authored
Mar 05, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.25.0' into 'master'
2月份需求上线合并 See merge request
!54
2 parents
396c2b80
b944613f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
241 additions
and
18 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 @
79f56e2
...
@@ -63,7 +63,8 @@
...
@@ -63,7 +63,8 @@
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<p
class=
"photo-top-tips"
>
{{
item
.
topTips
}}
</p>
<div
v-if=
"!item.isDisabled"
:style=
"
{ width: item.width || defaultWidth }">
<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
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>
<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-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)"
/>
<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 {
...
@@ -134,7 +135,7 @@ export default {
},
},
props
:
{
props
:
{
formDisable
:{
formDisable
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
...
@@ -366,15 +367,17 @@ export default {
...
@@ -366,15 +367,17 @@ export default {
color
:
#999999
;
color
:
#999999
;
}
}
.glsx-combi-form
.img-w-h
{
.glsx-combi-form
.img-w-h
{
width
:
80px
;
width
:
104px
;
height
:
80px
;
height
:
104px
;
box-sizing
:
border-box
;
}
}
.glsx-combi-form
.activity-img
{
.glsx-combi-form
.activity-img
{
position
:
relative
;
position
:
relative
;
color
:
#999999
;
color
:
#999999
;
background
-color
:
#f7f7f7
;
background
:
#0000000
a
;
border
:
1px
dotted
#
d9d9d9
;
border
:
1px
dotted
#
00000026
;
cursor
:
pointer
;
cursor
:
pointer
;
border-radius
:
4px
;
}
}
.glsx-combi-form
.activity-Input
{
.glsx-combi-form
.activity-Input
{
...
@@ -390,12 +393,21 @@ export default {
...
@@ -390,12 +393,21 @@ export default {
.activity-img
.add
{
.activity-img
.add
{
position
:
absolute
;
position
:
absolute
;
top
:
4
0%
;
top
:
3
0%
;
font-size
:
4
0px
;
font-size
:
3
0px
;
left
:
50%
;
left
:
50%
;
transform
:
translate3d
(
-50%
,
-50%
,
0
);
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
{
.activity-img
.number
{
position
:
absolute
;
position
:
absolute
;
bottom
:
0
;
bottom
:
0
;
...
@@ -407,8 +419,9 @@ export default {
...
@@ -407,8 +419,9 @@ export default {
display
:
none
;
display
:
none
;
height
:
100%
;
height
:
100%
;
position
:
absolute
;
position
:
absolute
;
width
:
80px
;
width
:
104px
;
height
:
80px
;
height
:
104px
;
border-radius
:
4px
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
z-index
:
2
;
z-index
:
2
;
...
...
src/views/beforeSale/editEquity.vue
View file @
79f56e2
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
<td
class=
"text"
v-if=
"n == 2"
>
左后胎
</td>
<td
class=
"text"
v-if=
"n == 2"
>
左后胎
</td>
<td
class=
"text"
v-if=
"n == 3"
>
右后胎
</td>
<td
class=
"text"
v-if=
"n == 3"
>
右后胎
</td>
<td
v-for=
"(i, j) in tdo_list"
:key=
"j"
>
<td
v-for=
"(i, j) in tdo_list"
:key=
"j"
>
<el-input
:class=
"
{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="disabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="20">
<el-input
v-if=
"TDOTableData[item.packageCode] && TDOTableData[item.packageCode][i.attributeGroup]"
:class=
"
{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="disabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="20">
<el-popover
v-show=
"!TDOTableData[item.packageCode][i.attributeGroup][n]"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"i.label + '是必填项'"
>
<el-popover
v-show=
"!TDOTableData[item.packageCode][i.attributeGroup][n]"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"i.label + '是必填项'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-popover>
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
<td
class=
"text"
v-if=
"n == 2"
>
左后胎
</td>
<td
class=
"text"
v-if=
"n == 2"
>
左后胎
</td>
<td
class=
"text"
v-if=
"n == 3"
>
右后胎
</td>
<td
class=
"text"
v-if=
"n == 3"
>
右后胎
</td>
<td
v-for=
"(i, j) in tdo_list"
:key=
"j"
>
<td
v-for=
"(i, j) in tdo_list"
:key=
"j"
>
<el-input
:class=
"
{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="disabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="20">
<el-input
v-if=
"TDOTableData[item.packageCode] && TDOTableData[item.packageCode][i.attributeGroup]"
:class=
"
{ 'border-red': !TDOTableData[item.packageCode][i.attributeGroup][n] }" :disabled="disabled" placeholder="请输入" @input="inputTdoVal(item, n)" v-model="TDOTableData[item.packageCode][i.attributeGroup][n]" :maxlength="20">
<el-popover
v-show=
"!TDOTableData[item.packageCode][i.attributeGroup][n]"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"i.label + '是必填项'"
>
<el-popover
v-show=
"!TDOTableData[item.packageCode][i.attributeGroup][n]"
slot=
"suffix"
placement=
"top"
title=
""
width=
"90"
trigger=
"hover"
:content=
"i.label + '是必填项'"
>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
<i
class=
"el-icon-warning color-red"
slot=
"reference"
></i>
</el-popover>
</el-popover>
...
@@ -233,6 +233,12 @@
...
@@ -233,6 +233,12 @@
<uploadInfo
:imgsQuery=
"attachmentListQuery"
:disabled=
"disabled"
:cardImg=
"cardImg"
:uploadMessage=
"uploadMessage"
@
getAttachmentList=
"getAttachmentList"
></uploadInfo>
<uploadInfo
:imgsQuery=
"attachmentListQuery"
:disabled=
"disabled"
:cardImg=
"cardImg"
:uploadMessage=
"uploadMessage"
@
getAttachmentList=
"getAttachmentList"
></uploadInfo>
</
template
>
</
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"
>
<div
class=
"container m-t-10"
>
<p
class=
"edit-title"
>
其他信息
</p>
<p
class=
"edit-title"
>
其他信息
</p>
...
@@ -249,7 +255,7 @@
...
@@ -249,7 +255,7 @@
<div
class=
"page-btm-btn"
>
<div
class=
"page-btm-btn"
>
<el-button
v-if=
"![3, 5].includes(routeInfo.addOrEdit)"
class=
"custom_black"
@
click=
"handleReset"
>
重置
</el-button>
<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
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>
</div>
<!-- 二维码 -->
<!-- 二维码 -->
...
@@ -571,6 +577,96 @@ export default {
...
@@ -571,6 +577,96 @@ export default {
tire
:
{},
tire
:
{},
glass
:
{}
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
:
{
editRuleOther
:
{
deviceNo
:
[{
required
:
false
,
message
:
'请输入设备号'
,
trigger
:
'change'
}],
deviceNo
:
[{
required
:
false
,
message
:
'请输入设备号'
,
trigger
:
'change'
}],
...
@@ -826,6 +922,16 @@ export default {
...
@@ -826,6 +922,16 @@ export default {
},
},
watch
:
{
watch
:
{
'refitFormObj.addOnsFlag'
:
{
handler
(
newValue
,
oldValue
)
{
this
.
refitFormData
.
forEach
(
item
=>
{
if
(
item
.
type
==
'upload'
)
{
item
.
isHide
=
!
newValue
}
})
},
immediate
:
true
},
'editForm.vehicle.invoicePrice'
(
newValue
,
oldValue
)
{
'editForm.vehicle.invoicePrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
vehicle
.
invoicePrice
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
,
0
,
2000000
)
this
.
editForm
.
vehicle
.
invoicePrice
=
limitPrice
(
newValue
,
oldValue
,
7
,
2
,
0
,
2000000
)
if
(
this
.
currentVaildItem
)
{
if
(
this
.
currentVaildItem
)
{
...
@@ -1048,6 +1154,8 @@ export default {
...
@@ -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
)
{
changeRaido
(
e
,
item
)
{
if
(
e
)
{
if
(
e
)
{
...
@@ -1090,6 +1198,8 @@ export default {
...
@@ -1090,6 +1198,8 @@ export default {
this
.
showUploadInfo
=
false
this
.
showUploadInfo
=
false
}
}
}
}
let
hasRefitFlagList
=
this
.
allProdList
.
filter
(
item
=>
this
.
autoPackageCodeList
.
includes
(
item
.
packageCode
))
this
.
refitFormObj
.
customFlag
=
!!
hasRefitFlagList
?.
find
(
item
=>
item
.
qsFlag
)
},
},
// 获取店铺信息
// 获取店铺信息
getStoreInfo
()
{
getStoreInfo
()
{
...
@@ -1491,6 +1601,19 @@ export default {
...
@@ -1491,6 +1601,19 @@ export default {
},
},
getInfo
(
productArrData
)
{
getInfo
(
productArrData
)
{
this
.
$apis
.
beforeSale
.
getEquityApi
({
contractNo
:
this
.
routeInfo
.
contractNo
,
repeatedFlag
:
this
.
routeInfo
.
addOrEdit
==
4
?
1
:
0
}).
then
(
res
=>
{
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
=
{
this
.
editForm
=
{
...
res
...
res
}
}
...
@@ -2071,6 +2194,26 @@ export default {
...
@@ -2071,6 +2194,26 @@ export default {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
submit
=
false
this
.
submit
=
false
},
3000
)
},
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
.
$apis
.
beforeSale
.
updateEquityApi
(
params
).
then
(
res
=>
{
this
.
submit
=
false
this
.
submit
=
false
...
@@ -2138,6 +2281,17 @@ export default {
...
@@ -2138,6 +2281,17 @@ export default {
}
}
return
isEmpty
return
isEmpty
},
},
checkRefitInfo
()
{
if
(
this
.
$refs
?.
refitRef
?.
$refs
?.
formRef
)
{
this
.
$refs
?.
refitRef
?.
$refs
.
formRef
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
handleConfirm
()
}
})
}
else
{
this
.
handleConfirm
()
}
},
handleConfirm
()
{
handleConfirm
()
{
try
{
try
{
this
.
vaildGlassParams
()
this
.
vaildGlassParams
()
...
@@ -2223,6 +2377,14 @@ export default {
...
@@ -2223,6 +2377,14 @@ export default {
}
}
},
},
handleReset
()
{
handleReset
()
{
this
.
refitFormObj
=
{
autoFlag
:
0
,
customFlag
:
0
,
showFlag
:
false
,
addOnsFlag
:
1
,
invoice
:
''
,
refitImg
:
''
}
this
.
editForm
=
{
this
.
editForm
=
{
packageCode
:
''
,
packageCode
:
''
,
suggestedSellingPrice
:
''
,
suggestedSellingPrice
:
''
,
...
...
src/views/claims/ghOrder.vue
View file @
79f56e2
...
@@ -285,7 +285,7 @@ export default {
...
@@ -285,7 +285,7 @@ export default {
// 服务list
// 服务list
res
.
itemsList
.
map
(
item
=>
{
res
.
itemsList
.
map
(
item
=>
{
item
.
applyAmount
=
item
.
applyAmount
?
(
item
.
applyAmount
/
100
).
toFixed
(
2
)
:
item
.
applyAmount
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
.
lossAssessmentAmount
=
item
.
lossAssessmentAmount
?
(
item
.
lossAssessmentAmount
/
100
).
toFixed
(
2
)
:
item
.
lossAssessmentAmount
item
.
lossTypeList
=
[]
item
.
lossTypeList
=
[]
if
(
item
.
serviceItemCode
==
'SC0006'
&&
item
.
lossType
)
{
if
(
item
.
serviceItemCode
==
'SC0006'
&&
item
.
lossType
)
{
...
@@ -861,10 +861,13 @@ export default {
...
@@ -861,10 +861,13 @@ export default {
if
(
lastStr
===
'.'
)
{
if
(
lastStr
===
'.'
)
{
this
.
$set
(
this
.
itemList
[
id
],
type
,
e
.
target
.
value
.
substr
(
0
,
len
-
1
))
this
.
$set
(
this
.
itemList
[
id
],
type
,
e
.
target
.
value
.
substr
(
0
,
len
-
1
))
}
}
const
minPrice
=
1
if
(
type
==
'applyAmount'
){
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
const
minPrice
=
1
this
.
$set
(
this
.
itemList
[
id
],
type
,
1
)
if
(
Number
(
e
.
target
.
value
)
<
minPrice
)
{
this
.
$set
(
this
.
itemList
[
id
],
type
,
1
)
}
}
}
const
maxPrice
=
200000
const
maxPrice
=
200000
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
if
(
Number
(
e
.
target
.
value
)
>
maxPrice
)
{
this
.
$set
(
this
.
itemList
[
id
],
type
,
maxPrice
)
this
.
$set
(
this
.
itemList
[
id
],
type
,
maxPrice
)
...
...
src/views/claims/order.vue
View file @
79f56e2
...
@@ -9,6 +9,14 @@
...
@@ -9,6 +9,14 @@
<!-- 维修信息 -->
<!-- 维修信息 -->
<repair
ref=
"repairRef"
@
changeObjectType=
"changeObjectType"
:isGH=
"routeInfo.isGH"
:pageType=
"pageType"
:serviceItemsList
.
sync=
"serviceItemsList"
:totalPrice
.
sync=
"totalPrice"
:accountForm
.
sync=
"accountForm"
></repair>
<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>
<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>
<wraning
:isWatchOrder=
"isWatchOrder"
@
getWarningData=
"getWarningData"
v-if=
"accountMatchResultList.length && detailOrderStatus != 2"
:list=
"accountMatchResultList"
></wraning>
<div
v-if=
"pageType != 2"
class=
"page-btm-btn"
>
<div
v-if=
"pageType != 2"
class=
"page-btm-btn"
>
<template
v-if=
"detailOrderStatus
< 19
||
detailOrderStatus =
=
22
||
detailOrderStatus =
=
25
"
>
<template
v-if=
"detailOrderStatus
< 19
||
detailOrderStatus =
=
22
||
detailOrderStatus =
=
25
"
>
...
@@ -162,7 +170,8 @@ export default {
...
@@ -162,7 +170,8 @@ export default {
2
:
'资料不清晰'
2
:
'资料不清晰'
},
},
reasonForFailureCode
:
1
,
reasonForFailureCode
:
1
,
isWatchOrder
:
false
isWatchOrder
:
false
,
refitInfo
:
{}
}
}
},
},
created
()
{
created
()
{
...
@@ -370,6 +379,8 @@ export default {
...
@@ -370,6 +379,8 @@ export default {
//详情
//详情
getDetailById
()
{
getDetailById
()
{
this
.
$apis
.
claims
.
getClaimsDetail
({
id
:
this
.
routeInfo
.
orderId
}).
then
(
res
=>
{
this
.
$apis
.
claims
.
getClaimsDetail
({
id
:
this
.
routeInfo
.
orderId
}).
then
(
res
=>
{
console
.
log
(
res
,
'getDetailById'
)
this
.
refitInfo
=
res
?.
equityOrderDetail
||
{}
// 以下是report数据
// 以下是report数据
for
(
let
key
in
this
.
editForm
)
{
for
(
let
key
in
this
.
editForm
)
{
this
.
editForm
[
key
]
=
res
[
key
]
this
.
editForm
[
key
]
=
res
[
key
]
...
@@ -637,6 +648,40 @@ export default {
...
@@ -637,6 +648,40 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
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
{
.fail_status_widget
{
width
:
100%
;
width
:
100%
;
height
:
40px
;
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