main
panliang 2024-05-03 18:30:12 +08:00
parent bf426c89ca
commit e5c4531406
3 changed files with 33 additions and 114 deletions

View File

@ -5,52 +5,14 @@ export default {
//清洁任务 //清洁任务
task_hygienes: { task_hygienes: {
data: [ data: [
{ { title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name') },
title: '审核状态', { title: '申请人', dataIndex: 'check.employee.name' },
dataIndex: 'check_status', { title: '所属门店', dataIndex: 'check.subject.store.title' },
format: (value) => statusFun(value, 'statusExpense2', 'name') { title: '电话号码', dataIndex: 'check.subject.store_master.phone' },
}, { title: '申请时间', dataIndex: 'check.subject.created_format' },
{ { title: '清洁范围', dataIndex: 'check.subject.description', labelPosition: 'top' },
title: '拒绝原因', { title: '清洁结果', dataIndex: 'check.subject.photos', type: 'album' },
dataIndex: 'remarks', { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
labelPosition: 'top',
isShow: (row) => row?.check_status == 4
},
{ title: '申请人', dataIndex: 'check.employee.name'},
{
title: '所属门店',
dataIndex: 'check.subject.store.title',
// borderBottom: false,
// labelPosition: 'top'
},
{
title: '电话号码',
dataIndex: 'check.subject.store_master.phone',
},
{
title: '申请时间',
dataIndex: 'check.subject.created_at',
format: timeFormat,
},
{
title: '清洁范围',
dataIndex: 'check.subject.description',
labelPosition: 'top',
},
{
title: '清洁结果',
dataIndex: 'check.subject.photos',
type: 'album',
},
{
title: '未通过理由',
dataIndex: 'workflow_check.check_remarks',
labelPosition: 'top',
isShow: (item) => {
return item?.workflow_check?.check_status == 4
},
},
], ],
params: { include: 'check.subject.task,check.subject.storeMaster,check.subject.store,check.employee' } params: { include: 'check.subject.task,check.subject.storeMaster,check.subject.store,check.employee' }
}, },
@ -60,57 +22,16 @@ export default {
include: 'check.subject.type,check.subject.employee,check.subject.store', include: 'check.subject.type,check.subject.employee,check.subject.store',
}, },
data: [ data: [
{ { title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name') },
title: '审核状态', { title: "申请人", dataIndex: "check.subject.employee.name" },
dataIndex: 'check_status', { title: "所属门店", dataIndex: "check.subject.store.title" },
format: (value) => { { title: "电话号码", dataIndex: "check.subject.employee.phone" },
return statusFun(value, 'statusExpense2', 'name') { title: "申请时间", dataIndex: "check.subject.created_format" },
} { title: '报销分类', dataIndex: 'check.subject.type.name' },
}, { title: '报销金额', dataIndex: 'check.subject.expense' },
{ title: '报销原因', dataIndex: 'check.subject.reason', labelPosition: 'top' },
{ { title: '报销凭证', dataIndex: 'check.subject.photos', type: 'album' },
title: "申请人", { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
dataIndex: "check.subject.employee.name"
},
{
title: "所属门店",
dataIndex: "check.subject.store.title"
},
{
title: "电话号码",
dataIndex: "check.subject.employee.phone"
},
{
title: "申请时间",
dataIndex: "check.subject.created_format"
},
{
title: '报销分类',
dataIndex: 'check.subject.type.name',
},
{
title: '报销金额',
dataIndex: 'check.subject.expense',
},
{
title: '报销原因',
dataIndex: 'check.subject.reason',
labelPosition: 'top',
},
{
title: '报销凭证',
dataIndex: 'check.subject.photos',
type: 'album',
},
{
title: '未通过原因',
dataIndex: 'remarks',
labelPosition: 'top',
isShow: (item) => {
return item?.check_status == 4
},
},
] ]
}, },
//升职 //升职
@ -133,7 +54,7 @@ export default {
{ title: '员工自评', dataIndex: 'check.subject.employee_data.comment_self', labelPosition: 'top'}, { title: '员工自评', dataIndex: 'check.subject.employee_data.comment_self', labelPosition: 'top'},
{ title: '未来计划', dataIndex: 'check.subject.employee_data.plans', labelPosition: 'top'}, { title: '未来计划', dataIndex: 'check.subject.employee_data.plans', labelPosition: 'top'},
{ title: '推荐理由', dataIndex: 'check.subject.employee_data.reason', labelPosition: 'top'}, { title: '推荐理由', dataIndex: 'check.subject.employee_data.reason', labelPosition: 'top'},
{ title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4}, { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
] ]
}, },
//补卡申请 //补卡申请
@ -153,7 +74,7 @@ export default {
{ title: '补卡原因', dataIndex: 'check.subject.reason', labelPosition: 'top'}, { title: '补卡原因', dataIndex: 'check.subject.reason', labelPosition: 'top'},
{ title: '是否外勤', dataIndex: 'check.subject.sign_type', format: (e) => e == 1 ? '否' : '是'}, { title: '是否外勤', dataIndex: 'check.subject.sign_type', format: (e) => e == 1 ? '否' : '是'},
{ title: '外勤事由', dataIndex: 'check.subject.outside_remarks', labelPosition: 'top', isShow: (item) => item?.check?.subject?.sign_type == 2}, { title: '外勤事由', dataIndex: 'check.subject.outside_remarks', labelPosition: 'top', isShow: (item) => item?.check?.subject?.sign_type == 2},
{ title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4}, { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
] ]
}, },
//请假申请 //请假申请
@ -172,7 +93,7 @@ export default {
{ title: '请假开始时间', dataIndex: 'check.subject.start_format'}, { title: '请假开始时间', dataIndex: 'check.subject.start_format'},
{ title: '请假结束时间', dataIndex: 'check.subject.end_format'}, { title: '请假结束时间', dataIndex: 'check.subject.end_format'},
{ title: '请假原因', dataIndex: 'check.subject.reason', labelPosition: 'top'}, { title: '请假原因', dataIndex: 'check.subject.reason', labelPosition: 'top'},
{ title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4}, { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4},
] ]
}, },
offical_business: { offical_business: {
@ -181,7 +102,6 @@ export default {
}, },
data: [ data: [
{ title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')}, { title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')},
{ title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
{ title: '申请人', dataIndex: 'check.subject.employee.name' }, { title: '申请人', dataIndex: 'check.subject.employee.name' },
{ title: '所属门店', dataIndex: 'check.subject.store.title' }, { title: '所属门店', dataIndex: 'check.subject.store.title' },
{ title: '电话号码', dataIndex: 'check.subject.employee.phone' }, { title: '电话号码', dataIndex: 'check.subject.employee.phone' },
@ -190,6 +110,7 @@ export default {
{ title: '开始时间', dataIndex: 'check.subject.start_format' }, { title: '开始时间', dataIndex: 'check.subject.start_format' },
{ title: '结束时间', dataIndex: 'check.subject.end_format' }, { title: '结束时间', dataIndex: 'check.subject.end_format' },
{ title: '出差事由', dataIndex: 'check.subject.reason', labelPosition: 'top' }, { title: '出差事由', dataIndex: 'check.subject.reason', labelPosition: 'top' },
{ title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
] ]
}, },
overtime_applies: { overtime_applies: {
@ -208,7 +129,7 @@ export default {
{ title: '结束时间', dataIndex: 'check.subject.end_format' }, { title: '结束时间', dataIndex: 'check.subject.end_format' },
{ title: '加班时长', dataIndex: 'check.subject.hours' ,format: (value) => value + ' 小时'}, { title: '加班时长', dataIndex: 'check.subject.hours' ,format: (value) => value + ' 小时'},
{ title: '加班事由', dataIndex: 'check.subject.reason', labelPosition: 'top' }, { title: '加班事由', dataIndex: 'check.subject.reason', labelPosition: 'top' },
{ title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 }, { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
] ]
}, },
agreements: { agreements: {
@ -217,14 +138,13 @@ export default {
}, },
data: [ data: [
{ title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')}, { title: '审核状态', dataIndex: 'check_status', format: (value) => statusFun(value, 'statusExpense2', 'name')},
{ title: '上传人', dataIndex: 'check.subject.employee.name' }, { title: '上传人', dataIndex: 'check.subject.employee.name' },
{ title: '所属门店', dataIndex: 'check.subject.employee.store.title' }, { title: '所属门店', dataIndex: 'check.subject.employee.store.title' },
{ title: '电话号码', dataIndex: 'check.subject.employee.phone' }, { title: '电话号码', dataIndex: 'check.subject.employee.phone' },
{ title: '上传时间', dataIndex: 'check.subject.created_format' }, { title: '上传时间', dataIndex: 'check.subject.created_format' },
{ title: '合同名称', dataIndex: 'check.subject.name' }, { title: '合同名称', dataIndex: 'check.subject.name' },
{ title: '合同照片', dataIndex: 'check.subject.images', type: 'album' }, { title: '合同照片', dataIndex: 'check.subject.images', type: 'album' },
{ title: '未通过理由', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 }, { title: '未通过原因', dataIndex: 'remarks', labelPosition: 'top', isShow: (item) => item?.check_status == 4 },
] ]
} }
} }

