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 9be7e5f1
authored
May 13, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优惠券核销列表;优惠券详情
1 parent
13ff5aba
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
15 deletions
src/api/modules/record.js
src/router/routes.js
src/views/couponManage/index.vue
src/views/couponManage/receiveDetail.vue
src/views/couponManage/recordList.vue
src/views/memberCenter/record.vue
src/api/modules/record.js
View file @
9be7e5f
...
@@ -98,4 +98,4 @@ const verificationExportApi = params => {
...
@@ -98,4 +98,4 @@ const verificationExportApi = params => {
// })
// })
// }
// }
export
{
getRecordListApi
,
getVerificationCode
,
verificationExportApi
}
export
default
{
getRecordListApi
,
getVerificationCode
,
verificationExportApi
}
src/router/routes.js
View file @
9be7e5f
...
@@ -83,6 +83,12 @@ const staticRoutes = Object.freeze([
...
@@ -83,6 +83,12 @@ const staticRoutes = Object.freeze([
meta
:
{}
meta
:
{}
},
},
{
{
name
:
'recordList'
,
path
:
'/couponManage/recordList'
,
component
:
resolve
=>
require
([
`@/views/couponManage/recordList.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'editCashCoupon'
,
name
:
'editCashCoupon'
,
path
:
'/couponManage/editCashCoupon/:addOrEdit'
,
path
:
'/couponManage/editCashCoupon/:addOrEdit'
,
component
:
resolve
=>
require
([
`@/views/couponManage/editCashCoupon.vue`
],
resolve
),
component
:
resolve
=>
require
([
`@/views/couponManage/editCashCoupon.vue`
],
resolve
),
...
...
src/views/couponManage/index.vue
View file @
9be7e5f
<!--
商品管理-门店
-->
<!--
优惠券列表
-->
<
template
>
<
template
>
<div
class=
"marketing pro-group p-t-10"
>
<div
class=
"marketing pro-group p-t-10"
>
<div
class=
"m-b-10"
>
<div
class=
"m-b-10"
>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<!-- <el-button v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<!-- <el-button v-if="scope.scope.status == '2' || scope.scope.status == '3'" type="text" @click="handleEdit(3, scope.scope)">查看</el-button> -->
<GLButton
v-if=
"scope.scope.status == '1' || scope.scope.status == '3'"
type=
"text"
@
click=
"del(scope.scope)"
fn=
"删除"
mode=
"el-button"
display=
"disabled"
>
删除
</GLButton>
<GLButton
v-if=
"scope.scope.status == '1' || scope.scope.status == '3'"
type=
"text"
@
click=
"del(scope.scope)"
fn=
"删除"
mode=
"el-button"
display=
"disabled"
>
删除
</GLButton>
<!-- <el-button v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)">删除</el-button> -->
<!-- <el-button v-if="scope.scope.status == '1' || scope.scope.status == '3'" type="text" @click="del(scope.scope)">删除</el-button> -->
<
GLButton
type=
"text"
@
click=
"writeOffDetail(scope.scope)"
fn=
"核销详情"
mode=
"el-button"
>
核销详情
</GLButton
>
<
!-- <GLButton type="text" @click="writeOffDetail(scope.scope)" fn="核销详情" mode="el-button">核销详情</GLButton> --
>
<GLButton
type=
"text"
@
click=
"receiveDetail(scope.scope)"
fn=
"领取详情"
mode=
"el-button"
>
领取详情
</GLButton>
<GLButton
type=
"text"
@
click=
"receiveDetail(scope.scope)"
fn=
"领取详情"
mode=
"el-button"
>
领取详情
</GLButton>
<!-- <el-button type="text" @click="writeOffDetail(scope.scope)">核销详情</el-button>
<!-- <el-button type="text" @click="writeOffDetail(scope.scope)">核销详情</el-button>
<el-button type="text" @click="receiveDetail(scope.scope)">领取详情</el-button> -->
<el-button type="text" @click="receiveDetail(scope.scope)">领取详情</el-button> -->
...
@@ -66,8 +66,6 @@ export default {
...
@@ -66,8 +66,6 @@ export default {
url
:
url
,
url
:
url
,
// 下架
// 下架
isDownVisible
:
false
,
isDownVisible
:
false
,
// 集团版集团账号
isGroupUp
:
false
,
downForm
:
{
downForm
:
{
id
:
''
,
id
:
''
,
offReason
:
''
,
offReason
:
''
,
...
@@ -285,8 +283,7 @@ export default {
...
@@ -285,8 +283,7 @@ export default {
created
()
{
created
()
{
this
.
userInfo
=
this
.
$globalState
.
session
this
.
userInfo
=
this
.
$globalState
.
session
this
.
isGroupUp
=
this
.
userInfo
.
merchantModel
==
1
&&
this
.
userInfo
.
accountLevel
!=
4
if
(
!
this
.
$isGroupUp
)
{
if
(
!
this
.
isGroupUp
)
{
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
'适用范围'
)
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
'适用范围'
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
}
}
...
...
src/views/couponManage/receiveDetail.vue
View file @
9be7e5f
...
@@ -5,7 +5,12 @@
...
@@ -5,7 +5,12 @@
<div
class=
"container edit-container m-b-20"
>
<div
class=
"container edit-container m-b-20"
>
<p
class=
"edit-title"
>
优惠券信息
</p>
<p
class=
"edit-title"
>
优惠券信息
</p>
<el-form
class=
"flex-wrap"
label-width=
"120px"
>
<el-form
class=
"flex-wrap"
label-width=
"120px"
>
<el-form-item
class=
"info-item"
v-for=
"(item, index) in couponFormData"
:key=
"index"
:label=
"item.label + ':'"
>
{{
coupon
[
item
.
name
]
}}
</el-form-item>
<el-form-item
class=
"info-item"
v-for=
"(item, index) in couponFormData"
:key=
"index"
:label=
"item.label + ':'"
>
<div
v-if=
"item.name == 'discountType' && coupon[item.name]"
>
<img
style=
"vertical-align: middle;"
:src=
"require(`@/assets/coupon/icon-$
{attrToIcon[coupon[item.name]]}.png`)" />
</div>
<div
v-else
>
{{
coupon
[
item
.
name
]
}}
</div>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -15,7 +20,6 @@
...
@@ -15,7 +20,6 @@
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<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=
"goback"
>
返回
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
...
@@ -64,6 +68,9 @@
...
@@ -64,6 +68,9 @@
<GLTable
ref=
"receiveList"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<GLTable
ref=
"receiveList"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
></GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button
type=
"primary"
:size=
"size"
@
click=
"goback"
>
返回
</el-button>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -75,6 +82,8 @@ export default {
...
@@ -75,6 +82,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
footerLeft
:
'0'
,
footerWidth
:
'0'
,
url
:
url
,
url
:
url
,
coupon
:
{
coupon
:
{
couponName
:
''
,
couponName
:
''
,
...
@@ -84,6 +93,11 @@ export default {
...
@@ -84,6 +93,11 @@ export default {
},
},
effective
:
''
,
effective
:
''
,
useB
:
''
,
useB
:
''
,
attrToIcon
:
{
2
:
'discount'
,
3
:
'cash'
,
4
:
'exchange'
},
// 优惠券信息
// 优惠券信息
couponFormData
:
[
couponFormData
:
[
{
{
...
@@ -92,7 +106,7 @@ export default {
...
@@ -92,7 +106,7 @@ export default {
},
},
{
{
label
:
'券类型'
,
label
:
'券类型'
,
name
:
''
name
:
'
discountType
'
},
},
{
{
label
:
'有效期'
,
label
:
'有效期'
,
...
@@ -118,7 +132,8 @@ export default {
...
@@ -118,7 +132,8 @@ export default {
// 表格
// 表格
searchForm
:
{
searchForm
:
{
phone
:
''
,
phone
:
''
,
wechatUserFlag
:
''
wechatUserFlag
:
''
,
status
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
// 搜索
// 搜索
...
@@ -137,6 +152,15 @@ export default {
...
@@ -137,6 +152,15 @@ export default {
optionId
:
'statusId'
,
optionId
:
'statusId'
,
optionLabel
:
'statusName'
,
optionLabel
:
'statusName'
,
optionsName
:
'wechatUserFlagList'
optionsName
:
'wechatUserFlagList'
},
{
label
:
'使用状态'
,
name
:
'status'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'statusList'
}
}
],
],
// 表格
// 表格
...
@@ -205,6 +229,16 @@ export default {
...
@@ -205,6 +229,16 @@ export default {
statusId
:
'1'
,
statusId
:
'1'
,
statusName
:
'否'
statusName
:
'否'
}
}
],
statusList
:
[
{
confId
:
'1'
,
confName
:
'已使用'
},
{
confId
:
'2'
,
confName
:
'未使用'
}
]
]
},
},
exportLoading
:
false
exportLoading
:
false
...
@@ -214,6 +248,8 @@ export default {
...
@@ -214,6 +248,8 @@ export default {
components
:
{},
components
:
{},
mounted
()
{
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
this
.
getInfo
(
this
.
$route
.
params
.
id
)
this
.
getInfo
(
this
.
$route
.
params
.
id
)
},
},
...
...
src/views/couponManage/recordList.vue
0 → 100644
View file @
9be7e5f
This diff is collapsed.
Click to expand it.
src/views/memberCenter/record.vue
View file @
9be7e5f
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
getRecordListApi
,
getVerificationCode
,
verificationExportApi
}
from
'@/api/modules/record'
//
import { getRecordListApi, getVerificationCode, verificationExportApi } from '@/api/modules/record'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
dateFormat
}
from
'@/utils/index.js'
import
{
dateFormat
}
from
'@/utils/index.js'
import
{
exportFn
}
from
'@/common/constant'
import
{
exportFn
}
from
'@/common/constant'
...
@@ -105,7 +105,7 @@ export default {
...
@@ -105,7 +105,7 @@ export default {
// 44187877
// 44187877
searchFormTable
:
{},
searchFormTable
:
{},
// 表格组件
// 表格组件
getListApi
:
getRecordListApi
,
getListApi
:
this
.
$apis
.
record
.
getRecordListApi
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
...
@@ -233,7 +233,7 @@ export default {
...
@@ -233,7 +233,7 @@ export default {
let
params
=
{}
let
params
=
{}
params
.
verficationCode
=
this
.
ruleForm
.
verficationCode
params
.
verficationCode
=
this
.
ruleForm
.
verficationCode
// params.discountTypes=[7]
// params.discountTypes=[7]
getVerificationCode
(
params
).
then
(
res
=>
{
this
.
$apis
.
record
.
getVerificationCode
(
params
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
this
.
handleClose
()
this
.
handleClose
()
this
.
handleSearch
()
this
.
handleSearch
()
...
@@ -262,7 +262,7 @@ export default {
...
@@ -262,7 +262,7 @@ export default {
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
verificationExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
record
.
verificationExportApi
(
params
).
then
(
res
=>
{
exportFn
(
res
)
exportFn
(
res
)
})
})
},
},
...
...
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