diff --git a/src/components/list-item/index.vue b/src/components/list-item/index.vue
new file mode 100644
index 0000000..3ee6d79
--- /dev/null
+++ b/src/components/list-item/index.vue
@@ -0,0 +1,46 @@
+
+
+
+ {{ title }}
+ {{ statusText }}
+
+
+
+
+
+ {{ item.label }}
+ {{ item.value }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/ask-leave/create.vue b/src/pages/ask-leave/create.vue
index df5c4fb..5f8fd02 100644
--- a/src/pages/ask-leave/create.vue
+++ b/src/pages/ask-leave/create.vue
@@ -1,10 +1,6 @@
-
-
- 提交
-
-
+
@@ -47,6 +43,9 @@
+
+ 提交
+
-
-
+
+
-
- 申请人
- {{ detail.employee.name }}
-
-
-
- 所属门店
- {{ detail.store.title }}
-
-
-
- 电话号码
- {{ detail.employee.phone }}
-
-
-
- 申请时间
- {{ timeFormat(detail.created_at, "yyyy-mm-dd hh:MM") }}
-
-
-
- 请假类型
- {{ detail.type.name }}
-
-
- 请假开始时间
- {{ timeFormat(detail.start_at, "yyyy-mm-dd hh:MM") }}
-
-
- 请假结束时间
- {{ timeFormat(detail.end_at, "yyyy-mm-dd hh:MM") }}
-
-
-
- 请假原因
- {{ detail.reason }}
-
+
-
+
@@ -53,24 +17,42 @@ import CuNavbar from "@/components/cu-navbar/index"
import { http } from "@/utils/request"
import { onLoad } from "@dcloudio/uni-app"
import { ref } from "vue"
-import { timeFormat } from "@climblee/uv-ui/libs/function/index"
+import BaseData from '../audits/base-data'
+
const modalRef = ref(null)
-const columns = ref([[]])
+const actions = ref([
+ { name: '修改', value: 'edit' },
+ { name: '删除', value: 'delete' },
+])
const detail = ref()
const pickerRef = ref(null)
const id = ref(0)
+
+const columns = [
+ { title: '审核状态', dataIndex: 'workflow_check.check_status_text' },
+ { title: '拒绝原因', dataIndex: 'workflow_check.check_remarks', labelPosition: 'top', isShow: (data) => data?.workflow_check?.check_status == 4 },
+ { title: '申请人', dataIndex: 'employee.name' },
+ { title: '所属门店', dataIndex: 'store.title' },
+ { title: '电话号码', dataIndex: 'employee.phone' },
+ { title: '申请时间', dataIndex: 'created_format' },
+ { title: '请假类型', dataIndex: 'type.name' },
+ { title: '请假开始时间', dataIndex: 'start_format' },
+ { title: '请假结束时间', dataIndex: 'end_format' },
+ { title: '请假原因', dataIndex: 'reason', labelPosition: 'top' },
+]
+
const open = () => {
pickerRef.value.open()
}
const confirmPicker = e => {
- console.log(e)
- if (e.value[0] === "删除") {
- modalRef.value.open()
- } else {
- uni.navigateTo({
+ if (e.value == 'edit') {
+ return uni.navigateTo({
url: `/pages/ask-leave/create?id=${id.value}`
})
}
+ if (e.value == 'delete') {
+ return modalRef.value.open()
+ }
}
const onSubmit = async () => {
try {
@@ -94,19 +76,12 @@ const onSubmit = async () => {
}
onLoad(options => {
id.value = options.id
- http
- .request({
- url: `/hr/holidays/${options.id}`,
- method: "GET",
- })
- .then(res => {
- detail.value = res
+ http.get(`/hr/holidays/${options.id}`).then(res => {
+ detail.value = res
- const options = []
- if ([1,4,5].indexOf(res.workflow_check.check_status) != -1) {
- options.push('修改', '删除')
- }
- columns.value = [options]
- })
+ if ([2, 3].indexOf(res.workflow_check.check_status) != -1) {
+ actions.value = []
+ }
+ })
})
diff --git a/src/pages/ask-leave/list.vue b/src/pages/ask-leave/list.vue
index 926d30f..9b228f4 100644
--- a/src/pages/ask-leave/list.vue
+++ b/src/pages/ask-leave/list.vue
@@ -2,11 +2,7 @@
- 申请
+ 申请
@@ -27,26 +23,18 @@
>
-
- 请假申请
-
- 请假类型
- {{ item.type?.name }}
-
-
- 请假事由
- {{ item.reason }}
-
-
- 申请时间
- {{ item.created_format }}
-
- {{ item.workflow_check.check_status_text }}
-
+ title="请假申请"
+ :status-text="item.workflow_check.check_status_text"
+ :status-color="statusFun( item.workflow_check.check_status,'statusExpense','color')"
+ :body="[
+ { label:'请假类型', value: item.type.name },
+ { label:'请假事由', value: item.reason },
+ { label:'申请时间', value: item.created_format },
+ ]"
+ @click.stop="applyDetail(item)"
+ />
@@ -60,30 +48,19 @@
>
-
- 请假申请
-
- 申请人
- {{ item.check.subject.employee.name }}
-
-
- 请假类型
- {{ item.check.subject.type.name }}
-
-
- 请假事由
- {{ item.check.subject.reason }}
-
-
- 申请时间
- {{ item.check.subject.created_format }}
-
- {{ item.check_status_text }}
-
+ title="请假申请"
+ :status-text="item.check_status_text"
+ :status-color="statusFun( item.check_status,'statusExpense','color')"
+ :body="[
+ { label:'申请人', value: item.check.subject.employee.name },
+ { label:'请假类型', value: item.check.subject.type.name },
+ { label:'请假事由', value: item.check.subject.reason },
+ { label:'申请时间', value: item.check.subject.created_format },
+ ]"
+ @click.stop="checkDetail(item)"
+ />
@@ -96,6 +73,8 @@ import { onPageScroll, onReachBottom, onShow } from '@dcloudio/uni-app'
import useMescrollMore from '@/uni_modules/mescroll-uni/hooks/useMescrollMore.js'
import MescrollItem from '@/components/mescroll-api/more.vue'
import statusFun from '@/utils/status'
+import ListItem from '@/components/list-item/index'
+
const tabList = ref([
{
name: '我的请假',
diff --git a/src/pages/business/detail.vue b/src/pages/business/detail.vue
index be074ca..dc354ad 100644
--- a/src/pages/business/detail.vue
+++ b/src/pages/business/detail.vue
@@ -1,59 +1,14 @@
-
+
-
- 申请人
- {{ detail.employee.name }}
-
-
-
- 所属门店
- {{ detail.store.title }}
-
-
-
- 电话号码
- {{ detail.employee.phone }}
-
-
-
- 申请时间
- {{ timeFormat(detail.created_at, "yyyy-mm-dd hh:MM") }}
-
-
-
- 目的地
- {{ detail.address }}
-
-
- 出差开始时间
- {{ timeFormat(detail.start_at, "yyyy-mm-dd hh:MM") }}
-
-
- 出差结束时间
- {{ timeFormat(detail.end_at, "yyyy-mm-dd hh:MM") }}
-
-
-
- 出差原因
- {{ detail.reason }}
-
-
-
- 审核状态
- {{ detail.workflow_check.check_status_text }}
-
-
- 未通过原因
- {{ detail.workflow_check.check_remarks }}
-
+
-
+
@@ -63,23 +18,42 @@ import { http } from "@/utils/request"
import { onLoad } from "@dcloudio/uni-app"
import { ref } from "vue"
import { timeFormat } from "@climblee/uv-ui/libs/function/index"
+import BaseData from '../audits/base-data'
+
const modalRef = ref(null)
-const columns = ref([[]])
-const detail = ref()
+const actions = ref([
+ { name: '修改', value: 'edit' },
+ { name: '删除', value: 'delete' },
+])
+const detail = ref({})
+
+const columns = [
+ { title: '审核状态', dataIndex: 'workflow_check.check_status_text' },
+ { title: '拒绝原因', dataIndex: 'workflow_check.check_remarks', labelPosition: 'top', isShow: (data) => data?.workflow_check?.check_status == 4 },
+ { title: '申请人', dataIndex: 'employee.name' },
+ { title: '所属门店', dataIndex: 'store.title' },
+ { title: '电话号码', dataIndex: 'employee.phone' },
+ { title: '目的地', dataIndex: 'address' },
+ { title: '开始时间', dataIndex: 'start_format' },
+ { title: '结束时间', dataIndex: 'end_format' },
+ { title: '出差原因', dataIndex: 'reason', labelPosition: 'top' },
+ { title: '申请时间', dataIndex: 'created_format' },
+]
+
const pickerRef = ref(null)
const id = ref(0)
const open = () => {
pickerRef.value.open()
}
const confirmPicker = e => {
- console.log(e)
- if (e.value[0] === "删除") {
- modalRef.value.open()
- } else {
- uni.navigateTo({
+ if (e.value == 'edit') {
+ return uni.navigateTo({
url: `/pages/business/create?id=${id.value}`
})
}
+ if (e.value == 'delete') {
+ return modalRef.value.open()
+ }
}
const onSubmit = async () => {
try {
@@ -113,11 +87,9 @@ onLoad(options => {
})
.then(res => {
detail.value = res
- const options = []
- if ([1,4,5].indexOf(res.workflow_check.check_status) != -1) {
- options.push('修改', '删除')
+ if ([2, 3].indexOf(res.workflow_check.check_status) != -1) {
+ actions.value = []
}
- columns.value = [options]
})
})
diff --git a/src/pages/business/list.vue b/src/pages/business/list.vue
index 5c99018..81094d6 100644
--- a/src/pages/business/list.vue
+++ b/src/pages/business/list.vue
@@ -27,22 +27,18 @@
>
-
- 出差报备
-
- 目的地:
- {{ item.address }}
-
-
- 出差事由:
- {{ item.reason }}
-
-
- 申请时间:
- {{ item.created_format }}
-
- {{ item.workflow_check.check_status_text }}
-
+
@@ -57,26 +53,19 @@
>
-
- 出差报备
-
- 申请人:
- {{ item.check.subject.employee.name }}
-
-
- 目的地:
- {{ item.check.subject.address }}
-
-
- 出差事由:
- {{ item.check.subject.reason }}
-
-
- 申请时间:
- {{ item.check.subject.created_format }}
-
- {{ item.check_status_text }}
-
+
@@ -89,6 +78,8 @@ import { onPageScroll, onReachBottom, onShow } from '@dcloudio/uni-app'
import useMescrollMore from '@/uni_modules/mescroll-uni/hooks/useMescrollMore.js'
import MescrollItem from '@/components/mescroll-api/more.vue'
import statusFun from "@/utils/status"
+import ListItem from '@/components/list-item'
+
const tabList = ref([
{
name: '出差申请',
diff --git a/src/pages/contract/detail.vue b/src/pages/contract/detail.vue
index 26e9aa3..c5b76a4 100644
--- a/src/pages/contract/detail.vue
+++ b/src/pages/contract/detail.vue
@@ -1,22 +1,17 @@
-
+
-
-
+
+
+
电话号码
{{ detail.employee.phone }}
@@ -55,21 +50,11 @@
未通过原因
{{ detail.workflow_check.check_remarks }}
-
+ -->
-
-
+
+
diff --git a/src/pages/contract/list.vue b/src/pages/contract/list.vue
index c482ca2..7abda1c 100644
--- a/src/pages/contract/list.vue
+++ b/src/pages/contract/list.vue
@@ -2,11 +2,7 @@
- 上传
+ 上传
@@ -30,19 +26,17 @@
>
-
-
- {{ item.name }}
-
-
-
-
-
-
-
-
- {{item.workflow_check.check_status_text}}
-
+
@@ -57,25 +51,18 @@
>
-
-
-
- {{ item.check.subject.name }}
-
-
- 申请人:
- {{ item.check.subject.employee.name }}
-
-
-
-
-
-
-
-
- {{item.check_status_text}}
-
-
+
@@ -88,6 +75,7 @@ import { onPageScroll, onReachBottom, onShow } from '@dcloudio/uni-app'
import useMescrollMore from '@/uni_modules/mescroll-uni/hooks/useMescrollMore.js'
import MescrollItem from '@/components/mescroll-api/more.vue'
import statusFun from '@/utils/status'
+import ListItem from '@/components/list-item/index'
const mescrollItem0 = ref(null)
const mescrollItem1 = ref(null)
diff --git a/src/pages/expense-account/detail.vue b/src/pages/expense-account/detail.vue
index c6a9859..eb1f07c 100644
--- a/src/pages/expense-account/detail.vue
+++ b/src/pages/expense-account/detail.vue
@@ -33,10 +33,8 @@ import { onLoad } from '@dcloudio/uni-app'
import { http } from '@/utils/request'
const actionlist = ref([
- {
- name: '删除',
- value: 'delete',
- },
+ {name: '修改', value: 'edit'},
+ {name: '删除', value: 'delete'},
])
const colums = [
@@ -58,7 +56,7 @@ const colums = [
},
{
title: "申请时间",
- dataIndex: "created_at_format"
+ dataIndex: "created_format"
},
{
title: '报销分类',
@@ -96,7 +94,11 @@ const open = () => {
}
const select = (e) => {
- console.log(e)
+ if (e.value == 'edit') {
+ uni.navigateTo({
+ url: `/pages/expense-account/submit?id=${id.value}`
+ })
+ }
}
onLoad((option) => {
@@ -107,6 +109,9 @@ onLoad((option) => {
const getDetail = () => {
http.get(`/reimbursements/${id.value}`).then((res) => {
data.value = res
+ if ([2,3].indexOf(res.workflow_check.check_status) != -1) {
+ actionlist.value = []
+ }
})
}
diff --git a/src/pages/expense-account/index.vue b/src/pages/expense-account/index.vue
index 308f718..0fb1389 100644
--- a/src/pages/expense-account/index.vue
+++ b/src/pages/expense-account/index.vue
@@ -25,26 +25,19 @@
>
-
-
- {{ item.type?.name }}
- {{ item.workflow_check?.check_status_text }}
-
-
- 报销金额
- {{ item.expense }}
-
-
- 报销时间
- {{ timeFormat(item.created_at) }}
-
-
-
- 报销原因:
- {{ item.reason }}
-
-
-
+
@@ -58,26 +51,20 @@
>
-
-
- {{ item.check.subject.type.name }}
- {{ item.check_status_text }}
-
-
- 报销金额
- {{ item.check.subject.expense }}
-
-
- 报销时间
- {{ timeFormat(item.check.subject.created_at) }}
-
-
-
- 报销原因:
- {{ item.check.subject.reason }}
-
-
-
+
@@ -92,6 +79,7 @@ import useMescrollMore from '@/uni_modules/mescroll-uni/hooks/useMescrollMore.js
import MescrollItem from '@/components/mescroll-api/more.vue'
import { timeFormat } from '@climblee/uv-ui/libs/function'
import statusFun from '@/utils/status'
+import ListItem from '@/components/list-item/index'
const mescrollItem0 = ref(null)
const mescrollItem1 = ref(null)
@@ -111,7 +99,7 @@ const tabList = ref([
{
name: '报销审核',
apiUrl: '/workflow',
- params: { subject_type: 'reimbursements', include: 'check.subject.type' },
+ params: { subject_type: 'reimbursements', include: 'check.subject.type,check.subject.employee' },
},
])
diff --git a/src/pages/expense-account/submit.vue b/src/pages/expense-account/submit.vue
index 86c4a1d..8e5fd67 100644
--- a/src/pages/expense-account/submit.vue
+++ b/src/pages/expense-account/submit.vue
@@ -47,9 +47,7 @@
- {{ form.photos.length }}/9
+ {{ form.photos.length }}/9
{
+onLoad((e) => {
+ if (e.id) {
+ http.get(`reimbursements/${e.id}`).then(res => {
+ console.log(res)
+ type.value = res.type
+ form.reimbursement_type_id = res.reimbursement_type_id
+ form.expense = res.expense
+ form.reason = res.reason
+ if (res.photos && res.photos.length > 0) {
+ form.photos = res.photos.map(item => {
+ return {url: item}
+ })
+ }
+ })
+ }
getTypes()
})
diff --git a/src/pages/make-card/components/item.vue b/src/pages/make-card/components/item.vue
deleted file mode 100644
index 3db244f..0000000
--- a/src/pages/make-card/components/item.vue
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
- 补卡申请
-
- 补卡原因:
- {{ item.reason }}
-
-
- 补卡类别:
- {{ item.sign_time == 1 ? '上班打卡' : '下班打卡' }}
-
-
- 补卡时间:
- {{ valueFormat }}
-
- {{
- statusFun(item.workflow_check.check_status, 'workflow_check', 'name')
- }}
-
-
-
diff --git a/src/pages/make-card/create.vue b/src/pages/make-card/create.vue
index 0d3f5fc..ed69243 100644
--- a/src/pages/make-card/create.vue
+++ b/src/pages/make-card/create.vue
@@ -1,9 +1,6 @@
-
- 提交
-
@@ -51,6 +48,9 @@
+
+ 提交
+
{
const submit = () => {
formRef.value.validate().then(res => {
modalRef.value.open()
- })
+ }).catch(error => {})
}
const onSubmit = async () => {
diff --git a/src/pages/make-card/detail.vue b/src/pages/make-card/detail.vue
index ec94ea7..1f4d466 100644
--- a/src/pages/make-card/detail.vue
+++ b/src/pages/make-card/detail.vue
@@ -1,67 +1,14 @@
-
+
-
-
-
+
@@ -74,11 +21,18 @@ import { timeFormat } from "@climblee/uv-ui/libs/function/index"
import BaseData from '@/pages/audits/base-data.vue'
const modalRef = ref(null)
-const columns = [["修改", "删除"]]
+const actions = ref([
+ { name: '修改', value: 'edit' },
+ { name: '删除', value: 'delete' },
+])
const detail = ref()
const pickerRef = ref(null)
const id = ref(0)
const detailColumns = [
+ {
+ title: "审核状态",
+ dataIndex: "workflow_check.check_status_text"
+ },
{
title: "申请人",
dataIndex: "employee.name"
@@ -122,13 +76,12 @@ const open = () => {
pickerRef.value.open()
}
const confirmPicker = e => {
- console.log(e)
- if (e.value[0] === "删除") {
- modalRef.value.open()
- } else {
+ if (e.value == 'edit') {
uni.navigateTo({
url: `/pages/make-card/create?id=${id.value}`
})
+ } else if (e.value == 'delete') {
+ modalRef.value.open()
}
}
const onSubmit = async () => {
@@ -153,16 +106,11 @@ const onSubmit = async () => {
}
onLoad(options => {
id.value = options.id
- http
- .request({
- url: `/hr/sign-repairs/${options.id}`,
- method: "GET",
- header: {
- Accept: "application/json"
- }
- })
- .then(res => {
- detail.value = res
- })
+ http.get(`/hr/sign-repairs/${options.id}`).then(res => {
+ detail.value = res
+ if ([2, 3].indexOf(res.workflow_check.check_status) != -1) {
+ actions.value = []
+ }
+ })
})
diff --git a/src/pages/make-card/list.vue b/src/pages/make-card/list.vue
index fa262cd..a0ed102 100644
--- a/src/pages/make-card/list.vue
+++ b/src/pages/make-card/list.vue
@@ -2,11 +2,7 @@
- 申请
+ 申请
@@ -27,9 +23,19 @@
>
-
-
-
+
@@ -43,30 +49,20 @@
>
-
- 补卡申请
-
- 申请人:
- {{ item.check.subject.employee.name }}
-
-
- 补卡原因:
- {{ item.check.subject.reason }}
-
-
- 补卡类别:
- {{ item.check.subject.sign_time == 1 ? '上班打卡' : '下班打卡' }}
-
-
- 补卡时间:
- {{ item.check.subject.date_format }}
-
- {{ item.check_status_text }}
-
+ title="补卡申请"
+ :status-text="item.check_status_text"
+ :status-color="statusFun(item.check_status,'statusExpense','color')"
+ :body="[
+ { label: '申请人: ', value: item.check.subject.employee.name },
+ { label: '补卡时间: ', value: item.check.subject.date_format },
+ { label: '补卡类别: ', value: item.check.subject.sign_time_text },
+ { label: '补卡原因: ', value: item.check.subject.reason },
+ { label: '申请时间: ', value: item.check.subject.created_format },
+ ]"
+ @click.stop="checkDetail(item)"
+ />
@@ -78,8 +74,8 @@ import { ref } from 'vue'
import { onPageScroll, onReachBottom, onShow, onLoad } from '@dcloudio/uni-app'
import useMescrollMore from '@/uni_modules/mescroll-uni/hooks/useMescrollMore.js'
import MescrollItem from '@/components/mescroll-api/more.vue'
-import Item from './components/item.vue'
import statusFun from '@/utils/status'
+import ListItem from '@/components/list-item/index'
const tabList = ref([
{
name: '我的补卡',
@@ -120,6 +116,12 @@ const tabChange = ({ index }) => {
scrollToLastY()
}
+const applyDetail = (item) => {
+ uni.navigateTo({
+ url: `/pages/make-card/detail?id=${item.id}`,
+ })
+}
+
const checkDetail = (item) => {
uni.navigateTo({
url: `/pages/audits/detail?id=${item.id}&type=${item.check.subject_type}`,
diff --git a/src/pages/overtime/detail.vue b/src/pages/overtime/detail.vue
index a661004..098ae3d 100644
--- a/src/pages/overtime/detail.vue
+++ b/src/pages/overtime/detail.vue
@@ -1,59 +1,14 @@
-
+
-
- 申请人
- {{ detail.employee.name }}
-
-
-
- 所属门店
- {{ detail.store.title }}
-
-
-
- 电话号码
- {{ detail.employee.phone }}
-
-
-
- 申请时间
- {{ timeFormat(detail.created_at, "yyyy-mm-dd hh:MM") }}
-
-
-
- 加班日期
- {{ timeFormat(detail.date, "yyyy-mm-dd") }}
-
-
- 开始时间
- {{ timeFormat(detail.start_at, "yyyy-mm-dd hh:MM").substring(10) }}
-
-
- 结束时间
- {{ timeFormat(detail.end_at, "yyyy-mm-dd hh:MM").substring(10) }}
-
-
-
- 加班原因
- {{ detail.reason }}
-
-
-
- 审核状态
- {{ detail.workflow_check.check_status_text }}
-
-
- 未通过原因
- {{ detail.workflow_check.check_remarks }}
-
+
-
+
@@ -62,24 +17,42 @@ import CuNavbar from "@/components/cu-navbar/index"
import { http } from "@/utils/request"
import { onLoad } from "@dcloudio/uni-app"
import { ref } from "vue"
-import { timeFormat } from "@climblee/uv-ui/libs/function/index"
+import BaseData from '../audits/base-data'
+
const modalRef = ref(null)
-const columns = ref([[]])
-const detail = ref()
+const actions = ref([
+ { name: '修改', value: 'edit' },
+ { name: '删除', value: 'delete' },
+])
+const detail = ref({})
const pickerRef = ref(null)
const id = ref(0)
+
+const columns = [
+ { title: '审核状态', dataIndex: 'workflow_check.check_status_text' },
+ { title: '拒绝原因', dataIndex: 'workflow_check.check_remarks', labelPosition: 'top', isShow: (data) => data?.workflow_check?.check_status == 4 },
+ { title: '申请人', dataIndex: 'employee.name' },
+ { title: '所属门店', dataIndex: 'store.title' },
+ { title: '电话号码', dataIndex: 'employee.phone' },
+ { title: '申请时间', dataIndex: 'created_format' },
+ { title: '加班日期', dataIndex: 'date_format' },
+ { title: '开始时间', dataIndex: 'start_format' },
+ { title: '结束时间', dataIndex: 'end_format' },
+ { title: '请假原因', dataIndex: 'reason', labelPosition: 'top' },
+]
+
const open = () => {
pickerRef.value.open()
}
const confirmPicker = e => {
- console.log(e)
- if (e.value[0] === "删除") {
- modalRef.value.open()
- } else {
- uni.navigateTo({
+ if (e.value == 'edit') {
+ return uni.navigateTo({
url: `/pages/overtime/create?id=${id.value}`
})
}
+ if (e.value == 'delete') {
+ return modalRef.value.open()
+ }
}
const onSubmit = async () => {
try {
@@ -113,11 +86,9 @@ onLoad(options => {
})
.then(res => {
detail.value = res
- const options = []
- if ([1,4,5].indexOf(res.workflow_check.check_status) != -1) {
- options.push('修改', '删除')
+ if ([2, 3].indexOf(res.workflow_check.check_status) != -1) {
+ actions.value = []
}
- columns.value = [options]
})
})
diff --git a/src/pages/overtime/list.vue b/src/pages/overtime/list.vue
index f6751f0..386033e 100644
--- a/src/pages/overtime/list.vue
+++ b/src/pages/overtime/list.vue
@@ -2,11 +2,7 @@
- 申请
+ 申请
@@ -27,22 +23,19 @@
>
-
- 加班报备
-
- 加班日期:
- {{ item.date_format }}
-
-
- 加班时间:
- {{ item.start_format }} - {{ item.end_format }}
-
-
- 加班事由:
- {{ item.reason }}
-
- {{ item.workflow_check.check_status_text }}
-
+
@@ -57,26 +50,20 @@
>
-
- 加班报备
-
- 申请人:
- {{ item.check.subject.employee.name }}
-
-
- 加班日期:
- {{ item.check.subject.date_format }}
-
-
- 加班时间:
- {{ item.check.subject.start_format }} - {{ item.check.subject.end_format }}
-
-
- 加班事由:
- {{ item.check.subject.reason }}
-
- {{ item.check_status_text }}
-
+
@@ -89,6 +76,8 @@ import { onPageScroll, onReachBottom, onShow } from '@dcloudio/uni-app'
import useMescrollMore from '@/uni_modules/mescroll-uni/hooks/useMescrollMore.js'
import MescrollItem from '@/components/mescroll-api/more.vue'
import statusFun from "@/utils/status"
+import ListItem from '@/components/list-item/index'
+
const tabList = ref([
{
name: '我的加班',
diff --git a/src/pages/task/detail.vue b/src/pages/task/detail.vue
index bde107d..b2b23e6 100644
--- a/src/pages/task/detail.vue
+++ b/src/pages/task/detail.vue
@@ -1,51 +1,9 @@
-
-
-
-
- {{ item.title }}
-
-
-
-
-
-
-
-
- {{ item.title }}
- {{ item.value }}
-
-
-
+
+
-
diff --git a/src/pages/work/components/item.vue b/src/pages/work/components/item.vue
deleted file mode 100644
index 46b9d79..0000000
--- a/src/pages/work/components/item.vue
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
- {{ item.job.name }}
- {{ item.promotion_status_text }}
-
-
- 推荐人
- {{ item?.invitor?.name }}
-
-
- 申请人
- {{ item?.employee?.name }}
-
-
- 晋升职位
- {{ item.job.name }}
-
-
- 申请时间:
- {{ item.created_format }}
-
-
-
-
-
-
diff --git a/src/pages/work/create.vue b/src/pages/work/create.vue
index bbe9b3c..b8bf1d6 100644
--- a/src/pages/work/create.vue
+++ b/src/pages/work/create.vue
@@ -1,15 +1,297 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
diff --git a/src/pages/work/detail.vue b/src/pages/work/detail.vue
index 69b4ac3..d9f75e4 100644
--- a/src/pages/work/detail.vue
+++ b/src/pages/work/detail.vue
@@ -1,16 +1,53 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/work/list.vue b/src/pages/work/list.vue
index 52abeb0..4d4629c 100644
--- a/src/pages/work/list.vue
+++ b/src/pages/work/list.vue
@@ -19,9 +19,18 @@
>
-
- -
-
+
@@ -34,9 +43,18 @@
>
-
- -
-
+
@@ -50,28 +68,19 @@
>
-
-
- {{ item.check.subject.job.name }}
- {{ item.check_status_text }}
-
-
- 推荐人
- {{ item.check.subject.invitor.name }}
-
-
- 申请人
- {{ item.check.subject.employee.name }}
-
-
- 晋升职位
- {{ item.check.subject.job.name }}
-
-
- 申请时间:
- {{ item.created_format }}
-
-
+
@@ -83,9 +92,9 @@ import { ref } from 'vue'
import { onPageScroll, onReachBottom, onShow } from '@dcloudio/uni-app'
import useMescrollMore from '@/uni_modules/mescroll-uni/hooks/useMescrollMore.js'
import MescrollItem from '@/components/mescroll-api/more.vue'
-import Item from './components/item.vue'
import { onLoad } from '@dcloudio/uni-app'
import statusFun from '@/utils/status'
+import ListItem from '@/components/list-item/index'
const tabList = ref([
{
@@ -132,6 +141,22 @@ const tabChange = ({ index }) => {
scrollToLastY()
}
+const applyDetail = (item) => {
+ let url = ''
+ const tab = tabIndex.value
+ if (
+ (tab == 0 && item.promotion_status == 1) ||
+ (tab == 1 && item.promotion_status == 2)
+ ) {
+ url = `/pages/work/create?id=${item.id}&type=${tab}`
+ } else if (tab === 2) {
+ url = `/pages/audits/detail?id=${item.id}`
+ } else {
+ url = `/pages/work/detail?id=${item.id}`
+ }
+ return uni.navigateTo({url})
+}
+
const checkDetail = (item) => {
uni.navigateTo({
url: `/pages/audits/detail?id=${item.id}&type=${item.check.subject_type}`