Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-tools
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 a83b3ab7
authored
Oct 31, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建商品
1 parent
e25e88e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
src/components/selectMutiProDialog/index.vue
src/components/selectMutiProDialog/indexForCoupon.vue
src/components/selectSingleProDialog/index.vue
src/components/selectMutiProDialog/index.vue
View file @
a83b3ab
...
@@ -141,8 +141,8 @@ export default {
...
@@ -141,8 +141,8 @@ export default {
groupOrStore
:
this
.
userInfo
.
accountLevel
==
4
?
2
:
1
,
groupOrStore
:
this
.
userInfo
.
accountLevel
==
4
?
2
:
1
,
$title
:
'新建商品'
$title
:
'新建商品'
}
}
this
.
$router
.
push
({
this
.
$router
.
history
({
path
:
'/productGroup/editProduct'
,
path
:
'/
store/
productGroup/editProduct'
,
query
:
params
query
:
params
})
})
return
true
return
true
...
...
src/components/selectMutiProDialog/indexForCoupon.vue
View file @
a83b3ab
...
@@ -99,7 +99,7 @@ export default {
...
@@ -99,7 +99,7 @@ export default {
this
.
fnCallBack
=
true
this
.
fnCallBack
=
true
// console.log(res)
// console.log(res)
this
.
productList
=
res
.
list
this
.
productList
=
res
.
list
this
.
productList
.
forEach
(
function
(
item
)
{
this
.
productList
.
forEach
(
function
(
item
)
{
item
.
retailPrice
=
(
item
.
retailPrice
/
100
).
toFixed
(
2
)
item
.
retailPrice
=
(
item
.
retailPrice
/
100
).
toFixed
(
2
)
})
})
this
.
recoverySelected
()
this
.
recoverySelected
()
...
@@ -119,8 +119,8 @@ export default {
...
@@ -119,8 +119,8 @@ export default {
groupOrStore
:
this
.
userInfo
.
accountLevel
==
4
?
2
:
1
,
groupOrStore
:
this
.
userInfo
.
accountLevel
==
4
?
2
:
1
,
$title
:
'新建商品'
$title
:
'新建商品'
}
}
this
.
$router
.
push
({
this
.
$router
.
history
({
path
:
'/productGroup/editProduct'
,
path
:
'/
store/
productGroup/editProduct'
,
query
:
params
query
:
params
})
})
return
true
return
true
...
...
src/components/selectSingleProDialog/index.vue
View file @
a83b3ab
...
@@ -44,11 +44,11 @@ export default {
...
@@ -44,11 +44,11 @@ export default {
},
},
selectedProInfo
:
{
selectedProInfo
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
},
},
propSearch
:
{
propSearch
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
}
default
:
()
=>
{}
}
}
},
},
...
@@ -74,13 +74,13 @@ export default {
...
@@ -74,13 +74,13 @@ export default {
// console.log(res)
// console.log(res)
this
.
fnCallBack
=
true
this
.
fnCallBack
=
true
this
.
productList
=
res
.
list
this
.
productList
=
res
.
list
this
.
productList
.
forEach
(
function
(
item
)
{
this
.
productList
.
forEach
(
function
(
item
)
{
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
if
(
item
.
specificationDetailList
.
length
>
1
)
{
if
(
item
.
specificationDetailList
.
length
>
1
)
{
let
retailPriceList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
let
retailPriceList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
return
a
.
retailPrice
-
b
.
retailPrice
return
a
.
retailPrice
-
b
.
retailPrice
})
})
let
stockeList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
let
stockeList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
return
a
.
stock
-
b
.
stock
return
a
.
stock
-
b
.
stock
})
})
let
minRatilPrice
=
retailPriceList
[
0
].
retailPrice
/
100
let
minRatilPrice
=
retailPriceList
[
0
].
retailPrice
/
100
...
@@ -108,8 +108,8 @@ export default {
...
@@ -108,8 +108,8 @@ export default {
groupOrStore
:
this
.
userInfo
.
accountLevel
==
4
?
2
:
1
,
groupOrStore
:
this
.
userInfo
.
accountLevel
==
4
?
2
:
1
,
$title
:
'新建商品'
$title
:
'新建商品'
}
}
this
.
$router
.
push
({
this
.
$router
.
history
({
path
:
'/productGroup/editProduct'
,
path
:
'/
store/
productGroup/editProduct'
,
query
:
params
query
:
params
})
})
return
true
return
true
...
...
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