待办审批状态标签

This commit is contained in:
2026-09-24 16:07:02 +08:00
parent 94024faba9
commit 7f2a02d6ca
3 changed files with 36 additions and 4 deletions
+5 -2
View File
@@ -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
View File
@@ -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) })