main
panliang 2024-05-03 17:20:15 +08:00
parent a2c6b8b40f
commit 0d2e5f8299
5 changed files with 37 additions and 71 deletions

View File

@ -8,9 +8,7 @@ export default {
{ {
title: '审核状态', title: '审核状态',
dataIndex: 'check_status', dataIndex: 'check_status',
format: (value) => { format: (value) => statusFun(value, 'statusExpense2', 'name')
return statusFun(value, 'statusExpense2', 'name')
}
}, },

View File

@ -13,7 +13,7 @@
<view> {{ item.check_user ? item.check_user.name : item.check_name }}</view> <view> {{ item.check_user ? item.check_user.name : item.check_name }}</view>
</view> </view>
<view v-if="item.check_status > 1" class="text-26rpx" :style="{ color: statusFun(item.check_status, 'statusExpense', 'color')}"> <view v-if="item.check_status > 1" class="text-26rpx" :style="{ color: statusFun(item.check_status, 'statusExpense', 'color')}">
{{ item.check_status_text }} {{ statusFun(item.check_status, 'statusExpense', 'name') }}
</view> </view>
<view class="text-26rpx text-red" v-if="item.check_status == 4">{{item.remarks}}</view> <view class="text-26rpx text-red" v-if="item.check_status == 4">{{item.remarks}}</view>
</view> </view>

View File

@ -29,7 +29,7 @@
v-for="item in list" v-for="item in list"
:key="item.id" :key="item.id"
:title="item.type?.name" :title="item.type?.name"
: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.expense }, { label: '报销金额: ', value: item.expense },

View File

@ -50,8 +50,8 @@
v-for="item in list" v-for="item in list"
:key="item.id" :key="item.id"
:title="item.check.subject.task.name" :title="item.check.subject.task.name"
:status-text="statusFun( item.check_status,'statusExpense2','name')" :status-text="statusFun(item.check_status,'statusExpense2','name')"
:status-color="statusFun( item.check_status,'statusExpense2','color')" :status-color="statusFun(item.check_status,'statusExpense2','color')"
:body="[ :body="[
{label: '任务时间: ', value: item.check.subject.task.start_format + '-' + item.check.subject.task.end_format} {label: '任务时间: ', value: item.check.subject.task.start_format + '-' + item.check.subject.task.end_format}
]" ]"

View File

@ -12,48 +12,22 @@ const data = {
value:'approval', value:'approval',
name:'审批通知', name:'审批通知',
}], }],
statusExpense: [{ // 申请状态
value: 1, statusExpense: [
name: '待提审', { value: 1, name: '待审核', color: '#f56c6c' },
color: '#f56c6c' { value: 2, name: '审核中', color: '#f56c6c' },
}, { { value: 3, name: '已通过', color: '#3c9cff' },
value: 2, { value: 4, name: '未通过', color: '#999999' },
name: '审核中', { value: 5, name: '已取消', color: '#999999' }
color: '#f56c6c' ],
}, { // 审核状态
value: 3, statusExpense2: [
name: '审核通过', { value: 1, name: '未开始', color: '#f56c6c' },
color: '#3c9cff' { value: 2, name: '待审核', color: '#f56c6c' },
}, { { value: 3, name: '审核通过', color: '#3c9cff' },
value: 4, { value: 4, name: '未通过', color: '#999999' },
name: '未通过', { value: 5, name: '已取消', color: '#999999' }
color: '#999999' ],
}, {
value: 5,
name: '已取消',
color: '#999999'
}],
statusExpense2: [{
value: 1,
name: '待提审',
color: '#f56c6c'
}, {
value: 2,
name: '待审核',
color: '#f56c6c'
}, {
value: 3,
name: '审核通过',
color: '#3c9cff'
}, {
value: 4,
name: '未通过',
color: '#999999'
}, {
value: 5,
name: '已取消',
color: '#999999'
}],
//清洁任务 //清洁任务
task_hygienes: [{ task_hygienes: [{
value: 1, value: 1,
@ -98,28 +72,22 @@ const data = {
name: '未完成', name: '未完成',
color: '#999999' color: '#999999'
}], }],
// 升职申请 // 升职申请-申请人
promotion_status: [{ promotion_status: [
value: 1, { value: 1, name: '待提交', color: '#f56c6c'},
name: '待提交', { value: 2, name: '待推荐', color: '#f56c6c' },
color: '#f56c6c' { value: 3, name: '审核中', color: '#f56c6c' },
}, { { value: 4, name: '已通过', color: '#3c9cff' },
value: 2, { value: 5, name: '未通过', color: '#999999' }
name: '待推荐', ],
color: '#f56c6c' // 升职申请-推荐人
}, { promotion_status: [
value: 3, { value: 1, name: '待提交', color: '#f56c6c'},
name: '审核中', { value: 2, name: '待推荐', color: '#f56c6c' },
color: '#f56c6c' { value: 3, name: '审核中', color: '#f56c6c' },
}, { { value: 4, name: '已通过', color: '#3c9cff' },
value: 4, { value: 5, name: '未通过', color: '#999999' }
name: '审核通过', ],
color: '#3c9cff'
}, {
value: 5,
name: '不通过',
color: '#999999'
}],
// 不卡申请 // 不卡申请
workflow_check: [ workflow_check: [
{ {