Commit fb513e31 by zhangxw

联调修改

1 parent 890af938
......@@ -16,6 +16,13 @@ Page({
approvalLogs: [] // 审核日志
},
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:[{
label: '交易参考号',
key: 'tradeNo'
......@@ -78,8 +85,7 @@ Page({
5: { text: '线上运营审核', status: '通过' },
2: { text: '区域运营审核', status: '驳回' },
4: { text: '线上运营审核', status: '驳回' }
},
queryApprovalStatus: null
}
},
/**
......@@ -87,9 +93,8 @@ Page({
*/
onLoad(options) {
// 可以从 options 中获取订单ID,然后加载详情
const { id, approvalStatus } = options
console.log(approvalStatus)
this.setData({queryApprovalStatus: approvalStatus, queryId: id})
const { id } = options
this.setData({queryId: id})
if (id) {
this.loadOrderDetail(id)
}
......
......@@ -36,10 +36,21 @@ page {
margin: 24rpx 0;
padding: 24rpx 32rpx;
.section-title {
font-size: 30rpx;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 32rpx;
font-weight: 500;
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 {
display: flex;
......
......@@ -2,7 +2,7 @@
<view class="page-container">
<!-- 页面内容 -->
<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">
<van-icon name="more-o" color="#FF9D0A"></van-icon>
<text class="status-text">待审核</text>
......@@ -10,8 +10,13 @@
<text class="status-tip">请尽快处理</text>
</view>
<!-- 审核日志 -->
<view class="section" wx:if="{{detailInfo.queryApprovalStatus != 1 && detailInfo.approvalLogs.length}}">
<view class="section-title">审核日志</view>
<view class="section" wx:if="{{detailInfo.declarationInfo.approvalStatus != 1 && detailInfo.approvalLogs.length}}">
<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="timeline">
<view class="timeline-item">
......@@ -31,7 +36,7 @@
</block>
</view>
<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>
<view class="flex">
......@@ -77,7 +82,7 @@
</view>
<view class="empty-box"></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 confirm" bindtap="pass">通过</view>
</view>
......
......@@ -193,7 +193,7 @@ Page({
handleDetail(e) {
let { target } = e.currentTarget.dataset
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!