Compare commits
4 Commits
94024faba9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ff5747c21b | |||
| b9db7d7f5c | |||
| 4c896c69fc | |||
| 7f2a02d6ca |
+2
-2
@@ -160,11 +160,11 @@
|
||||
<wd-icon name="folder" size="52rpx" color="#111827" />
|
||||
<text>文件</text>
|
||||
</view>
|
||||
<view v-if="!isGroup" class="tile" @click="startCall(false)">
|
||||
<view v-if="!isGroup && !isFiles" class="tile" @click="startCall(false)">
|
||||
<wd-icon name="call" size="52rpx" color="#111827" />
|
||||
<text>语音通话</text>
|
||||
</view>
|
||||
<view v-if="!isGroup" class="tile" @click="startCall(true)">
|
||||
<view v-if="!isGroup && !isFiles" class="tile" @click="startCall(true)">
|
||||
<wd-icon name="video" size="52rpx" color="#111827" />
|
||||
<text>视频通话</text>
|
||||
</view>
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<view class="page edge">
|
||||
<fy-header title="通讯录">
|
||||
<template #right>
|
||||
<text class="ico" @click="goGroup">建群</text>
|
||||
<view class="ico" @click="goGroup">
|
||||
<wd-icon name="usergroup" size="40rpx" color="#111827" />
|
||||
</view>
|
||||
</template>
|
||||
</fy-header>
|
||||
<fy-scroll class="edge-scroll" dock @refresh="reload">
|
||||
@@ -226,5 +228,5 @@ export default {
|
||||
.mini { width: 64rpx; height: 64rpx; display: flex; align-items: center; justify-content: center; }
|
||||
.empty { text-align: center; color: #6B7280; padding: 120rpx 40rpx; font-size: 28rpx; }
|
||||
.foot { display: block; text-align: center; color: #9CA3AF; font-size: 22rpx; padding: 28rpx 0 48rpx; }
|
||||
.ico { padding: 8rpx 4rpx; color: #1677FF; font-size: 28rpx; font-weight: 600; }
|
||||
.ico { width: 56rpx; height: 56rpx; display: flex; align-items: center; justify-content: center; }
|
||||
</style>
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<view class="page edge">
|
||||
<fy-header :title="greet">
|
||||
<template #right>
|
||||
<text class="ico" @click="goSearch">搜索</text>
|
||||
<view class="ico" @click="goSearch">
|
||||
<wd-icon name="search" size="40rpx" color="#111827" />
|
||||
</view>
|
||||
</template>
|
||||
</fy-header>
|
||||
<fy-scroll class="edge-scroll" dock @refresh="reload">
|
||||
@@ -268,5 +270,5 @@ export default {
|
||||
.empty-card { background: #fff; border-radius: 24rpx; padding: 48rpx 32rpx; text-align: center; border: 1rpx solid rgba(17,24,39,0.06); }
|
||||
.et { display: block; font-size: 28rpx; font-weight: 600; }
|
||||
.es { display: block; font-size: 24rpx; color: #6B7280; margin-top: 8rpx; }
|
||||
.ico { padding: 8rpx 8rpx; font-size: 28rpx; color: #1677FF; }
|
||||
.ico { width: 56rpx; height: 56rpx; display: flex; align-items: center; justify-content: center; }
|
||||
</style>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<view class="card">
|
||||
<view class="top">
|
||||
<text class="type">{{ row.typeLabel || row.type || '审批' }}</text>
|
||||
<wd-tag type="primary" plain>{{ row.status || '待处理' }}</wd-tag>
|
||||
<wd-tag type="primary" plain>{{ statusText }}</wd-tag>
|
||||
</view>
|
||||
<text class="t">{{ row.title || row.no }}</text>
|
||||
<text class="s">{{ row.submitter || '' }}</text>
|
||||
@@ -69,7 +69,7 @@ import FyHeader from '../../components/fy-header.vue'
|
||||
import FyFiles from '../../components/fy-files.vue'
|
||||
import { store } from '../../utils/store.js'
|
||||
import { oaGet } from '../../utils/api.js'
|
||||
import { toast } from '../../utils/format.js'
|
||||
import { flowStatus, toast } from '../../utils/format.js'
|
||||
import { collectFiles, fileId } from '../../utils/files.js'
|
||||
|
||||
const LABELS = {
|
||||
@@ -124,6 +124,9 @@ export default {
|
||||
const logs = (this.row && this.row.logs) || []
|
||||
return Array.isArray(logs) ? [...logs].reverse() : []
|
||||
},
|
||||
statusText() {
|
||||
return flowStatus(this.row && this.row.status)
|
||||
},
|
||||
canAct() {
|
||||
if (!this.row) return false
|
||||
const st = String(this.row.status || '')
|
||||
|
||||
+3
-2
@@ -17,7 +17,7 @@
|
||||
<text class="t">{{ r.title || r.no }}</text>
|
||||
<text class="s">{{ r.submitter || r.assigneeName || '' }}</text>
|
||||
</view>
|
||||
<wd-tag type="primary" plain>{{ r.status || '待处理' }}</wd-tag>
|
||||
<wd-tag type="primary" plain>{{ statusText(r) }}</wd-tag>
|
||||
<text class="arr">›</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -29,7 +29,7 @@
|
||||
import FyHeader from '../../components/fy-header.vue'
|
||||
import FyScroll from '../../components/fy-scroll.vue'
|
||||
import { store } from '../../utils/store.js'
|
||||
import { asList } from '../../utils/format.js'
|
||||
import { asList, flowStatus } from '../../utils/format.js'
|
||||
import { oaGet } from '../../utils/api.js'
|
||||
|
||||
export default {
|
||||
@@ -82,6 +82,7 @@ export default {
|
||||
this.loading = false
|
||||
}
|
||||
},
|
||||
statusText(r) { return flowStatus(r && r.status) },
|
||||
open(r) {
|
||||
if (r.source === 'work' || r.taskId) {
|
||||
uni.navigateTo({ url: '/pages/coop/detail?id=' + encodeURIComponent(r.id || r.taskId) })
|
||||
|
||||
@@ -148,6 +148,34 @@ export function convType(s) {
|
||||
return 'direct'
|
||||
}
|
||||
|
||||
const FLOW_STATUS = {
|
||||
pending: '待审批',
|
||||
waiting: '待处理',
|
||||
processing: '审批中',
|
||||
reviewing: '审阅中',
|
||||
review: '待审阅',
|
||||
approved: '已通过',
|
||||
passed: '已通过',
|
||||
rejected: '已驳回',
|
||||
refused: '已拒绝',
|
||||
denied: '已拒绝',
|
||||
cancelled: '已撤销',
|
||||
canceled: '已撤销',
|
||||
withdrawn: '已撤回',
|
||||
draft: '草稿',
|
||||
done: '已完成',
|
||||
completed: '已完成',
|
||||
handled: '已处理',
|
||||
reviewed: '已审阅',
|
||||
running: '进行中'
|
||||
}
|
||||
|
||||
export function flowStatus(status) {
|
||||
const raw = String(status || '').trim()
|
||||
if (!raw) return '待处理'
|
||||
return FLOW_STATUS[raw.toLowerCase()] || raw
|
||||
}
|
||||
|
||||
export function toast(title, icon = 'none') {
|
||||
uni.showToast({ title: String(title || ''), icon, duration: 2200 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user