Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 5448a405
authored
Mar 10, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:v2.0.0版本提交,校验暂无问题
1 parent
d90b22ea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
9 deletions
src/api/modules/equityApi.js
src/views/goods/addGoods.vue
src/views/rightsCard/cardDetail.vue
src/views/rightsCard/index.vue
src/api/modules/equityApi.js
View file @
5448a40
...
@@ -84,6 +84,23 @@ const getQrUrl = params => {
...
@@ -84,6 +84,23 @@ const getQrUrl = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
/*获取用户明细列表*/
const
getcardRecordList
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.merchant.record.get'
return
http
({
data
:
params
})
}
/**导出用户明细列表Excel*/
const
exportcardRecordList
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.merchant.record.export'
return
http
({
data
:
params
,
returnAll
:
true
})
}
export
default
{
export
default
{
getEquityCardList
,
getEquityCardList
,
newEquityCard
,
newEquityCard
,
...
@@ -95,5 +112,7 @@ export default {
...
@@ -95,5 +112,7 @@ export default {
getMerchantList
,
getMerchantList
,
cardExport
,
cardExport
,
getCollectionMerchantList
,
getCollectionMerchantList
,
getQrUrl
getQrUrl
,
getcardRecordList
,
exportcardRecordList
}
}
src/views/goods/addGoods.vue
View file @
5448a40
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"成本含税价"
prop=
"costPrice"
>
<el-form-item
label=
"成本含税价"
prop=
"costPrice"
>
<el-input
v-model=
"ruleForm.costPrice"
:disabled=
"isEdit"
>
<el-input
v-model=
"ruleForm.costPrice"
>
<span
slot=
"suffix"
>
元
</span>
<span
slot=
"suffix"
>
元
</span>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
...
src/views/rightsCard/cardDetail.vue
0 → 100644
View file @
5448a40
This diff is collapsed.
Click to expand it.
src/views/rightsCard/index.vue
View file @
5448a40
...
@@ -9,17 +9,36 @@
...
@@ -9,17 +9,36 @@
</div>
</div>
<div
class=
"tableBox"
style=
"margin-left: 40px; margin-top: 20px; margin-right: 20px"
>
<div
class=
"tableBox"
style=
"margin-left: 40px; margin-top: 20px; margin-right: 20px"
>
<div
class=
"topline"
>
<div
class=
"topline"
>
<div
class=
"selectStore"
>
搜索门店
</div>
<
!--
<
div
class=
"selectStore"
>
搜索门店
</div>
<el-select
size=
"small"
v-model=
"searchForm.merchantName"
filterable
remote
reserve-keyword
placeholder=
"请输入门店名称"
:remote-method=
"remoteMethod"
:loading=
"loading"
clearable
style=
"margin-left: 10px"
>
<el-select
size=
"small"
v-model=
"searchForm.merchantName"
filterable
remote
reserve-keyword
placeholder=
"请输入门店名称"
:remote-method=
"remoteMethod"
:loading=
"loading"
clearable
style=
"margin-left: 10px"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</el-select>
-->
<div
class=
"operationBtn"
>
<el-form
:inline=
"true"
style=
"width: 100%; margin-left: 10px;"
:model=
"searchForm"
label-width=
"108px"
label-position=
"right"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
size=
"small"
label=
"搜索门店"
>
<el-select
size=
"small"
v-model=
"searchForm.merchantName"
remote
reserve-keyword
filterable
placeholder=
"请输入门店名称"
:remote-method=
"remoteMethod"
:loading=
"loading"
clearable
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
size=
"small"
label=
"权益卡名称"
>
<el-input
size=
"small"
v-model=
"searchForm.cardClassName"
placeholder=
"请输入权益卡名称"
></el-input>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-button
plain
size=
"small"
class=
"selectBtn"
@
click=
"selectStore('reset')"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 20px"
class=
"selectBtn"
@
click=
"selectStore('select')"
>
搜索
</el-button>
</el-form-item>
</el-row>
</el-form>
<!--
<div
class=
"operationBtn"
>
<el-button
plain
size=
"small"
class=
"selectBtn"
@
click=
"selectStore('reset')"
>
重置
</el-button>
<el-button
plain
size=
"small"
class=
"selectBtn"
@
click=
"selectStore('reset')"
>
重置
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 20px"
class=
"selectBtn"
@
click=
"selectStore('select')"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"small"
style=
"margin-left: 20px"
class=
"selectBtn"
@
click=
"selectStore('select')"
>
搜索
</el-button>
</div>
</div>
-->
</div>
</div>
<div
class=
"tableCtn"
>
<div
class=
"tableCtn"
>
<GLTable
ref=
"recordTable"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"recordTable"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"recipientCount"
slot-scope=
"scope"
>
<p
class=
"cursor-pointer"
style=
"color:#5850ff"
@
click=
"handleDetail(scope.scope)"
>
{{
scope
.
scope
.
recipientCount
}}
</p>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn =
'权益卡管理编辑'
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</GLButton>
<GLButton
fn =
'权益卡管理编辑'
type=
"text"
@
click=
"edit(scope.scope)"
class=
"tableBtn"
size=
"small"
>
编辑
</GLButton>
<el-button
type=
"text"
:disabled=
"scope.scope.tryAble == 0 ? true : false"
@
click=
"extension(scope.scope)"
class=
"tableBtn"
size=
"small"
>
推广
</el-button>
<el-button
type=
"text"
:disabled=
"scope.scope.tryAble == 0 ? true : false"
@
click=
"extension(scope.scope)"
class=
"tableBtn"
size=
"small"
>
推广
</el-button>
...
@@ -116,6 +135,7 @@
...
@@ -116,6 +135,7 @@
<el-button
:disabled=
"submitBtn"
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"small"
>
提交
</el-button>
<el-button
:disabled=
"submitBtn"
type=
"primary"
@
click=
"submitForm('ruleForm')"
size=
"small"
>
提交
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<detail-dialog
ref=
"detailDetailRef"
></detail-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -139,6 +159,7 @@ function date_format(date) {
...
@@ -139,6 +159,7 @@ function date_format(date) {
return
YY
+
MM
+
DD
+
' '
+
hh
+
mm
+
ss
return
YY
+
MM
+
DD
+
' '
+
hh
+
mm
+
ss
}
}
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
detailDialog
from
'./cardDetail'
// import {memberCardDetails} from "@/api/test";
// import {memberCardDetails} from "@/api/test";
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -212,7 +233,8 @@ export default {
...
@@ -212,7 +233,8 @@ export default {
getListApi
:
this
.
$apis
.
equityApi
.
getEquityCardList
,
getListApi
:
this
.
$apis
.
equityApi
.
getEquityCardList
,
// getListApi: none,
// getListApi: none,
searchForm
:
{
searchForm
:
{
merchantName
:
''
merchantName
:
''
,
cardClassName
:
''
},
},
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
@@ -260,9 +282,10 @@ export default {
...
@@ -260,9 +282,10 @@ export default {
},
},
{
{
label
:
'领卡用户'
,
label
:
'领卡用户'
,
prop
:
'recipientCount'
prop
:
'recipientCount'
,
// width: 110,
// width: 110,
// tagLabel: true
// tagLabel: true
addHtml
:
'recipientCount'
},
},
{
{
label
:
'状态'
,
label
:
'状态'
,
...
@@ -283,7 +306,9 @@ export default {
...
@@ -283,7 +306,9 @@ export default {
}
}
}
}
},
},
components
:
{
detailDialog
},
mounted
()
{
mounted
()
{
this
.
list
=
this
.
states
.
map
(
item
=>
{
this
.
list
=
this
.
states
.
map
(
item
=>
{
return
{
value
:
`value:
${
item
}
`
,
label
:
`label:
${
item
}
`
}
return
{
value
:
`value:
${
item
}
`
,
label
:
`label:
${
item
}
`
}
...
@@ -305,6 +330,10 @@ export default {
...
@@ -305,6 +330,10 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleDetail
(
row
){
this
.
$refs
.
detailDetailRef
.
show
(
row
);
// this.getcardRecordList()
},
setTableFinishFun
()
{
setTableFinishFun
()
{
//接收到的数据为空
//接收到的数据为空
if
(
!
this
.
$refs
.
table
.
data
.
length
)
{
if
(
!
this
.
$refs
.
table
.
data
.
length
)
{
...
@@ -489,6 +518,7 @@ export default {
...
@@ -489,6 +518,7 @@ export default {
selectStore
(
e
)
{
selectStore
(
e
)
{
if
(
e
==
'reset'
)
{
if
(
e
==
'reset'
)
{
this
.
searchForm
.
merchantName
=
''
this
.
searchForm
.
merchantName
=
''
this
.
searchForm
.
cardClassName
=
''
this
.
$apis
.
equityApi
.
getEquityCardList
(
this
.
searchForm
).
then
(
res
=>
{
this
.
$apis
.
equityApi
.
getEquityCardList
(
this
.
searchForm
).
then
(
res
=>
{
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
$refs
.
recordTable
.
refreshTable
()
})
})
...
...
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