Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 58b2f1c1
authored
Jan 29, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首页;编辑商品-升级商品-阳光激励费
1 parent
407e3e66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
src/components/d2-form/relateProDialog.vue
src/views/index/index.vue
src/components/d2-form/relateProDialog.vue
View file @
58b2f1c
...
...
@@ -226,7 +226,7 @@
<i
slot=
"suffix"
class=
"input-suffix"
>
元
</i>
>
%
</i>
</el-input>
</el-form-item>
</div>
...
...
@@ -387,7 +387,7 @@ export default {
this
.
oldVal
.
retailPrice
=
this
.
proInfo
.
retailPrice
},
handleIncentiveCost
(
newVal
)
{
this
.
proInfo
.
incentiveCost
=
limitPrice
(
newVal
,
this
.
oldVal
.
incentiveCost
,
6
,
2
)
this
.
proInfo
.
incentiveCost
=
limitPrice
(
newVal
,
this
.
oldVal
.
incentiveCost
,
3
,
0
,
0
,
100
)
this
.
oldVal
.
incentiveCost
=
this
.
proInfo
.
incentiveCost
}
}
...
...
src/views/index/index.vue
View file @
58b2f1c
...
...
@@ -27,7 +27,7 @@
<div
class=
"top_card"
>
<div
class=
"top_card_title"
>
今日待预约
</div>
<div
class=
"top_card_main"
>
<span
class=
"red"
>
该功能暂未开发
</span>
<span
class=
"red"
>
待上线
</span>
<!--
<span
class=
"top_card_main_count top_card_primary"
>
{{
todayInviteCount
}}
</span>
<span
class=
"top_card_main_unit"
>
(人)
</span>
-->
</div>
...
...
@@ -421,7 +421,7 @@ export default {
getCustomerTransList
({
yqMerchantId
:
this
.
id
,
beginDateStr
:
moment
().
startOf
(
'month'
).
format
(
'YYYY-MM-DD'
),
endDateStr
:
moment
().
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
,
endDateStr
:
moment
().
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
}).
then
((
res
)
=>
{
const
data
=
res
...
...
@@ -443,7 +443,7 @@ export default {
color: '#2B9AFF',
}) */
this
.
showChartLoading
(
this
.
funnelChart
)
getTransferData
({
yqMerchantId
:
this
.
id
}).
then
((
res
)
=>
{
getTransferData
({
yqMerchantId
:
this
.
id
}).
then
((
res
)
=>
{
funnelOption
.
series
[
0
].
data
[
0
].
tooltipValue
=
res
.
totalCustomerNums
funnelOption
.
series
[
0
].
data
[
1
].
tooltipValue
=
res
.
totalToShop
funnelOption
.
series
[
0
].
data
[
2
].
tooltipValue
=
res
.
totalUpgrade
...
...
@@ -486,19 +486,20 @@ export default {
...(
this
.
getDateFormatByType
(
'thisWeek'
))
}
getOrderProductData
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
getOrderProductData
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
const
data
=
res
const
colors
=
[
'rgba(0,110,214,0.4)'
,
'rgba(0,110,214,0.6)'
,
'rgba(0,110,214,1)'
]
let
idObj
=
{}
for
(
let
key
in
data
)
{
let
index
=
moment
(
key
).
format
(
'E'
)
-
1
let
list
=
data
[
key
]
var
idObj
=
{}
for
(
var
key
in
data
)
{
var
index
=
moment
(
key
).
format
(
'E'
)
-
1
var
list
=
data
[
key
]
list
.
sort
((
a
,
b
)
=>
{
return
b
.
goodsTotal
-
a
.
goodsTotal
})
list
.
forEach
((
item
,
i
)
=>
{
if
(
!
(
item
.
id
in
idObj
))
{
idObj
[
item
.
id
]
=
{
...
...
@@ -511,12 +512,12 @@ export default {
})
}
let
seriesArr
=
[]
var
seriesArr
=
[]
for
(
const
key
in
idObj
)
{
seriesArr
.
push
({
name
:
idObj
[
key
].
name
,
type
:
'bar'
,
//stack: '总量',
//
stack: '总量',
barGap
:
'-100%'
,
label
:
{
show
:
false
,
...
...
@@ -529,11 +530,11 @@ export default {
data
:
idObj
[
key
].
data
})
}
this
.
orderProductChart
.
clear
()
orderProductOption
.
series
=
seriesArr
this
.
orderProductChart
.
setOption
(
orderProductOption
)
this
.
hideChartLoading
(
this
.
orderProductChart
)
})
},
...
...
@@ -545,7 +546,7 @@ export default {
}).
then
((
res
)
=>
{
const
data
=
res
//incomeFlowOption.xAxis.data = data.map((item) => item.month)
//
incomeFlowOption.xAxis.data = data.map((item) => item.month)
incomeFlowOption
.
series
[
0
].
data
=
data
.
map
((
item
)
=>
item
.
totalIncomeMoney
)
// incomeFlowOption.series[1].data = data.map((item) => item.totalCost)
this
.
incomeFlowChart
.
setOption
(
incomeFlowOption
)
...
...
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