待办审批状态标签

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
+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) })