diff --git a/src/App.vue b/src/App.vue
index f9cc09d..c88aea7 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,6 +5,10 @@ export default {
const userStore = useUserStoreWithOut()
if (userStore.isLogin) {
userStore.fetchUserInfo()
+ }else{
+ uni.reLaunch({
+ url: '/pages/login/index',
+ })
}
// #ifdef APP-PLUS
if (userStore.isLogin) {
diff --git a/src/pages/ask-leave/components/item.vue b/src/pages/ask-leave/components/item.vue
index d0e70e9..9e193cf 100644
--- a/src/pages/ask-leave/components/item.vue
+++ b/src/pages/ask-leave/components/item.vue
@@ -1,9 +1,12 @@
-
+
请假申请
请假类型:
- {{ item.type.name }}
+ {{ item.type?.name }}
请假事由:
@@ -11,26 +14,44 @@
申请时间:
- {{ timeFormat(item.created_at, "yyyy-mm-dd hh:MM") }}
+ {{
+ timeFormat(item.created_at, 'yyyy-mm-dd hh:MM')
+ }}
{{ statusFun(item.workflow_check.check_status, "workflow_check", "name") }}{{
+ statusFun(item.workflow_check.check_status, 'workflow_check', 'name')
+ }}
diff --git a/src/pages/ask-leave/list.vue b/src/pages/ask-leave/list.vue
index 87ba544..ac76a3c 100644
--- a/src/pages/ask-leave/list.vue
+++ b/src/pages/ask-leave/list.vue
@@ -28,7 +28,7 @@
-
+
@@ -39,11 +39,16 @@
:i="1"
:index="tabIndex"
:apiUrl="tabList[1].apiUrl"
+ :params="tabList[1].params"
>
-
+
@@ -67,6 +72,7 @@ const tabList = ref([
apiUrl: '/workflow',
params: {
subject_type: 'holiday_applies',
+ include: 'employee,store,type',
},
},
])
diff --git a/src/pages/audits/base-data.vue b/src/pages/audits/base-data.vue
index 3d07827..863c3ca 100644
--- a/src/pages/audits/base-data.vue
+++ b/src/pages/audits/base-data.vue
@@ -1,10 +1,11 @@
-
+
@@ -23,6 +24,7 @@
v-else
:label="item.title"
:labelPosition="item.labelPosition"
+ :labelWidth="item.labelWidth"
>
{
+ return item?.workflow_check?.check_status == 4
+ },
+ },
{
title: '所属门店',
dataIndex: 'check.subject.store.title',
@@ -35,6 +43,7 @@ export default {
],
params: { include: 'check.subject.task,check.subject.storeMaster,check.subject.store' }
},
+ //报销
reimbursements: {
params: {
include: 'check.subject.type,check.subject.employee,check.subject.store',
@@ -83,5 +92,163 @@ export default {
},
},
]
+ },
+ //升职
+ employee_promotions: {
+ params: {
+ include: 'employee,invitor,job',
+ },
+ data: [
+ {
+ title: '审核状态',
+ dataIndex: 'workflow_check.check_status_text',
+ },
+ {
+ title: '未通过理由',
+ dataIndex: 'workflow_check.check_remarks',
+ labelPosition: 'top',
+ isShow: (item) => {
+ return item?.workflow_check?.check_status == 4
+ },
+ }, {
+ title: '晋升职位',
+ dataIndex: 'job.name',
+ }, {
+ title: '推荐人',
+ dataIndex: 'invitor.name',
+ }, {
+ title: '申请人',
+ dataIndex: 'employee.name',
+ }, {
+ title: '年龄',
+ dataIndex: 'employee_data.age',
+ }, {
+ title: '性别',
+ dataIndex: 'employee_data.sex',
+ }, {
+ title: '学历',
+ dataIndex: 'employee_data.education',
+ }, {
+ title: '首次参加工作时间',
+ dataIndex: 'employee_data.first_work_time',
+ labelWidth: "250rpx"
+ }, {
+ title: '工作年限',
+ dataIndex: 'employee_data.work_years',
+ }, {
+ title: '本公司工作年限',
+ dataIndex: 'employee_data.work_years_in_company',
+ }, {
+ title: '员工自评',
+ dataIndex: 'employee_data.comment_self',
+ labelPosition: 'top',
+ }, {
+ title: '未来计划',
+ dataIndex: 'employee_data.plans',
+ labelPosition: 'top',
+ }, {
+ title: '推荐理由',
+ dataIndex: 'employee_data.reason',
+ labelPosition: 'top',
+ }]
+ },
+ //补卡申请
+ employee_sign_repairs: {
+ params: {
+ include: 'employee,store',
+ },
+ data: [{
+ title: '审核状态',
+ dataIndex: 'workflow_check.check_status_text',
+ },
+ {
+ title: '未通过理由',
+ dataIndex: 'workflow_check.check_remarks',
+ labelPosition: 'top',
+ isShow: (item) => {
+ return item?.workflow_check?.check_status == 4
+ },
+ }, {
+ title: '申请人',
+ dataIndex: 'employee.name',
+ }, {
+ title: '所属门店',
+ dataIndex: 'store.title',
+ }, {
+ title: '电话号码',
+ dataIndex: 'employee.phone'
+ }, {
+ title: '申请时间',
+ dataIndex: 'created_at',
+ format: timeFormat,
+ }, {
+ title: '补卡时间',
+ dataIndex: 'date',
+ format: (e) => timeFormat(e, 'yyyy-mm-dd hh:MM')
+ }, {
+ title: '补卡原因',
+ dataIndex: 'reason',
+ labelPosition: 'top',
+ }, {
+ title: '是否外勤',
+ dataIndex: 'sign_type',
+ format: (e) => {
+ return e == 1 ? '否' : '是'
+ }
+ }, {
+ title: '外勤事由',
+ dataIndex: 'outside_remarks',
+ labelPosition: 'top',
+ isShow: (item) => {
+ console.log(item);
+ return item?.sign_type == 2
+ }
+ }]
+ },
+ //请假申请
+ holiday_applies: {
+ params: {
+ include: 'employee,store,type'
+ },
+ data: [{
+ title: '审核状态',
+ dataIndex: 'workflow_check.check_status_text',
+ },
+ {
+ title: '未通过理由',
+ dataIndex: 'workflow_check.check_remarks',
+ labelPosition: 'top',
+ isShow: (item) => {
+ return item?.workflow_check?.check_status == 4
+ },
+ }, {
+ title: '申请人',
+ dataIndex: 'employee.name',
+ }, {
+ title: '所属门店',
+ dataIndex: 'store.title',
+ }, {
+ title: '电话号码',
+ dataIndex: 'employee.phone'
+ }, {
+ title: '申请时间',
+ dataIndex: 'created_at',
+ format: (e)=>timeFormat(e,'yyyy-mm-dd hh:MM'),
+ }, {
+ title: '请假类型',
+ dataIndex: 'type.name',
+ }, {
+ title: '请假开始时间',
+ dataIndex: 'start_at',
+ format: (e) => timeFormat(e, 'yyyy-mm-dd hh:MM'),
+ }, {
+ title: '请假结束时间',
+ dataIndex: 'end_at',
+ format: (e) => timeFormat(e, 'yyyy-mm-dd hh:MM'),
+ }, {
+ title: '请假原因',
+ dataIndex: 'reason',
+ labelPosition: 'top',
+ }]
}
}
\ No newline at end of file
diff --git a/src/pages/audits/log.vue b/src/pages/audits/log.vue
index 5010104..cc84f65 100644
--- a/src/pages/audits/log.vue
+++ b/src/pages/audits/log.vue
@@ -10,9 +10,13 @@
:desc="timeFormat(item.checked_at, 'yyyy-mm-dd hh:MM:ss')"
>
-
@@ -27,6 +31,9 @@
}"
>{{ item.check_status_text }}
+ {{
+ item.remarks
+ }}
diff --git a/src/pages/make-card/components/item.vue b/src/pages/make-card/components/item.vue
index da47585..3db244f 100644
--- a/src/pages/make-card/components/item.vue
+++ b/src/pages/make-card/components/item.vue
@@ -1,13 +1,16 @@
-
+
补卡申请
-
- 补卡原因:
- {{ item.reason }}
+
+ 补卡原因:
+ {{ item.reason }}
补卡类别:
- {{ item.sign_time == 1 ? "上班打卡" : "下班打卡" }}
+ {{ item.sign_time == 1 ? '上班打卡' : '下班打卡' }}
补卡时间:
@@ -15,26 +18,40 @@
{{ statusFun(item.workflow_check.check_status, "workflow_check", "name") }}{{
+ statusFun(item.workflow_check.check_status, 'workflow_check', 'name')
+ }}
diff --git a/src/pages/make-card/detail.vue b/src/pages/make-card/detail.vue
index 98c40a4..8418f30 100644
--- a/src/pages/make-card/detail.vue
+++ b/src/pages/make-card/detail.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,47 +10,47 @@
申请人
{{ detail.employee.name }}
-
+
所属门店
{{ detail.store.title }}
-
+
电话号码
{{ detail.employee.phone }}
-
+
申请时间
{{ timeFormat(detail.created_at, "yyyy-mm-dd hh:MM") }}
-
+
补卡时间
{{ timeFormat(detail.date, "yyyy-mm-dd hh:MM") }}
-
+
- 补卡原因
- {{ detail.reason }}
+ 补卡原因
+ {{ detail.reason }}
-
+
是否外勤
{{ detail.sign_type == 1 ? "否" : "是" }}
-
+
外勤事由
{{ detail.outside_remarks }}
-
+
-
+
diff --git a/src/pages/make-card/list.vue b/src/pages/make-card/list.vue
index d65406e..0c37715 100644
--- a/src/pages/make-card/list.vue
+++ b/src/pages/make-card/list.vue
@@ -28,7 +28,7 @@
-
+
@@ -44,7 +44,11 @@
-
+
@@ -54,7 +58,7 @@