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 29ca2eb0
authored
Feb 20, 2022
by
周子尧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
ee39768c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
30 deletions
src/api/modules/giftBag.js
src/views/giftBag/receivedGiftList.vue
src/api/modules/giftBag.js
View file @
29ca2eb
...
@@ -53,5 +53,27 @@ const getGiftInfoApi = params => {
...
@@ -53,5 +53,27 @@ const getGiftInfoApi = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
// 根据条件获取已领取定向礼包列表
const
getReceivedGiftInfoApi
=
params
=>
{
params
.
method
=
'scrm.api.coupon.user.saas.directional.gift.list'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 导出已领取礼包
const
exportGiftInfoApi
=
params
=>
{
params
.
method
=
'scrm.api.coupon.user.saas.directional.gift.list.export'
return
http
({
url
:
'rop-scrm-coupon/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getFollowerStaffListApi
,
getListApi
,
giftExportApi
,
deleteGiftApi
,
getGiftInfoApi
}
export
default
{
getFollowerStaffListApi
,
getListApi
,
giftExportApi
,
deleteGiftApi
,
getGiftInfoApi
,
getReceivedGiftInfoApi
,
exportGiftInfoApi
}
src/views/giftBag/receivedGiftList.vue
View file @
29ca2eb
...
@@ -18,11 +18,11 @@
...
@@ -18,11 +18,11 @@
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"giftListRef"
:getListApi=
"getListApi"
:hasNum=
"
fals
e"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"giftListRef"
:getListApi=
"getListApi"
:hasNum=
"
tru
e"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div>
礼包明细
</div>
<div>
礼包明细
</div>
<div>
{{
scope
.
scope
}}
</div>
<div>
{{
scope
.
scope
}}
</div>
<
GLTable
ref=
"giftListRef"
:getListApi=
"getGiftListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"giftSearchForm"
:tableParams=
"giftParams"
:pageConf=
"giftPageConf"
></GLTable
>
<
!--
<GLTable
ref=
"giftListRef"
:getListApi=
"getGiftListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"scope.scope"
:tableParams=
"giftParams"
:pageConf=
"giftPageConf"
></GLTable>
--
>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -40,7 +40,7 @@ export default {
...
@@ -40,7 +40,7 @@ export default {
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
searchForm
:
{
searchForm
:
{
w
hether
:
''
,
w
echatUserFlag
:
''
,
orderCode
:
''
,
orderCode
:
''
,
commentStatus
:
''
,
commentStatus
:
''
,
createDate
:
[]
createDate
:
[]
...
@@ -50,7 +50,7 @@ export default {
...
@@ -50,7 +50,7 @@ export default {
searchFormData
:
[
searchFormData
:
[
{
{
label
:
'领用客户'
,
label
:
'领用客户'
,
name
:
'
customer
'
,
name
:
'
nickName
'
,
type
:
'input'
type
:
'input'
},
},
{
{
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
},
},
{
{
label
:
'是否为企微客户'
,
label
:
'是否为企微客户'
,
name
:
'w
hether
'
,
name
:
'w
echatUserFlag
'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'Id'
,
optionId
:
'Id'
,
...
@@ -71,11 +71,11 @@ export default {
...
@@ -71,11 +71,11 @@ export default {
searchFormData1
:
[
searchFormData1
:
[
{
{
label
:
'发放员工'
,
label
:
'发放员工'
,
name
:
'staff'
,
name
:
'staff
Name
'
,
type
:
'input'
type
:
'input'
},
},
{
{
label
:
'领用日期'
,
label
:
'领
取
用日期'
,
name
:
'receiveDate'
,
name
:
'receiveDate'
,
type
:
'datePicker'
,
type
:
'datePicker'
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
...
@@ -93,8 +93,8 @@ export default {
...
@@ -93,8 +93,8 @@ export default {
}
}
]
]
},
},
//礼包
表格
//礼包
详情
getGiftListApi
:
this
.
$apis
.
orderComment
.
getList
Api
,
getGiftListApi
:
this
.
$apis
.
giftBag
.
getGiftInfo
Api
,
giftParams
:
{
giftParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
false
,
tableOption
:
false
,
...
@@ -128,8 +128,8 @@ export default {
...
@@ -128,8 +128,8 @@ export default {
]
]
},
},
giftPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
giftPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
//
表格
//
礼包
getListApi
:
this
.
$apis
.
orderComment
.
getList
Api
,
getListApi
:
this
.
$apis
.
giftBag
.
getGiftInfo
Api
,
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
false
,
tableOption
:
false
,
...
@@ -143,31 +143,27 @@ export default {
...
@@ -143,31 +143,27 @@ export default {
addHtml
:
'giftInfo'
addHtml
:
'giftInfo'
},
},
{
{
label
:
'序号'
,
prop
:
'idx'
},
{
label
:
'领取客户'
,
label
:
'领取客户'
,
prop
:
'
orderCod
e'
prop
:
'
nickNam
e'
},
},
{
{
label
:
'是否为企微客户'
,
label
:
'是否为企微客户'
,
prop
:
'
orderCode
'
,
prop
:
'
wechatUserFlag
'
,
width
:
'200'
width
:
'200'
},
},
{
{
label
:
'礼包名称'
,
label
:
'礼包名称'
,
prop
:
'orderCode'
,
prop
:
'giftName'
,
width
:
'200'
},
{
label
:
'备注名称'
,
prop
:
'orderCode'
,
width
:
'200'
width
:
'200'
},
},
// {
// label: '备注名称',
// prop: 'orderCode',
// width: '200'
// },
{
{
label
:
'预估成本/元'
,
label
:
'预估成本/元'
,
prop
:
'
orderCode
'
prop
:
'
anticipatedCost
'
},
},
{
{
label
:
'已核销成本'
,
label
:
'已核销成本'
,
...
@@ -175,11 +171,11 @@ export default {
...
@@ -175,11 +171,11 @@ export default {
},
},
{
{
label
:
'发放员工'
,
label
:
'发放员工'
,
prop
:
'
orderCod
e'
prop
:
'
staffNam
e'
},
},
{
{
label
:
'
创建
时间'
,
label
:
'
领取
时间'
,
prop
:
'
createdDat
e'
,
prop
:
'
startTim
e'
,
width
:
'180'
,
width
:
'180'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
...
@@ -199,8 +195,8 @@ export default {
...
@@ -199,8 +195,8 @@ export default {
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
createDate
.
length
)
{
if
(
this
.
searchForm
.
createDate
.
length
)
{
params
.
createStartDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
startTime
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
createEndDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
params
.
endTime
=
new
Date
(
this
.
searchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
}
delete
params
.
createDate
delete
params
.
createDate
return
params
return
params
...
...
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