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 066d8515
authored
Feb 16, 2022
by
周子尧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
b3edbf3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
42 deletions
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/index.vue
src/views/memberCenter/service.vue
src/views/couponManage/editCashCoupon.vue
View file @
066d851
...
@@ -33,6 +33,10 @@
...
@@ -33,6 +33,10 @@
<el-radio
v-model=
"editForm.useChannel"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
线上商品
</el-radio>
<el-radio
v-model=
"editForm.useChannel"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
线上商品
</el-radio>
<el-radio
v-model=
"editForm.useChannel"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
到店核销
</el-radio>
<el-radio
v-model=
"editForm.useChannel"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
到店核销
</el-radio>
</
template
>
</
template
>
<
template
slot=
"directionalFlagHtml"
>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"0"
:disabled=
"apear != 'couponAdd'"
>
否
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
是
</el-radio>
</
template
>
<
template
slot=
"effectiveHtml"
>
<
template
slot=
"effectiveHtml"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<br
/>
<br
/>
...
@@ -88,6 +92,9 @@
...
@@ -88,6 +92,9 @@
<
template
slot=
"useDescriptionHtml"
>
<
template
slot=
"useDescriptionHtml"
>
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="apear == 'couponSee'" />
<el-input
type=
"textarea"
v-model=
"editForm.useDescription"
style=
"width: 320px"
:autosize=
"
{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="apear == 'couponSee'" />
</
template
>
</
template
>
<
template
slot=
"editHtml"
>
<el-button
style=
"margin-left:80px"
@
click=
"editMessage"
>
编辑
</el-button>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
...
@@ -134,6 +141,7 @@ export default {
...
@@ -134,6 +141,7 @@ export default {
isMutiSelectVisible
:
false
,
isMutiSelectVisible
:
false
,
editForm
:
{
editForm
:
{
couponName
:
''
,
couponName
:
''
,
estimatedCost
:
''
,
useChannel
:
'1'
,
useChannel
:
'1'
,
effectiveType
:
'3'
,
effectiveType
:
'3'
,
effectiveTime
:
[],
effectiveTime
:
[],
...
@@ -141,7 +149,8 @@ export default {
...
@@ -141,7 +149,8 @@ export default {
useBarriers
:
'1'
,
useBarriers
:
'1'
,
full
:
''
,
full
:
''
,
goods
:
'1'
,
goods
:
'1'
,
goodsRefList
:
[]
goodsRefList
:
[],
directionalFlag
:
'0'
},
},
//商品列表
//商品列表
tableParams
:
{
tableParams
:
{
...
@@ -178,6 +187,7 @@ export default {
...
@@ -178,6 +187,7 @@ export default {
selectedProList
:
[],
selectedProList
:
[],
editRule
:
{
editRule
:
{
couponName
:
[{
required
:
true
,
message
:
'请输入优惠券名称'
,
trigger
:
'change'
}],
couponName
:
[{
required
:
true
,
message
:
'请输入优惠券名称'
,
trigger
:
'change'
}],
estimatedCost
:
[{
required
:
true
,
message
:
'请输入预估成本'
,
trigger
:
'change'
}],
effectiveType
:
[{
required
:
true
,
message
:
'请选择有效期'
,
trigger
:
'change'
}],
effectiveType
:
[{
required
:
true
,
message
:
'请选择有效期'
,
trigger
:
'change'
}],
effectiveTime
:
[{
required
:
true
,
message
:
'有效期不能为空'
,
trigger
:
'change'
}],
effectiveTime
:
[{
required
:
true
,
message
:
'有效期不能为空'
,
trigger
:
'change'
}],
effectiveDays
:
[{
required
:
true
,
message
:
'有效天数不能为空'
,
trigger
:
'change'
}],
effectiveDays
:
[{
required
:
true
,
message
:
'有效天数不能为空'
,
trigger
:
'change'
}],
...
@@ -195,49 +205,80 @@ export default {
...
@@ -195,49 +205,80 @@ export default {
width
:
'320px'
,
width
:
'320px'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
20
maxlength
:
20
// index:0
},
{
label
:
'预估成本'
,
name
:
'estimatedCost'
,
width
:
'320px'
,
type
:
'input'
,
maxlength
:
20
// index:1
},
},
{
{
label
:
'使用途径'
,
label
:
'使用途径'
,
name
:
'useChannel'
,
name
:
'useChannel'
,
addHtml
:
'useChannelHtml'
addHtml
:
'useChannelHtml'
// index:2
},
},
{
{
label
:
'有效期'
,
label
:
'有效期'
,
name
:
'effectiveType'
,
name
:
'effectiveType'
,
addHtml
:
'effectiveHtml'
addHtml
:
'effectiveHtml'
// index:3
},
},
{
{
label
:
'使用限制'
,
label
:
'使用限制'
,
name
:
'useBarriers'
,
name
:
'useBarriers'
,
addHtml
:
'useBarriersHtml'
addHtml
:
'useBarriersHtml'
// index:4
},
{
label
:
'定制礼包专用'
,
name
:
'directionalFlag'
,
addHtml
:
'directionalFlagHtml'
,
isHide
:
false
// index:5
},
},
{
{
label
:
'适用商品'
,
label
:
'适用商品'
,
name
:
'goods'
,
name
:
'goods'
,
addHtml
:
'goodsHtml'
,
addHtml
:
'goodsHtml'
,
isHide
:
false
isHide
:
false
// index:6
},
},
{
{
// label: '门店',
// label: '门店',
name
:
''
,
name
:
''
,
addHtml
:
'proTable'
,
addHtml
:
'proTable'
,
isHide
:
true
isHide
:
true
// index:7
},
},
{
{
label
:
'面值'
,
label
:
'面值'
,
name
:
'denomination'
,
name
:
'denomination'
,
addHtml
:
'denominationHtml'
addHtml
:
'denominationHtml'
// index:8
},
},
{
{
label
:
'库存'
,
label
:
'库存'
,
name
:
'stock'
,
name
:
'stock'
,
width
:
'150px'
,
width
:
'150px'
,
type
:
'input'
type
:
'input'
// index:9
},
},
{
{
label
:
'使用说明'
,
label
:
'使用说明'
,
name
:
'useDescription'
,
name
:
'useDescription'
,
addHtml
:
'useDescriptionHtml'
addHtml
:
'useDescriptionHtml'
// index:10
},
{
name
:
''
,
addHtml
:
'editHtml'
,
isHide
:
true
// index:11
}
}
]
]
}
}
...
@@ -256,12 +297,14 @@ export default {
...
@@ -256,12 +297,14 @@ export default {
if
(
addOrEdit
==
3
)
{
if
(
addOrEdit
==
3
)
{
this
.
apear
=
'couponSee'
this
.
apear
=
'couponSee'
this
.
title
=
'查看'
this
.
title
=
'查看'
this
.
editFormData
[
11
].
isHide
=
false
}
else
if
(
addOrEdit
==
2
)
{
}
else
if
(
addOrEdit
==
2
)
{
this
.
apear
=
'couponEdit'
this
.
apear
=
'couponEdit'
this
.
title
=
'编辑'
this
.
title
=
'编辑'
}
}
this
.
editFormData
[
0
].
isDisabled
=
true
this
.
editFormData
[
0
].
isDisabled
=
true
this
.
editFormData
[
7
].
isDisabled
=
true
this
.
editFormData
[
1
].
isDisabled
=
true
this
.
editFormData
[
9
].
isDisabled
=
true
}
else
{
}
else
{
this
.
apear
=
'couponAdd'
this
.
apear
=
'couponAdd'
this
.
title
=
'创建'
this
.
title
=
'创建'
...
@@ -300,28 +343,31 @@ export default {
...
@@ -300,28 +343,31 @@ export default {
}
}
},
},
'editForm.useChannel'
(
newValue
,
oldValue
)
{
'editForm.useChannel'
(
newValue
,
oldValue
)
{
let
goodHtmlIndex
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'goods'
)
let
proTableIndex
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
addHtml
==
'proTable'
)
if
(
newValue
==
1
)
{
if
(
newValue
==
1
)
{
this
.
editFormData
[
4
].
isHide
=
false
this
.
editFormData
[
goodHtmlIndex
].
isHide
=
false
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
5
].
isHide
=
false
this
.
editFormData
[
proTableIndex
].
isHide
=
false
}
}
}
else
{
}
else
{
this
.
editForm
.
useBarriers
=
'1'
this
.
editForm
.
useBarriers
=
'1'
this
.
editForm
.
full
=
''
this
.
editForm
.
full
=
''
this
.
editFormData
[
4
].
isHide
=
true
this
.
editFormData
[
goodHtmlIndex
].
isHide
=
true
this
.
editFormData
[
5
].
isHide
=
true
this
.
editFormData
[
proTableIndex
].
isHide
=
true
}
}
},
},
'editForm.goods'
(
newValue
,
oldValue
)
{
'editForm.goods'
(
newValue
,
oldValue
)
{
let
proTableIndex
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
addHtml
==
'proTable'
)
if
(
newValue
==
1
)
{
if
(
newValue
==
1
)
{
//全部商品
//全部商品
this
.
minPirce
=
this
.
minPirceForAll
this
.
minPirce
=
this
.
minPirceForAll
this
.
editFormData
[
5
].
isHide
=
true
this
.
editFormData
[
proTableIndex
].
isHide
=
true
}
else
{
}
else
{
//指定商品
//指定商品
this
.
minPirce
=
this
.
minPirceForPart
this
.
minPirce
=
this
.
minPirceForPart
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
if
(
this
.
editForm
.
goodsRefList
.
length
)
{
this
.
editFormData
[
5
].
isHide
=
false
this
.
editFormData
[
proTableIndex
].
isHide
=
false
}
}
}
}
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
)
{
if
(
this
.
editForm
.
denomination
&&
this
.
minPirce
&&
this
.
editForm
.
denomination
*
100
>
this
.
minPirce
)
{
...
@@ -332,10 +378,12 @@ export default {
...
@@ -332,10 +378,12 @@ export default {
},
},
'editForm.goodsRefList'
(
newValue
,
oldValue
)
{
'editForm.goodsRefList'
(
newValue
,
oldValue
)
{
let
goodHtmlIndex
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
'goods'
)
let
proTableIndex
=
this
.
editFormData
.
findIndex
(
item
=>
item
.
addHtml
==
'proTable'
)
if
(
newValue
.
length
)
{
if
(
newValue
.
length
)
{
this
.
editFormData
[
5
].
isHide
=
false
this
.
editFormData
[
proTableIndex
].
isHide
=
false
}
else
{
}
else
{
this
.
editFormData
[
5
].
isHide
=
true
this
.
editFormData
[
proTableIndex
].
isHide
=
true
}
}
},
},
...
@@ -358,6 +406,10 @@ export default {
...
@@ -358,6 +406,10 @@ export default {
},
},
methods
:
{
methods
:
{
// 编辑按钮
editMessage
(){
},
setDateString
(
objField
,
special
)
{
setDateString
(
objField
,
special
)
{
var
value
=
typeof
objField
==
'string'
?
objField
.
split
(
' '
)[
0
]
:
special
?
objField
.
format
(
'YYYY年MM月DD日'
)
:
objField
.
format
(
'YYYY年MM月DD日'
)
var
value
=
typeof
objField
==
'string'
?
objField
.
split
(
' '
)[
0
]
:
special
?
objField
.
format
(
'YYYY年MM月DD日'
)
:
objField
.
format
(
'YYYY年MM月DD日'
)
return
value
return
value
...
@@ -458,9 +510,10 @@ export default {
...
@@ -458,9 +510,10 @@ export default {
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
.
effectiveTime
=
[]
this
.
editForm
.
effectiveTime
=
[]
this
.
editForm
.
useChannel
=
this
.
editForm
.
useChannel
+
''
this
.
editForm
.
useChannel
=
this
.
editForm
.
useChannel
+
''
this
.
editForm
.
directionalFlag
=
this
.
editForm
.
directionalFlag
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
useBarriers
=
this
.
editForm
.
useBarriers
+
''
this
.
editForm
.
useBarriers
=
this
.
editForm
.
useBarriers
+
''
this
.
editForm
.
estimatedCost
=
(
this
.
editForm
.
estimatedCost
/
100
).
toFixed
(
2
)
//有效期
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if
(
this
.
editForm
.
effectiveType
==
2
)
{
if
(
this
.
editForm
.
effectiveType
==
2
)
{
...
@@ -544,7 +597,10 @@ export default {
...
@@ -544,7 +597,10 @@ export default {
//满多少减
//满多少减
obj
.
full
=
form
.
full
obj
.
full
=
form
.
full
}
}
//是否定制礼包专用
obj
.
directionalFlag
=
form
.
directionalFlag
//预估成本
obj
.
estimatedCost
=
form
.
estimatedCost
//面值
//面值
obj
.
denomination
=
form
.
denomination
obj
.
denomination
=
form
.
denomination
//库存
//库存
...
@@ -593,6 +649,7 @@ export default {
...
@@ -593,6 +649,7 @@ export default {
}
else
{
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
method
=
'createCouponApi'
//后台创建优惠券
}
}
console
.
log
(
params
)
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
...
...
src/views/couponManage/index.vue
View file @
066d851
...
@@ -127,6 +127,13 @@ export default {
...
@@ -127,6 +127,13 @@ export default {
}
}
},
},
{
{
label
:
'预估成本'
,
prop
:
'anticipatedCost '
,
formatter
:
cellValue
=>
{
return
cellValue
.
anticipatedCost
/
100
}
},
{
label
:
'已领取'
,
label
:
'已领取'
,
prop
:
'getAmount'
prop
:
'getAmount'
},
},
...
...
src/views/memberCenter/service.vue
View file @
066d851
...
@@ -3,17 +3,17 @@
...
@@ -3,17 +3,17 @@
<!-- //提示面板组件 -->
<!-- //提示面板组件 -->
<tip-panel
panelWidth=
"616px"
panelMinHeight=
"60px"
:panelContent=
"panelContent"
v-if=
"isFirstShow"
@
closePanel=
"closePanel"
></tip-panel>
<tip-panel
panelWidth=
"616px"
panelMinHeight=
"60px"
:panelContent=
"panelContent"
v-if=
"isFirstShow"
@
closePanel=
"closePanel"
></tip-panel>
<div
class=
"live-room container"
>
<div
class=
"live-room container"
>
<el-form
:inline=
"true"
style=
"width:100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-form
:inline=
"true"
style=
"width:
100%"
:model=
"searchForm"
label-width=
"70px"
label-position=
"right"
>
<el-row>
<el-row>
<!--
<el-form-item
size=
"small"
>
-->
<!--
<el-form-item
size=
"small"
>
-->
<!--
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
display="disabled" -->
<!--
<el-button
:size=
"size"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"handleCreate"
>
创建服务
</el-button>
display="disabled" -->
<GLButton
type=
"primary"
@
click=
"handleCreate"
style=
"margin-right:
30px"
size=
"small"
icon=
"el-icon-plus"
fn=
"创建服务"
mode=
"el-button"
>
创建服务
</GLButton>
<GLButton
type=
"primary"
@
click=
"handleCreate"
style=
"margin-right:
30px"
size=
"small"
icon=
"el-icon-plus"
fn=
"创建服务"
mode=
"el-button"
>
创建服务
</GLButton>
<!--
</el-form-item>
-->
<!--
</el-form-item>
-->
<el-form-item
size=
"small"
label=
"服务名称"
>
<el-form-item
size=
"small"
label=
"服务名称"
>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
<el-input
:size=
"size"
v-model=
"searchForm.couponName"
placeholder=
"请输入服务名称"
clearable
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<GLButton
type=
"text"
@
click=
"handleLossOption(scope.scope)"
fn=
"失效"
>
失效
</GLButton>
<GLButton
type=
"text"
@
click=
"handleLossOption(scope.scope)"
fn=
"失效"
>
失效
</GLButton>
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看服务"
>
查看
</GLButton>
<GLButton
type=
"text"
@
click=
"handleLook(scope.scope)"
fn=
"查看服务"
>
查看
</GLButton>
<GLButton
type=
"text"
@
click=
"handleDelete(scope.scope)"
fn=
"删除"
>
删除
</GLButton>
<GLButton
type=
"text"
@
click=
"handleDelete(scope.scope)"
fn=
"删除"
>
删除
</GLButton>
</
template
>
</
template
>
<
template
v-else-if=
"scope.scope.status == 3"
>
<
template
v-else-if=
"scope.scope.status == 3"
>
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<GLButton
type=
"text"
@
click=
"handleTakeOption(scope.scope)"
fn=
"生效"
>
生效
</GLButton>
<GLButton
type=
"text"
@
click=
"handleTakeOption(scope.scope)"
fn=
"生效"
>
生效
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
fn=
"编辑服务"
>
编辑
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
fn=
"编辑服务"
>
编辑
</GLButton>
<GLButton
type=
"text"
@
click=
"handleDelete(scope.scope)"
fn=
"删除"
>
删除
</GLButton>
<GLButton
type=
"text"
@
click=
"handleDelete(scope.scope)"
fn=
"删除"
>
删除
</GLButton>
</
template
>
</
template
>
</span>
</span>
</GLTable>
</GLTable>
...
@@ -57,8 +57,8 @@
...
@@ -57,8 +57,8 @@
</template>
</template>
<
script
>
<
script
>
import
{
getServiceListApi
,
effectiveService
,
deleteService
,
getLoginCount
}
from
'@/api/modules/service'
import
{
getServiceListApi
,
effectiveService
,
deleteService
,
getLoginCount
}
from
'@/api/modules/service'
import
url
from
"@/assets/empty.png"
import
url
from
'@/assets/empty.png'
import
{
serviceStatusList
}
from
'@/common/constant'
import
{
serviceStatusList
}
from
'@/common/constant'
import
tipPanel
from
'@/components/tipPanel/index.vue'
import
tipPanel
from
'@/components/tipPanel/index.vue'
export
default
{
export
default
{
...
@@ -67,8 +67,8 @@ export default {
...
@@ -67,8 +67,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
url
:
url
,
url
:
url
,
isReload
:
true
,
isReload
:
true
,
isFirstShow
:
false
,
isFirstShow
:
false
,
panelContent
:
'会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。'
,
panelContent
:
'会员服务:是由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。'
,
size
:
'small'
,
size
:
'small'
,
...
@@ -76,7 +76,7 @@ export default {
...
@@ -76,7 +76,7 @@ export default {
searchForm
:
{
searchForm
:
{
couponName
:
''
,
couponName
:
''
,
merchantId
:
44184606
,
merchantId
:
44184606
,
discountType
:
7
//6:商品折扣券,7:会员服务
discountType
:
7
//6:商品折扣券,7:会员服务
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
// 表格参数
// 表格参数
...
@@ -99,6 +99,13 @@ export default {
...
@@ -99,6 +99,13 @@ export default {
line
:
1
line
:
1
},
},
{
{
label
:
'预估成本(元)'
,
prop
:
'anticipatedCost '
,
formatter
:
cellValue
=>
{
return
cellValue
.
anticipatedCost
/
100
}
},
{
label
:
'有效期'
,
label
:
'有效期'
,
prop
:
'effectiveType'
,
prop
:
'effectiveType'
,
addHtml
:
'effectiveType'
addHtml
:
'effectiveType'
...
@@ -125,7 +132,7 @@ export default {
...
@@ -125,7 +132,7 @@ export default {
{
{
label
:
'创建时间'
,
label
:
'创建时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
95
width
:
95
}
}
]
]
},
},
...
@@ -139,13 +146,11 @@ export default {
...
@@ -139,13 +146,11 @@ export default {
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
//运行在qiankun容器中
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
searchForm
.
merchantId
=
this
.
merchantId
this
.
searchForm
.
merchantId
=
this
.
merchantId
}
}
this
.
getLoginCountFun
()
this
.
getLoginCountFun
()
},
mounted
()
{
},
},
mounted
()
{},
methods
:
{
methods
:
{
getLoginCountFun
()
{
getLoginCountFun
()
{
//loginType:4是查会员服务浏览次数
//loginType:4是查会员服务浏览次数
...
@@ -179,13 +184,12 @@ export default {
...
@@ -179,13 +184,12 @@ export default {
},
},
handleReset
()
{
handleReset
()
{
this
.
isReload
=
false
this
.
isReload
=
false
this
.
searchForm
=
{
couponName
:
''
,
merchantId
:
this
.
merchantId
,
discountType
:
7
}
this
.
searchForm
=
{
couponName
:
''
,
merchantId
:
this
.
merchantId
,
discountType
:
7
}
// this.handleSearch()
// this.handleSearch()
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
this
.
isReload
=
true
})
})
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
memberServiceRef
.
refreshTable
()
this
.
$refs
.
memberServiceRef
.
refreshTable
()
...
@@ -196,14 +200,14 @@ export default {
...
@@ -196,14 +200,14 @@ export default {
// if (!this.$refs.memberServiceRef.data.length) {
// if (!this.$refs.memberServiceRef.data.length) {
// this.$refs.memberServiceRef.setTableHeightFun()
// this.$refs.memberServiceRef.setTableHeightFun()
// }
// }
this
.
$refs
.
memberServiceRef
.
data
.
length
?
(
this
.
$refs
.
memberServiceRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
memberServiceRef
.
setTableHeightFun
()
this
.
$refs
.
memberServiceRef
.
data
.
length
?
(
this
.
$refs
.
memberServiceRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
memberServiceRef
.
setTableHeightFun
()
},
},
//创建服务
//创建服务
handleCreate
()
{
handleCreate
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/memberCenter/serviceAddUpdateLook'
,
path
:
'/memberCenter/serviceAddUpdateLook'
,
query
:{
query
:
{
$title
:
encodeURI
(
'创建服务'
)
$title
:
encodeURI
(
'创建服务'
)
}
}
})
})
},
},
...
@@ -246,7 +250,7 @@ export default {
...
@@ -246,7 +250,7 @@ export default {
query
:
{
query
:
{
couponId
:
row
.
id
,
couponId
:
row
.
id
,
title
:
'编辑'
,
title
:
'编辑'
,
$title
:
encodeURI
(
'编辑服务'
)
$title
:
encodeURI
(
'编辑服务'
)
}
}
})
})
},
},
...
@@ -256,7 +260,7 @@ export default {
...
@@ -256,7 +260,7 @@ export default {
query
:
{
query
:
{
couponId
:
row
.
id
,
couponId
:
row
.
id
,
title
:
'查看'
,
title
:
'查看'
,
$title
:
encodeURI
(
'查看服务'
)
$title
:
encodeURI
(
'查看服务'
)
}
}
})
})
},
},
...
@@ -285,8 +289,7 @@ export default {
...
@@ -285,8 +289,7 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-input--small
.el-input__inner
{
/
deep
/
.el-input--small
.el-input__inner
{
width
:
215px
;
width
:
215px
;
}
}
</
style
>
</
style
>
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