调整抄送人状态显示

This commit is contained in:
ywyonui 2025-09-05 22:25:34 +08:00
parent 81cdb07f78
commit 33c3901ee9
2 changed files with 8 additions and 8 deletions

View File

@ -20,7 +20,7 @@
<view class="item-right">
<text class="item-time" v-if="approver.approveTime">{{ formatTime(approver.approveTime) }}</text>
<text class="item-status" :class="getStatusClass(approver.approveStatus)">
{{ getStatusText(approver.approveStatus) }}
{{ getStatusText(approver.spType, approver.approveStatus) }}
</text>
</view>
</view>
@ -116,11 +116,11 @@ const getSpTypeText = (spType: string) => {
};
//
const getStatusText = (status: string) => {
const getStatusText = (spType: string, status: string) => {
switch (status) {
case 'apply': return '已申请';
case 'pending': return '待处理';
case 'approved': return '已同意';
case 'pending': return spType === 'CC' ? '待抄送' : '待处理';
case 'approved': return spType === 'CC' ? '已抄送' : '已同意';
case 'rejected': return '已拒绝';
case 'cc_sent': return '已抄送';
default: return '未知';

View File

@ -20,7 +20,7 @@
<view class="item-right">
<text class="item-time" v-if="approver.approveTime">{{ formatTime(approver.approveTime) }}</text>
<text class="item-status" :class="getStatusClass(approver.approveStatus)">
{{ getStatusText(approver.approveStatus) }}
{{ getStatusText(approver.spType, approver.approveStatus) }}
</text>
</view>
</view>
@ -120,11 +120,11 @@ const getSpTypeText = (spType: string) => {
};
//
const getStatusText = (status: string) => {
const getStatusText = (spType: string, status: string) => {
switch (status) {
case 'apply': return '已申请';
case 'pending': return '待处理';
case 'approved': return '已同意';
case 'pending': return spType === 'CC' ? '待抄送' : '待处理';
case 'approved': return spType === 'CC' ? '已抄送' : '已同意';
case 'rejected': return '已拒绝';
case 'cc_sent': return '已抄送';
default: return '未知';