From ebb2746b7a30184ff7b7699f638bb222b5df66fa Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Wed, 29 May 2024 18:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=9A=E4=B8=AA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8F=8A=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=8C=85=E6=8B=AC?= =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=B5=81=E7=A8=8B=E6=98=BE=E7=A4=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E3=80=81=E4=BA=BA=E5=91=98=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E7=AD=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/default/components/header/msg.vue | 6 +- src/views/oa_Initiate/edit.vue | 61 +++++++++++++++++-- src/views/oa_Initiate/form/{jk => cw}/cg.vue | 0 src/views/oa_Initiate/form/{jk => cw}/fk.vue | 0 .../oa_Initiate/form/{jk => cw}/hdjf.vue | 27 +++++--- src/views/oa_Initiate/form/{jk => cw}/jk.vue | 0 src/views/oa_Initiate/form/{jk => cw}/jl.vue | 0 src/views/oa_Initiate/form/jq/cc.vue | 42 ++++++++++--- src/views/oa_Initiate/form/jq/jb.vue | 43 ++++++++++--- src/views/oa_Initiate/form/jq/qj.vue | 47 +++++++++++--- src/views/oa_Initiate/form/jq/wc.vue | 45 ++++++++++---- src/views/oa_Initiate/form/xz/hysyd.vue | 32 +++++++--- src/views/oa_Initiate/form/xz/yc.vue | 36 ++++++++--- src/views/oa_Initiate/form/xz/ycgh.vue | 8 ++- src/views/oa_Initiate/form/xz/yz.vue | 4 +- src/views/oa_Initiate/form/xz/zzjy.vue | 42 ++++++++++--- src/views/oa_Initiate/index.vue | 2 +- src/views/oa_transfe/index.vue | 2 +- 18 files changed, 315 insertions(+), 82 deletions(-) rename src/views/oa_Initiate/form/{jk => cw}/cg.vue (100%) rename src/views/oa_Initiate/form/{jk => cw}/fk.vue (100%) rename src/views/oa_Initiate/form/{jk => cw}/hdjf.vue (84%) rename src/views/oa_Initiate/form/{jk => cw}/jk.vue (100%) rename src/views/oa_Initiate/form/{jk => cw}/jl.vue (100%) diff --git a/src/layout/default/components/header/msg.vue b/src/layout/default/components/header/msg.vue index 192e7d3..fdc3d50 100644 --- a/src/layout/default/components/header/msg.vue +++ b/src/layout/default/components/header/msg.vue @@ -33,9 +33,9 @@ const getNums = async () => { } -setInterval(() => { - getNums() -}, 5000); +// setInterval(() => { +// getNums() +// }, 5000); getNums() diff --git a/src/views/oa_Initiate/edit.vue b/src/views/oa_Initiate/edit.vue index 709de35..d6bbd76 100644 --- a/src/views/oa_Initiate/edit.vue +++ b/src/views/oa_Initiate/edit.vue @@ -5,9 +5,37 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18,19 +46,42 @@ import generateForm from './../../components/generateForm/index.vue' import Popup from "@/components/popup/index.vue"; import { apiOaoaApproveAdd } from "@/api/oa_Initiate" +import qj from './form/jq/qj.vue' +import cc from './form/jq/cc.vue' +import wc from './form/jq/wc.vue' +import jb from './form/jq/jb.vue' +import hysyd from './form/xz/hysyd.vue' +import gwlz from './form/xz/gwlz.vue' +import wpwx from './form/xz/wpwx.vue' +import zzjy from './form/xz/zzjy.vue' +import yz from './form/xz/yz.vue' +import yc from './form/xz/yc.vue' +import ycgh from './form/xz/ycgh.vue' +import jk from './form/cw/jk.vue' +import fk from './form/cw/fk.vue' +import jl from './form/cw/jl.vue' +import cg from './form/cw/cg.vue' +import hdjf from './form/cw/hdjf.vue' +import rz from './form/rs/rz.vue' +import zz from './form/rs/zz.vue' +import lz from './form/rs/lz.vue' +import zg from './form/rs/zg.vue' +import zpxq from './form/rs/zpxq.vue' import tysp from './form/qt/tysp.vue' -defineProps({ +let props = defineProps({ type: { - type: Number, + type: String, } }) + + const emit = defineEmits(["success", "close"]); const formRef = shallowRef(); const popupRef = shallowRef>(); diff --git a/src/views/oa_Initiate/form/jk/cg.vue b/src/views/oa_Initiate/form/cw/cg.vue similarity index 100% rename from src/views/oa_Initiate/form/jk/cg.vue rename to src/views/oa_Initiate/form/cw/cg.vue diff --git a/src/views/oa_Initiate/form/jk/fk.vue b/src/views/oa_Initiate/form/cw/fk.vue similarity index 100% rename from src/views/oa_Initiate/form/jk/fk.vue rename to src/views/oa_Initiate/form/cw/fk.vue diff --git a/src/views/oa_Initiate/form/jk/hdjf.vue b/src/views/oa_Initiate/form/cw/hdjf.vue similarity index 84% rename from src/views/oa_Initiate/form/jk/hdjf.vue rename to src/views/oa_Initiate/form/cw/hdjf.vue index 2e58ff7..05bb0f9 100644 --- a/src/views/oa_Initiate/form/jk/hdjf.vue +++ b/src/views/oa_Initiate/form/cw/hdjf.vue @@ -50,11 +50,18 @@ - \ No newline at end of file diff --git a/src/views/oa_Initiate/form/jq/jb.vue b/src/views/oa_Initiate/form/jq/jb.vue index 8048f21..ab51bf6 100644 --- a/src/views/oa_Initiate/form/jq/jb.vue +++ b/src/views/oa_Initiate/form/jq/jb.vue @@ -4,14 +4,14 @@ + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" @change="calcDay"> + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" @change="calcDay"> @@ -36,11 +36,20 @@ - \ No newline at end of file diff --git a/src/views/oa_Initiate/form/jq/qj.vue b/src/views/oa_Initiate/form/jq/qj.vue index 8b7278c..6dd6165 100644 --- a/src/views/oa_Initiate/form/jq/qj.vue +++ b/src/views/oa_Initiate/form/jq/qj.vue @@ -12,20 +12,20 @@ + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" @change="calcDay"> + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" @change="calcDay"> - + @@ -44,11 +44,19 @@ - \ No newline at end of file diff --git a/src/views/oa_Initiate/form/jq/wc.vue b/src/views/oa_Initiate/form/jq/wc.vue index 4e6af95..3bcef34 100644 --- a/src/views/oa_Initiate/form/jq/wc.vue +++ b/src/views/oa_Initiate/form/jq/wc.vue @@ -2,21 +2,21 @@ - - + + + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" @change="calcDay"> + value-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" @change="calcDay"> @@ -41,11 +41,19 @@ - \ No newline at end of file diff --git a/src/views/oa_Initiate/form/xz/hysyd.vue b/src/views/oa_Initiate/form/xz/hysyd.vue index 017269d..f6b73f4 100644 --- a/src/views/oa_Initiate/form/xz/hysyd.vue +++ b/src/views/oa_Initiate/form/xz/hysyd.vue @@ -39,11 +39,21 @@ - \ No newline at end of file diff --git a/src/views/oa_Initiate/form/xz/yc.vue b/src/views/oa_Initiate/form/xz/yc.vue index 8507e24..fe406c6 100644 --- a/src/views/oa_Initiate/form/xz/yc.vue +++ b/src/views/oa_Initiate/form/xz/yc.vue @@ -35,7 +35,7 @@ - + @@ -52,11 +52,24 @@ - \ No newline at end of file diff --git a/src/views/oa_Initiate/form/xz/ycgh.vue b/src/views/oa_Initiate/form/xz/ycgh.vue index 6a2aca4..d8c42ef 100644 --- a/src/views/oa_Initiate/form/xz/ycgh.vue +++ b/src/views/oa_Initiate/form/xz/ycgh.vue @@ -4,7 +4,7 @@ - + @@ -41,7 +41,11 @@ const qjlxList = reactive(['事假', '年假', '调休假', '病假', '婚假', '产假', '陪产假', '其他']) const formData = ref({}) const formRef = ref(null) - +import { apiOaCarCateLists } from '@/api/oa_car_cate' +let carLists = ref([]) +apiOaCarCateLists().then(res => { + carLists.value = res.lists +}) // 表单验证 const formRules = reactive({ qjlx: [{ diff --git a/src/views/oa_Initiate/form/xz/yz.vue b/src/views/oa_Initiate/form/xz/yz.vue index b9de7b0..65150cf 100644 --- a/src/views/oa_Initiate/form/xz/yz.vue +++ b/src/views/oa_Initiate/form/xz/yz.vue @@ -49,7 +49,8 @@ - \ No newline at end of file diff --git a/src/views/oa_Initiate/form/xz/zzjy.vue b/src/views/oa_Initiate/form/xz/zzjy.vue index 195dcfe..986d2e6 100644 --- a/src/views/oa_Initiate/form/xz/zzjy.vue +++ b/src/views/oa_Initiate/form/xz/zzjy.vue @@ -41,15 +41,15 @@ - - + - - + @@ -73,7 +73,7 @@ -