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 d7293cc4
authored
May 19, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
不区分平台;核销记录列表
1 parent
f8cc12b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
26 deletions
src/setup/qiankun.js
src/views/couponManage/recordList.vue
src/setup/qiankun.js
View file @
d7293cc
...
@@ -23,7 +23,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -23,7 +23,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
// 集团版集团账号
// 集团版集团账号
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
merchantModel
==
1
&&
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
...
...
src/views/couponManage/recordList.vue
View file @
d7293cc
...
@@ -5,8 +5,13 @@
...
@@ -5,8 +5,13 @@
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormDataTwo"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormDataTwo"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormDataThree"
>
<span
v-if=
"!$isGroupUp"
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</span>
</glsx-combi-form>
<glsx-combi-form
v-if=
"$isGroupUp"
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormDataThree"
>
<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>
...
@@ -106,6 +111,7 @@ export default {
...
@@ -106,6 +111,7 @@ export default {
verificationOperator
:
''
,
verificationOperator
:
''
,
orderCode
:
''
,
orderCode
:
''
,
merchantId
:
0
,
merchantId
:
0
,
packageId
:
''
,
discountType
:
''
,
discountType
:
''
,
discountTypes
:
[
2
,
3
,
4
,
7
]
discountTypes
:
[
2
,
3
,
4
,
7
]
},
},
...
@@ -131,6 +137,7 @@ export default {
...
@@ -131,6 +137,7 @@ export default {
{
{
label
:
'券类型'
,
label
:
'券类型'
,
name
:
'discountType'
,
name
:
'discountType'
,
labelWidth
:
56
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
...
@@ -141,13 +148,10 @@ export default {
...
@@ -141,13 +148,10 @@ export default {
searchFormDataTwo
:
[
searchFormDataTwo
:
[
{
{
label
:
'核销门店'
,
label
:
'核销门店'
,
name
:
'verificationMerchant
Id
'
,
name
:
'verificationMerchant
Name
'
,
type
:
'
selec
t'
,
type
:
'
inpu
t'
,
isHide
:
false
,
isHide
:
false
,
optionList
:
[],
maxlength
:
50
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'discountTypeList'
},
},
{
{
label
:
'核销人'
,
label
:
'核销人'
,
...
@@ -155,7 +159,7 @@ export default {
...
@@ -155,7 +159,7 @@ export default {
type
:
'input'
,
type
:
'input'
,
isHide
:
false
,
isHide
:
false
,
labelWidth
:
56
,
labelWidth
:
56
,
maxlength
:
11
maxlength
:
50
},
},
{
{
label
:
'用户'
,
label
:
'用户'
,
...
@@ -166,17 +170,6 @@ export default {
...
@@ -166,17 +170,6 @@ export default {
maxlength
:
11
maxlength
:
11
},
},
{
{
label
:
'券来源'
,
name
:
'packageId'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'packageList'
}
],
searchFormDataThree
:
[
{
label
:
'核销日期'
,
label
:
'核销日期'
,
name
:
'daterange'
,
name
:
'daterange'
,
type
:
'datePicker'
,
type
:
'datePicker'
,
...
@@ -184,6 +177,18 @@ export default {
...
@@ -184,6 +177,18 @@ export default {
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
}
}
],
],
searchFormDataThree
:
[
{
label
:
'券来源'
,
name
:
'packageId'
,
labelWidth
:
56
,
type
:
'select'
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'packageName'
,
optionsName
:
'packageList'
}
],
// 表格组件
// 表格组件
getListApi
:
this
.
$apis
.
couponManage
.
getVerificationListApi
,
getListApi
:
this
.
$apis
.
couponManage
.
getVerificationListApi
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
...
@@ -228,7 +233,7 @@ export default {
...
@@ -228,7 +233,7 @@ export default {
label
:
'券来源'
,
label
:
'券来源'
,
prop
:
'packageName'
,
prop
:
'packageName'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
packageName
||
'-'
return
cellValue
.
packageName
||
cellValue
.
directionalGiftName
||
'-'
}
}
},
},
{
{
...
@@ -301,11 +306,13 @@ export default {
...
@@ -301,11 +306,13 @@ export default {
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
searchForm
.
merchantId
=
this
.
merchantId
this
.
searchForm
.
merchantId
=
this
.
merchantId
}
}
console
.
log
(
this
.
$globalState
.
session
)
if
(
this
.
$isGroupUp
)
{
if
(
this
.
$isGroupUp
)
{
this
.
getPackageList
()
this
.
getPackageList
()
}
}
this
.
showOrHideAttr
(
'searchFormDataTwo'
,
this
.
$isGroupUp
?
'核销人'
:
'核销门店'
,
true
)
this
.
showOrHideAttr
(
'searchFormDataTwo'
,
this
.
$isGroupUp
?
'核销人'
:
'核销门店'
,
true
)
this
.
deleteAttr
(
this
.
$isGroupUp
?
'核销人'
:
'核销门店'
)
!
this
.
$isGroupUp
&&
this
.
showOrHideAttr
(
'searchFormDataThree'
,
'券来源'
,
true
)
this
.
deleteAttr
(
this
.
$isGroupUp
?
[
'核销人'
]
:
[
'核销门店'
])
},
},
mounted
()
{
mounted
()
{
...
@@ -317,14 +324,16 @@ export default {
...
@@ -317,14 +324,16 @@ export default {
let
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
label
==
label
)
let
idx
=
this
[
formName
].
findIndex
(
item
=>
item
.
label
==
label
)
this
[
formName
][
idx
].
isHide
=
isHide
this
[
formName
][
idx
].
isHide
=
isHide
},
},
deleteAttr
(
label
)
{
deleteAttr
(
labelList
)
{
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
label
)
labelList
.
forEach
(
i
=>
{
let
idx
=
this
.
tableParams
.
tableColumns
.
findIndex
(
item
=>
item
.
label
==
i
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
this
.
tableParams
.
tableColumns
.
splice
(
idx
,
1
)
})
},
},
getPackageList
()
{
getPackageList
()
{
this
.
$apis
.
couponManage
.
getPackageListApi
({
pageNum
:
1
,
pageSize
:
9999
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getPackageListApi
({
pageNum
:
1
,
pageSize
:
9999
}).
then
(
res
=>
{
this
.
baseData
.
packageList
=
res
.
list
this
.
baseData
.
packageList
=
res
.
list
this
.
getOptionsList
(
'searchFormDataT
wo
'
,
true
,
'packageId'
)
this
.
getOptionsList
(
'searchFormDataT
hree
'
,
true
,
'packageId'
)
})
})
},
},
// 跳转到礼包领取详情页
// 跳转到礼包领取详情页
...
@@ -479,6 +488,7 @@ export default {
...
@@ -479,6 +488,7 @@ export default {
userReq
:
''
,
userReq
:
''
,
verificationOperator
:
''
,
verificationOperator
:
''
,
orderCode
:
''
,
orderCode
:
''
,
packageId
:
''
,
discountType
:
''
,
discountType
:
''
,
discountTypes
:
[
2
,
3
,
4
,
7
]
discountTypes
:
[
2
,
3
,
4
,
7
]
}
}
...
...
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