View File

@ -37,7 +37,7 @@
> >
<view class="flex-1" v-if="modelOptions.isValue"> <view class="flex-1" v-if="modelOptions.isValue">
<view class="w-full"> <view class="w-full">
<uv-textarea v-model="value" placeholder="请填写拒绝原因"></uv-textarea> <uv-textarea v-model="value" placeholder="请填写未通过原因"></uv-textarea>
</view> </view>
</view> </view>
</uv-modal> </uv-modal>
@ -70,7 +70,7 @@ const modelOptions = reactive({
const onConfirm = async () => { const onConfirm = async () => {
if (modelOptions.isValue && !value.value) { if (modelOptions.isValue && !value.value) {
return uni.showToast({title: "请填写拒绝原因", icon: "none"}) return uni.showToast({title: "请填写未通过原因", icon: "none"})
} }
try { try {
await http.post(`/workflow/${id.value}/check`, { await http.post(`/workflow/${id.value}/check`, {

View File

@ -27,12 +27,6 @@ const baseColums = [
return statusFun(value, 'task_hygienes', 'name') return statusFun(value, 'task_hygienes', 'name')
}, },
}, },
{
title: '拒绝原因',
dataIndex: 'taskable.workflow_check.check_remarks',
labelPosition: 'top',
isShow: (row) => row?.taskable?.workflow_check.check_status == 4
},
{ {
title: '申请人', title: '申请人',
dataIndex: 'taskable.store_master.name', dataIndex: 'taskable.store_master.name',
@ -47,8 +41,7 @@ const baseColums = [
}, },
{ {
title: '申请时间', title: '申请时间',
dataIndex: 'created_at', dataIndex: 'created_format',
format: timeFormat,
}, },
{ {
title: '清洁范围', title: '清洁范围',
@ -61,6 +54,12 @@ const baseColums = [
labelPosition: 'top', labelPosition: 'top',
type: 'album' type: 'album'
}, },
{
title: '拒绝原因',
dataIndex: 'taskable.workflow_check.check_remarks',
labelPosition: 'top',
isShow: (row) => row?.taskable?.workflow_check.check_status == 4
},
] ]
const id = ref(null) const id = ref(null)
const data = ref({}) const data = ref({})