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 65712fb9
authored
Jan 11, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
全局样式;编辑-未选图片;搜索样式;
1 parent
b8ad5763
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
146 additions
and
113 deletions
src/assets/style/theme/classic/setting.scss
src/assets/style/theme/theme-base.scss
src/components/d2-form/image/no-choice.png
src/components/d2-form/index.vue
src/components/d2-form/relateProDialog.vue
src/components/d2-search/index.vue
src/components/d2-table/index.vue
src/views/customer/customerList.vue
src/views/goods/editCommodity.vue
src/views/goods/product.vue
src/views/index/index.vue
src/views/orderManage/orderList.vue
src/assets/style/theme/classic/setting.scss
View file @
65712fb
...
@@ -5,7 +5,7 @@ $private-left-side-color:#0947C6;
...
@@ -5,7 +5,7 @@ $private-left-side-color:#0947C6;
// $private-menu-active-background-color:#154190;
// $private-menu-active-background-color:#154190;
$private-menu-active-background-color
:
#7EA8FF
;
$private-menu-active-background-color
:
#7EA8FF
;
$private-item-hover
:
rgba
(
#000
,.
05
);
$private-item-hover
:
rgba
(
#000
,.
05
);
$private-menu-text-color
:
#7F8FA4
;
$private-menu-text-color
:
rgba
(
#FFFFFF
,.
5
)
;
$active-i-color
:
#FFFFFF
;
$active-i-color
:
#FFFFFF
;
// 主题背景颜色
// 主题背景颜色
...
...
src/assets/style/theme/theme-base.scss
View file @
65712fb
...
@@ -94,7 +94,8 @@
...
@@ -94,7 +94,8 @@
bottom
:
0px
;
bottom
:
0px
;
left
:
0px
;
left
:
0px
;
right
:
0px
;
right
:
0px
;
background-color
:
#E7EAEC
;
// background-color: #E7EAEC;
background-color
:
#F0F2F5
;
}
}
.d2-theme-container-main-body
{
.d2-theme-container-main-body
{
position
:
relative
;
position
:
relative
;
...
@@ -245,10 +246,11 @@
...
@@ -245,10 +246,11 @@
// 主体部分分为多页面控制器 和主体
// 主体部分分为多页面控制器 和主体
.d2-theme-container-main-header
{
.d2-theme-container-main-header
{
height
:
40px
;
height
:
40px
;
margin
:
20px
16px
;
// margin: 20px 16px;
margin-bottom
:
20px
;
// 多页面控制器
// 多页面控制器
.d2-multiple-page-control-group
{
.d2-multiple-page-control-group
{
padding
:
5px
1
0
px
0px
;
padding
:
5px
1
6
px
0px
;
.d2-multiple-page-control-content
{
.d2-multiple-page-control-content
{
overflow
:
auto
;
overflow
:
auto
;
position
:
relative
;
position
:
relative
;
...
@@ -257,12 +259,17 @@
...
@@ -257,12 +259,17 @@
.el-tabs__header.is-top
{
.el-tabs__header.is-top
{
margin
:
0px
;
margin
:
0px
;
}
}
.el-tabs__header
{
border-bottom
:
none
;
}
.el-tabs__nav-wrap
{
.el-tabs__nav-wrap
{
margin-bottom
:
0
;
.el-tabs__nav-scroll
{
.el-tabs__nav-scroll
{
// padding-left: 20px;
// padding-left: 20px;
}
}
}
}
.el-tabs__nav-wrap.is-scrollable
{
.el-tabs__nav-wrap.is-scrollable
{
padding-left
:
0px
;
.el-tabs__nav-scroll
{
.el-tabs__nav-scroll
{
padding-left
:
0
;
padding-left
:
0
;
}
}
...
@@ -270,8 +277,9 @@
...
@@ -270,8 +277,9 @@
.el-tabs__nav
{
.el-tabs__nav
{
overflow
:
hidden
;
overflow
:
hidden
;
.el-tabs__item
{
.el-tabs__item
{
height
:
33px
;
height
:
34px
;
line-height
:
33px
;
line-height
:
34px
;
border-bottom
:
none
;
}
}
}
}
}
}
...
@@ -316,12 +324,14 @@
...
@@ -316,12 +324,14 @@
.d2-container-full__header
{
.d2-container-full__header
{
// padding: 10px 10px;
// padding: 10px 10px;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
border-radius
:
5px
;
}
}
.d2-container-full__body
{
.d2-container-full__body
{
// flex-grow: 1;
// flex-grow: 1;
// height: 100%;
// height: 100%;
// padding: 20px 20px;
// padding: 20px 20px;
// overflow: auto;
// overflow: auto;
border-radius
:
5px
;
position
:
relative
;
position
:
relative
;
.d2-container-content
{
.d2-container-content
{
padding
:
20px
40px
;
padding
:
20px
40px
;
...
...
src/components/d2-form/image/no-choice.png
0 → 100644
View file @
65712fb
7.45 KB
src/components/d2-form/index.vue
View file @
65712fb
...
@@ -48,8 +48,9 @@
...
@@ -48,8 +48,9 @@
/>
/>
<span
<span
v-show=
"!formData[i.headImg.attr]"
v-show=
"!formData[i.headImg.attr]"
class=
"commodity-img seat-img"
>
></span>
<img
class=
"commodity-img"
src=
"./image/no-choice.png"
/>
</span>
</span>
</span>
<div
:style=
"
{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
<div
:style=
"
{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
<div
<div
...
@@ -74,7 +75,9 @@
...
@@ -74,7 +75,9 @@
:disabled="item.isDisabled"
:disabled="item.isDisabled"
clearable
clearable
@input="item.handleInput"
@input="item.handleInput"
>
</el-input>
>
<i
slot=
"suffix"
class=
"item-unit"
>
{{
item
.
unit
}}
</i>
</el-input>
<!-- 选择框 -->
<!-- 选择框 -->
<el-select
<el-select
v-else-if=
"item.type === 'select'"
v-else-if=
"item.type === 'select'"
...
@@ -453,10 +456,10 @@
...
@@ -453,10 +456,10 @@
</
template
>
</
template
>
<span
v-else
>
{{item.name ? formData[item.name] : item.value}}
</span>
<span
v-else
>
{{item.name ? formData[item.name] : item.value}}
</span>
</el-form-item>
</el-form-item>
<span
<
!-- <
span
v-show="item.unit"
v-show="item.unit"
class="item-unit"
class="item-unit"
>
{{item.unit}}
</span>
>{{item.unit}}</span>
-->
<div
<div
v-show=
"item.tips"
v-show=
"item.tips"
class=
"item-tips"
class=
"item-tips"
...
@@ -949,7 +952,9 @@ export default {
...
@@ -949,7 +952,9 @@ export default {
text-align-last: justify;
text-align-last: justify;
} */
} */
.d2-form
.item-unit
{
.d2-form
.item-unit
{
margin-left
:
10px
;
/* margin-left: 10px; */
font-style
:
inherit
;
color
:
#606266
;
}
}
.d2-form
.item-tips
{
.d2-form
.item-tips
{
position
:
absolute
;
position
:
absolute
;
...
...
src/components/d2-form/relateProDialog.vue
View file @
65712fb
...
@@ -10,7 +10,14 @@
...
@@ -10,7 +10,14 @@
class=
"relatePro"
class=
"relatePro"
>
>
<div
class=
"relateProDialog flex"
>
<div
class=
"relateProDialog flex"
>
<img
:src=
"proInfo.thumbUrl"
/>
<img
v-show=
"proInfo.thumbUrl"
:src=
"proInfo.thumbUrl"
/>
<img
v-show=
"!proInfo.thumbUrl"
src=
"./image/no-choice.png"
/>
<el-form
<el-form
:model=
"proInfo"
:model=
"proInfo"
:rules=
"rules"
:rules=
"rules"
...
@@ -43,6 +50,7 @@
...
@@ -43,6 +50,7 @@
<el-form-item
label=
"分类"
>
<el-form-item
label=
"分类"
>
<el-input
<el-input
disabled
disabled
placeholder=
"分类"
:value=
"proInfo.goodsTypeName"
:value=
"proInfo.goodsTypeName"
class=
"dis-in-block"
class=
"dis-in-block"
></el-input>
></el-input>
...
@@ -54,6 +62,7 @@
...
@@ -54,6 +62,7 @@
<el-form-item
label=
"编号"
>
<el-form-item
label=
"编号"
>
<el-input
<el-input
disabled
disabled
placeholder=
"编号"
:value=
"proInfo.goodsCode"
:value=
"proInfo.goodsCode"
class=
"dis-in-block"
class=
"dis-in-block"
></el-input>
></el-input>
...
@@ -69,8 +78,12 @@
...
@@ -69,8 +78,12 @@
placeholder=
"请输入建议到店价格"
placeholder=
"请输入建议到店价格"
class=
"dis-in-block"
class=
"dis-in-block"
@
input=
"handleShopPrice"
@
input=
"handleShopPrice"
></el-input>
>
<span>
元
</span>
<i
slot=
"suffix"
class=
"input-suffix"
>
元
</i>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
...
@@ -83,8 +96,12 @@
...
@@ -83,8 +96,12 @@
placeholder=
"请输入建议升级价格"
placeholder=
"请输入建议升级价格"
class=
"dis-in-block"
class=
"dis-in-block"
@
input=
"handleUpgradePrice"
@
input=
"handleUpgradePrice"
></el-input>
>
<span>
元
</span>
<i
slot=
"suffix"
class=
"input-suffix"
>
元
</i>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
...
@@ -97,8 +114,12 @@
...
@@ -97,8 +114,12 @@
placeholder=
"请输入额外成本"
placeholder=
"请输入额外成本"
class=
"dis-in-block"
class=
"dis-in-block"
@
input=
"handleExtraCost"
@
input=
"handleExtraCost"
></el-input>
>
<span>
元
</span>
<i
slot=
"suffix"
class=
"input-suffix"
>
元
</i>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"w-50"
>
<div
class=
"w-50"
>
...
@@ -109,8 +130,12 @@
...
@@ -109,8 +130,12 @@
clearable
clearable
class=
"dis-in-block"
class=
"dis-in-block"
@
input=
"handleMaxUpgradeDiscount"
@
input=
"handleMaxUpgradeDiscount"
></el-input>
>
<span>
折
</span>
<i
slot=
"suffix"
class=
"input-suffix"
>
折
</i>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -150,7 +175,12 @@
...
@@ -150,7 +175,12 @@
@
input=
"handleProfitInput"
@
input=
"handleProfitInput"
placeholder=
"请输入分润比例"
placeholder=
"请输入分润比例"
class=
"dis-in-block"
class=
"dis-in-block"
></el-input>
%
>
<i
slot=
"suffix"
class=
"input-suffix"
>
%
</i>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -177,12 +207,20 @@
...
@@ -177,12 +207,20 @@
@
input=
"handlePartnerProfitPer"
@
input=
"handlePartnerProfitPer"
placeholder=
"请输入分润比例"
placeholder=
"请输入分润比例"
class=
"dis-in-block"
class=
"dis-in-block"
></el-input>
%
>
<i
slot=
"suffix"
class=
"input-suffix"
>
%
</i>
</el-input>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
</div>
</div>
<span
class=
"btn-txt"
slot=
"btn-start"
>
提示:配置的分润规则和比例将优先根据门店打开方式结算。
</span>
<span
class=
"btn-txt"
slot=
"btn-start"
>
提示:配置的分润规则和比例将优先根据门店打开方式结算。
</span>
</d2-dialog>
</d2-dialog>
</
template
>
</
template
>
...
@@ -331,13 +369,17 @@ export default {
...
@@ -331,13 +369,17 @@ export default {
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.relateProDialog
.dis-in-block
{
.relateProDialog
.dis-in-block
{
display
:
inline-block
;
/* display: inline-block; */
width
:
75
%
;
width
:
87
%
;
margin-right
:
6px
;
/* margin-right: 6px; */
}
}
.relatePro
.btn-txt
{
.relatePro
.btn-txt
{
display
:
inline-block
;
display
:
inline-block
;
margin-right
:
154px
;
margin-right
:
154px
;
color
:
#606266
;
color
:
#606266
;
}
}
.relatePro
.input-suffix
{
font-style
:
inherit
;
color
:
#606266
;
}
</
style
>
</
style
>
src/components/d2-search/index.vue
View file @
65712fb
<!-- 搜索 -->
<!-- 搜索 -->
<
template
>
<
template
>
<div
class=
"d2-search"
>
<div
class=
"d2-search"
>
<el-col
<
!--
<
el-col
v-if=
"hasTitle"
v-if=
"hasTitle"
class=
"d2-search-title"
class=
"d2-search-title"
>
搜索条件
</el-col>
>
搜索条件
</el-col>
-->
<el-form
<el-form
:inline=
"true"
:inline=
"true"
v-model=
"searchForm"
v-model=
"searchForm"
...
@@ -104,7 +104,7 @@ export default {
...
@@ -104,7 +104,7 @@ export default {
.d2-search
{
.d2-search
{
min-width
:
922px
;
min-width
:
922px
;
}
}
.d2-search
.d2-search-title
{
/*
.d2-search .d2-search-title {
font-size: 18px;
font-size: 18px;
font-weight: bold;
font-weight: bold;
color: #0947c6;
color: #0947c6;
...
@@ -113,9 +113,9 @@ export default {
...
@@ -113,9 +113,9 @@ export default {
padding: 0 20px;
padding: 0 20px;
border-bottom: 1px solid #e7eaec;
border-bottom: 1px solid #e7eaec;
margin-bottom: 30px !important;
margin-bottom: 30px !important;
}
}
*/
.d2-search
.d2-search-block
{
.d2-search
.d2-search-block
{
padding
:
0
40px
;
padding
:
16px
40px
0
;
}
}
/* .d2-search .d2-search-block */
/* .d2-search .d2-search-block */
.d2-search
.el-form-item
{
.d2-search
.el-form-item
{
...
...
src/components/d2-table/index.vue
View file @
65712fb
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
v-loading=
"loading"
v-loading=
"loading"
border
border
:highlight-current-row=
"true"
:highlight-current-row=
"true"
:stripe=
"true"
@
sort-change=
"sortChange"
@
sort-change=
"sortChange"
@
selection-change=
"handleSelect"
@
selection-change=
"handleSelect"
:tree-props=
"
{children: 'upgradeGoodsList'}"
:tree-props=
"
{children: 'upgradeGoodsList'}"
...
@@ -79,7 +78,6 @@
...
@@ -79,7 +78,6 @@
label=
"操作"
label=
"操作"
:align=
"tableParams.tableOption.align||'center'"
:align=
"tableParams.tableOption.align||'center'"
:width=
"tableParams.tableOption.width||'200'"
:width=
"tableParams.tableOption.width||'200'"
fixed=
"right"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<slot
<slot
...
...
src/views/customer/customerList.vue
View file @
65712fb
...
@@ -10,18 +10,6 @@
...
@@ -10,18 +10,6 @@
class=
"show-search"
class=
"show-search"
:searchForm=
"searchForm"
:searchForm=
"searchForm"
:formData=
"showFormData"
:formData=
"showFormData"
></d2-search>
<i
@
click=
"handleShowHide"
:class=
"
{'search-icon': true, 'el-icon-arrow-down': !hideVisible, 'el-icon-arrow-up': hideVisible}"
>
</i>
<d2-search
ref=
"hideSearch"
class=
"hide-search"
v-show=
"hideVisible"
:searchForm=
"searchForm"
:hasTitle=
"hasTitle"
:formData=
"hideFormData"
>
>
<p>
<p>
<el-input
<el-input
...
@@ -221,8 +209,6 @@ export default {
...
@@ -221,8 +209,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
hasTitle
:
false
,
hideVisible
:
false
,
count
:
{
count
:
{
orderCount
:
0
,
orderCount
:
0
,
upgradeCount
:
0
upgradeCount
:
0
...
@@ -287,8 +273,7 @@ export default {
...
@@ -287,8 +273,7 @@ export default {
label
:
'服务时间'
,
label
:
'服务时间'
,
name
:
'updateTime'
,
name
:
'updateTime'
,
type
:
'datePicker'
type
:
'datePicker'
}],
},
{
hideFormData
:
[{
label
:
'基础商品'
,
label
:
'基础商品'
,
name
:
'baseGoodsId'
,
name
:
'baseGoodsId'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -430,7 +415,7 @@ export default {
...
@@ -430,7 +415,7 @@ export default {
})
})
},
},
getOptionsList
()
{
getOptionsList
()
{
var
formList
=
[
'showFormData'
,
'hideFormData'
]
var
formList
=
[
'showFormData'
]
formList
.
forEach
(
i
=>
{
formList
.
forEach
(
i
=>
{
this
[
i
].
forEach
((
item
,
index
)
=>
{
this
[
i
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
item
.
type
===
'select'
)
{
...
@@ -475,9 +460,6 @@ export default {
...
@@ -475,9 +460,6 @@ export default {
exportFile
(
params
).
then
(
res
=>
{
exportFile
(
params
).
then
(
res
=>
{
this
.
$open
(
res
)
this
.
$open
(
res
)
})
})
},
handleShowHide
()
{
this
.
hideVisible
=
!
this
.
hideVisible
}
}
}
}
}
}
...
@@ -490,13 +472,13 @@ export default {
...
@@ -490,13 +472,13 @@ export default {
.search-icon
{
.search-icon
{
display
:
inline-block
;
display
:
inline-block
;
width
:
100%
;
width
:
100%
;
height
:
2
0px
;
height
:
1
0px
;
text-align
:
center
;
text-align
:
center
;
border-bottom
:
1px
solid
#dcdfe6
;
/* border-bottom: 1px solid #dcdfe6; */
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.customer-list
.hide-search
{
.customer-list
.hide-search
{
margin-top
:
20px
;
/* margin-top: 20px; */
}
}
.customer-list
.custom-input
{
.customer-list
.custom-input
{
display
:
inline-block
;
display
:
inline-block
;
...
...
src/views/goods/editCommodity.vue
View file @
65712fb
...
@@ -47,7 +47,6 @@ export default {
...
@@ -47,7 +47,6 @@ export default {
shopPrice
:
''
,
shopPrice
:
''
,
maxRetailDiscount
:
''
maxRetailDiscount
:
''
},
},
formItemWidth
:
'200px'
,
rules
:
{
rules
:
{
yqMerchantId
:
[{
required
:
true
,
message
:
'请选择园区店'
,
trigger
:
'change'
}],
yqMerchantId
:
[{
required
:
true
,
message
:
'请选择园区店'
,
trigger
:
'change'
}],
goodsCode
:
[{
required
:
true
,
message
:
'请选择产品名称'
,
trigger
:
'change'
}],
goodsCode
:
[{
required
:
true
,
message
:
'请选择产品名称'
,
trigger
:
'change'
}],
...
...
src/views/goods/product.vue
View file @
65712fb
...
@@ -137,7 +137,7 @@ export default {
...
@@ -137,7 +137,7 @@ export default {
label
:
'素材名称'
,
label
:
'素材名称'
,
prop
:
'goodsName'
prop
:
'goodsName'
},
{
},
{
label
:
'
产品
ID'
,
label
:
'
素材
ID'
,
prop
:
'id'
prop
:
'id'
},
{
},
{
label
:
'分类'
,
label
:
'分类'
,
...
...
src/views/index/index.vue
View file @
65712fb
...
@@ -27,8 +27,9 @@
...
@@ -27,8 +27,9 @@
<div
class=
"top_card"
>
<div
class=
"top_card"
>
<div
class=
"top_card_title"
>
今日待预约
</div>
<div
class=
"top_card_title"
>
今日待预约
</div>
<div
class=
"top_card_main"
>
<div
class=
"top_card_main"
>
<span
class=
"top_card_main_count top_card_primary"
>
{{
todayInviteCount
}}
</span>
<span
class=
"red"
>
该功能暂未开发
</span>
<span
class=
"top_card_main_unit"
>
(人)
</span>
<!--
<span
class=
"top_card_main_count top_card_primary"
>
{{
todayInviteCount
}}
</span>
<span
class=
"top_card_main_unit"
>
(人)
</span>
-->
</div>
</div>
</div>
</div>
</el-col>
</el-col>
...
@@ -244,7 +245,7 @@
...
@@ -244,7 +245,7 @@
<
script
>
<
script
>
import
{
import
{
getTodayInvite
,
// getTodayInvite,
getTotalData
,
getTotalData
,
getCustomerData
,
getCustomerData
,
getTransferData
,
getTransferData
,
...
@@ -282,7 +283,7 @@ export default {
...
@@ -282,7 +283,7 @@ export default {
totalOrderCounts
:
''
,
totalOrderCounts
:
''
,
totalSalesMoney
:
''
,
totalSalesMoney
:
''
,
totalFlowsMoney
:
''
,
totalFlowsMoney
:
''
,
totalGrossProfit
:
''
,
totalGrossProfit
:
''
},
},
customerType
:
'yesterday'
,
customerType
:
'yesterday'
,
customerData
:
{
customerData
:
{
...
@@ -296,7 +297,7 @@ export default {
...
@@ -296,7 +297,7 @@ export default {
totalFlowsMoney
:
''
,
totalFlowsMoney
:
''
,
onDayUpgradeTransfer
:
''
,
onDayUpgradeTransfer
:
''
,
onWeekUpgradeTransfer
:
''
,
onWeekUpgradeTransfer
:
''
,
perDayUpgradeTransfer
:
''
,
perDayUpgradeTransfer
:
''
},
},
transferData
:
{
transferData
:
{
toShopTransfer
:
''
,
toShopTransfer
:
''
,
...
@@ -325,9 +326,9 @@ export default {
...
@@ -325,9 +326,9 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
getTodayInvite
({}).
then
((
res
)
=>
{
//
getTodayInvite({}).then((res) => {
this
.
todayInviteCount
=
res
//
this.todayInviteCount = res
})
//
})
this
.
getTotal
()
this
.
getTotal
()
this
.
getCustomer
()
this
.
getCustomer
()
...
@@ -339,7 +340,7 @@ export default {
...
@@ -339,7 +340,7 @@ export default {
this
.
incomeProductChart
=
echarts
.
init
(
document
.
getElementById
(
'incomeProductChart'
))
this
.
incomeProductChart
=
echarts
.
init
(
document
.
getElementById
(
'incomeProductChart'
))
this
.
funnelChart
=
echarts
.
init
(
document
.
getElementById
(
'funnelChart'
))
this
.
funnelChart
=
echarts
.
init
(
document
.
getElementById
(
'funnelChart'
))
window
.
addEventListener
(
"resize"
,
()
=>
this
.
resize
());
window
.
addEventListener
(
'resize'
,
()
=>
this
.
resize
())
this
.
drawCustomTransChart
()
this
.
drawCustomTransChart
()
this
.
drawStoreFlowChart
()
this
.
drawStoreFlowChart
()
...
@@ -357,7 +358,7 @@ export default {
...
@@ -357,7 +358,7 @@ export default {
this
.
id
=
this
.
parkServiceList
[
0
].
merchantId
this
.
id
=
this
.
parkServiceList
[
0
].
merchantId
resolve
()
resolve
()
})
})
}
else
{
}
else
{
this
.
id
=
this
.
userInfo
.
detail
.
merchantId
this
.
id
=
this
.
userInfo
.
detail
.
merchantId
resolve
()
resolve
()
}
}
...
@@ -378,20 +379,18 @@ export default {
...
@@ -378,20 +379,18 @@ export default {
this
.
drawFunnelChart
()
this
.
drawFunnelChart
()
},
500
)
},
500
)
},
},
resize
(){
resize
()
{
debounce
(
this
.
resizeChart
.
bind
(
this
),
300
)()
;
debounce
(
this
.
resizeChart
.
bind
(
this
),
300
)()
},
},
initChart
()
{
initChart
()
{
this
.
customTransChart
.
setOption
(
customTransOption
)
this
.
customTransChart
.
setOption
(
customTransOption
)
this
.
storeFlowChart
.
setOption
(
storeFlowOption
)
this
.
storeFlowChart
.
setOption
(
storeFlowOption
)
this
.
orderChart
.
setOption
(
orderOption
)
this
.
orderChart
.
setOption
(
orderOption
)
this
.
orderProductChart
.
setOption
(
orderProductOption
)
this
.
orderProductChart
.
setOption
(
orderProductOption
)
this
.
incomeFlowChart
.
setOption
(
incomeFlowOption
)
this
.
incomeFlowChart
.
setOption
(
incomeFlowOption
)
this
.
incomeProductChart
.
setOption
(
incomeProductOption
)
this
.
incomeProductChart
.
setOption
(
incomeProductOption
)
},
},
resizeChart
(){
resizeChart
()
{
this
.
customTransChart
.
resize
()
this
.
customTransChart
.
resize
()
this
.
storeFlowChart
.
resize
()
this
.
storeFlowChart
.
resize
()
this
.
orderChart
.
resize
()
this
.
orderChart
.
resize
()
...
@@ -403,7 +402,7 @@ export default {
...
@@ -403,7 +402,7 @@ export default {
showChartLoading
(
chart
)
{
showChartLoading
(
chart
)
{
chart
.
showLoading
({
chart
.
showLoading
({
text
:
'加载中'
,
text
:
'加载中'
,
color
:
'#2B9AFF'
,
color
:
'#2B9AFF'
})
})
},
},
hideChartLoading
(
chart
)
{
hideChartLoading
(
chart
)
{
...
@@ -414,7 +413,7 @@ export default {
...
@@ -414,7 +413,7 @@ export default {
getCustomerTransList
({
getCustomerTransList
({
beginDateStr
:
moment
().
subtract
(
1
,
'month'
).
startOf
(
'month'
).
format
(
'YYYY-MM-DD'
),
beginDateStr
:
moment
().
subtract
(
1
,
'month'
).
startOf
(
'month'
).
format
(
'YYYY-MM-DD'
),
endDateStr
:
moment
().
subtract
(
1
,
'month'
).
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
,
endDateStr
:
moment
().
subtract
(
1
,
'month'
).
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
const
data
=
res
const
data
=
res
...
@@ -446,16 +445,13 @@ export default {
...
@@ -446,16 +445,13 @@ export default {
this
.
funnelChart
.
setOption
(
funnelOption
)
this
.
funnelChart
.
setOption
(
funnelOption
)
this
.
hideChartLoading
(
this
.
funnelChart
)
this
.
hideChartLoading
(
this
.
funnelChart
)
})
})
},
},
drawStoreFlowChart
()
{
drawStoreFlowChart
()
{
this
.
showChartLoading
(
this
.
storeFlowChart
)
this
.
showChartLoading
(
this
.
storeFlowChart
)
getStoreFlow
({
yqMerchantId
:
this
.
id
}).
then
((
res
)
=>
{
getStoreFlow
({
yqMerchantId
:
this
.
id
}).
then
((
res
)
=>
{
const
data
=
res
const
data
=
res
le
t
legendArr
=
[]
cons
t
legendArr
=
[]
const
storeArr
=
data
.
map
((
item
,
index
)
=>
{
const
storeArr
=
data
.
map
((
item
,
index
)
=>
{
legendArr
.
push
(
item
.
merchantName
)
legendArr
.
push
(
item
.
merchantName
)
return
{
return
{
...
@@ -474,9 +470,8 @@ export default {
...
@@ -474,9 +470,8 @@ export default {
})
})
},
},
drawOrderProductChart
()
{
drawOrderProductChart
()
{
this
.
showChartLoading
(
this
.
orderProductChart
)
this
.
showChartLoading
(
this
.
orderProductChart
)
le
t
params
=
{
cons
t
params
=
{
yqMerchantId
:
this
.
id
,
yqMerchantId
:
this
.
id
,
/* beginDateStr: '2020-12-07',
/* beginDateStr: '2020-12-07',
endDateStr: '2020-12-13', */
endDateStr: '2020-12-13', */
...
@@ -487,11 +482,11 @@ export default {
...
@@ -487,11 +482,11 @@ export default {
const
data
=
res
const
data
=
res
let
index
=
0
let
index
=
0
le
t
idObj
=
{}
cons
t
idObj
=
{}
for
(
le
t
key
in
data
)
{
for
(
cons
t
key
in
data
)
{
le
t
list
=
data
[
key
]
cons
t
list
=
data
[
key
]
list
.
forEach
((
item
)
=>
{
list
.
forEach
((
item
)
=>
{
if
(
!
(
item
.
id
in
idObj
))
{
if
(
!
(
item
.
id
in
idObj
))
{
idObj
[
item
.
id
]
=
{
idObj
[
item
.
id
]
=
{
data
:
[],
data
:
[],
name
:
item
.
goodsName
name
:
item
.
goodsName
...
@@ -502,8 +497,8 @@ export default {
...
@@ -502,8 +497,8 @@ export default {
index
++
index
++
}
}
le
t
seriesArr
=
[]
cons
t
seriesArr
=
[]
for
(
le
t
key
in
idObj
)
{
for
(
cons
t
key
in
idObj
)
{
seriesArr
.
push
({
seriesArr
.
push
({
name
:
idObj
[
key
].
name
,
name
:
idObj
[
key
].
name
,
type
:
'bar'
,
type
:
'bar'
,
...
@@ -513,7 +508,7 @@ export default {
...
@@ -513,7 +508,7 @@ export default {
formatter
:
'{a}'
,
formatter
:
'{a}'
,
position
:
'insideRight'
position
:
'insideRight'
},
},
data
:
idObj
[
key
].
data
,
data
:
idObj
[
key
].
data
})
})
}
}
orderProductOption
.
series
=
seriesArr
orderProductOption
.
series
=
seriesArr
...
@@ -530,7 +525,7 @@ export default {
...
@@ -530,7 +525,7 @@ export default {
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
[
0
].
data
=
data
.
map
((
item
)
=>
item
.
totalIncomeMoney
)
//incomeFlowOption.series[1].data = data.map((item) => item.totalCost)
//
incomeFlowOption.series[1].data = data.map((item) => item.totalCost)
this
.
incomeFlowChart
.
setOption
(
incomeFlowOption
)
this
.
incomeFlowChart
.
setOption
(
incomeFlowOption
)
this
.
hideChartLoading
(
this
.
incomeFlowChart
)
this
.
hideChartLoading
(
this
.
incomeFlowChart
)
})
})
...
@@ -541,9 +536,9 @@ export default {
...
@@ -541,9 +536,9 @@ export default {
drawIncomeProductChart
()
{
drawIncomeProductChart
()
{
this
.
showChartLoading
(
this
.
incomeProductChart
)
this
.
showChartLoading
(
this
.
incomeProductChart
)
let
params
=
{
let
params
=
{
yqMerchantId
:
this
.
id
,
yqMerchantId
:
this
.
id
}
}
if
(
this
.
productType
!==
'history'
)
{
if
(
this
.
productType
!==
'history'
)
{
params
=
{
params
=
{
...
params
,
...
params
,
/* beginDateStr: '2020-12-07',
/* beginDateStr: '2020-12-07',
...
@@ -560,7 +555,7 @@ export default {
...
@@ -560,7 +555,7 @@ export default {
incomeProductOption
.
series
[
0
].
data
=
data
.
rankList
.
map
((
item
)
=>
{
incomeProductOption
.
series
[
0
].
data
=
data
.
rankList
.
map
((
item
)
=>
{
return
{
return
{
value
:
item
.
totalGrossProfit
,
value
:
item
.
totalGrossProfit
,
name
:
item
.
goodsName
,
name
:
item
.
goodsName
}
}
})
})
this
.
incomeProductChart
.
setOption
(
incomeProductOption
)
this
.
incomeProductChart
.
setOption
(
incomeProductOption
)
...
@@ -571,31 +566,31 @@ export default {
...
@@ -571,31 +566,31 @@ export default {
value: 335,
value: 335,
name: '直接访问'
name: '直接访问'
}) */
}) */
//goodsName totalMoney
//
goodsName totalMoney
},
},
getDateFormatByType
(
type
)
{
getDateFormatByType
(
type
)
{
let
beginDateStr
=
''
let
beginDateStr
=
''
let
endDateStr
=
''
let
endDateStr
=
''
switch
(
type
)
{
switch
(
type
)
{
case
'yesterday'
:
case
'yesterday'
:
beginDateStr
=
moment
().
subtract
(
1
,
'day'
).
startOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
beginDateStr
=
moment
().
subtract
(
1
,
'day'
).
startOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
subtract
(
1
,
'day'
).
endOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
subtract
(
1
,
'day'
).
endOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
break
;
break
case
'thisWeek'
:
case
'thisWeek'
:
beginDateStr
=
moment
().
day
(
1
).
startOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
beginDateStr
=
moment
().
day
(
1
).
startOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
day
(
1
).
add
(
6
,
'days'
).
endOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
day
(
1
).
add
(
6
,
'days'
).
endOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
break
;
break
case
'thisMonth'
:
case
'thisMonth'
:
beginDateStr
=
moment
().
startOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
beginDateStr
=
moment
().
startOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
endOf
(
'month'
).
format
(
'YYYY-MM-DD'
)
break
;
break
case
'thisYear'
:
case
'thisYear'
:
beginDateStr
=
moment
().
startOf
(
'year'
).
format
(
'YYYY-MM-DD'
)
beginDateStr
=
moment
().
startOf
(
'year'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
endOf
(
'year'
).
format
(
'YYYY-MM-DD'
)
endDateStr
=
moment
().
endOf
(
'year'
).
format
(
'YYYY-MM-DD'
)
break
;
break
break
;
break
}
}
return
{
return
{
...
@@ -616,10 +611,11 @@ export default {
...
@@ -616,10 +611,11 @@ export default {
const
params
=
{
const
params
=
{
...
this
.
getDateFormatByType
(
this
.
customerType
)
...
this
.
getDateFormatByType
(
this
.
customerType
)
}
}
if
(
this
.
customerType
===
'yesterday'
)
{
if
(
this
.
customerType
===
'yesterday'
)
{
params
.
needCompareDateStr
=
moment
().
subtract
(
1
,
'day'
).
startOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
params
.
needCompareDateStr
=
moment
().
subtract
(
1
,
'day'
).
startOf
(
'day'
).
format
(
'YYYY-MM-DD'
)
}
}
getCustomerData
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
getCustomerData
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
customerData
=
res
this
.
customerData
=
res
})
})
}
}
...
@@ -630,9 +626,9 @@ export default {
...
@@ -630,9 +626,9 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.indexPage
{
.indexPage
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
calc
(
100vh
-
1
3
5px
);
height
:
calc
(
100vh
-
1
1
5px
);
width
:
100%
;
width
:
100%
;
padding
:
20px
;
padding
:
0
20px
20px
;
overflow
:
auto
;
overflow
:
auto
;
&>.el-row{
&>.el-row{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
@@ -661,6 +657,9 @@ export default {
...
@@ -661,6 +657,9 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
.red
{
color
:
red
;
}
.top_card_main_unit
{
.top_card_main_unit
{
}
}
...
...
src/views/orderManage/orderList.vue
View file @
65712fb
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
:page-sizes=
"[10,20,30,40]"
:page-sizes=
"[10,20,30,40]"
:page-size=
"page.pageSize"
:page-size=
"page.pageSize"
:total=
"total"
:total=
"total"
layout=
"
total, sizes, prev, pager, next,
jumper"
layout=
"
sizes,total,->,prev,pager,next,
jumper"
>
>
</el-pagination>
</el-pagination>
</div>
</div>
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
3
:
'待支付'
,
3
:
'待支付'
,
4
:
'已支付'
,
4
:
'已支付'
,
5
:
'已退款'
,
5
:
'已退款'
,
6
:
'已完成'
,
6
:
'已完成'
},
},
showFormData
:
[{
showFormData
:
[{
label
:
'订单状态'
,
label
:
'订单状态'
,
...
@@ -174,21 +174,19 @@ export default {
...
@@ -174,21 +174,19 @@ export default {
name
:
''
,
name
:
''
,
orderTime
:
''
orderTime
:
''
}
}
},
},
getParams
()
{
getParams
()
{
const
params
=
{}
const
params
=
{}
const
form
=
this
.
searchForm
const
form
=
this
.
searchForm
if
(
form
.
name
)
{
if
(
form
.
name
)
{
params
.
customerName
=
form
.
name
params
.
customerName
=
form
.
name
}
}
if
(
form
.
orderTime
&&
form
.
orderTime
.
length
)
{
if
(
form
.
orderTime
&&
form
.
orderTime
.
length
)
{
params
.
placeOrderStartDateStr
=
Util
.
dateFormate
(
form
.
orderTime
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
params
.
placeOrderStartDateStr
=
Util
.
dateFormate
(
form
.
orderTime
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
params
.
placeOrderEndDateStr
=
Util
.
dateFormate
(
form
.
orderTime
[
1
],
'YYYY-MM-DD HH:mm:ss'
)
params
.
placeOrderEndDateStr
=
Util
.
dateFormate
(
form
.
orderTime
[
1
],
'YYYY-MM-DD HH:mm:ss'
)
}
}
if
(
form
.
orderStatus
)
{
if
(
form
.
orderStatus
)
{
params
.
status
=
form
.
orderStatus
params
.
status
=
form
.
orderStatus
}
}
...
@@ -240,7 +238,7 @@ export default {
...
@@ -240,7 +238,7 @@ export default {
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
this
.
page
.
pageNum
=
value
this
.
page
.
pageNum
=
value
this
.
getList
()
this
.
getList
()
}
,
}
}
}
}
}
...
...
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