Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e93be1fb
authored
Sep 06, 2024
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分审批-积分归属字段
1 parent
cca2519b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
pages/pointsReview/pointsReview.js
pages/pointsReview/pointsReview.wxml
pages/pointsReview/pointsReview.js
View file @
e93be1f
...
@@ -46,6 +46,9 @@ Page({
...
@@ -46,6 +46,9 @@ Page({
label
:
'交易流水号'
,
label
:
'交易流水号'
,
key
:
'tradeNo'
key
:
'tradeNo'
},
{
},
{
label
:
'积分归属'
,
key
:
'staffSource'
},
{
label
:
'备注'
,
label
:
'备注'
,
key
:
'remark'
key
:
'remark'
}],
}],
...
@@ -94,7 +97,7 @@ Page({
...
@@ -94,7 +97,7 @@ Page({
pageNum
,
pageNum
,
pageSize
:
4
,
pageSize
:
4
,
search
:
keyword
,
search
:
keyword
,
supervisor
Audit
:
statusObj
[
tabIndex
]
supervisor
Status
:
statusObj
[
tabIndex
]
}
}
if
(
nothing
)
return
if
(
nothing
)
return
api
.
getPointsReviewListAPI
(
params
).
then
(
res
=>
{
api
.
getPointsReviewListAPI
(
params
).
then
(
res
=>
{
...
@@ -108,6 +111,7 @@ Page({
...
@@ -108,6 +111,7 @@ Page({
val
.
operateTime
=
(
val
?.
operationList
?.[
0
]?.
operateTime
&&
(
new
Date
(
val
.
operationList
[
0
].
operateTime
).
format
(
'yyyy.MM.dd hh:mm:ss'
)
||
val
.
operationList
[
0
].
operateTime
))
||
''
// 审批时间
val
.
operateTime
=
(
val
?.
operationList
?.[
0
]?.
operateTime
&&
(
new
Date
(
val
.
operationList
[
0
].
operateTime
).
format
(
'yyyy.MM.dd hh:mm:ss'
)
||
val
.
operationList
[
0
].
operateTime
))
||
''
// 审批时间
val
.
operator
=
val
?.
operationList
?.[
0
]?.
operator
||
''
// 审批人
val
.
operator
=
val
?.
operationList
?.[
0
]?.
operator
||
''
// 审批人
val
.
operatorPhone
=
val
?.
operationList
?.[
0
]?.
operatorPhone
||
''
// 审批人手机号
val
.
operatorPhone
=
val
?.
operationList
?.[
0
]?.
operatorPhone
||
''
// 审批人手机号
val
.
staffSource
=
val
.
staffSource
==
1
?
'驻店员工'
:
'门店员工'
// 积分归属
})
})
let
tempList
=
listData
?.
concat
(
data
?.
list
)
let
tempList
=
listData
?.
concat
(
data
?.
list
)
this
.
setData
({
this
.
setData
({
...
...
pages/pointsReview/pointsReview.wxml
View file @
e93be1f
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<view class="occupy_element"></view>
<view class="occupy_element"></view>
<block wx:for="{{listData}}" wx:key="index">
<block wx:for="{{listData}}" wx:key="index">
<view class="list-item">
<view class="list-item">
<view class="status text-center" style="color:{{statusObj[item.supervisor
Audit].color }};background-color:{{statusObj[item.supervisorAudit
].background }};">
<view class="status text-center" style="color:{{statusObj[item.supervisor
Status].color }};background-color:{{statusObj[item.supervisorStatus
].background }};">
{{statusObj[item.supervisor
Audit
].text }}
{{statusObj[item.supervisor
Status
].text }}
</view>
</view>
<view class="name">
<view class="name">
<view class="name-text text-hide ">{{item.customerName}}</view>
<view class="name-text text-hide ">{{item.customerName}}</view>
...
@@ -75,16 +75,16 @@
...
@@ -75,16 +75,16 @@
</block>
</block>
</view>
</view>
</view>
</view>
<view class="item-flex" wx:if="{{item.supervisor
Audit
== 2}}">
<view class="item-flex" wx:if="{{item.supervisor
Status
== 2}}">
<view class="label">{{item.failType == 1 ? '退款' : item.failType == 2 ? '撤单' : item.failType == 3 ? '错单' : ''}}时间</view>
<view class="label">{{item.failType == 1 ? '退款' : item.failType == 2 ? '撤单' : item.failType == 3 ? '错单' : ''}}时间</view>
<view class="value">{{item.failTime}}</view>
<view class="value">{{item.failTime}}</view>
</view>
</view>
</view>
</view>
<view class="btn-box" wx:if="{{item.supervisor
Audit
== 0}}">
<view class="btn-box" wx:if="{{item.supervisor
Status
== 0}}">
<view class="line"></view>
<view class="line"></view>
<view class="btn" catch:tap="handleReview" data-item="{{item}}">审批</view>
<view class="btn" catch:tap="handleReview" data-item="{{item}}">审批</view>
</view>
</view>
<view class="review-message" wx:if="{{item.supervisor
Audit
== 1}}">
<view class="review-message" wx:if="{{item.supervisor
Status
== 1}}">
<view class="review-item">
<view class="review-item">
<view class="label">审批时间</view>
<view class="label">审批时间</view>
<view class="value">{{item.operateTime}}</view>
<view class="value">{{item.operateTime}}</view>
...
...
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