Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 f31dd4e2
authored
Jan 05, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新again
1 parent
fc790df2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
265 additions
and
12 deletions
src/api/modules/redenvelope.js
src/views/redEnvelope/components/DisplayRecord/index.vue
src/views/redEnvelope/components/PhysicalPrizeWriteOff/dataImportMixin.js
src/views/redEnvelope/components/PhysicalPrizeWriteOff/index.vue
src/views/redEnvelope/components/WinningRecord/index.vue
src/views/redEnvelope/components/common/repeatMethods.js
src/api/modules/redenvelope.js
View file @
f31dd4e
...
...
@@ -234,5 +234,21 @@ export default {
data
:
params
})
},
// 实物奖品核销列表
winningGoodsApi
(
params
){
params
.
method
=
'marketing.api.activityRedEnvelope.winning.goods.record.page'
return
http
({
url
,
data
:
params
})
},
// 实物奖品核销导出
winningGoodsExportApi
(
params
){
params
.
method
=
'marketing.api.activityRedEnvelope.winning.goods.record.export'
return
http
({
url
,
data
:
params
})
},
}
src/views/redEnvelope/components/DisplayRecord/index.vue
View file @
f31dd4e
...
...
@@ -68,7 +68,11 @@ export default {
mounted
()
{
},
methods
:
{
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
updateParams
(
params
,
'showTime'
,
'showTime'
,
'startShowTime'
,
'endShowTime'
);
return
params
},
}
}
</
script
>
...
...
src/views/redEnvelope/components/PhysicalPrizeWriteOff/dataImportMixin.js
0 → 100644
View file @
f31dd4e
// dataImportMixin.js
import
*
as
dayjs
from
'dayjs'
;
import
url
from
'@/assets/empty.png'
export
default
{
data
()
{
return
{
url
,
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
searchForm
:
{
},
searchFormData
:
[
{
label
:
'微信昵称'
,
name
:
'wechatName'
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'手机号'
,
name
:
'userPhone'
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'活动名称'
,
name
:
'activityName'
,
type
:
'input'
,
maxlength
:
100
},
{
label
:
'核销类型'
,
name
:
'exchangeType'
,
type
:
'select'
,
optionList
:
[
{
text
:
'全部'
,
id
:
''
},
{
text
:
'快递到家'
,
id
:
'0'
},
{
text
:
'到店核销'
,
id
:
'1'
}
],
optionId
:
'id'
,
optionLabel
:
'text'
},
{
label
:
'核销状态'
,
name
:
'exchangeStatus'
,
type
:
'select'
,
optionList
:
[
{
text
:
'全部'
,
id
:
''
},
{
text
:
'代发货'
,
id
:
'0'
},
{
text
:
'已发货'
,
id
:
'1'
},
{
text
:
'待核销'
,
id
:
'2'
},
{
text
:
'已核销'
,
id
:
'3'
}
],
optionId
:
'id'
,
optionLabel
:
'text'
},
{
label
:
'奖品名称'
,
name
:
'prizeName'
,
type
:
'input'
,
maxlength
:
11
},
{
label
:
'核销时间'
,
name
:
'exchangeTime'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
,
isClear
:
true
,
customPickerOptions
:
{
disabledDate
(
date
)
{
const
yesterday
=
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()))
if
(
date
>
yesterday
)
{
return
true
}
return
false
}
}
}
],
getListApi
:
this
.
$apis
.
redenvelope
.
winningGoodsApi
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'手机号'
,
prop
:
'userPhone'
,
minWidth
:
100
},
{
label
:
'微信昵称'
,
prop
:
'wechatName'
,
minWidth
:
100
},
{
label
:
'红包链接'
,
prop
:
'link'
,
minWidth
:
100
},
{
label
:
'活动名称'
,
minWidth
:
100
,
prop
:
'activityName'
,
},
{
label
:
'奖品名称'
,
minWidth
:
100
,
prop
:
'activityName'
,
},
{
label
:
'核销类型'
,
minWidth
:
150
,
formatter
:
cell
=>
{
return
{
0
:
'快递到家'
,
1
:
'到店核销'
}[
cell
.
exchangeType
]
}
},
{
label
:
'核销状态'
,
minWidth
:
150
,
prop
:
'statusStr'
},
{
label
:
'核销时间'
,
prop
:
'operateTime'
,
minWidth
:
100
},
]
},
tableSearchForm
:
{}
}
},
methods
:
{
},
};
src/views/redEnvelope/components/PhysicalPrizeWriteOff/index.vue
View file @
f31dd4e
<
template
>
<div>
PhysicalPrizeWriteOff
<div
class=
"container"
>
<div
class=
"sticky"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
</GLCombiForm>
<div
class=
"sticky-btns"
>
<div
class=
"btns"
>
<el-button
@
click=
"handleExport('winningGoodsExportApi')"
>
导出
</el-button>
</div>
</div>
</div>
<div
class=
"tabelList"
>
<div
class=
"table-title"
>
实物奖品核销列表
</div>
<GLTable
ref=
"listRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:noDataImg=
"url"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</span>
</GLTable>
</div>
</div>
</
template
>
<
script
>
<
script
type=
'text/ecmascript-6'
>
import
dataImportMixin
from
"./dataImportMixin"
;
import
repeatMethods
from
"../common/repeatMethods"
;
export
default
{
name
:
"PhysicalPrizeWriteOff"
name
:
'DisplayRecord'
,
mixins
:
[
dataImportMixin
,
repeatMethods
],
components
:{
},
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
updateParams
(
params
,
'exchangeTime'
,
'exchangeTime'
,
'startExchangeTime'
,
'endExchangeTime'
);
return
params
}
}
}
</
script
>
<
style
scoped
>
<
style
scoped
lang=
'scss'
>
.container
{
height
:
100%
;
background-color
:
#fff
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
20px
;
.table-title
{
font-weight
:
700
;
font-size
:
16px
;
color
:
#333333
;
padding-bottom
:
18px
;
}
.sticky
{
position
:
relative
;
z-index
:
2
;
&-btns
{
position
:
absolute
;
right
:
0
;
bottom
:
-23px
;
overflow
:
hidden
;
.el-button
+
.el-button
{
margin-left
:
8px
;
}
.btns
{
transition
:
all
0.25s
;
.el-button
{
padding
:
8px
15px
;
min-width
:
60px
;
}
}
}
}
}
</
style
>
src/views/redEnvelope/components/WinningRecord/index.vue
View file @
f31dd4e
...
...
@@ -51,22 +51,23 @@
import
dataImportMixin
from
"./dataImportMixin"
;
import
repeatMethods
from
"../common/repeatMethods"
;
import
inputNumRange
from
"@/components/inputNumRange"
;
import
{
exportFn
}
from
'@/common/constant'
export
default
{
name
:
'DisplayRecord'
,
mixins
:
[
dataImportMixin
,
repeatMethods
],
components
:{
mixins
:
[
dataImportMixin
,
repeatMethods
],
components
:
{
inputNumRange
},
data
()
{
return
{
}
return
{}
},
mounted
()
{
},
methods
:
{
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
params
.
startAmount
=
params
.
startAmount
?
params
.
startAmount
*
100
:
''
params
.
endAmount
=
params
.
endAmount
?
params
.
endAmount
*
100
:
''
this
.
updateParams
(
params
,
'winTime'
,
'winTime'
,
'startWinTime'
,
'startWinTime'
);
return
params
}
...
...
src/views/redEnvelope/components/common/repeatMethods.js
View file @
f31dd4e
...
...
@@ -36,7 +36,7 @@ export default {
},
getParams
()
{
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
this
.
updateParams
(
params
,
'showTime'
,
'showTime'
,
'startShowTime'
,
'endShowTime'
);
return
params
},
updateParams
(
params
,
paramKey
,
formKey
,
beginKey
,
endKey
)
{
...
...
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