Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
7f023b82
Commit
7f023b82
authored
Aug 31, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 成本金额调整
parent
feeb1e19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
form.js
src/views/card/form.js
+3
-3
No files found.
src/views/card/form.js
View file @
7f023b82
...
...
@@ -1200,19 +1200,19 @@ export default {
card
.
costValueProportion
=
this
.
form
.
costValueProportion
;
//成本比例
card
.
costValueProportionFlag
=
this
.
form
.
costValueProportionFlag
;
if
(
card
.
costValueType
==
0
)
{
card
.
costValue
=
typeof
this
.
form
.
costValueProportion
==
'number'
&&
typeof
this
.
form
.
cardDenomination
==
'number'
?
this
.
form
.
costValueProportion
*
this
.
form
.
cardDenomination
:
0
;
//成本
card
.
costValue
=
typeof
this
.
form
.
costValueProportion
==
'number'
&&
typeof
this
.
form
.
cardDenomination
==
'number'
?
(
this
.
form
.
costValueProportion
*
this
.
form
.
cardDenomination
)
/
100
:
0
;
//成本
card
.
costStoreList
=
[];
}
if
(
card
.
costValueType
==
1
)
{
card
.
costValue
=
undefined
;
if
(
this
.
isEdit
)
{
card
.
costStoreList
=
this
.
selectedStoreList
.
map
(
el
=>
{
el
.
costValue
=
typeof
this
.
form
.
cardDenomination
==
'number'
&&
typeof
el
.
costValueProportion
==
'number'
?
this
.
form
.
cardDenomination
*
el
.
costValueProportion
:
0
;
el
.
costValue
=
typeof
this
.
form
.
cardDenomination
==
'number'
&&
typeof
el
.
costValueProportion
==
'number'
?
(
this
.
form
.
cardDenomination
*
el
.
costValueProportion
)
/
100
:
0
;
return
el
;
});
}
else
if
(
this
.
isAdd
||
this
.
isCopy
)
{
card
.
costStoreList
=
this
.
originStoreList
.
map
(
el
=>
{
el
.
costValue
=
typeof
this
.
form
.
cardDenomination
==
'number'
&&
typeof
el
.
costValueProportion
==
'number'
?
this
.
form
.
cardDenomination
*
el
.
costValueProportion
:
0
;
el
.
costValue
=
typeof
this
.
form
.
cardDenomination
==
'number'
&&
typeof
el
.
costValueProportion
==
'number'
?
(
this
.
form
.
cardDenomination
*
el
.
costValueProportion
)
/
100
:
0
;
return
el
;
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment