diff --git a/src/pages/audits/data.data.js b/src/pages/audits/data.data.js index 9d55b37..007dd30 100644 --- a/src/pages/audits/data.data.js +++ b/src/pages/audits/data.data.js @@ -1,35 +1,73 @@ import { timeFormat } from '@climblee/uv-ui/libs/function' export default { //清洁任务 - task_hygienes: [ - // { - // title: '申请人', - // dataIndex: 'name', - // }, - { - title: '所属门店', - dataIndex: 'taskable.store.title', - // borderBottom: false, - // labelPosition: 'top' + task_hygienes: { + data: [ + // { + // title: '申请人', + // dataIndex: 'name', + // }, + { + title: '所属门店', + dataIndex: 'taskable.store.title', + // borderBottom: false, + // labelPosition: 'top' + }, + { + title: '电话号码', + dataIndex: '', + }, + { + title: '申请时间', + dataIndex: 'created_at', + format: timeFormat, + }, + { + title: '清洁范围', + dataIndex: 'taskable.description', + labelPosition: 'top', + }, + { + title: '清洁结果', + dataIndex: 'taskable.photos', + type: 'album', + }, + ], + }, + reimbursements: { + params: { + include: 'employee,store,type', }, - { - title: '电话号码', - dataIndex: '', - }, - { - title: '申请时间', - dataIndex: 'created_at', - format: timeFormat, - }, - { - title: '清洁范围', - dataIndex: 'taskable.description', - labelPosition: 'top', - }, - { - title: '清洁结果', - dataIndex: 'taskable.photos', - type: 'album', - }, - ] + data: [ + { + title: '审核状态', + dataIndex: 'workflow_check.check_status_text', + }, + { + title: '未通过理由', + dataIndex: 'workflow_check.check_remarks', + isShow: (item) => { + return item?.workflow_check?.check_status == 4 + }, + }, + { + title: '报销分类', + dataIndex: 'type.name', + }, + { + title: '报销金额', + dataIndex: 'expense', + }, + { + title: '报销原因', + dataIndex: 'reason', + labelPosition: 'top', + }, + { + title: '报销凭证', + dataIndex: 'photos', + type: 'album', + }, + ] + } } \ No newline at end of file diff --git a/src/pages/audits/detail.vue b/src/pages/audits/detail.vue index 806541a..904e481 100644 --- a/src/pages/audits/detail.vue +++ b/src/pages/audits/detail.vue @@ -1,8 +1,12 @@ + + + + + + + + + {{ userInfo.name }} + + {{ userInfo.phone }} + + + + + + + @@ -27,10 +51,15 @@