Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-commodity
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 b736e7ac
authored
May 31, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
0576db63
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
src/views/commodity/editCommodity.vue
src/views/commodity/editCommodity.vue
View file @
b736e7a
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
},
},
// 售价
// 售价
'editForm.sellPrice'
(
newValue
,
oldValue
)
{
'editForm.sellPrice'
(
newValue
,
oldValue
)
{
this
.
editForm
.
sellPrice
=
limitPrice
(
newValue
,
oldValue
,
6
,
2
,
)
this
.
editForm
.
sellPrice
=
limitPrice
(
newValue
,
oldValue
,
6
,
2
)
},
},
// 最低售价
// 最低售价
'editForm.minSellPrice'
(
newValue
,
oldValue
)
{
'editForm.minSellPrice'
(
newValue
,
oldValue
)
{
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
},
},
// 赠送成本
// 赠送成本
'editForm.giftCost'
(
newValue
,
oldValue
)
{
'editForm.giftCost'
(
newValue
,
oldValue
)
{
this
.
editForm
.
giftCost
=
limitPrice
(
newValue
,
oldValue
,
6
,
2
)
?
limitPrice
(
newValue
,
oldValue
,
6
,
2
):
this
.
editForm
.
giftCost
this
.
editForm
.
giftCost
=
limitPrice
(
newValue
,
oldValue
,
6
,
2
)
?
limitPrice
(
newValue
,
oldValue
,
6
,
2
)
:
this
.
editForm
.
giftCost
},
},
// 产品成本
// 产品成本
'editForm.productCost'
(
newValue
,
oldValue
)
{
'editForm.productCost'
(
newValue
,
oldValue
)
{
...
@@ -148,7 +148,7 @@ export default {
...
@@ -148,7 +148,7 @@ export default {
methods
:
{
methods
:
{
keyDown
()
{
keyDown
()
{
document
.
onkeydown
=
function
()
{
document
.
onkeydown
=
function
()
{
var
evt
=
window
.
event
||
arguments
[
0
]
var
evt
=
window
.
event
||
arguments
[
0
]
if
(
evt
&&
evt
.
keyCode
==
13
)
{
if
(
evt
&&
evt
.
keyCode
==
13
)
{
if
(
typeof
evt
.
cancelBubble
!=
'undefined'
)
evt
.
cancelBubble
=
true
if
(
typeof
evt
.
cancelBubble
!=
'undefined'
)
evt
.
cancelBubble
=
true
...
@@ -196,7 +196,7 @@ export default {
...
@@ -196,7 +196,7 @@ export default {
},
},
// 产品类型改变
// 产品类型改变
handleCheckChange
(
val
,
attr
)
{
handleCheckChange
(
val
,
attr
)
{
let
baseAttrList
=
[
'赠送成本/元'
,
]
let
baseAttrList
=
[
'赠送成本/元'
]
let
upAttrList
=
[
'售价/元'
,
'最低售价/元'
,
'产品成本/元'
]
let
upAttrList
=
[
'售价/元'
,
'最低售价/元'
,
'产品成本/元'
]
switch
(
attr
)
{
switch
(
attr
)
{
case
'baseProductFlag'
:
case
'baseProductFlag'
:
...
@@ -215,7 +215,7 @@ export default {
...
@@ -215,7 +215,7 @@ export default {
minSellPrice
:
''
,
minSellPrice
:
''
,
productCost
:
''
,
productCost
:
''
,
warningValue
:
''
,
warningValue
:
''
,
warningValueMax
:
''
,
warningValueMax
:
''
,
giftCost
:
''
,
giftCost
:
''
,
warrantyPeriod
:
''
warrantyPeriod
:
''
}
}
...
@@ -249,8 +249,8 @@ export default {
...
@@ -249,8 +249,8 @@ export default {
type
:
'warning'
,
type
:
'warning'
,
callback
:
action
=>
{
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
var
idx
=
this
.
editForm
.
merchantList
.
findIndex
(
item
=>
item
.
merchant
No
==
obj
.
scope
.
merchantNo
)
var
idx
=
this
.
editForm
.
merchantList
.
findIndex
(
item
=>
item
.
merchant
Id
==
obj
.
scope
.
merchantId
)
this
.
editForm
.
merchantList
.
splice
(
idx
,
1
)
this
.
editForm
.
merchantList
.
splice
(
idx
--
,
1
)
}
}
}
}
})
})
...
@@ -292,7 +292,7 @@ export default {
...
@@ -292,7 +292,7 @@ export default {
.
then
(()
=>
{
.
then
(()
=>
{
this
.
cancelJump
()
this
.
cancelJump
()
})
})
.
catch
(()
=>
{
})
.
catch
(()
=>
{})
}
else
{
}
else
{
this
.
cancelJump
()
this
.
cancelJump
()
}
}
...
...
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