Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-points
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 56c1cfe2
authored
Dec 21, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.22.2' of
http://192.168.3.233:8090/saas/scrm-micro-points
into v3.22.2
2 parents
97f8f6d5
38dcdc83
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
67 additions
and
36 deletions
src/views/storeCredit/add.vue
src/views/storeCredit/components/auditDialog.vue
src/views/storeCredit/components/detailDialog.vue
src/views/storeCredit/components/gas.vue
src/views/storeCredit/components/pointsConfig.vue
src/views/storeCredit/components/service.vue
src/views/storeCredit/index.vue
src/views/withdraw/detail.vue
src/views/withdraw/index.vue
src/views/storeCredit/add.vue
View file @
56c1cfe
This diff is collapsed.
Click to expand it.
src/views/storeCredit/components/auditDialog.vue
View file @
56c1cfe
...
@@ -59,6 +59,7 @@ export default {
...
@@ -59,6 +59,7 @@ export default {
},
},
methods
:
{
methods
:
{
handleClose
()
{
handleClose
()
{
this
.
checked
=
false
this
.
$emit
(
'update:auditObj'
,
{})
this
.
$emit
(
'update:auditObj'
,
{})
},
},
async
handleConfirm
()
{
async
handleConfirm
()
{
...
@@ -69,11 +70,11 @@ export default {
...
@@ -69,11 +70,11 @@ export default {
try
{
try
{
const
res
=
await
this
.
$apis
.
points
.
auditIntegral
({
id
})
const
res
=
await
this
.
$apis
.
points
.
auditIntegral
({
id
})
if
(
res
)
{
if
(
res
)
{
this
.
$loading
().
close
()
this
.
handleClose
()
this
.
handleClose
()
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
this
.
$parent
.
handleSearch
()
this
.
$parent
.
handleSearch
()
}
}
this
.
$loading
().
close
()
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
$loading
().
close
()
this
.
$loading
().
close
()
if
(
error
)
this
.
$message
.
error
(
error
)
if
(
error
)
this
.
$message
.
error
(
error
)
...
...
src/views/storeCredit/components/detailDialog.vue
View file @
56c1cfe
...
@@ -23,18 +23,23 @@
...
@@ -23,18 +23,23 @@
<template
v-if=
"scope.scope.oilList && scope.scope.oilList.length"
>
<template
v-if=
"scope.scope.oilList && scope.scope.oilList.length"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"list"
>
<span>
{{
filterData
(
scope
.
scope
.
oilList
,
'oilList'
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<template
v-for=
"(i,index) in scope.scope.oilList"
>
<el-popover
<template>
placement=
"top"
width=
"fit-content"
trigger=
"hover"
>
<div
<div
v-for=
"(item,index) in filterData(scope.scope.oilList,'oilList')"
:key=
"index"
:key=
"index"
class=
"item flex"
>
>
{{
i
.
aliasName
}}
*
{{
i
.
amount
}}
(
{{
NP
.
times
(
i
.
amount
,
i
.
faceValue
)
}}
积分)
{{
item
}}
</div>
</
template
>
</template>
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
scope
.
scope
.
oilList
.
length
}}
)
</span>
</el-popover>
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -47,18 +52,23 @@
...
@@ -47,18 +52,23 @@
>
>
<template
v-if=
"scope.scope.couponList && scope.scope.couponList.length"
>
<template
v-if=
"scope.scope.couponList && scope.scope.couponList.length"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"list"
>
<span>
{{
filterData
(
scope
.
scope
.
couponList
,
'couponList'
).
slice
(
0
,
1
).
join
(
'、'
)
}}
</span>
<template
v-for=
"(i,index) in scope.scope.couponList"
>
<el-popover
<template>
placement=
"top"
width=
"fit-content"
trigger=
"hover"
>
<div
<div
v-for=
"(item,index) in filterData(scope.scope.couponList,'couponList')"
:key=
"index"
:key=
"index"
class=
"item flex"
>
>
{{
i
.
couponName
}}
*
{{
i
.
amount
}}
{{
item
}}
</div>
</
template
>
</template>
</div>
</div>
<span
class=
"more-info"
slot=
"reference"
>
...(
{{
scope
.
scope
.
couponList
.
length
}}
)
</span>
</el-popover>
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
...
@@ -94,7 +104,7 @@ export default {
...
@@ -94,7 +104,7 @@ export default {
{
{
label
:
'保单号'
,
label
:
'保单号'
,
prop
:
'policyNo'
,
prop
:
'policyNo'
,
minWidth
:
1
00
minWidth
:
2
00
},
},
{
{
label
:
'用户姓名'
,
label
:
'用户姓名'
,
...
@@ -103,7 +113,7 @@ export default {
...
@@ -103,7 +113,7 @@ export default {
},
},
{
{
label
:
'身份证号'
,
label
:
'身份证号'
,
minWidth
:
1
00
,
minWidth
:
2
00
,
prop
:
'idCardNo'
,
prop
:
'idCardNo'
,
},
},
{
{
...
@@ -123,12 +133,12 @@ export default {
...
@@ -123,12 +133,12 @@ export default {
},
},
{
{
label
:
'赠送油券'
,
label
:
'赠送油券'
,
minWidth
:
15
0
,
minWidth
:
26
0
,
addHtml
:
'oilList'
addHtml
:
'oilList'
},
},
{
{
label
:
'赠送自店服务'
,
label
:
'赠送自店服务'
,
minWidth
:
15
0
,
minWidth
:
26
0
,
addHtml
:
'couponList'
addHtml
:
'couponList'
},
},
{
{
...
@@ -150,17 +160,27 @@ export default {
...
@@ -150,17 +160,27 @@ export default {
methods
:
{
methods
:
{
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
searchForm
.
batchNo
=
this
.
detailObj
.
batchNo
this
.
searchForm
.
recordId
=
this
.
detailObj
.
recordId
this
.
loading
=
false
this
.
loading
=
false
resolve
()
resolve
()
})
})
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'update:detailObj'
,
{})
this
.
$emit
(
'update:detailObj'
,
{})
}
},
filterData
(
list
,
name
)
{
return
list
?.
map
(
i
=>
{
return
name
==
'oilList'
?
`
${
i
.
aliasName
}
*
${
i
.
amount
}
(
${
NP
.
times
(
i
.
amount
,
i
.
faceValue
)}
积分)`
:
`
${
i
.
couponName
}
*
${
i
.
amount
}
`
})
||
[]
},
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.more-info
{
white-space
:
nowrap
;
color
:
#5850ff
;
cursor
:
pointer
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/storeCredit/components/gas.vue
View file @
56c1cfe
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<el-input-number
<el-input-number
size=
"small"
size=
"small"
:min=
"1"
:min=
"1"
:max=
"
10
"
:max=
"
scope.scope.maxStock
"
:step=
"1"
:step=
"1"
v-model=
"scope.scope.amount"
v-model=
"scope.scope.amount"
@
change=
"changeAmount(...arguments,scope.scope,'oilCouponId')"
@
change=
"changeAmount(...arguments,scope.scope,'oilCouponId')"
...
@@ -112,8 +112,10 @@ export default {
...
@@ -112,8 +112,10 @@ export default {
this
.
$apis
.
points
.
getOilCouponList
(
params
).
then
(
res
=>
{
this
.
$apis
.
points
.
getOilCouponList
(
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
res
.
list
.
map
(
e
=>
{
res
.
list
.
map
(
e
=>
{
let
maxStock
=
e
.
stock
-
e
.
usedStock
e
.
amount
=
1
e
.
amount
=
1
e
.
oilCouponId
=
e
.
id
e
.
oilCouponId
=
e
.
id
e
.
maxStock
=
maxStock
>
10
?
10
:
maxStock
})
})
// 重置分页组件
// 重置分页组件
this
.
serviceList
=
res
.
list
this
.
serviceList
=
res
.
list
...
...
src/views/storeCredit/components/pointsConfig.vue
View file @
56c1cfe
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
class=
"points-panel"
class=
"points-panel"
bigTitle=
"选择"
bigTitle=
"选择"
okText=
"提交"
okText=
"提交"
:before-close=
"handleGiftClose"
@
onCancel=
"handleGiftClose"
@
onCancel=
"handleGiftClose"
@
onOk=
"handleConfirm"
@
onOk=
"handleConfirm"
:visible
.
sync=
"configParams.show"
:visible
.
sync=
"configParams.show"
...
@@ -19,13 +18,13 @@
...
@@ -19,13 +18,13 @@
v-show=
"currentComponent == 'gas'"
v-show=
"currentComponent == 'gas'"
ref=
"gasRef"
ref=
"gasRef"
:merchantId=
"merchantId"
:merchantId=
"merchantId"
:selectedGasList=
"configParams.
row.oilList || []
"
:selectedGasList=
"configParams.
oilList
"
/>
/>
<service
<service
v-show=
"currentComponent == 'service'"
v-show=
"currentComponent == 'service'"
ref=
"serviceRef"
ref=
"serviceRef"
:merchantId=
"merchantId"
:merchantId=
"merchantId"
:selectedServiceList=
"configParams.
row.couponList || []
"
:selectedServiceList=
"configParams.
couponList
"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/storeCredit/components/service.vue
View file @
56c1cfe
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<el-input-number
<el-input-number
size=
"small"
size=
"small"
:min=
"1"
:min=
"1"
:max=
"
10
"
:max=
"
scope.scope.maxStock
"
:step=
"1"
:step=
"1"
v-model=
"scope.scope.amount"
v-model=
"scope.scope.amount"
@
change=
"changeAmount(...arguments,scope.scope,'couponId')"
@
change=
"changeAmount(...arguments,scope.scope,'couponId')"
...
@@ -185,8 +185,10 @@ export default {
...
@@ -185,8 +185,10 @@ export default {
this
.
$apis
.
points
.
getghDirectionalGiftListApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
points
.
getghDirectionalGiftListApi
(
params
).
then
(
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
res
.
list
.
map
(
e
=>
{
res
.
list
.
map
(
e
=>
{
let
maxStock
=
e
.
residueAmount
e
.
amount
=
1
e
.
amount
=
1
e
.
couponId
=
e
.
id
e
.
couponId
=
e
.
id
e
.
maxStock
=
maxStock
>
10
?
10
:
maxStock
})
})
// 重置分页组件
// 重置分页组件
this
.
serviceList
=
res
.
list
this
.
serviceList
=
res
.
list
...
@@ -214,7 +216,7 @@ export default {
...
@@ -214,7 +216,7 @@ export default {
}[
row
.
useType
]
}[
row
.
useType
]
},
},
addCoupon
()
{
addCoupon
()
{
util
.
openTab
(
'/tools/couponManage/
index'
)
window
.
open
(
'/login?redirect=tools%2FcouponManage%2F
index'
)
},
},
}
}
}
}
...
...
src/views/storeCredit/index.vue
View file @
56c1cfe
...
@@ -13,8 +13,9 @@
...
@@ -13,8 +13,9 @@
type=
"default"
type=
"default"
plain
plain
@
click=
"jump"
@
click=
"jump"
size=
"small"
>
门店客户积分充值
</el-button>
>
门店客户积分充值
</el-button>
<el-button
@
click=
"handleExport"
>
导出
<el-button
@
click=
"handleExport"
size=
"small"
>
导出
</el-button>
</el-button>
</div>
</div>
<div
class=
"tabelList"
>
<div
class=
"tabelList"
>
...
@@ -31,7 +32,7 @@
...
@@ -31,7 +32,7 @@
>
>
<div
<div
class=
"link"
class=
"link"
@
click=
"openDetail(scope.scope.
batchNo
)"
@
click=
"openDetail(scope.scope.
id
)"
>
{{
scope
.
scope
.
customerNumber
}}
</div>
>
{{
scope
.
scope
.
customerNumber
}}
</div>
</
template
>
</
template
>
<
template
<
template
...
@@ -282,10 +283,10 @@ export default {
...
@@ -282,10 +283,10 @@ export default {
}
}
}
)
}
)
}
,
}
,
openDetail
(
batchNo
)
{
openDetail
(
recordId
)
{
this
.
detailObj
=
{
this
.
detailObj
=
{
show
:
true
,
show
:
true
,
batchNo
recordId
}
}
}
,
}
,
editForm
(
row
,
type
=
''
)
{
editForm
(
row
,
type
=
''
)
{
...
...
src/views/withdraw/detail.vue
View file @
56c1cfe
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
label
:
'提现金额'
,
label
:
'提现金额'
,
name
:
'payAmount'
,
name
:
'payAmount'
,
addHtml
:
obj
=>
{
addHtml
:
obj
=>
{
return
(
obj
.
payAmount
/
100
).
toFixed
(
2
)
return
obj
.
payAmount
?(
obj
.
payAmount
/
100
).
toFixed
(
2
):
'--'
}
}
},
},
{
{
...
@@ -165,7 +165,10 @@ export default {
...
@@ -165,7 +165,10 @@ export default {
},
},
{
{
label
:
'结算金额'
,
label
:
'结算金额'
,
name
:
'settleAmount'
name
:
'settleAmount'
,
addHtml
:
obj
=>
{
return
obj
.
settleAmount
?(
obj
.
settleAmount
/
100
).
toFixed
(
2
):
'--'
}
},
},
{
{
label
:
'到账时间'
,
label
:
'到账时间'
,
...
...
src/views/withdraw/index.vue
View file @
56c1cfe
...
@@ -331,7 +331,7 @@ export default {
...
@@ -331,7 +331,7 @@ export default {
prop
:
'payAmount'
,
prop
:
'payAmount'
,
width
:
100
,
width
:
100
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
(
cellValue
.
payAmount
/
100
).
toFixed
(
2
)
return
cellValue
.
payAmount
?(
cellValue
.
payAmount
/
100
).
toFixed
(
2
):
'--'
}
}
},
},
{
{
...
@@ -393,6 +393,9 @@ export default {
...
@@ -393,6 +393,9 @@ export default {
{
{
label
:
'结算金额/元'
,
label
:
'结算金额/元'
,
prop
:
'settleAmount'
,
prop
:
'settleAmount'
,
formatter
:
cellValue
=>
{
return
cellValue
.
settleAmount
?(
cellValue
.
settleAmount
/
100
).
toFixed
(
2
):
'--'
},
width
:
'150px'
width
:
'150px'
},
},
]
]
...
...
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