Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 a9d225bc
authored
Dec 24, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
into v1.0.1
2 parents
b7e3f4de
64c067eb
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
121 additions
and
35 deletions
src/api/modules/couponManage.js
src/api/modules/record.js
src/views/couponManage/index.vue
src/views/couponManage/receiveDetail.vue
src/views/couponManage/writeOffDetail.vue
src/views/memberCenter/record.vue
src/views/memberCenter/setmeal.vue
vue.config.js
src/api/modules/couponManage.js
View file @
a9d225b
...
@@ -13,6 +13,17 @@ const getMerchantListApi = params => {
...
@@ -13,6 +13,17 @@ const getMerchantListApi = params => {
})
})
}
}
//优惠券列表-导出
const
couponExportApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
list.export`
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
//生效/失效
//生效/失效
const
effectiveCouponApi
=
params
=>
{
const
effectiveCouponApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
effective`
params
.
method
=
`
${
defaultPath
}
effective`
...
@@ -48,6 +59,17 @@ const getVerificationListApi = params => {
...
@@ -48,6 +59,17 @@ const getVerificationListApi = params => {
})
})
}
}
// 核销详情-导出
const
verificationExportApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
verification.code.export.list`
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
//领取记录列表
//领取记录列表
const
getListReceiveRecordApi
=
params
=>
{
const
getListReceiveRecordApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
listReceiveRecordByCouponId`
params
.
method
=
`
${
defaultPath
}
listReceiveRecordByCouponId`
...
@@ -129,4 +151,4 @@ const getAllGoodsApi = params => {
...
@@ -129,4 +151,4 @@ const getAllGoodsApi = params => {
}
}
export
default
{
getMerchantListApi
,
getVerificationLis
tApi
,
effectiveCouponApi
,
codeVerificationApi
,
getCouponDetailApi
,
deleteCouponApi
,
createCouponApi
,
updateCouponApi
,
getAllGoodsApi
,
getListReceiveRecordApi
,
exportReceiveRecordApi
}
export
default
{
getMerchantListApi
,
couponExportApi
,
getVerificationListApi
,
verificationExpor
tApi
,
effectiveCouponApi
,
codeVerificationApi
,
getCouponDetailApi
,
deleteCouponApi
,
createCouponApi
,
updateCouponApi
,
getAllGoodsApi
,
getListReceiveRecordApi
,
exportReceiveRecordApi
}
\ No newline at end of file
\ No newline at end of file
src/api/modules/record.js
View file @
a9d225b
...
@@ -3,37 +3,47 @@ import { http } from '@/main'
...
@@ -3,37 +3,47 @@ import { http } from '@/main'
// const defaultPath = 'scrm.api.live.'
// const defaultPath = 'scrm.api.live.'
const
getRecordListApi
=
params
=>
{
const
getRecordListApi
=
params
=>
{
// params.method = `${defaultPath}goods.list`
// params.method = `${defaultPath}goods.list`
params
.
method
=
`scrm.api.coupon.verification.code.verification.list`
params
.
method
=
`scrm.api.coupon.verification.code.verification.list`
return
http
({
return
http
({
url
:
'rop-scrm-coupon/router'
,
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
getVerificationCode
=
params
=>
{
const
getVerificationCode
=
params
=>
{
params
.
method
=
`scrm.api.coupon.verification.code.verification`
params
.
method
=
`scrm.api.coupon.verification.code.verification`
return
http
({
return
http
({
url
:
'rop-scrm-coupon/router'
,
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
// const auditGoodApi = params => {
// 核销详情-导出
// params.method = `${defaultPath}audit.goods`
const
verificationExportApi
=
params
=>
{
// return http({
params
.
method
=
'scrm.api.coupon.verification.code.export.list'
// url: 'rop-scrm-live/router',
return
http
({
// method: 'POST',
url
:
'rop-scrm-coupon/router'
,
// data: params,
method
:
'GET'
,
// sign: true,
data
:
params
,
// returnAll: true
sign
:
true
// })
})
// }
}
// const auditGoodApi = params => {
// params.method = `${defaultPath}audit.goods`
// return http({
// url: 'rop-scrm-live/router',
// method: 'POST',
// data: params,
// sign: true,
// returnAll: true
// })
// }
// const getGoodInfoApi = params => {
// const getGoodInfoApi = params => {
// params.method = `${defaultPath}get.good.by.id`
// params.method = `${defaultPath}get.good.by.id`
...
@@ -88,4 +98,4 @@ const getVerificationCode=params=>{
...
@@ -88,4 +98,4 @@ const getVerificationCode=params=>{
// })
// })
// }
// }
export
{
getRecordListApi
,
getVerificationCode
}
export
{
getRecordListApi
,
getVerificationCode
,
verificationExportApi
}
\ No newline at end of file
\ No newline at end of file
src/views/couponManage/index.vue
View file @
a9d225b
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<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"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
...
@@ -345,6 +346,17 @@ export default {
...
@@ -345,6 +346,17 @@ export default {
}
}
},
},
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
this
.
$apis
.
couponManage
.
couponExportApi
(
params
).
then
(
res
=>
{
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
coupon
.
refreshTable
()
this
.
$refs
.
coupon
.
refreshTable
()
},
},
...
...
src/views/couponManage/receiveDetail.vue
View file @
a9d225b
...
@@ -40,6 +40,10 @@
...
@@ -40,6 +40,10 @@
<span
class=
"red-txt"
>
{{
effective
}}
</span>
<span
class=
"red-txt"
>
{{
effective
}}
</span>
</span>
</span>
<span
style=
"margin-left:10px"
>
<span
style=
"margin-left:10px"
>
已过期:
<span
class=
"red-txt"
>
{{
}}
</span>
</span>
<span
style=
"margin-left:10px"
>
使用限制:
使用限制:
<span
class=
"red-txt"
>
{{
useB
}}
</span>
<span
class=
"red-txt"
>
{{
useB
}}
</span>
</span>
</span>
...
...
src/views/couponManage/writeOffDetail.vue
View file @
a9d225b
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<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"
type=
"primary"
@
click=
"writeOff"
>
优惠券核销
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"writeOff"
>
优惠券核销
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
@
click=
"goback"
>
返回
</el-button>
<el-button
:size=
"size"
@
click=
"goback"
>
返回
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
...
@@ -105,9 +106,9 @@ export default {
...
@@ -105,9 +106,9 @@ export default {
},
},
{
{
label
:
'领取时间'
,
label
:
'领取时间'
,
prop
:
'
createdDat
e'
,
prop
:
'
receiveTim
e'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDat
e
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
receiveTim
e
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
},
},
{
{
...
@@ -254,6 +255,17 @@ export default {
...
@@ -254,6 +255,17 @@ export default {
}
}
},
},
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
this
.
$apis
.
couponManage
.
verificationExportApi
(
params
).
then
(
res
=>
{
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
writeOffList
.
refreshTable
()
this
.
$refs
.
writeOffList
.
refreshTable
()
},
},
...
...
src/views/memberCenter/record.vue
View file @
a9d225b
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
<el-form-item
size=
"small"
style=
"float: right"
>
<el-form-item
size=
"small"
style=
"float: right"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"openDialog"
>
核销
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"openDialog"
>
核销
</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"
type=
"primary"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
...
@@ -59,7 +60,7 @@
...
@@ -59,7 +60,7 @@
<
script
>
<
script
>
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
getRecordListApi
,
getVerificationCode
}
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'
export
default
{
export
default
{
...
@@ -158,16 +159,21 @@ export default {
...
@@ -158,16 +159,21 @@ export default {
return
dateFormat
(
date
)
return
dateFormat
(
date
)
},
},
beforeSearchFn
()
{
getParams
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
params
.
daterange
)
{
if
(
this
.
searchFormTable
.
daterange
)
{
params
.
verificationTimeStart
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
verificationTimeStart
=
this
.
searchForm
.
daterange
[
0
]
params
.
verificationTimeEnd
=
this
.
searchForm
.
daterange
[
1
]
this
.
searchFormTable
.
verificationTimeEnd
=
this
.
searchForm
.
daterange
[
1
]
}
else
{
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
if
(
params
.
beginTime
)
delete
params
.
beginTime
&&
delete
params
.
endTime
}
}
delete
this
.
searchFormTable
.
daterange
delete
params
.
daterange
return
params
},
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
this
.
getParams
()
resolve
()
resolve
()
})
})
},
},
...
@@ -231,6 +237,18 @@ export default {
...
@@ -231,6 +237,18 @@ export default {
// path: '/liveRoom/editLiveRoom'
// path: '/liveRoom/editLiveRoom'
})
})
},
},
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
verificationExportApi
(
params
).
then
(
res
=>
{
var
a
=
document
.
createElement
(
'a'
)
a
.
setAttribute
(
'href'
,
res
)
a
.
setAttribute
(
'target'
,
'_blank'
)
document
.
body
.
appendChild
(
a
)
a
.
click
()
})
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
memberRecordRef
.
refreshTable
()
this
.
$refs
.
memberRecordRef
.
refreshTable
()
},
},
...
...
src/views/memberCenter/setmeal.vue
View file @
a9d225b
...
@@ -14,18 +14,26 @@
...
@@ -14,18 +14,26 @@
</span>
</span>
<span
class=
"table-btns"
slot=
"optionsFun"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
class=
"table-btns"
slot=
"optionsFun"
slot-scope=
"scope"
:data=
"scope.scope"
>
<template
v-if=
"scope.scope.state === 0"
>
<template
v-if=
"scope.scope.state === 0"
>
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
>
编辑
</el-button>
<
!--
<
el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleUpOption(scope.scope)"
>
上架
</el-button>
<el-button
type=
"text"
@
click=
"handleUpOption(scope.scope)"
>
上架
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
fn=
"编辑套餐"
>
编辑
</GLButton>
<GLButton
type=
"text"
@
click=
"handleUpOption(scope.scope)"
fn=
"上架"
>
上架
</GLButton>
<GLButton
type=
"text"
@
click=
"handleDelete(scope.scope)"
fn=
"删除"
>
删除
</GLButton>
</
template
>
</
template
>
<
template
v-else-if=
"scope.scope.state === 1"
>
<
template
v-else-if=
"scope.scope.state === 1"
>
<el-button
type=
"text"
@
click=
"handleDownOption(scope.scope)"
>
下架
</el-button>
<!--
<el-button
type=
"text"
@
click=
"handleDownOption(scope.scope)"
>
下架
</el-button>
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
>
编辑
</el-button>
-->
<GLButton
type=
"text"
@
click=
"handleDownOption(scope.scope)"
fn=
"下架"
>
下架
</GLButton>
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
fn=
"编辑套餐"
>
编辑
</GLButton>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
>
编辑
</el-button>
<
!--
<
el-button
type=
"text"
@
click=
"handleEdit(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handleUpOption(scope.scope)"
>
上架
</el-button>
<el-button
type=
"text"
@
click=
"handleUpOption(scope.scope)"
>
上架
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
-->
<GLButton
type=
"text"
@
click=
"handleEdit(scope.scope)"
fn=
"编辑套餐"
>
编辑
</GLButton>
<GLButton
type=
"text"
@
click=
"handleUpOption(scope.scope)"
fn=
"上架"
>
上架
</GLButton>
<GLButton
type=
"text"
@
click=
"handleDelete(scope.scope)"
fn=
"删除"
>
删除
</GLButton>
</
template
>
</
template
>
</span>
</span>
</GLTable>
</GLTable>
...
...
vue.config.js
View file @
a9d225b
...
@@ -3,7 +3,7 @@ const packageName = require('./package.json').name
...
@@ -3,7 +3,7 @@ const packageName = require('./package.json').name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
CDN_DOMAIN
=
'https://
cdn.bootcdn.net
/'
const
CDN_DOMAIN
=
'https://
img02.glsx.com.cn
/'
const
cdn
=
{
const
cdn
=
{
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
js
:
[
`
${
CDN_DOMAIN
}
ajax/libs/vue/2.6.11/vue.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vue-router/3.2.0/vue-router.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
...
@@ -67,4 +67,4 @@ module.exports = {
...
@@ -67,4 +67,4 @@ module.exports = {
})
})
.
end
()
.
end
()
}
}
}
}
\ No newline at end of file
\ No newline at end of file
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