调整抄送人状态显示
This commit is contained in:
parent
81cdb07f78
commit
33c3901ee9
@ -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 '未知';
|
||||
|
||||
@ -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 '未知';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user