Commit 61fa62a7 by zhangxw

审核文案修改

1 parent cb5b62e2
import api from '~/utils/request/request.js'
module.exports = {
// 获取流水审核列表
// 获取流水审批列表
getCashFlowReviewList(data) {
return api.post('dj.api.smartcarlife.abnormalFlowDeclaration.page', data)
},
// 获取流水审核详情
// 获取流水审批详情
getCashFlowDetail(data) {
return api.post('dj.api.smartcarlife.abnormalFlowDeclaration.detail', data)
},
// 流水审核
// 流水审批
auditCashFlow(data) {
return api.post('dj.api.smartcarlife.abnormalFlowDeclaration.regionManagerApprove', data)
},
......
......@@ -6,7 +6,7 @@
<textarea class="textarea-input" placeholder-style="color:#BEC1C7" placeholder="请输入" maxlength="200" value="{{remark}}" bindinput="textAreaInput" />
<view class="counter">{{contentLength}}/200</view>
</view>
<view wx:if="{{infoData.type == 3}}" class="tips">审核通过后将自动流转至线上运营审核</view>
<view wx:if="{{infoData.type == 3}}" class="tips">审批通过后将自动流转至线上运营审批</view>
<view wx:if="{{infoData.type == 2}}" class="tips">驳回后流转至驻店报备节点</view>
</scroll-view>
</popup>
\ No newline at end of file
......@@ -13,7 +13,7 @@ Page({
detailInfo: {
tradeInfo: {}, // 流水信息
declarationInfo: {}, // 报备信息
approvalLogs: [] // 审核日志
approvalLogs: [] // 审批日志
},
constantData,
approvalStatusMap: {
......@@ -81,10 +81,10 @@ Page({
flexStart: true
}],
statusForShow: {
3: { text: '区域运营审核', status: '通过' },
5: { text: '线上运营审核', status: '通过' },
2: { text: '区域运营审核', status: '驳回' },
4: { text: '线上运营审核', status: '驳回' }
3: { text: '区域运营审批', status: '通过' },
5: { text: '线上运营审批', status: '通过' },
2: { text: '区域运营审批', status: '驳回' },
4: { text: '线上运营审批', status: '驳回' }
}
},
......@@ -163,7 +163,7 @@ Page({
data.tradeInfo.distributionStatusText = constantData.distributionStatusMap?.find(v => v.value == data.tradeInfo.distributionStatus)?.name
// 退款状态
data.tradeInfo.refundStatusText = constantData.refundStatusMap?.find(v => v.value == data.tradeInfo.refundStatus)?.name
// 处理审核日志时间字段
// 处理审批日志时间字段
data?.approvalLogs?.forEach(val => {
console.log(val)
val.createdDateStr = val.createdDate ? dayjs(val.createdDate).format('YYYY-MM-DD HH:mm:ss') : '-'
......@@ -178,14 +178,14 @@ Page({
},
/**
* 通过审核
* 通过审批
*/
pass() {
this.setData({
showPopup: true,
popupInfo: {
type: '3',
title: '审核通过',
title: '审批通过',
label: '通过备注'
}
})
......@@ -199,14 +199,14 @@ Page({
showPopup: true,
popupInfo: {
type: '2',
title: '审核驳回',
title: '审批驳回',
label: '驳回备注'
}
})
},
/**
* 提交审核结果
* 提交审批结果
*/
handlePopupConfirm(e) {
if (this.data.submitFlag) return
......@@ -224,9 +224,9 @@ Page({
if (code == 0) {
this.loadOrderDetail(queryId)
const pages = getCurrentPages()
if (pages?.[pages.length - 2]) { // 从列表进入,审核后返回列表页
if (pages?.[pages.length - 2]) { // 从列表进入,审批后返回列表页
wx.navigateBack()
} else { // 企微消息直接进入页面 审核后关闭页面跳转到列表页
} else { // 企微消息直接进入页面 审批后关闭页面跳转到列表页
wx.reLaunch({url: '/packageWorkspace/pages/cashFlowReview/pages/cashFlowDetail/cashFlowDetail'})
}
} else {
......
......@@ -3,5 +3,5 @@
"van-icon": "@vant/weapp/icon/index",
"approval-popup": "../../components/approvalPopup/approvalPopup"
},
"navigationBarTitleText": "审核详情"
"navigationBarTitleText": "审批详情"
}
\ No newline at end of file
......@@ -5,14 +5,14 @@
<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>
<text class="status-text">待审批</text>
</view>
<text class="status-tip">请尽快处理</text>
</view>
<!-- 审核日志 -->
<!-- 审批日志 -->
<view class="section" wx:if="{{detailInfo.declarationInfo.approvalStatus != 1 && detailInfo.approvalLogs.length}}">
<view class="section-title">
<view>审核日志</view>
<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>
......@@ -40,11 +40,11 @@
<view class="value">{{item.remark}}</view>
</view>
<view class="flex">
<view class="label">审核人</view>
<view class="label">审批人</view>
<view class="value">{{item.operatorName}}</view>
</view>
<view class="flex">
<view class="label">审核时间</view>
<view class="label">审批时间</view>
<view class="value">{{item.createdDateStr}}</view>
</view>
</view>
......
......@@ -2,5 +2,5 @@
"usingComponents": {
"select-popup": "/packageWorkspace/components/selectPopup/selectPopup"
},
"navigationBarTitleText": "流水审核"
"navigationBarTitleText": "流水审批"
}
\ No newline at end of file
......@@ -58,7 +58,7 @@ Page({
trackingCode: "regional-assistant-server-center",
},
{
name: "流水审核",
name: "流水审批",
url: "packageWorkspace.cashFlowList",
icon: "cashflow-review",
trackingCode: "regional-assistant-cashflow-review",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!