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 10d3920c
authored
Dec 12, 2021
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-marketing
2 parents
4e6bf3fe
c985efcc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
5 deletions
src/api/modules/record.js
src/views/memberCenter/record.vue
src/api/modules/record.js
View file @
10d3920
...
@@ -13,6 +13,16 @@ const getRecordListApi = params => {
...
@@ -13,6 +13,16 @@ const getRecordListApi = params => {
sign
:
true
sign
:
true
})
})
}
}
const
getVerificationCode
=
params
=>
{
params
.
method
=
`scrm.api.coupon.verification.code.verification`
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// const auditGoodApi = params => {
// const auditGoodApi = params => {
// params.method = `${defaultPath}audit.goods`
// params.method = `${defaultPath}audit.goods`
...
@@ -78,4 +88,4 @@ const getRecordListApi = params => {
...
@@ -78,4 +88,4 @@ const getRecordListApi = params => {
// })
// })
// }
// }
export
{
getRecordListApi
}
export
{
getRecordListApi
,
getVerificationCode
}
src/views/memberCenter/record.vue
View file @
10d3920
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
</el-form-item>
</el-form-item>
<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=
"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>
...
@@ -42,18 +43,39 @@
...
@@ -42,18 +43,39 @@
<span>
{{
dateFormatFun
(
scope
.
scope
.
verificationTime
)
}}
</span>
<span>
{{
dateFormatFun
(
scope
.
scope
.
verificationTime
)
}}
</span>
</span>
</span>
</GLTable>
</GLTable>
<glsx-dialog
title=
"优惠券核销(请确保用户到店后核销,避免引起不必要问题)"
:hasScroll=
"false"
width=
"580px"
btnCloseLabel=
"取消"
:noClose=
"false"
:noCancel=
"true"
btnSize=
"small"
:isVisible=
"isDialogVisible"
:showClose=
"false"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<div
class=
"content-body"
>
<el-form
:rules=
"rules"
ref=
"ruleForm"
:model=
"ruleForm"
label-width=
"80px"
>
<!-- style="width: 440px" -->
<el-form-item
size=
"small"
label=
"核销码"
prop=
"verficationCode"
style=
"width: 300px"
>
<el-input
size=
"small"
v-model
.
trim=
"ruleForm.verficationCode"
maxlength=
"50"
placeholder=
"请输入核销码"
></el-input>
</el-form-item>
</el-form>
</div>
</glsx-dialog>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getRecordListApi
}
from
'@/api/modules/record'
import
glsxDialog
from
'@/components/glsx-dialog'
import
{
getRecordListApi
,
getVerificationCode
}
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
{
name
:
'record'
,
name
:
'record'
,
components
:
{
glsxDialog
},
data
()
{
data
()
{
return
{
return
{
ruleForm
:
{
verficationCode
:
''
},
isDialogVisible
:
false
,
rules
:
{
verficationCode
:
[{
required
:
true
,
message
:
'请输入核销码'
,
trigger
:
'blur'
}]
},
url
:
url
,
url
:
url
,
isReload
:
true
,
isReload
:
true
,
pickerOptions
:
{
pickerOptions
:
{
...
@@ -71,7 +93,8 @@ export default {
...
@@ -71,7 +93,8 @@ export default {
userReq
:
''
,
userReq
:
''
,
verificationOperator
:
''
,
verificationOperator
:
''
,
orderCode
:
''
,
orderCode
:
''
,
merchantId
:
0
merchantId
:
0
,
discountTypes
:
[
7
]
},
},
// 44187877
// 44187877
searchFormTable
:
{},
searchFormTable
:
{},
...
@@ -166,7 +189,30 @@ export default {
...
@@ -166,7 +189,30 @@ export default {
}
}
})
})
},
},
openDialog
()
{
this
.
isDialogVisible
=
true
},
handleClose
()
{
this
.
isDialogVisible
=
!
this
.
isDialogVisible
this
.
$refs
.
ruleForm
.
resetFields
()
},
handleConfirm
()
{
// getRecordListApi
this
.
$refs
[
'ruleForm'
].
validate
(
valid
=>
{
if
(
!
valid
)
{
return
}
let
params
=
{}
params
.
verficationCode
=
this
.
ruleForm
.
verficationCode
// params.discountTypes=[7]
getVerificationCode
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
handleClose
()
this
.
handleSearch
()
}
})
})
},
// 1-新增;2-编辑
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
// console.log(row)
// console.log(row)
...
@@ -192,7 +238,7 @@ export default {
...
@@ -192,7 +238,7 @@ export default {
// this.searchForm = { merchantId: 44184606 }
// this.searchForm = { merchantId: 44184606 }
// this.handleSearch()
// this.handleSearch()
this
.
isReload
=
false
this
.
isReload
=
false
this
.
searchForm
=
{
merchantId
:
this
.
merchantId
}
this
.
searchForm
=
{
merchantId
:
this
.
merchantId
,
discountTypes
:
[
7
]
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
this
.
isReload
=
true
})
})
...
@@ -214,4 +260,21 @@ export default {
...
@@ -214,4 +260,21 @@ export default {
.el-range-editor--small.el-input__inner
{
.el-range-editor--small.el-input__inner
{
width
:
215px
;
width
:
215px
;
}
}
/
deep
/
.el-dialog__header
{
padding-top
:
20px
;
padding-bottom
:
20px
;
}
/
deep
/
.el-dialog__body
{
border-bottom
:
1px
solid
#e6e6e6
;
border-top
:
1px
solid
#e6e6e6
;
padding
:
20px
25px
;
.content-body
{
}
}
/
deep
/
.el-dialog__footer
{
//
text-align
:
center
;
padding-top
:
12px
;
padding-bottom
:
12px
;
}
</
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