Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 f8b46852
authored
Aug 03, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
ac640028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
src/views/productStore/index.vue
src/views/productStore/index.vue
View file @
f8b4685
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"table-popover-img"
:src=
"scope.scope.goodsImage"
/>
...
@@ -39,7 +38,6 @@
...
@@ -39,7 +38,6 @@
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
shareDialog
from
'../productGroup/components/shareDialog'
import
shareDialog
from
'../productGroup/components/shareDialog'
import
{
truncate
}
from
'fs'
export
default
{
export
default
{
name
:
'productGroup'
,
name
:
'productGroup'
,
data
()
{
data
()
{
...
@@ -194,7 +192,7 @@ export default {
...
@@ -194,7 +192,7 @@ export default {
fn
:
'自建查看'
fn
:
'自建查看'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
goodsStatus
&&
(
row
.
goodsSource
==
1
||
row
.
goodsSource
==
3
||
row
.
goodsSource
==
4
)
return
row
.
goodsStatus
&&
(
row
.
goodsSource
==
1
||
row
.
goodsSource
==
3
||
row
.
goodsSource
==
4
)
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
3
,
row
)
click
:
row
=>
this
.
handleEdit
(
3
,
row
)
...
@@ -337,9 +335,10 @@ export default {
...
@@ -337,9 +335,10 @@ export default {
{
{
confId
:
'3'
,
confId
:
'3'
,
confName
:
'总部商品'
confName
:
'总部商品'
},{
},
confId
:
'4'
,
{
confName
:
'配置升级商品'
confId
:
'4'
,
confName
:
'配置升级商品'
}
}
]
]
}
}
...
@@ -349,8 +348,7 @@ export default {
...
@@ -349,8 +348,7 @@ export default {
components
:
{
components
:
{
shareDialog
shareDialog
},
},
created
()
{
created
()
{},
},
mounted
()
{
mounted
()
{
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
...
@@ -526,7 +524,7 @@ export default {
...
@@ -526,7 +524,7 @@ export default {
this
.
$refs
.
proGroupRef
.
tableHeightValues
=
''
this
.
$refs
.
proGroupRef
.
tableHeightValues
=
''
this
.
$refs
.
proGroupRef
.
data
.
forEach
(
item
=>
{
this
.
$refs
.
proGroupRef
.
data
.
forEach
(
item
=>
{
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
if
(
item
.
specificationDetailList
&&
item
.
specificationDetailList
.
length
>
1
)
{
if
(
item
.
specificationDetailList
&&
item
.
specificationDetailList
.
length
>
1
)
{
let
retailPriceList
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
specificationDetailList
))
let
retailPriceList
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
specificationDetailList
))
retailPriceList
.
sort
((
a
,
b
)
=>
{
retailPriceList
.
sort
((
a
,
b
)
=>
{
return
a
.
retailPrice
-
b
.
retailPrice
return
a
.
retailPrice
-
b
.
retailPrice
...
@@ -542,7 +540,7 @@ export default {
...
@@ -542,7 +540,7 @@ export default {
item
.
retailPrice
=
minRatilPrice
==
maxRatilPrice
?
minRatilPrice
.
toFixed
(
2
)
:
minRatilPrice
.
toFixed
(
2
)
+
'-'
+
maxRatilPrice
.
toFixed
(
2
)
item
.
retailPrice
=
minRatilPrice
==
maxRatilPrice
?
minRatilPrice
.
toFixed
(
2
)
:
minRatilPrice
.
toFixed
(
2
)
+
'-'
+
maxRatilPrice
.
toFixed
(
2
)
item
.
minRatilPrice
=
minRatilPrice
.
toFixed
(
2
)
item
.
minRatilPrice
=
minRatilPrice
.
toFixed
(
2
)
item
.
goodsStock
=
minStock
==
maxStock
?
minStock
:
minStock
+
'-'
+
maxStock
item
.
goodsStock
=
minStock
==
maxStock
?
minStock
:
minStock
+
'-'
+
maxStock
}
else
if
(
item
.
specificationDetailList
&&
item
.
specificationDetailList
.
length
==
1
)
{
}
else
if
(
item
.
specificationDetailList
&&
item
.
specificationDetailList
.
length
==
1
)
{
item
.
retailPrice
=
(
item
.
specificationDetailList
[
0
].
retailPrice
/
100
).
toFixed
(
2
)
item
.
retailPrice
=
(
item
.
specificationDetailList
[
0
].
retailPrice
/
100
).
toFixed
(
2
)
item
.
minRatilPrice
=
item
.
retailPrice
item
.
minRatilPrice
=
item
.
retailPrice
item
.
goodsStock
=
item
.
specificationDetailList
[
0
].
stock
item
.
goodsStock
=
item
.
specificationDetailList
[
0
].
stock
...
...
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