Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-store
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 feb334b7
authored
Dec 25, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/saas/scrm-micro-store
into v3.23.0
2 parents
25428085
66bfe157
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
152 additions
and
67 deletions
src/api/modules/pointWriteOff.js
src/views/payPoints/index.vue
src/api/modules/pointWriteOff.js
View file @
feb334b
import
{
http
}
from
'@/main'
import
{
http
}
from
'@/main'
const
get
ListApi
=
params
=>
{
const
payPoints
ListApi
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral
order
.page`
params
.
method
=
`scrm.api.shopmall.integral
.out.detail
.page`
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -10,8 +10,8 @@ const getListApi = params => {
...
@@ -10,8 +10,8 @@ const getListApi = params => {
})
})
}
}
const
pointWriteOffExpor
tApi
=
params
=>
{
const
exchangeOilLis
tApi
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral
order.export
`
params
.
method
=
`scrm.api.shopmall.integral
.recharge.oil.coupon.page
`
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -20,8 +20,8 @@ const pointWriteOffExportApi = params => {
...
@@ -20,8 +20,8 @@ const pointWriteOffExportApi = params => {
})
})
}
}
const
pointWriteOffDetail
=
params
=>
{
const
exchangeGoodListApi
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral
order.detail
`
params
.
method
=
`scrm.api.shopmall.integral
.recharge.goods.page
`
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -30,8 +30,8 @@ const pointWriteOffDetail = params => {
...
@@ -30,8 +30,8 @@ const pointWriteOffDetail = params => {
})
})
}
}
const
payPoints
List
Api
=
params
=>
{
const
payPoints
Detail
Api
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.out.detail
.page
`
params
.
method
=
`scrm.api.shopmall.integral.out.detail`
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -40,8 +40,8 @@ const payPointsListApi = params => {
...
@@ -40,8 +40,8 @@ const payPointsListApi = params => {
})
})
}
}
const
payPointsDetail
Api
=
params
=>
{
const
exchangeGoodExport
Api
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.
out.detail
`
params
.
method
=
`scrm.api.shopmall.integral.
recharge.goods.export
`
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -50,6 +50,15 @@ const payPointsDetailApi = params => {
...
@@ -50,6 +50,15 @@ const payPointsDetailApi = params => {
})
})
}
}
const
exchangeOilExportApi
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.recharge.oil.coupon.export`
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
payPointsExportApi
=
params
=>
{
const
payPointsExportApi
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.integral.out.detail.export`
params
.
method
=
`scrm.api.shopmall.integral.out.detail.export`
return
http
({
return
http
({
...
@@ -60,4 +69,15 @@ const payPointsExportApi = params => {
...
@@ -60,4 +69,15 @@ const payPointsExportApi = params => {
})
})
}
}
export
default
{
getListApi
,
pointWriteOffExportApi
,
pointWriteOffDetail
,
payPointsListApi
,
payPointsDetailApi
,
payPointsExportApi
}
// 用户积分转出的所有门店信息
const
getMerchantList
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.integral.out.merchant.list'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
payPointsListApi
,
exchangeOilListApi
,
exchangeGoodListApi
,
payPointsDetailApi
,
payPointsExportApi
,
exchangeGoodExportApi
,
exchangeOilExportApi
,
getMerchantList
}
src/views/payPoints/index.vue
View file @
feb334b
<
template
>
<
template
>
<div>
<div>
<GLTabs
v-model=
"tabId"
:tabPaneList=
"tabPaneList"
></GLTabs>
<GLTabs
v-model=
"tabId"
@
tab-click=
"changeTab"
:tabPaneList=
"tabPaneList"
></GLTabs>
<div
class=
"main-wrap"
>
<div
class=
"main-wrap"
>
<GLCombiForm
ref=
"pointerWriteOffSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"pointerWriteOffSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"exportBtn"
>
<div
class=
"exportBtn"
>
<el-button
:size=
"size"
@
click=
"handleExport"
class=
"default-blue-btn"
type=
"default"
>
导出
</el-button>
<el-button
:size=
"size"
@
click=
"handleExport"
class=
"default-blue-btn"
type=
"default"
>
导出
</el-button>
</div>
</div>
<GLTable
ref=
"pointerWriteOffRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf
"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
v-loading=
"loading"
ref=
"pointerWriteOffRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun
"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<GLDialog
title=
"查看"
mode=
"mid"
:hasFooter=
"false"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
<GLDialog
title=
"查看"
mode=
"mid"
:hasFooter=
"false"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
@
onOk=
"handleConfirm"
@
onCancel=
"handleClose"
>
<ul
class=
"detail-wrap"
>
<ul
class=
"detail-wrap"
>
<template
v-for=
"item in detailList"
>
<template
v-for=
"item in detailList"
>
<li
class=
"detail-li"
v-if=
"!item.hasOwnProperty('include') || item.include
== tabId
"
:key=
"item.key"
>
<li
class=
"detail-li"
v-if=
"!item.hasOwnProperty('include') || item.include
.indexOf(tabId) != -1
"
:key=
"item.key"
>
<label
class=
"detail-label"
for=
""
>
{{
item
.
label
}}
:
</label>
<label
class=
"detail-label"
for=
""
>
{{
item
.
label
}}
:
</label>
<span
class=
"detail-key"
>
{{
detailObj
[
item
.
key
]
||
'--'
}}
</span>
<span
class=
"detail-key"
>
{{
detailObj
[
item
.
key
]
||
'--'
}}
</span>
</li>
</li>
...
@@ -28,89 +28,144 @@
...
@@ -28,89 +28,144 @@
<
script
>
<
script
>
import
{
exportFn
}
from
'@/common/constant'
import
{
exportFn
}
from
'@/common/constant'
const
TABLE_COL
=
[
const
TABLE_COL
=
[
// {
{
// label: '批次号',
label
:
'批次号'
,
// prop: 'bizRelName'
prop
:
'batchNo'
,
// },
show
:
'1,2,3'
},
{
label
:
'客户姓名'
,
prop
:
'customerName'
,
show
:
'1,3'
},
{
{
label
:
'客户姓名'
,
label
:
'客户姓名'
,
prop
:
'customerName'
prop
:
'userName'
,
show
:
'2'
},
},
{
{
label
:
'客户手机号'
,
label
:
'客户手机号'
,
prop
:
'customerPhone'
prop
:
'customerPhone'
,
show
:
'1,3'
},
{
label
:
'客户手机号'
,
prop
:
'phone'
,
show
:
'2'
},
{
label
:
'保单号'
,
prop
:
'policyNo'
,
width
:
200
,
line
:
1
,
show
:
'1,2,3'
},
},
// {
// label: '保单号',
// prop: 'customerPhone',
// width: 200,
// line: 1
// },
{
{
label
:
'油卡面值'
,
label
:
'油卡面值'
,
prop
:
'
verificationStaffNam
e'
,
prop
:
'
faceValu
e'
,
width
:
150
,
width
:
150
,
show
:
true
show
:
'2'
},
},
{
{
label
:
'油卡数量'
,
label
:
'油卡数量'
,
prop
:
'verificationStaffName'
,
prop
:
'couponNumber'
,
width
:
150
,
show
:
'2'
},
{
label
:
'商品名称'
,
prop
:
'goodsName'
,
width
:
150
,
show
:
'3'
},
{
label
:
'商品价格/元'
,
prop
:
'retailPrice'
,
width
:
150
,
width
:
150
,
show
:
true
show
:
'3'
,
formatter
:
cell
=>
{
return
cell
.
retailPrice
?
Number
((
cell
.
retailPrice
/
100
).
toFixed
(
2
))
:
0
}
},
{
label
:
'商品数量'
,
prop
:
'goodsNumber'
,
width
:
150
,
show
:
'3'
},
},
{
{
label
:
'消耗积分'
,
label
:
'消耗积分'
,
prop
:
'integralValue'
prop
:
'integralValue'
,
show
:
'1'
},
{
label
:
'消耗积分'
,
prop
:
'redeemPoints'
,
show
:
'2,3'
},
{
label
:
'消耗积分时间'
,
prop
:
'createdDate'
,
show
:
'1'
},
},
{
{
label
:
'消耗积分时间'
,
label
:
'消耗积分时间'
,
prop
:
'createdDate'
prop
:
'payDate'
,
show
:
'2,3'
}
}
]
]
const
DETAIL_LIST
=
[
const
DETAIL_LIST
=
[
// { label: '批次号', key: '' },
{
label
:
'批次号'
,
key
:
'batchNo'
},
{
label
:
'消耗积分'
,
key
:
'integralValue'
},
{
label
:
'消耗积分'
,
key
:
'integralValue'
,
include
:
'1'
},
{
label
:
'客户名称'
,
key
:
'customerName'
},
{
label
:
'消耗积分'
,
key
:
'redeemPoints'
,
include
:
'2,3'
},
{
label
:
'客户手机号'
,
key
:
'customerPhone'
},
{
label
:
'客户名称'
,
key
:
'customerName'
,
include
:
'1,3'
},
// { label: '保单号', key: '' },
{
label
:
'客户手机号'
,
key
:
'customerPhone'
,
include
:
'1,3'
},
{
label
:
'商品名称'
,
key
:
''
,
include
:
'3'
},
{
label
:
'客户名称'
,
key
:
'userName'
,
include
:
'2'
},
{
label
:
'商品数量'
,
key
:
''
,
include
:
'3'
},
{
label
:
'客户手机号'
,
key
:
'phone'
,
include
:
'2'
},
{
label
:
'商品价格/元'
,
key
:
''
,
include
:
'3'
},
{
label
:
'保单号'
,
key
:
'policyNo'
},
{
label
:
'油卡面值'
,
key
:
''
,
include
:
'2'
},
{
label
:
'商品名称'
,
key
:
'goodsName'
,
include
:
'3'
},
{
label
:
'油卡数量'
,
key
:
''
,
include
:
'2'
},
{
label
:
'商品数量'
,
key
:
'goodsNumber'
,
include
:
'3'
},
{
label
:
'商品价格/元'
,
key
:
'retailPrice'
,
include
:
'3'
},
{
label
:
'油卡面值'
,
key
:
'faceValue'
,
include
:
'2'
},
{
label
:
'油卡数量'
,
key
:
'couponNumber'
,
include
:
'2'
},
{
label
:
'收款人身份证'
,
key
:
'idCardNo'
,
include
:
'1'
},
{
label
:
'收款人身份证'
,
key
:
'idCardNo'
,
include
:
'1'
},
{
label
:
'收款银行卡号'
,
key
:
'recvBankCardNo'
,
include
:
'1'
},
{
label
:
'收款银行卡号'
,
key
:
'recvBankCardNo'
,
include
:
'1'
},
{
label
:
'收款银行'
,
key
:
'recvBank'
,
include
:
'1'
},
{
label
:
'收款银行'
,
key
:
'recvBank'
,
include
:
'1'
},
{
label
:
'消耗积分类型'
,
key
:
'ruleDesc'
},
{
label
:
'消耗积分类型'
,
key
:
'ruleDesc'
},
{
label
:
'消耗积分时间'
,
key
:
'createdDate'
}
{
label
:
'消耗积分时间'
,
key
:
'createdDate'
,
include
:
'1'
},
{
label
:
'消耗积分时间'
,
key
:
'payDate'
,
include
:
'2,3'
}
]
]
export
default
{
export
default
{
name
:
'index'
,
name
:
'index'
,
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
loading
:
false
,
tabId
:
'1'
,
tabId
:
'1'
,
tabPaneList
:
[
tabPaneList
:
[
{
name
:
'1'
,
label
:
'积分转出明细'
}
{
name
:
'1'
,
label
:
'积分转出明细'
}
,
//
{ name: '2', label: '油卡兑换明细' },
{
name
:
'2'
,
label
:
'油卡兑换明细'
},
//
{ name: '3', label: '商品兑换明细' }
{
name
:
'3'
,
label
:
'商品兑换明细'
}
],
],
detailList
:
DETAIL_LIST
,
detailList
:
DETAIL_LIST
,
detailObj
:
{},
detailObj
:
{},
dialogVisible
:
false
,
dialogVisible
:
false
,
searchForm
:
{
searchForm
:
{
ruleType
:
'TRANSFER_OUT'
,
ruleType
:
'TRANSFER_OUT'
,
merchantId
:
''
,
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
createDate
:
''
,
createDate
:
''
,
merchantId
:
''
batchNo
:
''
,
policyNo
:
''
},
},
searchFormData
:
[
searchFormData
:
[
//
{
{
//
label: '批次号',
label
:
'批次号'
,
// name: 'bizRelName
',
name
:
'batchNo
'
,
//
type: 'input'
type
:
'input'
//
},
},
{
{
label
:
'客户手机号'
,
label
:
'客户手机号'
,
name
:
'customerPhone'
,
name
:
'customerPhone'
,
...
@@ -123,11 +178,11 @@ export default {
...
@@ -123,11 +178,11 @@ export default {
isClear
:
true
,
isClear
:
true
,
type
:
'input'
type
:
'input'
},
},
//
{
{
//
label: '保单号',
label
:
'保单号'
,
// name: 'bizRelName
',
name
:
'policyNo
'
,
//
type: 'input'
type
:
'input'
//
},
},
{
{
label
:
'消耗积分时间'
,
label
:
'消耗积分时间'
,
name
:
'createDate'
,
name
:
'createDate'
,
...
@@ -163,7 +218,7 @@ export default {
...
@@ -163,7 +218,7 @@ export default {
watch
:
{
watch
:
{
tabId
:
{
tabId
:
{
handler
:
function
(
nVal
,
oVal
)
{
handler
:
function
(
nVal
,
oVal
)
{
this
.
tableParams
.
tableColumns
=
TABLE_COL
.
filter
(
item
=>
(
nVal
==
1
&&
!
item
.
show
)
||
nVal
!=
1
)
this
.
tableParams
.
tableColumns
=
TABLE_COL
.
filter
(
item
=>
item
.
show
.
indexOf
(
nVal
)
!=
-
1
)
},
},
immediate
:
true
immediate
:
true
}
}
...
@@ -174,13 +229,14 @@ export default {
...
@@ -174,13 +229,14 @@ export default {
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
viewDetail
({
id
})
{
changeTab
()
{
this
.
$apis
.
pointWriteOff
.
payPointsDetailApi
({
id
}).
then
(
res
=>
{
this
.
handleReset
()
if
(
res
)
{
},
this
.
detailObj
=
res
viewDetail
(
item
)
{
this
.
detailObj
=
{
...
item
}
this
.
detailObj
.
ruleDesc
=
this
.
tabId
==
1
?
'积分转出'
:
this
.
tabId
==
2
?
'油卡兑换'
:
'商品兑换'
this
.
detailObj
.
retailPrice
=
item
.
retailPrice
?
Number
((
item
.
retailPrice
/
100
).
toFixed
(
2
))
:
0
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
}
})
},
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
...
@@ -188,6 +244,7 @@ export default {
...
@@ -188,6 +244,7 @@ export default {
params
.
createdDateBegin
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
createdDateBegin
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
createdDateEnd
=
new
Date
(
this
.
searchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
params
.
createdDateEnd
=
new
Date
(
this
.
searchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
}
if
(
this
.
tabId
!=
1
)
delete
params
.
ruleType
delete
params
.
createDate
delete
params
.
createDate
return
params
return
params
},
},
...
@@ -196,24 +253,32 @@ export default {
...
@@ -196,24 +253,32 @@ export default {
ruleType
:
'TRANSFER_OUT'
,
ruleType
:
'TRANSFER_OUT'
,
customerName
:
''
,
customerName
:
''
,
customerPhone
:
''
,
customerPhone
:
''
,
merchantId
:
this
.
searchForm
.
merchantId
,
createDate
:
''
,
createDate
:
''
,
merchantId
:
this
.
searchForm
.
merchantId
batchNo
:
''
,
policyNo
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
pointerWriteOffRef
.
refreshTable
()
this
.
$refs
.
pointerWriteOffRef
.
refreshTable
()
},
},
setTableFinishFun
()
{
this
.
loading
=
false
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
loading
=
true
let
_api
=
this
.
tabId
==
1
?
'payPointsListApi'
:
this
.
tabId
==
2
?
'exchangeOilListApi'
:
'exchangeGoodListApi'
this
.
getListApi
=
this
.
$apis
.
pointWriteOff
[
_api
]
this
.
searchForm
=
this
.
getParams
()
this
.
searchForm
=
this
.
getParams
()
// delete this.searchForm.createDate
resolve
()
resolve
()
})
})
},
},
handleExport
()
{
handleExport
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
pointWriteOff
.
payPointsExportApi
(
params
).
then
(
res
=>
{
let
_api
=
this
.
tabId
==
1
?
'payPointsExportApi'
:
this
.
tabId
==
2
?
'exchangeOilExportApi'
:
'exchangeGoodExportApi'
this
.
$apis
.
pointWriteOff
[
_api
](
params
).
then
(
res
=>
{
exportFn
(
res
)
exportFn
(
res
)
})
})
}
}
...
...
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