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 10115c9f
authored
Jan 18, 2021
by
吴娟华
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
'合并修改'
2 parents
53787cb2
ed7619c3
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
208 additions
and
147 deletions
src/api/commodity.js
src/api/editCustomer.js
src/assets/style/theme/classic/setting.scss
src/assets/style/theme/theme-base.scss
src/common/constants.js
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/router/routes.js
src/views/customer/customerList.vue
src/views/customer/editCustomer.vue
src/views/customer/recordList.vue
src/views/financeManage/financeList.vue
src/views/goods/commodity.vue
src/views/goods/editCommodity.vue
src/views/goods/product.vue
src/views/index/index.vue
src/views/orderManage/orderList.vue
src/views/systemConfig/merchantManage.vue
src/api/commodity.js
View file @
10115c9
...
@@ -46,7 +46,8 @@ export function baseGoodsUpdate(data) {
...
@@ -46,7 +46,8 @@ export function baseGoodsUpdate(data) {
// 下架商品
// 下架商品
export
function
baseGoodsUpOrDown
(
data
)
{
export
function
baseGoodsUpOrDown
(
data
)
{
data
.
method
=
`
${
path2
}
basegoods.changeShelfStatus`
// data.method = `${path2}basegoods.changeShelfStatus`
data
.
method
=
`
${
path2
}
basegoods.shelfStatus.update`
return
request
(
data
,
'post'
)
return
request
(
data
,
'post'
)
}
}
...
...
src/api/editCustomer.js
View file @
10115c9
...
@@ -41,7 +41,8 @@ export function getGoods(data) {
...
@@ -41,7 +41,8 @@ export function getGoods(data) {
/** 预录订单 */
/** 预录订单 */
export
function
addOrder
(
data
)
{
export
function
addOrder
(
data
)
{
data
.
method
=
`
${
path
}
order.advanceCreate`
// data.method = `${path}order.advanceCreate`
data
.
method
=
`
${
path
}
order.advance.add`
return
request
(
data
,
'post'
)
return
request
(
data
,
'post'
)
}
}
...
...
src/assets/style/theme/classic/setting.scss
View file @
10115c9
...
@@ -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 @
10115c9
...
@@ -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
;
}
}
}
}
}
}
...
@@ -308,20 +316,22 @@
...
@@ -308,20 +316,22 @@
top
:
0px
;
top
:
0px
;
right
:
16px
;
right
:
16px
;
bottom
:
20px
;
bottom
:
20px
;
left
:
16
px
;
left
:
20
px
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
// overflow: hidden;
// overflow: hidden;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
.d2-container-full__header
{
.d2-container-full__header
{
// padding: 10px 10px;
// padding: 10px 10px;
margin-bottom
:
10px
;
margin-bottom
:
20px
;
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/common/constants.js
View file @
10115c9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: limin
* @Author: limin
* @Date: 2019-09-01 19:06:01
* @Date: 2019-09-01 19:06:01
* @Last Modified by: chenwq
* @Last Modified by: chenwq
* @Last Modified time: 2021-01-
08 16:49:5
2
* @Last Modified time: 2021-01-
12 10:58:1
2
*/
*/
// import { LOGIN_URL, REG_URL, ROLE_LIST_URL } from '@/api/sys.account'
// import { LOGIN_URL, REG_URL, ROLE_LIST_URL } from '@/api/sys.account'
...
@@ -193,3 +193,15 @@ export function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minVal
...
@@ -193,3 +193,15 @@ export function limitPrice(newValue, oldValue, intergerDigit, pointDigit, minVal
return
newValue
?
oldValue
:
''
return
newValue
?
oldValue
:
''
}
}
}
}
/**
* 时间控件-限制月份
*/
export
const
rangePickerOptions
=
{
disabledDate
(
date
)
{
if
(
date
>
new
Date
())
{
return
true
}
return
false
}
}
src/components/d2-form/image/no-choice.png
0 → 100644
View file @
10115c9
7.45 KB
src/components/d2-form/index.vue
View file @
10115c9
...
@@ -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"
...
@@ -708,11 +711,6 @@ export default {
...
@@ -708,11 +711,6 @@ export default {
if
(
this
.
proIndex
!==
-
1
)
{
if
(
this
.
proIndex
!==
-
1
)
{
this
.
formData
.
upgradeGoods
[
this
.
proIndex
]
=
proInfo
this
.
formData
.
upgradeGoods
[
this
.
proIndex
]
=
proInfo
}
else
{
}
else
{
proInfo
=
{
...
proInfo
,
profitType
:
1
,
profitValue
:
'0'
}
console
.
log
(
proInfo
)
console
.
log
(
proInfo
)
this
.
profitOldVal
.
push
(
'0'
)
this
.
profitOldVal
.
push
(
'0'
)
this
.
formData
.
upgradeGoods
.
push
(
proInfo
)
this
.
formData
.
upgradeGoods
.
push
(
proInfo
)
...
@@ -949,7 +947,9 @@ export default {
...
@@ -949,7 +947,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 @
10115c9
...
@@ -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
>
...
@@ -232,18 +270,6 @@ export default {
...
@@ -232,18 +270,6 @@ export default {
}
}
},
},
// watch: {
// 'proInfo.upgradePrice'(val, oldVal) {
// this.proInfo.upgradePrice = limitPrice(val, oldVal, 8, 2)
// },
// 'proInfo.shopPrice'(val, oldVal) {
// this.proInfo.shopPrice = limitPrice(val, oldVal, 6, 2)
// },
// 'proInfo.maxUpgradeDiscount'(val, oldVal) {
// this.proInfo.maxUpgradeDiscount = limitPrice(val, oldVal, 1, 1, 1)
// }
// },
props
:
{
props
:
{
relateProVisible
:
{
relateProVisible
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -331,13 +357,17 @@ export default {
...
@@ -331,13 +357,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 @
10115c9
<!-- 搜索 -->
<!-- 搜索 -->
<
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"
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
v-model=
"searchForm[item.name]"
v-model=
"searchForm[item.name]"
:clearable=
"item.isClear || false"
:clearable=
"item.isClear || false"
:placeholder=
"'请选择' + item.label"
:placeholder=
"'请选择' + item.label"
:filterable=
"
item.filterable
"
:filterable=
"
!item.noFilter
"
:disabled=
"item.isDisabled"
:disabled=
"item.isDisabled"
@
change=
"selectAddAttr($event, item)"
@
change=
"selectAddAttr($event, item)"
>
>
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
range-separator=
"至"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
:picker-options=
"pickerOption[item.pickerOptions]"
>
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
...
@@ -61,10 +62,14 @@
...
@@ -61,10 +62,14 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
rangePickerOptions
}
from
'@/common/constants'
export
default
{
export
default
{
name
:
'd2-search'
,
name
:
'd2-search'
,
data
()
{
data
()
{
return
{
return
{
pickerOption
:
{
rangePickerOptions
:
rangePickerOptions
}
}
}
},
},
...
@@ -104,7 +109,7 @@ export default {
...
@@ -104,7 +109,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 +118,9 @@ export default {
...
@@ -113,9 +118,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 @
10115c9
...
@@ -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/router/routes.js
View file @
10115c9
...
@@ -51,7 +51,7 @@ export const sys = [
...
@@ -51,7 +51,7 @@ export const sys = [
* 所有需动态过滤的资源点
* 所有需动态过滤的资源点
* 907 - 总览
* 907 - 总览
* 902 - 流量管理
* 902 - 流量管理
* 903 -
商品库
* 903 -
产品管理
* 904 - 订单管理
* 904 - 订单管理
* 905 - 财务管理
* 905 - 财务管理
* 906 - 系统设置
* 906 - 系统设置
...
@@ -93,7 +93,7 @@ export const resources = {
...
@@ -93,7 +93,7 @@ export const resources = {
name
:
'recordList'
,
name
:
'recordList'
,
icon
:
'document'
,
icon
:
'document'
,
meta
:
{
meta
:
{
title
:
'预录
客户列表
'
,
title
:
'预录
信息
'
,
authId
:
'90202'
,
authId
:
'90202'
,
parentId
:
'902'
,
parentId
:
'902'
,
cache
:
true
cache
:
true
...
@@ -139,7 +139,7 @@ export const resources = {
...
@@ -139,7 +139,7 @@ export const resources = {
name
:
'goods'
,
name
:
'goods'
,
icon
:
's-goods'
,
icon
:
's-goods'
,
meta
:
{
meta
:
{
title
:
'
商品库
'
,
title
:
'
产品管理
'
,
authId
:
'903'
,
authId
:
'903'
,
parentId
:
'1'
,
parentId
:
'1'
,
cache
:
true
cache
:
true
...
...
src/views/customer/customerList.vue
View file @
10115c9
...
@@ -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
...
@@ -163,6 +151,7 @@
...
@@ -163,6 +151,7 @@
label=
"流量来源"
label=
"流量来源"
align=
"center"
align=
"center"
prop=
"merchantName"
prop=
"merchantName"
:width=
"merchantMaxLen < 11 ? '90px' : ((merchantMaxLen / 2) * 15) + 'px'"
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
label=
"推荐人"
label=
"推荐人"
...
@@ -206,7 +195,7 @@
...
@@ -206,7 +195,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>
...
@@ -221,8 +210,7 @@ export default {
...
@@ -221,8 +210,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
hasTitle
:
false
,
merchantMaxLen
:
0
,
hideVisible
:
false
,
count
:
{
count
:
{
orderCount
:
0
,
orderCount
:
0
,
upgradeCount
:
0
upgradeCount
:
0
...
@@ -286,20 +274,21 @@ export default {
...
@@ -286,20 +274,21 @@ export default {
},
{
},
{
label
:
'服务时间'
,
label
:
'服务时间'
,
name
:
'updateTime'
,
name
:
'updateTime'
,
type
:
'datePicker'
type
:
'datePicker'
,
}],
pickerOptions
:
'rangePickerOptions'
hideFormData
:
[
{
},
{
label
:
'基础商品'
,
label
:
'基础商品'
,
name
:
'baseGoodsId'
,
name
:
'baseGoodsId'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'
id
'
,
optionId
:
'
goodsCode
'
,
optionLabel
:
'goodsName'
,
optionLabel
:
'goodsName'
,
optionsName
:
'goodList'
optionsName
:
'goodList'
},
{
},
{
label
:
'创建时间'
,
label
:
'创建时间'
,
name
:
'createTime'
,
name
:
'createTime'
,
type
:
'datePicker'
type
:
'datePicker'
,
pickerOptions
:
'rangePickerOptions'
},
{
},
{
label
:
'创建方式'
,
label
:
'创建方式'
,
name
:
'source'
,
name
:
'source'
,
...
@@ -416,6 +405,7 @@ export default {
...
@@ -416,6 +405,7 @@ export default {
getList
(
params
).
then
(
res
=>
{
getList
(
params
).
then
(
res
=>
{
// console.log(res)
// console.log(res)
this
.
tableData
=
res
.
list
this
.
tableData
=
res
.
list
this
.
merchantMaxLen
=
Math
.
max
(...
this
.
tableData
.
map
(
item
=>
item
.
merchantName
.
length
))
this
.
page
.
pageNum
=
res
.
pageNum
this
.
page
.
pageNum
=
res
.
pageNum
this
.
page
.
pageSize
=
res
.
pageSize
this
.
page
.
pageSize
=
res
.
pageSize
this
.
total
=
res
.
total
this
.
total
=
res
.
total
...
@@ -430,7 +420,7 @@ export default {
...
@@ -430,7 +420,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'
)
{
...
@@ -466,6 +456,7 @@ export default {
...
@@ -466,6 +456,7 @@ export default {
merchantId
:
''
,
merchantId
:
''
,
baseGoodsId
:
''
baseGoodsId
:
''
}
}
this
.
userInfo
.
beSuper
&&
(
this
.
baseData
.
storeIdList
=
[])
this
.
baseData
.
goodList
=
[]
this
.
baseData
.
goodList
=
[]
this
.
getOptionsList
()
this
.
getOptionsList
()
},
},
...
@@ -475,9 +466,6 @@ export default {
...
@@ -475,9 +466,6 @@ export default {
exportFile
(
params
).
then
(
res
=>
{
exportFile
(
params
).
then
(
res
=>
{
this
.
$open
(
res
)
this
.
$open
(
res
)
})
})
},
handleShowHide
()
{
this
.
hideVisible
=
!
this
.
hideVisible
}
}
}
}
}
}
...
@@ -490,13 +478,13 @@ export default {
...
@@ -490,13 +478,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/customer/editCustomer.vue
View file @
10115c9
...
@@ -19,9 +19,11 @@
...
@@ -19,9 +19,11 @@
v-show="userInfo.beSuper"
v-show="userInfo.beSuper"
>
>
<el-select
<el-select
v-if=
"!isDisabled"
v-model=
"form.sellerMerchantId"
v-model=
"form.sellerMerchantId"
placeholder=
"请选择"
placeholder=
"请选择"
class=
"el_select itd"
class=
"el_select itd"
:disabled=
"isDisabled"
@
change=
"handleSellerMerchantChange"
@
change=
"handleSellerMerchantChange"
>
>
<el-option
<el-option
...
@@ -31,6 +33,7 @@
...
@@ -31,6 +33,7 @@
:label=
"item.merchantName"
:label=
"item.merchantName"
/>
/>
</el-select>
</el-select>
<span
v-else
>
{{
form
.
sellerMerchantName
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -40,9 +43,11 @@
...
@@ -40,9 +43,11 @@
:class=
"
{'is-error': hasCusError }"
:class=
"
{'is-error': hasCusError }"
>
>
<el-select
<el-select
v-if=
"!isDisabled"
v-model=
"form.merchantId"
v-model=
"form.merchantId"
placeholder=
"请选择"
placeholder=
"请选择"
class=
"el_select itd"
class=
"el_select itd"
:disabled=
"isDisabled"
@
change=
"getAdviser(form.merchantId)"
@
change=
"getAdviser(form.merchantId)"
>
>
<el-option
<el-option
...
@@ -52,6 +57,7 @@
...
@@ -52,6 +57,7 @@
:label=
"item.merchantName"
:label=
"item.merchantName"
/>
/>
</el-select>
</el-select>
<span
v-else
>
{{
form
.
merchantName
}}
</span>
<span
<span
class=
"warningFont"
class=
"warningFont"
v-if=
"nostoreError"
v-if=
"nostoreError"
...
@@ -68,6 +74,7 @@
...
@@ -68,6 +74,7 @@
:key=
"item.userId"
:key=
"item.userId"
v-model=
"form.userId"
v-model=
"form.userId"
:label=
"item.userId"
:label=
"item.userId"
:disabled=
"isDisabled"
>
{{
item
.
name
}}
</el-radio>
>
{{
item
.
name
}}
</el-radio>
<p
<p
class=
"warningFont"
class=
"warningFont"
...
@@ -274,7 +281,10 @@
...
@@ -274,7 +281,10 @@
v-if=
"hasProError"
v-if=
"hasProError"
>
该门店无分配商品
</span>
>
该门店无分配商品
</span>
<div>
<div>
<el-checkbox-group
v-model=
"baseGoodsIds"
>
<el-checkbox-group
v-model=
"baseGoodsIds"
:disabled=
"isDisabled"
>
<div
<div
class=
"base-pro-block base-pro-block-wh"
class=
"base-pro-block base-pro-block-wh"
v-for=
"(item, index) in goodList"
v-for=
"(item, index) in goodList"
...
@@ -366,6 +376,7 @@ export default {
...
@@ -366,6 +376,7 @@ export default {
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
key
:
new
Date
(),
key
:
new
Date
(),
isDisabled
:
false
,
form
:
{
form
:
{
merchantId
:
''
,
merchantId
:
''
,
userId
:
''
,
userId
:
''
,
...
@@ -454,9 +465,10 @@ export default {
...
@@ -454,9 +465,10 @@ export default {
// this.getServiceStore()
// this.getServiceStore()
if
(
this
.
addOrEdit
===
'edit'
)
{
if
(
this
.
addOrEdit
===
'edit'
)
{
this
.
form
=
_
.
cloneDeep
(
this
.
$route
.
params
.
form
)
this
.
form
=
_
.
cloneDeep
(
this
.
$route
.
params
.
form
)
// console.log(this.form)
this
.
isDisabled
=
(
this
.
form
.
operStatus
!==
1
)
this
.
form
.
customerSex
=
this
.
form
.
customerSex
?
(
this
.
form
.
customerSex
+
''
)
:
''
this
.
form
.
customerSex
=
this
.
form
.
customerSex
?
(
this
.
form
.
customerSex
+
''
)
:
''
this
.
userInfo
.
beSuper
&&
(
this
.
form
.
sellerMerchantId
=
this
.
form
.
yqMerchantId
)
this
.
userInfo
.
beSuper
&&
(
this
.
form
.
sellerMerchantId
=
this
.
form
.
yqMerchantId
)
this
.
getAllVehicleBrand
(()
=>
{
this
.
getAllVehicleBrand
(()
=>
{
this
.
form
.
carChildsBrandId
&&
this
.
changeCarBrand
(
this
.
form
.
carBrandId
,
()
=>
{
this
.
form
.
carChildsBrandId
&&
this
.
changeCarBrand
(
this
.
form
.
carBrandId
,
()
=>
{
this
.
form
.
carChildsBrandId
=
this
.
$route
.
params
.
form
.
carChildsBrandId
this
.
form
.
carChildsBrandId
=
this
.
$route
.
params
.
form
.
carChildsBrandId
...
...
src/views/customer/recordList.vue
View file @
10115c9
...
@@ -249,7 +249,8 @@ export default {
...
@@ -249,7 +249,8 @@ export default {
},
{
},
{
label
:
'录入日期'
,
label
:
'录入日期'
,
name
:
'entryTime'
,
name
:
'entryTime'
,
type
:
'datePicker'
type
:
'datePicker'
,
pickerOptions
:
'rangePickerOptions'
}],
}],
getListApi
:
getList
,
getListApi
:
getList
,
// 表格参数
// 表格参数
...
...
src/views/financeManage/financeList.vue
View file @
10115c9
...
@@ -321,7 +321,8 @@ export default {
...
@@ -321,7 +321,8 @@ export default {
showFormData
:
[{
showFormData
:
[{
label
:
'按时间'
,
label
:
'按时间'
,
name
:
'time'
,
name
:
'time'
,
type
:
'datePicker'
type
:
'datePicker'
,
pickerOptions
:
'rangePickerOptions'
},
{
},
{
label
:
'服务门店'
,
label
:
'服务门店'
,
name
:
'ydMerchantId'
,
name
:
'ydMerchantId'
,
...
...
src/views/goods/commodity.vue
View file @
10115c9
...
@@ -144,7 +144,8 @@ export default {
...
@@ -144,7 +144,8 @@ export default {
},
{
},
{
label
:
'创建时间'
,
label
:
'创建时间'
,
name
:
'createTime'
,
name
:
'createTime'
,
type
:
'datePicker'
type
:
'datePicker'
,
pickerOptions
:
'rangePickerOptions'
}],
}],
getListApi
:
getList
,
getListApi
:
getList
,
// 表格参数
// 表格参数
...
...
src/views/goods/editCommodity.vue
View file @
10115c9
...
@@ -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 @
10115c9
...
@@ -121,7 +121,8 @@ export default {
...
@@ -121,7 +121,8 @@ export default {
},
{
},
{
label
:
'创建时间'
,
label
:
'创建时间'
,
name
:
'createTime'
,
name
:
'createTime'
,
type
:
'datePicker'
type
:
'datePicker'
,
pickerOptions
:
'rangePickerOptions'
}],
}],
getListApi
:
getList
,
getListApi
:
getList
,
// 表格参数
// 表格参数
...
@@ -137,7 +138,7 @@ export default {
...
@@ -137,7 +138,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 @
10115c9
...
@@ -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
()
...
@@ -361,7 +362,7 @@ export default {
...
@@ -361,7 +362,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
()
}
}
...
@@ -382,20 +383,18 @@ export default {
...
@@ -382,20 +383,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
()
...
@@ -407,7 +406,7 @@ export default {
...
@@ -407,7 +406,7 @@ export default {
showChartLoading
(
chart
)
{
showChartLoading
(
chart
)
{
chart
.
showLoading
({
chart
.
showLoading
({
text
:
'加载中'
,
text
:
'加载中'
,
color
:
'#2B9AFF'
,
color
:
'#2B9AFF'
})
})
},
},
hideChartLoading
(
chart
)
{
hideChartLoading
(
chart
)
{
...
@@ -451,16 +450,13 @@ export default {
...
@@ -451,16 +450,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
{
...
@@ -479,9 +475,8 @@ export default {
...
@@ -479,9 +475,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', */
...
@@ -496,7 +491,7 @@ export default {
...
@@ -496,7 +491,7 @@ export default {
let
index
=
moment
(
key
).
day
()
-
1
let
index
=
moment
(
key
).
day
()
-
1
let
list
=
data
[
key
]
let
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
...
@@ -506,8 +501,8 @@ export default {
...
@@ -506,8 +501,8 @@ export default {
})
})
}
}
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'
,
...
@@ -517,7 +512,7 @@ export default {
...
@@ -517,7 +512,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
...
@@ -535,7 +530,7 @@ export default {
...
@@ -535,7 +530,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
)
})
})
...
@@ -546,9 +541,9 @@ export default {
...
@@ -546,9 +541,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',
...
@@ -565,7 +560,7 @@ export default {
...
@@ -565,7 +560,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
)
...
@@ -576,31 +571,31 @@ export default {
...
@@ -576,31 +571,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
{
...
@@ -623,10 +618,11 @@ export default {
...
@@ -623,10 +618,11 @@ export default {
...
this
.
getDateFormatByType
(
this
.
customerType
),
...
this
.
getDateFormatByType
(
this
.
customerType
),
yqMerchantId
:
this
.
id
yqMerchantId
:
this
.
id
}
}
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
})
})
}
}
...
@@ -637,7 +633,7 @@ export default {
...
@@ -637,7 +633,7 @@ 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
:
0px
5px
0
15px
;
padding
:
0px
5px
0
15px
;
overflow-y
:
auto
;
overflow-y
:
auto
;
...
@@ -669,6 +665,9 @@ export default {
...
@@ -669,6 +665,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 @
10115c9
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,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
>
...
@@ -121,7 +121,7 @@ export default {
...
@@ -121,7 +121,7 @@ export default {
3
:
'待支付'
,
3
:
'待支付'
,
4
:
'已支付'
,
4
:
'已支付'
,
5
:
'已退款'
,
5
:
'已退款'
,
6
:
'已完成'
,
6
:
'已完成'
}
,
}
,
showFormData
:
[{
showFormData
:
[{
label
:
'订单状态'
,
label
:
'订单状态'
,
...
@@ -153,7 +153,8 @@ export default {
...
@@ -153,7 +153,8 @@ export default {
}
,
{
}
,
{
label
:
'下单日期'
,
label
:
'下单日期'
,
name
:
'orderTime'
,
name
:
'orderTime'
,
type
:
'datePicker'
type
:
'datePicker'
,
pickerOptions
:
'rangePickerOptions'
}
],
}
],
searchForm
:
{
searchForm
:
{
orderStatus
:
''
,
orderStatus
:
''
,
...
@@ -184,21 +185,19 @@ export default {
...
@@ -184,21 +185,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'
)
+
' 23:59:59'
params
.
placeOrderEndDateStr
=
Util
.
dateFormate
(
form
.
orderTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
if
(
form
.
orderStatus
)
{
if
(
form
.
orderStatus
)
{
params
.
status
=
form
.
orderStatus
params
.
status
=
form
.
orderStatus
}
}
...
@@ -250,7 +249,7 @@ export default {
...
@@ -250,7 +249,7 @@ export default {
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
this
.
page
.
pageNum
=
value
this
.
page
.
pageNum
=
value
this
.
getList
()
this
.
getList
()
}
,
}
}
}
}
}
...
...
src/views/systemConfig/merchantManage.vue
View file @
10115c9
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
_
from
'lodash'
import
{
getList
}
from
'@api/merchant'
import
{
getList
}
from
'@api/merchant'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
BaseData
,
userTypeList
,
ghUserTypeList
,
userType
,
ghUserType
,
merchantClassifyList
}
from
'@/common/constants.js'
import
{
BaseData
,
userTypeList
,
ghUserTypeList
,
userType
,
ghUserType
,
merchantClassifyList
}
from
'@/common/constants.js'
...
@@ -65,7 +66,7 @@ export default {
...
@@ -65,7 +66,7 @@ export default {
optionsName
:
'channelTypeList'
,
optionsName
:
'channelTypeList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
if
(
value
)
{
if
(
value
)
{
this
.
baseData
.
userTypeList
=
value
===
2
?
ghUserTypeList
:
userTypeList
this
.
baseData
.
userTypeList
=
value
===
2
?
this
.
ghUserTypeList
:
this
.
userTypeList
}
}
this
.
searchForm
.
userType
=
''
this
.
searchForm
.
userType
=
''
this
.
getOptionsList
()
this
.
getOptionsList
()
...
@@ -140,7 +141,7 @@ export default {
...
@@ -140,7 +141,7 @@ export default {
},
{
},
{
label
:
'更新时间'
,
label
:
'更新时间'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
&&
cellValue
.
settleAccountRule
)
{
if
(
cellValue
&&
cellValue
.
settleAccountRule
)
{
return
cellValue
.
settleAccountRule
.
updateDateStr
return
cellValue
.
settleAccountRule
.
updateDateStr
}
}
return
''
return
''
...
@@ -166,6 +167,8 @@ export default {
...
@@ -166,6 +167,8 @@ export default {
mounted
()
{
mounted
()
{
this
.
getBaseData
()
this
.
getBaseData
()
this
.
userTypeList
=
_
.
cloneDeep
(
userTypeList
).
filter
(
item
=>
item
.
confLabel
!==
'员工'
)
this
.
ghUserTypeList
=
_
.
cloneDeep
(
ghUserTypeList
).
filter
(
item
=>
!
[
'员工'
,
'供应商'
].
includes
(
item
.
confLabel
))
},
},
methods
:
{
methods
:
{
...
...
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