status
parent
5b8e037578
commit
cb62e8e56b
|
|
@ -19,6 +19,7 @@ import { onLoad } from "@dcloudio/uni-app"
|
|||
import { ref } from "vue"
|
||||
import { timeFormat } from "@climblee/uv-ui/libs/function/index"
|
||||
import BaseData from '@/pages/audits/base-data.vue'
|
||||
import statusFun from '@/utils/status'
|
||||
|
||||
const modalRef = ref(null)
|
||||
const actions = ref([
|
||||
|
|
@ -32,7 +33,8 @@ const id = ref(0)
|
|||
const detailColumns = [
|
||||
{
|
||||
title: "审核状态",
|
||||
dataIndex: "workflow_check.check_status_text"
|
||||
dataIndex: "workflow_check.check_status",
|
||||
format: (value) => statusFun(value, 'statusExpense', 'name')
|
||||
},
|
||||
{
|
||||
title: "申请人",
|
||||
|
|
@ -65,16 +67,18 @@ const detailColumns = [
|
|||
{
|
||||
title: "是否外勤",
|
||||
dataIndex: "sign_type",
|
||||
format: (value) => {
|
||||
return value == 1 ? "否" : "是"
|
||||
}
|
||||
format: (value) => value == 1 ? "否" : "是"
|
||||
},
|
||||
{
|
||||
title: "外勤事由",
|
||||
dataIndex: "outside_remarks",
|
||||
isShow: (data) => {
|
||||
return data?.sign_type == 2
|
||||
}
|
||||
isShow: (data) => data?.sign_type == 2
|
||||
},
|
||||
{
|
||||
title: '未通过原因',
|
||||
dataIndex: 'workflow_check.check_remarks',
|
||||
labelPosition: 'top',
|
||||
isShow: (row) => row?.workflow_check.check_status == 4
|
||||
},
|
||||
];
|
||||
const open = () => {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
<ListItem
|
||||
v-for="item in list" :key="item.id"
|
||||
title="补卡申请"
|
||||
:status-text="item.workflow_check.check_status_text"
|
||||
:status-text="statusFun(item.workflow_check.check_status,'statusExpense','name')"
|
||||
:status-color="statusFun(item.workflow_check.check_status,'statusExpense','color')"
|
||||
:body="[
|
||||
{ label: '补卡时间: ', value: item.date_format },
|
||||
|
|
|
|||
Loading…
Reference in New Issue