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