Commit e93be1fb by zhangxw

积分审批-积分归属字段

1 parent cca2519b
......@@ -46,6 +46,9 @@ Page({
label: '交易流水号',
key: 'tradeNo'
}, {
label: '积分归属',
key: 'staffSource'
}, {
label: '备注',
key: 'remark'
}],
......@@ -94,7 +97,7 @@ Page({
pageNum,
pageSize: 4,
search: keyword,
supervisorAudit: statusObj[tabIndex]
supervisorStatus: statusObj[tabIndex]
}
if (nothing) return
api.getPointsReviewListAPI(params).then(res => {
......@@ -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.operator = val?.operationList?.[0]?.operator || '' // 审批人
val.operatorPhone = val?.operationList?.[0]?.operatorPhone || '' // 审批人手机号
val.staffSource = val.staffSource == 1 ? '驻店员工' : '门店员工' // 积分归属
})
let tempList = listData?.concat(data?.list)
this.setData({
......
......@@ -20,8 +20,8 @@
<view class="occupy_element"></view>
<block wx:for="{{listData}}" wx:key="index">
<view class="list-item">
<view class="status text-center" style="color:{{statusObj[item.supervisorAudit].color }};background-color:{{statusObj[item.supervisorAudit].background }};">
{{statusObj[item.supervisorAudit].text }}
<view class="status text-center" style="color:{{statusObj[item.supervisorStatus].color }};background-color:{{statusObj[item.supervisorStatus].background }};">
{{statusObj[item.supervisorStatus].text }}
</view>
<view class="name">
<view class="name-text text-hide ">{{item.customerName}}</view>
......@@ -75,16 +75,16 @@
</block>
</view>
</view>
<view class="item-flex" wx:if="{{item.supervisorAudit == 2}}">
<view class="item-flex" wx:if="{{item.supervisorStatus == 2}}">
<view class="label">{{item.failType == 1 ? '退款' : item.failType == 2 ? '撤单' : item.failType == 3 ? '错单' : ''}}时间</view>
<view class="value">{{item.failTime}}</view>
</view>
</view>
<view class="btn-box" wx:if="{{item.supervisorAudit == 0}}">
<view class="btn-box" wx:if="{{item.supervisorStatus == 0}}">
<view class="line"></view>
<view class="btn" catch:tap="handleReview" data-item="{{item}}">审批</view>
</view>
<view class="review-message" wx:if="{{item.supervisorAudit == 1}}">
<view class="review-message" wx:if="{{item.supervisorStatus == 1}}">
<view class="review-item">
<view class="label">审批时间</view>
<view class="value">{{item.operateTime}}</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!