Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 11882719
authored
Feb 23, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
缺陷修复-加装日期去掉时期
1 parent
2ee7d7a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
src/views/ghPreSale/editEquity.vue
src/views/ghPreSale/equityList.vue
src/views/ghPreSale/editEquity.vue
View file @
1188271
...
...
@@ -88,7 +88,8 @@
<el-button
size=
"small"
class=
"reset-btn"
v-show=
"routeInfo.addOrEdit == '1'"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
v-show=
"!['3', '5'].includes(routeInfo.addOrEdit)"
class=
"plain"
@
click=
"handleDraft"
>
草稿
</el-button>
<el-button
size=
"small"
v-show=
"routeInfo.addOrEdit != '5'"
type=
"primary"
@
click=
"handleConfirm"
>
{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleCancel"
>
返回
</el-button>
<el-button
v-if=
"routeInfo.addOrEdit != 5"
size=
"small"
@
click=
"handleCancel"
>
返回
</el-button>
<el-button
v-else
size=
"small"
type=
"primary"
@
click=
"handleCancel"
>
返回
</el-button>
</div>
<qrCode
:bottom=
"320"
:codeUrl=
"qrcodUrl"
phoneTitle=
"提单及服务咨询"
phone=
"189 3890 7441"
></qrCode>
...
...
@@ -656,7 +657,7 @@ export default {
}
if
(
this
.
editForm
.
attributeList
&&
this
.
editForm
.
attributeList
.
length
)
{
var
idxPrice
=
this
.
editForm
.
attributeList
.
findIndex
(
i
=>
i
.
attributeName
==
'additional_price'
)
this
.
editForm
.
attributeList
[
idxPrice
].
attributeValue
=
this
.
editForm
.
attributeList
[
idxPrice
].
attributeValue
?
(
this
.
editForm
.
attributeList
[
idxPrice
].
attributeValue
/
100
).
toFixed
(
2
)
:
''
this
.
editForm
.
attributeList
[
idxPrice
].
attributeValue
=
this
.
editForm
.
attributeList
[
idxPrice
].
attributeValue
?
this
.
editForm
.
attributeList
[
idxPrice
].
attributeValue
/
100
:
''
}
this
.
editForm
.
vehicle
.
billingDate
=
this
.
editForm
.
vehicle
.
billingDate
?
new
Date
(
this
.
editForm
.
vehicle
.
billingDate
)
:
''
this
.
editForm
.
effectiveDate
=
this
.
editForm
.
effectiveDate
?
new
Date
(
this
.
editForm
.
effectiveDate
)
:
''
...
...
@@ -941,8 +942,17 @@ export default {
if
(
targetItem
)
{
targetItem
.
groupAttributeList
.
forEach
(
item
=>
{
if
(
item
.
attributeList
.
length
==
1
)
{
let
targetAttributeValue
=
''
if
(
item
.
attributeList
[
0
].
attributeGroup
==
'additional_price'
){
targetAttributeValue
=
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
]
?
(
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
]
*
100
).
toFixed
(
0
)
:
''
}
else
if
(
item
.
attributeList
[
0
].
attributeGroup
==
'additional_date'
){
targetAttributeValue
=
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
]
?
utils
.
dateFormat
(
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
])
:
''
}
else
{
targetAttributeValue
=
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
]
?
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
]
:
''
}
params
.
attributeList
.
push
({
attributeValue
:
item
.
attributeList
[
0
].
attributeGroup
==
'additional_price'
?
(
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
]
?
(
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
]
*
100
).
toFixed
(
0
)
:
''
)
:
this
.
editFormPro
[
item
.
attributeList
[
0
].
attributeGroup
],
// attributeValue: item.attributeList[0].attributeGroup == 'additional_price' ? (this.editFormPro[item.attributeList[0].attributeGroup] ? (this.editFormPro[item.attributeList[0].attributeGroup] * 100).toFixed(0) : '') : this.editFormPro[item.attributeList[0].attributeGroup],
targetAttributeValue
:
targetAttributeValue
,
attributeGroup
:
item
.
attributeList
[
0
].
attributeGroup
,
attributeName
:
item
.
attributeList
[
0
].
attributeName
,
sort
:
0
...
...
src/views/ghPreSale/equityList.vue
View file @
1188271
...
...
@@ -568,6 +568,7 @@ export default {
message
:
res
.
code
==
'0'
?
'删除成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
this
.
$refs
.
file
.
value
=
null
;
})
},
getCountNoData
()
{
...
...
@@ -758,6 +759,7 @@ export default {
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
this
.
$refs
.
file
.
value
=
null
;
if
(
res
.
code
==
'0'
)
{
this
.
uploadForm
[
targetItem
.
name
].
push
(
imgUrl
)
//this.$set(this.uploadForm, targetItem.name, imgUrl)
...
...
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