Commit fb513e31 by zhangxw

联调修改

1 parent 890af938
...@@ -16,6 +16,13 @@ Page({ ...@@ -16,6 +16,13 @@ Page({
approvalLogs: [] // 审核日志 approvalLogs: [] // 审核日志
}, },
constantData, constantData,
approvalStatusMap: {
'1': {name: '待审批', color: '#FF9D0A', background: '#ff9d0a1a'},
'2': {name: '审批驳回', color: '#F24724', background: '#f247241a'},
'3': {name: '待线上运营审批', color: '#7A66FE', background: '#7a66fe14'},
'5': {name: '审批通过', color: '#35C376', background: '#35C3761a'}, //
'4': {name: '审批驳回', color: '#F24724', background: '#f247241a'}
},
orderForm:[{ orderForm:[{
label: '交易参考号', label: '交易参考号',
key: 'tradeNo' key: 'tradeNo'
...@@ -78,8 +85,7 @@ Page({ ...@@ -78,8 +85,7 @@ Page({
5: { text: '线上运营审核', status: '通过' }, 5: { text: '线上运营审核', status: '通过' },
2: { text: '区域运营审核', status: '驳回' }, 2: { text: '区域运营审核', status: '驳回' },
4: { text: '线上运营审核', status: '驳回' } 4: { text: '线上运营审核', status: '驳回' }
}, }
queryApprovalStatus: null
}, },
/** /**
...@@ -87,9 +93,8 @@ Page({ ...@@ -87,9 +93,8 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
// 可以从 options 中获取订单ID,然后加载详情 // 可以从 options 中获取订单ID,然后加载详情
const { id, approvalStatus } = options const { id } = options
console.log(approvalStatus) this.setData({queryId: id})
this.setData({queryApprovalStatus: approvalStatus, queryId: id})
if (id) { if (id) {
this.loadOrderDetail(id) this.loadOrderDetail(id)
} }
......
...@@ -36,10 +36,21 @@ page { ...@@ -36,10 +36,21 @@ page {
margin: 24rpx 0; margin: 24rpx 0;
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
.section-title { .section-title {
font-size: 30rpx; display: flex;
align-items: center;
justify-content: space-between;
font-size: 32rpx;
font-weight: 500; font-weight: 500;
color: #222222; color: #222222;
margin-bottom: 24rpx; margin-bottom: 24rpx;
.status {
font-size: 24rpx;
font-weight: 400;
height: 48rpx;
line-height: 48rpx;
border-radius: 8rpx;
padding: 0 12rpx;
}
} }
.info-item { .info-item {
display: flex; display: flex;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="page-container"> <view class="page-container">
<!-- 页面内容 --> <!-- 页面内容 -->
<view class="content-scroll"> <view class="content-scroll">
<view class="status-section" wx:if="{{detailInfo.queryApprovalStatus == 1}}"> <view class="status-section" wx:if="{{detailInfo.declarationInfo.approvalStatus == 1}}">
<view class="status-badge"> <view class="status-badge">
<van-icon name="more-o" color="#FF9D0A"></van-icon> <van-icon name="more-o" color="#FF9D0A"></van-icon>
<text class="status-text">待审核</text> <text class="status-text">待审核</text>
...@@ -10,8 +10,13 @@ ...@@ -10,8 +10,13 @@
<text class="status-tip">请尽快处理</text> <text class="status-tip">请尽快处理</text>
</view> </view>
<!-- 审核日志 --> <!-- 审核日志 -->
<view class="section" wx:if="{{detailInfo.queryApprovalStatus != 1 && detailInfo.approvalLogs.length}}"> <view class="section" wx:if="{{detailInfo.declarationInfo.approvalStatus != 1 && detailInfo.approvalLogs.length}}">
<view class="section-title">审核日志</view> <view class="section-title">
<view>审核日志</view>
<view class="status text-center" style="color:{{ approvalStatusMap[detailInfo.declarationInfo.approvalStatus].color }};background-color:{{approvalStatusMap[detailInfo.declarationInfo.approvalStatus].background }};">
{{approvalStatusMap[detailInfo.declarationInfo.approvalStatus].name }}
</view>
</view>
<view class="log-box" wx:for="{{detailInfo.approvalLogs}}" wx:key="index"> <view class="log-box" wx:for="{{detailInfo.approvalLogs}}" wx:key="index">
<view class="timeline"> <view class="timeline">
<view class="timeline-item"> <view class="timeline-item">
...@@ -31,7 +36,7 @@ ...@@ -31,7 +36,7 @@
</block> </block>
</view> </view>
<view class="flex" wx:if="{{item.remark}}"> <view class="flex" wx:if="{{item.remark}}">
<view class="label">{{item.approvalStatus == 3 || item.approvalStatus == 5 ? '备注' : '驳回原因'}}</view> <view class="label">{{item.approvalStatus == 3 || item.approvalStatus == 5 ? '备注' : '驳回备注'}}</view>
<view class="value">{{item.remark}}</view> <view class="value">{{item.remark}}</view>
</view> </view>
<view class="flex"> <view class="flex">
...@@ -77,7 +82,7 @@ ...@@ -77,7 +82,7 @@
</view> </view>
<view class="empty-box"></view> <view class="empty-box"></view>
</view> </view>
<view wx:if="{{queryApprovalStatus == 1}}" class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}"> <view wx:if="{{detailInfo.declarationInfo.approvalStatus == 1}}" class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btn cancel" bindtap="reject">驳回</view> <view class="btn cancel" bindtap="reject">驳回</view>
<view class="btn confirm" bindtap="pass">通过</view> <view class="btn confirm" bindtap="pass">通过</view>
</view> </view>
......
...@@ -193,7 +193,7 @@ Page({ ...@@ -193,7 +193,7 @@ Page({
handleDetail(e) { handleDetail(e) {
let { target } = e.currentTarget.dataset let { target } = e.currentTarget.dataset
wx.navigateTo({ wx.navigateTo({
url: `/packageWorkspace/pages/cashFlowReview/pages/cashFlowDetail/cashFlowDetail?id=${target.id}&approvalStatus=${target.approvalStatus}`, url: `/packageWorkspace/pages/cashFlowReview/pages/cashFlowDetail/cashFlowDetail?id=${target.id}`,
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!